Re: [U-Boot] u-boot on raspberry 2: booting in SVC secure mode

2015-03-02 Thread Vincent
Thank to your last email, I finally managed to boot in secure mode with (what I consider as) minimal changes: - kernel_old=1 - CONFIG_SYS_TEXT_BASE=0 - halting other cores in start.S:reset - commenting away line 113 in arch/arm/cpu/armv7/virt-v7.c: smp_set_core_boot_addr((unsigned long)secure_ram_a

Re: [U-Boot] u-boot on raspberry 2: booting in SVC secure mode

2015-03-01 Thread Stephen Warren
On 02/26/2015 02:32 AM, Vincent wrote: > I tried what Stephen suggested, and just changing CONFIG_SYS_TEXT_BASE > to 0x0 (with kernel_old=1) does not work: the board display some garbage > on the uart then hangs. The content of the garbage makes me thinks that > nothing is done to handle the four c

Re: [U-Boot] u-boot on raspberry 2: booting in SVC secure mode

2015-02-27 Thread Vincent
2015-02-27 10:41 GMT+01:00 Andre Przywara : > Hi Vincent, > > On 26/02/15 09:32, Vincent wrote: > > I tried what Stephen suggested, and just changing CONFIG_SYS_TEXT_BASE to > > 0x0 (with kernel_old=1) does not work: the board display some garbage on > > the uart then hangs. The content of the gar

Re: [U-Boot] u-boot on raspberry 2: booting in SVC secure mode

2015-02-27 Thread Andre Przywara
Hi Vincent, On 26/02/15 09:32, Vincent wrote: > I tried what Stephen suggested, and just changing CONFIG_SYS_TEXT_BASE to > 0x0 (with kernel_old=1) does not work: the board display some garbage on > the uart then hangs. The content of the garbage makes me thinks that > nothing is done to handle th

Re: [U-Boot] u-boot on raspberry 2: booting in SVC secure mode

2015-02-26 Thread Vincent
Oh and I don't think there is a TZ Address space controller on the raspberry, or at least I am not aware of any. 2015-02-26 10:32 GMT+01:00 Vincent : > I tried what Stephen suggested, and just changing CONFIG_SYS_TEXT_BASE to > 0x0 (with kernel_old=1) does not work: the board display some garbage

Re: [U-Boot] u-boot on raspberry 2: booting in SVC secure mode

2015-02-26 Thread Vincent
I tried what Stephen suggested, and just changing CONFIG_SYS_TEXT_BASE to 0x0 (with kernel_old=1) does not work: the board display some garbage on the uart then hangs. The content of the garbage makes me thinks that nothing is done to handle the four cores in this setting which ends up badly. I exp

Re: [U-Boot] u-boot on raspberry 2: booting in SVC secure mode

2015-02-26 Thread Andre Przywara
Hi Vincent, On 26/02/15 08:27, Vincent wrote: > Hi, > I finally hacked my way through U-boot and I managed to add raspberry's > boot code inside U-boot so that it can start as usual when using kernel_old > = 1. I don't think > we want this as a final solution but it made me understand a few things

Re: [U-Boot] u-boot on raspberry 2: booting in SVC secure mode

2015-02-26 Thread Vincent
Hi, I finally hacked my way through U-boot and I managed to add raspberry's boot code inside U-boot so that it can start as usual when using kernel_old = 1. I don't think we want this as a final solution but it made me understand a few things about U-boot architecture (in short: I added a new secti

Re: [U-Boot] u-boot on raspberry 2: booting in SVC secure mode

2015-02-25 Thread Stephen Warren
On 02/25/2015 02:30 AM, Vincent wrote: Hi, as explained here http://community.arm.com/message/25127, it is possible to boot the raspberry 2 in secure mode, by adding the kernel_old=1 option in config.txt. The main effects of this option are: - all 4 cores start executing in secure SVC mode instea

[U-Boot] u-boot on raspberry 2: booting in SVC secure mode

2015-02-25 Thread Vincent
Hi, as explained here http://community.arm.com/message/25127, it is possible to boot the raspberry 2 in secure mode, by adding the kernel_old=1 option in config.txt. The main effects of this option are: - all 4 cores start executing in secure SVC mode instead of non-secure SVC mode - all 4 cores st