[U-Boot] sandbox question

2013-12-29 Thread TigerLiu
Hi, Simon: Sandbox concept is a very good idea to test uboot's non-platform part code. I have a question about compiling uboot sandbox branch: 1. It seems sandbox branch could be compiled by gcc compiler on a x86 platform. Not need to set cross compiler tool chains. And after finished compil

Re: [U-Boot] [PATCH 3/9] ARM: HYP/non-sec switch in bootm.c

2013-12-29 Thread TigerLiu
Hi, Dall: Thanks a lot! >non-secure *state* includes several non-secure CPU modes (usr, svc, >und, abt, irq, fiq, hyp). You can choose to switch to either of them >as you want, but if you want to boot Linux you should choose Hyp mode >so KVM will work, unless you are writing your own hypervisor or

Re: [U-Boot] [PATCH 3/9] ARM: HYP/non-sec switch in bootm.c

2013-12-29 Thread Christoffer Dall
On 29 December 2013 21:15, wrote: > Hi, Dall: > Thanks for your quick response! >>It depends on the board. Which ARM doc are you referring to? > ARM Security Technology : Building a Secure System using TrustZone > Technology. > (PRD29-GENC-009492C) > Figure 5-2 in Chapter 5.2.1 Boot Sequence. >

Re: [U-Boot] [PATCH 3/9] ARM: HYP/non-sec switch in bootm.c

2013-12-29 Thread TigerLiu
Hi, Dall: Thanks for your quick response! >It depends on the board. Which ARM doc are you referring to? ARM Security Technology : Building a Secure System using TrustZone Technology. (PRD29-GENC-009492C) Figure 5-2 in Chapter 5.2.1 Boot Sequence. Based on my understanding, U-boot is classfied as n

Re: [U-Boot] [PATCH 3/9] ARM: HYP/non-sec switch in bootm.c

2013-12-29 Thread Christoffer Dall
On 29 December 2013 19:10, wrote: > Hi, Dall: > I have a few questions about switching cpu's state from secure to > non-sec in uboot. > 1. I found do_nonsec_virt_switch() function had been integrated in > uboot_2014_01_RC2. > This function would switch cpu from secure state to non-sec, even >

Re: [U-Boot] [PATCH 1/7 V4] mmc: Add some usefull macro definition

2013-12-29 Thread Zhang Haijun
On 12/27/2013 07:29 PM, Jaehoon Chung wrote: Hi, Haijun. On 12/10/2013 05:20 PM, Haijun Zhang wrote: From: Haijun Zhang Add command class define. Add mmc erase and secure erase define. Add secure erase and trim support bit define. Signed-off-by: Haijun Zhang --- changes for V4: - n

Re: [U-Boot] [PATCH 2/7 V3] mmc: Get secure erase information from card

2013-12-29 Thread Zhang Haijun
On 12/27/2013 07:13 PM, Jaehoon Chung wrote: Hi, Haijun. On 12/10/2013 02:39 PM, Haijun Zhang wrote: Read command class from csd register and secure erase support bit from ext csd register. Also calculate the erase timeout and secure erase timeout. If read ext csd error, error status should be

[U-Boot] [PATCH 3/9] ARM: HYP/non-sec switch in bootm.c

2013-12-29 Thread TigerLiu
Hi, Dall: I have a few questions about switching cpu's state from secure to non-sec in uboot. 1. I found do_nonsec_virt_switch() function had been integrated in uboot_2014_01_RC2. This function would switch cpu from secure state to non-sec, even into hyp-state. So, my question is: If a

Re: [U-Boot] [PATCH] mmc: Minor cleanup of sdhci.c

2013-12-29 Thread Darwin Rambo
> -Original Message- > From: Jaehoon Chung [mailto:jh80.ch...@samsung.com] > Sent: Wednesday, December 25, 2013 11:32 PM > To: Darwin Rambo; u-boot@lists.denx.de > Cc: Pantelis Antoniou > Subject: Re: [U-Boot] [PATCH] mmc: Minor cleanup of sdhci.c > > Hi, Darwin. > > I didn't think that "

[U-Boot] [PATCH] ARM: HYP/non-sec: Propagate stack pointer to hyp mode

2013-12-29 Thread Ian Campbell
Some users of the u-boot API (specifically grub) use the initial SP as a hint regarding where to look for the u-boot API signature. Signed-off-by: Ian Campbell Cc: Marc Zyngier --- This applies on top of Marc's "ARMv7: add PSCI support to u-boot" and allows me to chainload grub on a cubieboard2.

Re: [U-Boot] [PATCH 1/3] mtd: onenand: Fix unaligned access

2013-12-29 Thread Marek Vasut
On Saturday, December 28, 2013 at 05:06:28 PM, Lukasz Majewski wrote: > Hi Marek, > > > On Thursday, December 26, 2013 at 01:01:24 AM, Marek Vasut wrote: > > > Fix unaligned access in OneNAND core. The problem is that the > > > ffchars[] array is an array of "unsigned char", but in > > > onenand_w

Re: [U-Boot] [PATCH 1/4] arm: lager: Add support QSPI device and enable boot from SPI flash

2013-12-29 Thread Jagan Teki
On Thu, Dec 26, 2013 at 7:04 AM, Nobuhiro Iwamatsu wrote: > This supports SH-QSPI device on lager board, and enable booting from > SPI flash. > > Signed-off-by: Nobuhiro Iwamatsu > Signed-off-by: Nobuhiro Iwamatsu > --- > include/configs/lager.h | 32 +--- > 1 file c