So I built hikey ATF and l-loader for the first time and seemed to be able to flash the l-loader.bin
However, the serial log shows this, what did I do wrong ?
debug EMMC boot: print init OK debug EMMC boot: send RST_N . debug EMMC boot: start eMMC boot...... load fastboot1!
Switch to aarch64 mode. CPU0 executes at 0xf9801000! INFO: BL1: 0xf9810000 - 0xf9817000 [size = 28672] NOTICE: Booting Trusted Firmware NOTICE: BL1: v1.1(debug):a0c0399 NOTICE: BL1: Built : 09:31:15, May 28 2015 INFO: BL1: RAM 0xf9810000 - 0xf9817000
Platform exception reporting: ESR_EL3: 0000000002000000 ELR_EL3: 00000000f9803348 ...
Attaching disasembly, the crashing instruction seems to be deep inside function 'lpddr3_freq_init'
________________________________ Från: Stefan Johansson Skickat: den 3 juni 2015 15:19 Till: dev@lists.96boards.org Ämne: bl1 crash
So I built hikey ATF and l-loader for the first time and seemed to be able to flash the l-loader.bin
However, the serial log shows this, what did I do wrong ?
debug EMMC boot: print init OK debug EMMC boot: send RST_N . debug EMMC boot: start eMMC boot...... load fastboot1!
Switch to aarch64 mode. CPU0 executes at 0xf9801000! INFO: BL1: 0xf9810000 - 0xf9817000 [size = 28672] NOTICE: Booting Trusted Firmware NOTICE: BL1: v1.1(debug):a0c0399 NOTICE: BL1: Built : 09:31:15, May 28 2015 INFO: BL1: RAM 0xf9810000 - 0xf9817000
Platform exception reporting: ESR_EL3: 0000000002000000 ELR_EL3: 00000000f9803348 ...
Nevermind, sorry, there's a late fix for this. Thanks to Jerome.
________________________________ Från: Dev [dev-bounces@lists.96boards.org] för Stefan Johansson [stefan.johansson@t2data.com] Skickat: den 3 juni 2015 15:43 Till: dev@lists.96boards.org Ämne: Re: [Dev] bl1 crash
Attaching disasembly, the crashing instruction seems to be deep inside function 'lpddr3_freq_init'
________________________________ Från: Stefan Johansson Skickat: den 3 juni 2015 15:19 Till: dev@lists.96boards.org Ämne: bl1 crash
So I built hikey ATF and l-loader for the first time and seemed to be able to flash the l-loader.bin
However, the serial log shows this, what did I do wrong ?
debug EMMC boot: print init OK debug EMMC boot: send RST_N . debug EMMC boot: start eMMC boot...... load fastboot1!
Switch to aarch64 mode. CPU0 executes at 0xf9801000! INFO: BL1: 0xf9810000 - 0xf9817000 [size = 28672] NOTICE: Booting Trusted Firmware NOTICE: BL1: v1.1(debug):a0c0399 NOTICE: BL1: Built : 09:31:15, May 28 2015 INFO: BL1: RAM 0xf9810000 - 0xf9817000
Platform exception reporting: ESR_EL3: 0000000002000000 ELR_EL3: 00000000f9803348 ...
On Wed, 2015-06-03 at 13:43 +0000, Stefan Johansson wrote:
Attaching disasembly, the crashing instruction seems to be deep inside function 'lpddr3_freq_init'
Hi Stefan,
Are you using JTAG debugger? If so, could you add the breakpoint at the 0xf9803348 or before it? Then you use step in JTAG debugger. Could it avoid the exception issue?
Best Regards Haojian
Hi Stefan,
Do you have commit 640d7ff9652b ("hikey: mmio: add isb when load/store any register")? [1].
HTH,
On Wed, Jun 03, 2015 at 01:19:17PM +0000, Stefan Johansson wrote:
So I built hikey ATF and l-loader for the first time and seemed to be able to flash the l-loader.bin
However, the serial log shows this, what did I do wrong ?
debug EMMC boot: print init OK debug EMMC boot: send RST_N . debug EMMC boot: start eMMC boot...... load fastboot1!
Switch to aarch64 mode. CPU0 executes at 0xf9801000! INFO: BL1: 0xf9810000 - 0xf9817000 [size = 28672] NOTICE: Booting Trusted Firmware NOTICE: BL1: v1.1(debug):a0c0399 NOTICE: BL1: Built : 09:31:15, May 28 2015 INFO: BL1: RAM 0xf9810000 - 0xf9817000
Platform exception reporting: ESR_EL3: 0000000002000000 ELR_EL3: 00000000f9803348 ...
Here have several things can try firstly:
- Could u help check if your code base has pulled to latest? commit deedfe3c64c8f025487c7ded366de9f75065a55a
- Use below command to get to know where the exception happened: aarch64-linux-gnu-addr2line -e build/hikey/debug/bl1/bl1.elf 0x00000000f9803348
- Now ATF has enabled 800MHz for DDR, i prefer to try to downgrade to 533MHz: git revert d9a2e180801391b3d33c33580910ce7df4817565
i'd like to leave this question to Haojian to help confirm, i also don't familiar with ddr init flow.
Thanks, Leo Yan
Dev mailing list Dev@lists.96boards.org https://lists.96boards.org/mailman/listinfo/dev
On 2015/6/3 22:02, Leo Yan wrote:
On Wed, Jun 03, 2015 at 01:19:17PM +0000, Stefan Johansson wrote:
So I built hikey ATF and l-loader for the first time and seemed to be able to flash the l-loader.bin
However, the serial log shows this, what did I do wrong ?
debug EMMC boot: print init OK debug EMMC boot: send RST_N . debug EMMC boot: start eMMC boot...... load fastboot1!
Switch to aarch64 mode. CPU0 executes at 0xf9801000! INFO: BL1: 0xf9810000 - 0xf9817000 [size = 28672] NOTICE: Booting Trusted Firmware NOTICE: BL1: v1.1(debug):a0c0399 NOTICE: BL1: Built : 09:31:15, May 28 2015 INFO: BL1: RAM 0xf9810000 - 0xf9817000
Platform exception reporting: ESR_EL3: 0000000002000000 ELR_EL3: 00000000f9803348 ...
Here have several things can try firstly:
Could u help check if your code base has pulled to latest? commit deedfe3c64c8f025487c7ded366de9f75065a55a
Use below command to get to know where the exception happened: aarch64-linux-gnu-addr2line -e build/hikey/debug/bl1/bl1.elf 0x00000000f9803348
Now ATF has enabled 800MHz for DDR, i prefer to try to downgrade to 533MHz: git revert d9a2e180801391b3d33c33580910ce7df4817565
i'd like to leave this question to Haojian to help confirm, i also don't familiar with ddr init flow.
Thanks, Leo Yan
Dev mailing list Dev@lists.96boards.org https://lists.96boards.org/mailman/listinfo/dev
Dev mailing list Dev@lists.96boards.org https://lists.96boards.org/mailman/listinfo/dev