Re: [U-Boot] [RFC] try to merge different i.MX environment

2014-02-15 Thread Stefano Babic
Hi Dennis, On 14/02/2014 17:14, Dennis Gilmore wrote: > On Fri, 14 Feb 2014 16:06:55 +0100 > Stefano Babic wrote: > >> Signed-off-by: Stefano Babic >> CC: Fabio Estevam >> CC: Otavio Salvador >> CC: Marek Vasut >> CC: Leo Sartre >> CC: Jon Nettleton >> CC: Eric Nelson >> CC: b18...@freesc

[U-Boot] [PATCH v3 13/13] sunxi: HYP/non-sec: configure CNTFRQ on all CPUs

2014-02-15 Thread Marc Zyngier
CNTFRQ needs to be properly configured on all CPUs. Otherwise, virtual machines hoping to find valuable information on secondary CPUs will be disapointed... Signed-off-by: Marc Zyngier --- include/configs/sun7i.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/sun7i.h b/inclu

[U-Boot] [PATCH v3 11/13] sunxi: fix SRAM_B/SRAM_D memory map

2014-02-15 Thread Marc Zyngier
Move the B and D SRAM bank to their actual location (or at least where the documentation pretends they are). Signed-off-by: Marc Zyngier --- arch/arm/include/asm/arch-sunxi/cpu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/asm/arch-sunxi/cpu.h b/arch

[U-Boot] [PATCH v3 01/13] ARM: HYP/non-sec: move switch to non-sec to the last boot phase

2014-02-15 Thread Marc Zyngier
Having the switch to non-secure in the "prep" phase is causing all kind of troubles, as that stage can be called multiple times. Instead, move the switch to non-secure to the last possible phase, when there is no turning back anymore. Signed-off-by: Marc Zyngier --- arch/arm/lib/bootm.c | 5 +++

[U-Boot] [PATCH v3 09/13] ARM: convert arch_fixup_memory_node to a generic FDT fixup function

2014-02-15 Thread Marc Zyngier
From: Ma Haijun Some architecture needs extra device tree setup. Instead of adding yet another hook, convert arch_fixup_memory_node to be a generic FDT fixup function. [maz: collapsed 3 patches into one, rewrote commit message] Signed-off-by: Ma Haijun Signed-off-by: Marc Zyngier --- arch/ar

[U-Boot] [PATCH v3 05/13] ARM: HYP/non-sec: add separate section for secure code

2014-02-15 Thread Marc Zyngier
In anticipation of refactoring the HYP/non-secure code to run from secure RAM, add a new linker section that will contain that code. Nothing is using it just yet. Signed-off-by: Marc Zyngier --- arch/arm/config.mk | 2 +- arch/arm/cpu/u-boot.lds | 30 ++ arch/a

[U-Boot] [PATCH v3 04/13] ARM: add missing HYP mode constant

2014-02-15 Thread Marc Zyngier
In order to be able to use the various mode constants (far more readable than random hex values), add the missing HYP and A values. Also update arm/lib/interrupts.c to display HYP instead of an unknown value. Signed-off-by: Marc Zyngier --- arch/arm/include/asm/proc-armv/ptrace.h | 2 ++ arch/a

[U-Boot] [PATCH v3 06/13] ARM: HYP/non-sec: allow relocation to secure RAM

2014-02-15 Thread Marc Zyngier
The current non-sec switching code suffers from one major issue: it cannot run in secure RAM, as a large part of u-boot still needs to be run while we're switched to non-secure. This patch reworks the whole HYP/non-secure strategy by: - making sure the secure code is the *last* thing u-boot execut

[U-Boot] [PATCH v3 00/13] ARMv7: add PSCI support to u-boot

2014-02-15 Thread Marc Zyngier
PSCI is an ARM standard that provides a generic interface that supervisory software can use to manage power in the following situations: - Core idle management - CPU hotplug - big.LITTLE migration models - System shutdown and reset It basically allows the kernel to offload these tasks to the firmw

[U-Boot] [PATCH v3 07/13] ARM: HYP/non-sec: add generic ARMv7 PSCI code

2014-02-15 Thread Marc Zyngier
Implement core support for PSCI. As this is generic code, it doesn't implement anything really useful (all the functions are returning Not Implemented). Signed-off-by: Marc Zyngier --- arch/arm/cpu/armv7/Makefile | 4 ++ arch/arm/cpu/armv7/psci.S | 105 +++

[U-Boot] [PATCH v3 03/13] ARM: non-sec: reset CNTVOFF to zero

2014-02-15 Thread Marc Zyngier
Before switching to non-secure, make sure that CNTVOFF is set to zero on all CPUs. Otherwise, kernel running in non-secure without HYP enabled (hence using virtual timers) may observe timers that are not synchronized, effectively seeing time going backward... Signed-off-by: Marc Zyngier --- arch

[U-Boot] [PATCH v3 02/13] ARM: HYP/non-sec: add a barrier after setting SCR.NS==1

2014-02-15 Thread Marc Zyngier
A CP15 instruction execution can be reordered, requiring an isb to be sure it is executed in program order. Signed-off-by: Marc Zyngier --- arch/arm/cpu/armv7/nonsec_virt.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/cpu/armv7/nonsec_virt.S b/arch/arm/cpu/armv7/nonsec_virt.S ind

[U-Boot] [PATCH v3 08/13] ARM: HYP/non-sec: add the option for a second-stage monitor

2014-02-15 Thread Marc Zyngier
Allow the switch to a second stage secure monitor just before switching to non-secure. This allows a resident piece of firmware to be active once the kernel has been entered (the u-boot monitor is dead anyway, its pages being reused). Signed-off-by: Marc Zyngier --- arch/arm/cpu/armv7/nonsec_vi

[U-Boot] [PATCH v3 10/13] ARM: HYP/non-sec/PSCI: emit DT nodes

2014-02-15 Thread Marc Zyngier
Generate the PSCI node in the device tree. Also add a reserve section for the "secure" code that lives in in normal RAM, so that the kernel knows it'd better not trip on it. Signed-off-by: Marc Zyngier --- arch/arm/cpu/armv7/Makefile | 1 + arch/arm/cpu/armv7/virt-dt.c | 100

[U-Boot] [PATCH v3 12/13] sunxi: HYP/non-sec: add sun7i PSCI backend

2014-02-15 Thread Marc Zyngier
So far, only supporting the CPU_ON method. Other functions can be added later. Signed-off-by: Marc Zyngier --- arch/arm/cpu/armv7/sunxi/Makefile | 3 + arch/arm/cpu/armv7/sunxi/psci.S | 162 ++ include/configs/sun7i.h | 6 ++ 3 files changed, 1

Re: [U-Boot] [PATCH v3 00/13] ARMv7: add PSCI support to u-boot

2014-02-15 Thread Albert ARIBAUD
Hi Marc, On Sat, 15 Feb 2014 13:36:24 +, Marc Zyngier wrote: > PSCI is an ARM standard that provides a generic interface that > supervisory software can use to manage power in the following > situations: There seems to be no history information either in the cover letter or in individual pa

[U-Boot] [PATCH 1/5] wandboard: Staticize usdhc1_pads

2014-02-15 Thread Fabio Estevam
From: Fabio Estevam Fix the following sparse warning: wandboard.c:58:22: warning: symbol 'usdhc1_pads' was not declared. Should it be static? Signed-off-by: Fabio Estevam --- board/wandboard/wandboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/wandboard/wandb

[U-Boot] [PATCH 3/5] wandboard: Fix sparse warning

2014-02-15 Thread Fabio Estevam
From: Fabio Estevam Add a prototype for board_phy_config() to fix the following sparse warning: wandboard.c:200:5: warning: symbol 'board_phy_config' was not declared. Should it be static? Cc: Joe Hershberger Signed-off-by: Fabio Estevam --- board/wandboard/wandboard.c | 1 + include/phy.h

[U-Boot] [PATCH 2/5] mmc: Add a prototype for board_mmc_init()

2014-02-15 Thread Fabio Estevam
From: Fabio Estevam Fixes the following sparse warning: wandboard.c:137:5: warning: symbol 'board_mmc_init' was not declared. Should it be static? Cc: Pantelis Antoniou Signed-off-by: Fabio Estevam --- include/mmc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/mmc.h b/inclu

[U-Boot] [PATCH 4/5] wandboard: Include

2014-02-15 Thread Fabio Estevam
From: Fabio Estevam Include in order to fix the following sparse warning: wandboard.c:278:5: warning: symbol 'overwrite_console' was not declared. Should it be static? Signed-off-by: Fabio Estevam --- board/wandboard/wandboard.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/wand

[U-Boot] [PATCH 5/5] fb: Add a prototype for board_video_skip()

2014-02-15 Thread Fabio Estevam
From: Fabio Estevam Add a prototype for board_video_skip() in order to fix the following sparse warning: wandboard.c:227:5: warning: symbol 'board_video_skip' was not declared. Should it be static? Cc: Anatolij Gustschin Signed-off-by: Fabio Estevam --- include/linux/fb.h | 2 ++ 1 file cha

Re: [U-Boot] Secure booting

2014-02-15 Thread Simon Glass
Hi. On 12 February 2014 17:56, wrote: > > Hi, JYOTI: > >Can anybody inform me why u-boot 2013 does not support secure booting? > >Basically what are the differences between u-boot2009.08 and u-boot2013 > >related to secure boot feature? What changes are required to develop > secure > >booting in

Re: [U-Boot] Secure booting

2014-02-15 Thread Simon Glass
Hi, On 13 February 2014 00:42, JYOTI DUBEY wrote: > Can I obtain information as how secure booting works.How the keys and > certificates are generated and also encryption and decryption steps > involved in the authentication process. i would like to know just the > theory behind it not and comman

Re: [U-Boot] [PATCH v2 3/8] fit: add sha256 support

2014-02-15 Thread Simon Glass
Hi Heiko, On 8 February 2014 22:34, Heiko Schocher wrote: > add sha256 support to fit images > > Signed-off-by: Heiko Schocher > Acked-by: Simon Glass Sorry I spotted a few things since. > > --- > changes for v2: > - add Acked-by from Simon Glass > > common/image-fit.c | 5 + > include/i

Re: [U-Boot] [PATCH v2 2/8] fdt: add "fdt checksign" command

2014-02-15 Thread Simon Glass
Hi Heiko, On 8 February 2014 22:34, Heiko Schocher wrote: > check if a fdt is correct signed > pass an optional addr value. Contains the addr of the key blob > > Signed-off-by: Heiko Schocher > Cc: Simon Glass > > --- > changes vor v2: > - add comment from Simon Glass: > - rename "fdt sign" t

Re: [U-Boot] [PATCH v2 2/8] fdt: add "fdt checksign" command

2014-02-15 Thread Simon Glass
Hi Heiko, On 15 February 2014 16:00, Simon Glass wrote: > Hi Heiko, > > On 8 February 2014 22:34, Heiko Schocher wrote: >> check if a fdt is correct signed >> pass an optional addr value. Contains the addr of the key blob >> >> Signed-off-by: Heiko Schocher >> Cc: Simon Glass >> >> --- >> chan

Re: [U-Boot] [PATCH v2 4/8] rsa: add sha256-rsa2048 algorithm

2014-02-15 Thread Simon Glass
Hi Heiko, On 8 February 2014 22:34, Heiko Schocher wrote: > based on patch from andr...@oetken.name: > > http://patchwork.ozlabs.org/patch/294318/ > commit message: > I currently need support for rsa-sha256 signatures in u-boot and found out > that > the code for signatures is not very generic.

Re: [U-Boot] [PATCH v2 5/8] rsa: add sha256,rsa4096 algorithm

2014-02-15 Thread Simon Glass
On 8 February 2014 22:34, Heiko Schocher wrote: > Add support for sha256,rsa4096 signatures in u-boot. > > Signed-off-by: Heiko Schocher > Cc: Simon Glass > Cc: andr...@oetken.name Acked-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de ht

Re: [U-Boot] [PATCH v2 6/8] gen: Add progressive hash API

2014-02-15 Thread Simon Glass
Hi Heiko, On 8 February 2014 22:34, Heiko Schocher wrote: > From: Hung-ying Tyan > > Add hash_init(), hash_update() and hash_finish() to the > hash_algo struct. Add hash_lookup_algo() to look up the > struct given an algorithm name. > > Signed-off-by: Hung-ying Tyan > Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH v2 8/8] tools, fit_check_sign: verify a signed fit image

2014-02-15 Thread Simon Glass
Hi Heiko, On 8 February 2014 22:34, Heiko Schocher wrote: > add host tool "fit_check_sign" which verifies, if a fit image is > signed correct. > > Signed-off-by: Heiko Schocher > Cc: Simon Glass Overall this seems reasonable, and very useful. I'm just a little nervous about some of the work-ar

Re: [U-Boot] [PATCH 1/4] aes: Fix kerneldoc for aes.h

2014-02-15 Thread Simon Glass
On 5 February 2014 20:44, Marek Vasut wrote: > Fix the function annotations in aes.h so they're compatible with kerneldoc. > > Signed-off-by: Marek Vasut Acked-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/l

Re: [U-Boot] [PATCH 2/4] aes: Move the AES-128-CBC encryption function to common code

2014-02-15 Thread Simon Glass
Hi Marek, On 5 February 2014 20:44, Marek Vasut wrote: > Move the AES-128-CBC encryption function implemented in > tegra20-common/crypto.c > into lib/aes.c . This is well re-usable common code. Moreover, clean the code > up > a bit and fix the kerneldoc-style annotations. > > Signed-off-by: Mar

Re: [U-Boot] [PATCH 3/3] fit: rsa: Add support for SHA256 hash

2014-02-15 Thread Simon Glass
Hi Marek, On 5 February 2014 20:47, Marek Vasut wrote: > Add support for "sha256,rsa2048" signature. This patch utilises the previously > laid groundwork for adding other hashes. > > Signed-off-by: Marek Vasut Does this conflict with Heiko's patch or is it the same? Regards, Simon

Re: [U-Boot] [PATCH] dts: re-write dts/Makefile more simply with Kbuild

2014-02-15 Thread Simon Glass
Hi Masahiro, On 4 February 2014 03:00, Masahiro Yamada wrote: > Hello Simon, > > > I saw the patch you posted > http://patchwork.ozlabs.org/patch/315846/ > and I understood what you want to do. > (But I don't like to search similar device trees > with file name prefixes.) > > Do you like ARM Linu

Re: [U-Boot] [PATCH v2 1/3] dts: re-write dts/Makefile more simply with Kbuild

2014-02-15 Thread Simon Glass
Hi Masahiro, On 4 February 2014 02:38, Masahiro Yamada wrote: > Useful rules in scripts/Makefile.lib allows us to easily > generate a device tree blob and wrap it in assembly code. > > We do not need to parse a linker script to get output format and arch. > > This commit deletes ./u-boot.dtb sinc

Re: [U-Boot] [PATCH v2 3/3] dts: generate multiple device tree blobs

2014-02-15 Thread Simon Glass
Hi Masahiro, On 4 February 2014 02:38, Masahiro Yamada wrote: > It is convenient to have all device trees on the same SoC compiled. > It allows for later easy repackaging without the need to re-run > the make file. > > - Build device trees with the same SoC under arch/$(ARCH)/dts > - Copy the

Re: [U-Boot] [PATCH v3 3/3] dts: generate multiple device tree blobs

2014-02-15 Thread Simon Glass
Hi, On 4 February 2014 19:28, Masahiro Yamada wrote: > It is convenient to have all device trees on the same SoC compiled. > It allows for later easy repackaging without the need to re-run > the make file. > > - Build device trees with the same SoC under arch/$(ARCH)/dts > > - Copy the one sp

Re: [U-Boot] [PATCH v3 1/3] dts: re-write dts/Makefile more simply with Kbuild

2014-02-15 Thread Simon Glass
Hi, On 4 February 2014 19:28, Masahiro Yamada wrote: > Useful rules in scripts/Makefile.lib allows us to easily > generate a device tree blob and wrap it in assembly code. > > We do not need to parse a linker script to get output format and arch. > > This commit deletes ./u-boot.dtb since it is a

Re: [U-Boot] [PATCH v2 2/3] dts: move device tree sources to arch/$(ARCH)/dts/

2014-02-15 Thread Simon Glass
Hi Masahiro, On 5 February 2014 22:50, Masahiro Yamada wrote: > Hello Simon, > > >> Hi Masahiro, >> >> On 4 February 2014 02:38, Masahiro Yamada wrote: >> > Unlike Linux Kernel, U-Boot historically had *.dts files under >> > board/$(VENDOR)/dts/ and *.dtsi files under arch/$(ARCH)/dts/. >> > >>

Re: [U-Boot] [PATCH v8 0/38] Switch over to real Kbuild

2014-02-15 Thread Simon Glass
Hi Masahiro, On 6 February 2014 14:10, Tom Rini wrote: > On Mon, Feb 03, 2014 at 12:46:30PM +0900, Masahiro Yamada wrote: > >> Hello Simon and Tom, >> >> >> This is my analysis of Kbuild performance. > [snip] >> Conclusion: >> The main reasons of the slow down with Kbuild are "fixdep" and "arg-ch

Re: [U-Boot] [PATCH v8 0/38] Switch over to real Kbuild

2014-02-15 Thread Simon Glass
Hi Masahiro, On 15 February 2014 18:30, Simon Glass wrote: > Hi Masahiro, > > On 6 February 2014 14:10, Tom Rini wrote: >> On Mon, Feb 03, 2014 at 12:46:30PM +0900, Masahiro Yamada wrote: >> >>> Hello Simon and Tom, >>> >>> >>> This is my analysis of Kbuild performance. >> [snip] >>> Conclusion:

Re: [U-Boot] [PATCH 0/15] Follow-up for Kbuild series: more misc targets and short logs

2014-02-15 Thread Simon Glass
Hi Masahiro, On 7 February 2014 06:29, Masahiro Yamada wrote: > Kbuild series must be applied before this series. > > This series refactors a little, imports more Kbuild features > and convert many rules to Kbuild style. > > I think most of rules will be displayed in short log formats > by applyi

Re: [U-Boot] [PATCH 05/15] kbuild: Add $(Q) when descending into subdirectories

2014-02-15 Thread Simon Glass
On 7 February 2014 06:29, Masahiro Yamada wrote: > Signed-off-by: Masahiro Yamada Acked-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] MAKEALL

2014-02-15 Thread Simon Glass
Hi, On 12 February 2014 03:42, Masahiro Yamada wrote: > Hi Albert, > > >> > It might also be worth looking at tools/buildman, which automatically >> > allocates one build thread per CPU. >> >> Jumping in late, but my question is incidental and not urgent anyway. >> >> Would using buildman make th

[U-Boot] [PATCH v2 2/2] sandbox: Enable CONFIG_CMD_LZMADEC in sandbox.h

2014-02-15 Thread Simon Glass
From: Patrice Bouchand As Simon Glass requested it, here's a patch that enables CONFIG_CMD_LZMADEC in sandbox. Signed-off-by: Patrice Bouchand Signed-off-by: Simon Glass --- Changes in v2: - Modify commit message to remove greetings include/configs/sandbox.h | 2 ++ 1 file changed, 2 insert

Re: [U-Boot] [PATCH] sandbox: Enable CONFIG_CMD_LZMADEC in sandbox.h

2014-02-15 Thread Simon Glass
Hi Patrice, On 3 February 2014 00:51, Patrice B wrote: > Hello, > > As Simon Glass requested it, here's a patch that enables > CONFIG_CMD_LZMADEC in sandbox. > > Regards. > > Patrice FYI I have resent as version 2 to fix whitespace etc. I suspect your email program is doing something fu

[U-Boot] [PATCH v2 1/2] Add lzmadec command

2014-02-15 Thread Simon Glass
From: Patrice Bouchand I needed to be able to uncompress lzma files. I did this command based on unzip command and propose it if it could help. Signed-off-by: Patrice Bouchand Signed-off-by: Simon Glass --- Changes in v2: - Reformat commit message/code a little (patch slightly mangled) comm