LS2080ARDB: Enable EFI boot support
Subsystems (2)
v4 cover LS2080ARDB: Enable EFI boot support
We now have EFI support in U-Boot which worked out of the box on all systems that I tried it on so far. Except for the LS2080ARDB. With this patch set I can successfully boot grub2 and Linux from there on such a system - even using PXE.
v3 -> v4:
- Add CONFIG_CMD_FS_GENERIC to defconfig
- Move code into generic quiesce weak function
- Exit device for real when going to Linux
- Only apply DPL if we have something to apply
- New: armv8: ls2080a: Declare spin tables as reserved for efi loader
- New: efi_loader: Allow boards to implement get_time and reset_system
- New: armv8: fsl-layerscape: Add support for efi_loader RTS reset
- New: efi_loader: Declare secure memory as reserved
- New: efi_loader: Allow bouncing for network
Alexander Graf (9):
ls2080: Exit dpaa only right before exiting U-Boot
efi_loader: AArch64: Run EFI payloads in EL2 if U-Boot runs in EL3
ls2080ardb: Reserve DP-DDR RAM
ls2080ardb: Convert to distro boot
armv8: ls2080a: Declare spin tables as reserved for efi loader
efi_loader: Allow boards to implement get_time and reset_system
armv8: fsl-layerscape: Add support for efi_loader RTS reset
efi_loader: Declare secure memory as reserved
efi_loader: Allow bouncing for network
arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 33 +++++++++- arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 6 ++ arch/arm/include/asm/armv8/mmu.h | 19 +++--- arch/arm/include/asm/u-boot-arm.h | 1 + arch/arm/lib/bootm.c | 7 +++ board/freescale/ls2080a/ls2080a.c | 6 +- board/freescale/ls2080aqds/ls2080aqds.c | 11 ++-- board/freescale/ls2080ardb/ls2080ardb.c | 20 ++++-- cmd/bootefi.c | 15 +++++ configs/ls2080a_emu_defconfig | 1 + configs/ls2080a_simu_defconfig | 1 + configs/ls2080aqds_SECURE_BOOT_defconfig | 1 + configs/ls2080aqds_defconfig | 1 + configs/ls2080aqds_nand_defconfig | 1 + configs/ls2080ardb_SECURE_BOOT_defconfig | 1 + configs/ls2080ardb_defconfig | 1 + configs/ls2080ardb_nand_defconfig | 1 + drivers/net/fsl-mc/mc.c | 24 +++++++- include/configs/ls2080ardb.h | 26 +++++++- include/efi_loader.h | 18 ++++++ lib/efi_loader/efi_boottime.c | 2 + lib/efi_loader/efi_memory.c | 15 +++++ lib/efi_loader/efi_net.c | 7 +++ lib/efi_loader/efi_runtime.c | 101 +++++++++++++++++++++++++++---- 24 files changed, 283 insertions(+), 36 deletions(-)
Signature · 1 line
1.8.5.6
PATCH v4 1/9 ls2080: Exit dpaa only right before exiting U-Boot
On ls2080 we have a separate network fabric component which we need to shut down before we enter Linux (or any other OS). Along with that also comes configuration of the fabric using a description file.
Today we always stop and configure the fabric in the boot script and (again) exit it on device tree generation. This works ok for the normal booti case, but with bootefi the payload we're running may still want to access the network.
So let's add a new fsl_mc command that defers configuration and stopping the hardware to when we actually exit U-Boot, so that we can still use the fabric from an EFI payload.
For existing boot scripts, nothing should change with this patch.
---
v3 -> v4:
- Move code into generic quiesce weak function
- Exit device for real when going to Linux
- Only apply DPL if we have something to apply
--- arch/arm/include/asm/u-boot-arm.h | 1 + arch/arm/lib/bootm.c | 7 +++++++ board/freescale/ls2080a/ls2080a.c | 6 +++++- board/freescale/ls2080aqds/ls2080aqds.c | 11 +++++------ board/freescale/ls2080ardb/ls2080ardb.c | 11 +++++------ drivers/net/fsl-mc/mc.c | 24 ++++++++++++++++++++++-- lib/efi_loader/efi_boottime.c | 2 ++ 7 files changed, 47 insertions(+), 15 deletions(-)
arch/arm/include/asm/u-boot-arm.h +1 -0
@@ -37,6 +37,7 @@ int arch_early_init_r(void);/* board/.../... */ int board_init (void );void dram_init_banksize (void ); +void board_quiesce_devices (void );/* cpu/.../interrupt.c */ int arch_interrupt_init (void );
arch/arm/lib/bootm.c +7 -0
@@ -64,6 +64,10 @@ void arch_lmb_reserve(struct lmb *lmb) gd->bd->bi_dram[0].start + gd->bd->bi_dram[0].size - sp); } +__weak void board_quiesce_devices (void ) +{ +} +/** * announce_and_cleanup() - Print message and prepare for kernel boot *
@@ -84,6 +88,9 @@ static void announce_and_cleanup(int fake)#ifdef CONFIG_USB_DEVICE udc_disconnect ();#endif + +board_quiesce_devices (); +cleanup_before_linux (); }
board/freescale/ls2080a/ls2080a.c +5 -1
@@ -107,6 +107,11 @@ void fdt_fixup_board_enet(void *fdt) else fdt_status_fail(fdt, offset); } + +void board_quiesce_devices (void ) +{ +fsl_mc_ldpaa_exit (gd->bd); +}#endif #ifdef CONFIG_OF_BOARD_SETUP
@@ -127,7 +132,6 @@ int ft_board_setup(void *blob, bd_t *bd)#ifdef CONFIG_FSL_MC_ENET fdt_fixup_board_enet (blob); -fsl_mc_ldpaa_exit (bd);#endif return 0 ;
board/freescale/ls2080aqds/ls2080aqds.c +5 -6
@@ -296,14 +296,16 @@ void fdt_fixup_board_enet(void *fdt) elsefdt_status_fail (fdt ,offset ); } + +void board_quiesce_devices (void ) +{ +fsl_mc_ldpaa_exit (gd->bd); +}#endif #ifdef CONFIG_OF_BOARD_SETUP int ft_board_setup (void *blob,bd_t *bd) { -#ifdef CONFIG_FSL_MC_ENET -int err; -#endif u64 base[CONFIG_NR_DRAM_BANKS ];u64 size[CONFIG_NR_DRAM_BANKS ];
@@ -321,9 +323,6 @@ int ft_board_setup(void *blob, bd_t *bd)#ifdef CONFIG_FSL_MC_ENET fdt_fixup_board_enet (blob); - err =fsl_mc_ldpaa_exit (bd); -if (err) -return err;#endif return 0 ;
board/freescale/ls2080ardb/ls2080ardb.c +5 -6
@@ -260,14 +260,16 @@ void fdt_fixup_board_enet(void *fdt) elsefdt_status_fail (fdt ,offset ); } + +void board_quiesce_devices (void ) +{ +fsl_mc_ldpaa_exit (gd->bd); +}#endif #ifdef CONFIG_OF_BOARD_SETUP int ft_board_setup (void *blob,bd_t *bd) { -#ifdef CONFIG_FSL_MC_ENET -int err; -#endif u64 base[CONFIG_NR_DRAM_BANKS ];u64 size[CONFIG_NR_DRAM_BANKS ];
@@ -285,9 +287,6 @@ int ft_board_setup(void *blob, bd_t *bd)#ifdef CONFIG_FSL_MC_ENET fdt_fixup_board_enet (blob); - err =fsl_mc_ldpaa_exit (bd); -if (err) -return err;#endif return 0 ;
drivers/net/fsl-mc/mc.c +22 -2
@@ -40,6 +40,7 @@ int child_dprc_id;struct fsl_dpbp_obj *dflt_dpbp =NULL ;struct fsl_dpio_obj *dflt_dpio =NULL ;struct fsl_dpni_obj *dflt_dpni =NULL ; +static u64 mc_lazy_dpl_addr;#ifdef DEBUG void dump_ram_words (const char *title,void *addr)
@@ -572,6 +573,9 @@ int mc_apply_dpl(u64 mc_dpl_addr)u64 mc_ram_addr =mc_get_dram_addr ();size_t mc_ram_size =mc_get_dram_block_size (); +if (!mc_dpl_addr) +return -1 ; + error =load_mc_dpl (mc_ram_addr, mc_ram_size, mc_dpl_addr);if (error !=0 )return error;
@@ -1156,6 +1160,11 @@ int fsl_mc_ldpaa_exit(bd_t *bd) {int err =0 ; +if (bd && mc_lazy_dpl_addr && !fsl_mc_ldpaa_exit (NULL )) { +mc_apply_dpl (mc_lazy_dpl_addr); + mc_lazy_dpl_addr =0 ; + } +/* MC is not loaded intentionally, So return success. */ if (bd &&get_mc_boot_status () !=0 )return 0 ;
@@ -1259,6 +1268,7 @@ static int do_fsl_mc(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) }break ; +case 'l' :case 'a' : {u64 mc_dpl_addr;
@@ -1279,8 +1289,17 @@ static int do_fsl_mc(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])return -ENODEV ; } -if (!fsl_mc_ldpaa_exit (NULL )) - err =mc_apply_dpl (mc_dpl_addr); +if (argv[1 ][0 ] =='l' ) { +/* +* We will do the actual dpaa exit and dpl apply +* later from announce_and_cleanup(). +*/ + mc_lazy_dpl_addr = mc_dpl_addr; + }else { +/* The user wants it applied now */ +if (!fsl_mc_ldpaa_exit (NULL )) + err =mc_apply_dpl (mc_dpl_addr); + }break ; }default :
@@ -1298,5 +1317,6 @@ U_BOOT_CMD("DPAA2 command to manage Management Complex (MC)" ,"start mc [FW_addr] [DPC_addr] - Start Management Complex\n" "fsl_mc apply DPL [DPL_addr] - Apply DPL file\n" +"fsl_mc lazyapply DPL [DPL_addr] - Apply DPL file on exit\n" "fsl_mc start aiop [FW_addr] - Start AIOP\n" );
lib/efi_loader/efi_boottime.c +2 -0
@@ -523,6 +523,8 @@ static efi_status_t EFIAPI efi_exit_boot_services(void *image_handle, {EFI_ENTRY ("%p, %ld" , image_handle, map_key); +board_quiesce_devices (); +/* Fix up caches for EFI payloads if necessary */ efi_exit_caches ();
Signature · 1 line
1.8.5.6
PATCH v4 2/9 efi_loader: AArch64: Run EFI payloads in EL2 if U-Boot runs in EL3
In reply to Alexander GrafSome boards decided not to run ATF or other secure firmware in EL3, so they instead run U-Boot there. The uEFI spec doesn't know what EL3 is though - it only knows about EL2 and EL1. So if we see that we're running in EL3, let's get into EL2 to make payloads happy.
--- arch/arm/include/asm/armv8/mmu.h | 19 ++++++++++++------- cmd/bootefi.c | 11 +++++++++++ 2 files changed, 23 insertions(+), 7 deletions(-)
arch/arm/include/asm/armv8/mmu.h +12 -7
@@ -116,19 +116,24 @@static inline void set_ttbr_tcr_mair (int el,u64 table,u64 tcr,u64 attr) { asmvolatile ("dsb sy" ); -if (el ==1 ) { +switch (el) { +case 1 : asmvolatile ("msr ttbr0_el1, %0" : :"r" (table) :"memory" ); asmvolatile ("msr tcr_el1, %0" : :"r" (tcr) :"memory" ); asmvolatile ("msr mair_el1, %0" : :"r" (attr) :"memory" ); - }else if (el ==2 ) { - asmvolatile ("msr ttbr0_el2, %0" : :"r" (table) :"memory" ); - asmvolatile ("msr tcr_el2, %0" : :"r" (tcr) :"memory" ); - asmvolatile ("msr mair_el2, %0" : :"r" (attr) :"memory" ); - }else if (el ==3 ) { +break ; +case 3 : asmvolatile ("msr ttbr0_el3, %0" : :"r" (table) :"memory" ); asmvolatile ("msr tcr_el3, %0" : :"r" (tcr) :"memory" ); asmvolatile ("msr mair_el3, %0" : :"r" (attr) :"memory" ); - }else { + +/* We may switch to EL2 later, so set those too; fall through */ +case 2 : + asmvolatile ("msr ttbr0_el2, %0" : :"r" (table) :"memory" ); + asmvolatile ("msr tcr_el2, %0" : :"r" (tcr) :"memory" ); + asmvolatile ("msr mair_el2, %0" : :"r" (attr) :"memory" ); +break ; +default :hang (); } asmvolatile ("isb" );
cmd/bootefi.c +11 -0
@@ -205,6 +205,17 @@ static unsigned long do_bootefi_exec(void *efi, void *fdt) loaded_image_info.device_handle = nethandle;#endif +#ifdef CONFIG_ARM64 +/* On AArch64 we need to make sure we call our payload in < EL3 */ +if (current_el () ==3 ) { +smp_kick_all_cpus (); +dcache_disable ();/* flush cache before switch to EL2 */ +armv8_switch_to_el2 (); +/* Enable caches again */ +set_sctlr (get_sctlr () | (CR_C |CR_M )); + } +#endif +/* Call our payload! */ debug ("%s:%d Jumping to 0x%lx\n" , __func__, __LINE__, (long )entry);
Signature · 1 line
1.8.5.6
PATCH v4 2/9 efi_loader: AArch64: Run EFI payloads in EL2 if U-Boot runs in EL3
Quoted 33 lines · Alexander Graf
Some boards decided not to run ATF or other secure firmware in EL3, so they instead run U-Boot there. The uEFI spec doesn't know what EL3 is though - it only knows about EL2 and EL1. So if we see that we're running in EL3, let's get into EL2 to make payloads happy.
Signed-off-by Alexander Graf <[email protected]>--- arch/arm/include/asm/armv8/mmu.h | 19 ++++++++++++------- cmd/bootefi.c | 11 +++++++++++ 2 files changed, 23 insertions(+), 7 deletions(-)arch/arm/include/asm/armv8/mmu.h +4
-6@@ -116,19 +116,24 @@static inline void set_ttbr_tcr_mair (int el,u64 table,u64 tcr,u64 attr) { asmvolatile ("dsb sy" ); -if (el ==1 ) { +switch (el) { +case 1 : asmvolatile ("msr ttbr0_el1, %0" : :"r" (table) :"memory" ); asmvolatile ("msr tcr_el1, %0" : :"r" (tcr) :"memory" ); asmvolatile ("msr mair_el1, %0" : :"r" (attr) :"memory" ); - }else if (el ==2 ) { - asmvolatile ("msr ttbr0_el2, %0" : :"r" (table) :"memory" ); - asmvolatile ("msr tcr_el2, %0" : :"r" (tcr) :"memory" ); - asmvolatile ("msr mair_el2, %0" : :"r" (attr) :"memory" ); - }else if (el ==3 ) { +break ; +case 3 : asmvolatile ("msr ttbr0_el3, %0" : :"r" (table) :"memory" );
arch/arm/include/asm/armv8/mmu.h line 135
Quoted 10 lines
arch/arm/include/asm/armv8/mmu.h +7
-1asmvolatile ("msr tcr_el3, %0" : :"r" (tcr) :"memory" ); asmvolatile ("msr mair_el3, %0" : :"r" (attr) :"memory" ); - }else { + +/* We may switch to EL2 later, so set those too; fall through */ +case 2 : + asmvolatile ("msr ttbr0_el2, %0" : :"r" (table) :"memory" ); + asmvolatile ("msr tcr_el2, %0" : :"r" (tcr) :"memory" ); + asmvolatile ("msr mair_el2, %0" : :"r" (attr) :"memory" ); +break ;
This may be problematic. If we use secure memory for EL3, the MMU tables have to be within the secure memory. But EL2 will not be able to access it. I believe you have verified this patch set actually work. I am curious how it work.
York
PATCH v4 2/9 efi_loader: AArch64: Run EFI payloads in EL2 if U-Boot runs in EL3
Quoted 46 lines
Am 21.06.2016 um 19:12 schrieb york sun <[email protected]>:
Quoted 42 lines · Alexander Graf
Some boards decided not to run ATF or other secure firmware in EL3, so they instead run U-Boot there. The uEFI spec doesn't know what EL3 is though - it only knows about EL2 and EL1. So if we see that we're running in EL3, let's get into EL2 to make payloads happy.
Signed-off-by Alexander Graf <[email protected]>--- arch/arm/include/asm/armv8/mmu.h | 19 ++++++++++++------- cmd/bootefi.c | 11 +++++++++++ 2 files changed, 23 insertions(+), 7 deletions(-)arch/arm/include/asm/armv8/mmu.h +9
-7@@ -116,19 +116,24 @@static inline void set_ttbr_tcr_mair (int el,u64 table,u64 tcr,u64 attr) { asmvolatile ("dsb sy" ); -if (el ==1 ) { +switch (el) { +case 1 : asmvolatile ("msr ttbr0_el1, %0" : :"r" (table) :"memory" ); asmvolatile ("msr tcr_el1, %0" : :"r" (tcr) :"memory" ); asmvolatile ("msr mair_el1, %0" : :"r" (attr) :"memory" ); - }else if (el ==2 ) { - asmvolatile ("msr ttbr0_el2, %0" : :"r" (table) :"memory" ); - asmvolatile ("msr tcr_el2, %0" : :"r" (tcr) :"memory" ); - asmvolatile ("msr mair_el2, %0" : :"r" (attr) :"memory" ); - }else if (el ==3 ) { +break ; +case 3 : asmvolatile ("msr ttbr0_el3, %0" : :"r" (table) :"memory" ); asmvolatile ("msr tcr_el3, %0" : :"r" (tcr) :"memory" ); asmvolatile ("msr mair_el3, %0" : :"r" (attr) :"memory" ); - }else { + +/* We may switch to EL2 later, so set those too; fall through */ +case 2 : + asmvolatile ("msr ttbr0_el2, %0" : :"r" (table) :"memory" ); + asmvolatile ("msr tcr_el2, %0" : :"r" (tcr) :"memory" );
Quoted 8 lines
arch/arm/include/asm/armv8/mmu.h line 135
Quoted 2 lines
arch/arm/include/asm/armv8/mmu.h +2
-0+ asmvolatile ("msr mair_el2, %0" : :"r" (attr) :"memory" ); +break ;This may be problematic. If we use secure memory for EL3, the MMU tables have to be within the secure memory. But EL2 will not be able to access it. I believe you have verified this patch set actually work. I am curious how it work.
That's a good question. I suppose the default config doesn't actually lock secure memory? Or doesn't go secure at all?
Alex
PATCH v4 2/9 efi_loader: AArch64: Run EFI payloads in EL2 if U-Boot runs in EL3
Quoted 55 lines · Alexander Graf
Quoted 46 lines
Am 21.06.2016 um 19:12 schrieb york sun <[email protected]>:
Quoted 42 lines · Alexander Graf
Some boards decided not to run ATF or other secure firmware in EL3, so they instead run U-Boot there. The uEFI spec doesn't know what EL3 is though - it only knows about EL2 and EL1. So if we see that we're running in EL3, let's get into EL2 to make payloads happy.
Signed-off-by Alexander Graf <[email protected]>--- arch/arm/include/asm/armv8/mmu.h | 19 ++++++++++++------- cmd/bootefi.c | 11 +++++++++++ 2 files changed, 23 insertions(+), 7 deletions(-)arch/arm/include/asm/armv8/mmu.h +9
-7@@ -116,19 +116,24 @@static inline void set_ttbr_tcr_mair (int el,u64 table,u64 tcr,u64 attr) { asmvolatile ("dsb sy" ); -if (el ==1 ) { +switch (el) { +case 1 : asmvolatile ("msr ttbr0_el1, %0" : :"r" (table) :"memory" ); asmvolatile ("msr tcr_el1, %0" : :"r" (tcr) :"memory" ); asmvolatile ("msr mair_el1, %0" : :"r" (attr) :"memory" ); - }else if (el ==2 ) { - asmvolatile ("msr ttbr0_el2, %0" : :"r" (table) :"memory" ); - asmvolatile ("msr tcr_el2, %0" : :"r" (tcr) :"memory" ); - asmvolatile ("msr mair_el2, %0" : :"r" (attr) :"memory" ); - }else if (el ==3 ) { +break ; +case 3 : asmvolatile ("msr ttbr0_el3, %0" : :"r" (table) :"memory" ); asmvolatile ("msr tcr_el3, %0" : :"r" (tcr) :"memory" ); asmvolatile ("msr mair_el3, %0" : :"r" (attr) :"memory" ); - }else { + +/* We may switch to EL2 later, so set those too; fall through */ +case 2 : + asmvolatile ("msr ttbr0_el2, %0" : :"r" (table) :"memory" ); + asmvolatile ("msr tcr_el2, %0" : :"r" (tcr) :"memory" );Quoted 8 lines
arch/arm/include/asm/armv8/mmu.h line 135
Quoted 2 lines
arch/arm/include/asm/armv8/mmu.h +2
-0+ asmvolatile ("msr mair_el2, %0" : :"r" (attr) :"memory" ); +break ;This may be problematic. If we use secure memory for EL3, the MMU tables have to be within the secure memory. But EL2 will not be able to access it. I believe you have verified this patch set actually work. I am curious how it work.
Quoted 2 lines
That's a good question. I suppose the default config doesn't actually lock secure memory? Or doesn't go secure at all?
The patch set using this secure memory is still pending. Our internal team has been working on it. So the secure memory has been working. I am sure I have put MMU tables in secure memory. You can verify by running "bdi" command. It will show you the secure memory location. If you don't see it, then you don't have secure memory setup. By default, it is enabled.
I remember I have done a test to access to the secure memory from non-secure master and got an exception.
Could your test run at EL2 without a proper MMU table? I don't remember if the core would hang, or continue to run if fetching MMU table fails.
York
PATCH v4 2/9 efi_loader: AArch64: Run EFI payloads in EL2 if U-Boot runs in EL3
Quoted 56 lines · york sun
Quoted 55 lines · Alexander Graf
Quoted 54 lines
Am 21.06.2016 um 19:12 schrieb york sun <[email protected]>:
Quoted 34 lines · Alexander Graf
Some boards decided not to run ATF or other secure firmware in EL3, so they instead run U-Boot there. The uEFI spec doesn't know what EL3 is though - it only knows about EL2 and EL1. So if we see that we're running in EL3, let's get into EL2 to make payloads happy.
Signed-off-by Alexander Graf <[email protected]>--- arch/arm/include/asm/armv8/mmu.h | 19 ++++++++++++------- cmd/bootefi.c | 11 +++++++++++ 2 files changed, 23 insertions(+), 7 deletions(-)arch/arm/include/asm/armv8/mmu.h +4
-6@@ -116,19 +116,24 @@static inline void set_ttbr_tcr_mair (int el,u64 table,u64 tcr,u64 attr) { asmvolatile ("dsb sy" ); -if (el ==1 ) { +switch (el) { +case 1 : asmvolatile ("msr ttbr0_el1, %0" : :"r" (table) :"memory" ); asmvolatile ("msr tcr_el1, %0" : :"r" (tcr) :"memory" ); asmvolatile ("msr mair_el1, %0" : :"r" (attr) :"memory" ); - }else if (el ==2 ) { - asmvolatile ("msr ttbr0_el2, %0" : :"r" (table) :"memory" ); - asmvolatile ("msr tcr_el2, %0" : :"r" (tcr) :"memory" ); - asmvolatile ("msr mair_el2, %0" : :"r" (attr) :"memory" ); - }else if (el ==3 ) { +break ; +case 3 : asmvolatile ("msr ttbr0_el3, %0" : :"r" (table) :"memory" );arch/arm/include/asm/armv8/mmu.h line 135
Quoted 10 lines
arch/arm/include/asm/armv8/mmu.h +7
-1asmvolatile ("msr tcr_el3, %0" : :"r" (tcr) :"memory" ); asmvolatile ("msr mair_el3, %0" : :"r" (attr) :"memory" ); - }else { + +/* We may switch to EL2 later, so set those too; fall through */ +case 2 : + asmvolatile ("msr ttbr0_el2, %0" : :"r" (table) :"memory" ); + asmvolatile ("msr tcr_el2, %0" : :"r" (tcr) :"memory" ); + asmvolatile ("msr mair_el2, %0" : :"r" (attr) :"memory" ); +break ;This may be problematic. If we use secure memory for EL3, the MMU tables have to be within the secure memory. But EL2 will not be able to access it. I believe you have verified this patch set actually work. I am curious how it work.
Quoted 8 lines
Quoted 2 lines
That's a good question. I suppose the default config doesn't actually lock secure memory? Or doesn't go secure at all?
The patch set using this secure memory is still pending. Our internal team has been working on it. So the secure memory has been working. I am sure I have put MMU tables in secure memory. You can verify by running "bdi" command. It will show you the secure memory location. If you don't see it, then you don't have secure memory setup. By default, it is enabled.
Ok, yes, I do see secure memory there.
Quoted 5 lines
I remember I have done a test to access to the secure memory from non-secure master and got an exception.
Could your test run at EL2 without a proper MMU table? I don't remember if the core would hang, or continue to run if fetching MMU table fails.
So without this patch, U-Boot would just hang (or probably loop in delivering page faults) in the switch to EL2, before we even reach any EFI payload. I'm not sure why it does succeed in accessing the page tables though if they are indeed in secure memory.
Maybe we should just turn the whole logic upside down. Switch from EL3 to EL2 in very early init code and get people to just run ATF or some other self-contained trusted firmware (maybe even built as part of U-Boot) in EL3. Putting all of U-Boot into EL3 doesn't seem to much of a good idea either way, as there is a lot of code that has no business at EL3.
Would that approach work for you as well?
Alex
PATCH v4 2/9 efi_loader: AArch64: Run EFI payloads in EL2 if U-Boot runs in EL3
Quoted 81 lines · Alexander Graf
Quoted 56 lines · york sun
Quoted 55 lines · Alexander Graf
Quoted 54 lines
Am 21.06.2016 um 19:12 schrieb york sun <[email protected]>:
Quoted 34 lines · Alexander Graf
Some boards decided not to run ATF or other secure firmware in EL3, so they instead run U-Boot there. The uEFI spec doesn't know what EL3 is though - it only knows about EL2 and EL1. So if we see that we're running in EL3, let's get into EL2 to make payloads happy.
Signed-off-by Alexander Graf <[email protected]>--- arch/arm/include/asm/armv8/mmu.h | 19 ++++++++++++------- cmd/bootefi.c | 11 +++++++++++ 2 files changed, 23 insertions(+), 7 deletions(-)arch/arm/include/asm/armv8/mmu.h +4
-6@@ -116,19 +116,24 @@static inline void set_ttbr_tcr_mair (int el,u64 table,u64 tcr,u64 attr) { asmvolatile ("dsb sy" ); -if (el ==1 ) { +switch (el) { +case 1 : asmvolatile ("msr ttbr0_el1, %0" : :"r" (table) :"memory" ); asmvolatile ("msr tcr_el1, %0" : :"r" (tcr) :"memory" ); asmvolatile ("msr mair_el1, %0" : :"r" (attr) :"memory" ); - }else if (el ==2 ) { - asmvolatile ("msr ttbr0_el2, %0" : :"r" (table) :"memory" ); - asmvolatile ("msr tcr_el2, %0" : :"r" (tcr) :"memory" ); - asmvolatile ("msr mair_el2, %0" : :"r" (attr) :"memory" ); - }else if (el ==3 ) { +break ; +case 3 : asmvolatile ("msr ttbr0_el3, %0" : :"r" (table) :"memory" );arch/arm/include/asm/armv8/mmu.h line 135
Quoted 10 lines
arch/arm/include/asm/armv8/mmu.h +7
-1asmvolatile ("msr tcr_el3, %0" : :"r" (tcr) :"memory" ); asmvolatile ("msr mair_el3, %0" : :"r" (attr) :"memory" ); - }else { + +/* We may switch to EL2 later, so set those too; fall through */ +case 2 : + asmvolatile ("msr ttbr0_el2, %0" : :"r" (table) :"memory" ); + asmvolatile ("msr tcr_el2, %0" : :"r" (tcr) :"memory" ); + asmvolatile ("msr mair_el2, %0" : :"r" (attr) :"memory" ); +break ;This may be problematic. If we use secure memory for EL3, the MMU tables have to be within the secure memory. But EL2 will not be able to access it. I believe you have verified this patch set actually work. I am curious how it work.
Quoted 8 lines
Quoted 2 lines
That's a good question. I suppose the default config doesn't actually lock secure memory? Or doesn't go secure at all?
The patch set using this secure memory is still pending. Our internal team has been working on it. So the secure memory has been working. I am sure I have put MMU tables in secure memory. You can verify by running "bdi" command. It will show you the secure memory location. If you don't see it, then you don't have secure memory setup. By default, it is enabled.
Ok, yes, I do see secure memory there.
Quoted 5 lines
I remember I have done a test to access to the secure memory from non-secure master and got an exception.
Could your test run at EL2 without a proper MMU table? I don't remember if the core would hang, or continue to run if fetching MMU table fails.
So without this patch, U-Boot would just hang (or probably loop in delivering page faults) in the switch to EL2, before we even reach any EFI payload. I'm not sure why it does succeed in accessing the page tables though if they are indeed in secure memory.
Quoted 8 lines
Maybe we should just turn the whole logic upside down. Switch from EL3 to EL2 in very early init code and get people to just run ATF or some other self-contained trusted firmware (maybe even built as part of U-Boot) in EL3. Putting all of U-Boot into EL3 doesn't seem to much of a good idea either way, as there is a lot of code that has no business at EL3.
Would that approach work for you as well?
Alex,
I think we can make this work. I have two patch pending. One is my rewriting MMU setup for FSL Layerscape SoCs. Another one is Zhiqiang's PPA patch. Once they are both merged, you can drop the change in set_ttbr_tcr_mair() and let dcache_disable() do the job. The latter one will call mmu_setup() to setup new tables for EL2.
York
PATCH v4 2/9 efi_loader: AArch64: Run EFI payloads in EL2 if U-Boot runs in EL3
In reply to Alexander GrafQuoted 81 lines · Alexander Graf
Quoted 56 lines · york sun
Quoted 55 lines · Alexander Graf
Quoted 54 lines
Am 21.06.2016 um 19:12 schrieb york sun <[email protected]>:
Quoted 34 lines · Alexander Graf
Some boards decided not to run ATF or other secure firmware in EL3, so they instead run U-Boot there. The uEFI spec doesn't know what EL3 is though - it only knows about EL2 and EL1. So if we see that we're running in EL3, let's get into EL2 to make payloads happy.
Signed-off-by Alexander Graf <[email protected]>--- arch/arm/include/asm/armv8/mmu.h | 19 ++++++++++++------- cmd/bootefi.c | 11 +++++++++++ 2 files changed, 23 insertions(+), 7 deletions(-)arch/arm/include/asm/armv8/mmu.h +4
-6@@ -116,19 +116,24 @@static inline void set_ttbr_tcr_mair (int el,u64 table,u64 tcr,u64 attr) { asmvolatile ("dsb sy" ); -if (el ==1 ) { +switch (el) { +case 1 : asmvolatile ("msr ttbr0_el1, %0" : :"r" (table) :"memory" ); asmvolatile ("msr tcr_el1, %0" : :"r" (tcr) :"memory" ); asmvolatile ("msr mair_el1, %0" : :"r" (attr) :"memory" ); - }else if (el ==2 ) { - asmvolatile ("msr ttbr0_el2, %0" : :"r" (table) :"memory" ); - asmvolatile ("msr tcr_el2, %0" : :"r" (tcr) :"memory" ); - asmvolatile ("msr mair_el2, %0" : :"r" (attr) :"memory" ); - }else if (el ==3 ) { +break ; +case 3 : asmvolatile ("msr ttbr0_el3, %0" : :"r" (table) :"memory" );arch/arm/include/asm/armv8/mmu.h line 135
Quoted 10 lines
arch/arm/include/asm/armv8/mmu.h +7
-1asmvolatile ("msr tcr_el3, %0" : :"r" (tcr) :"memory" ); asmvolatile ("msr mair_el3, %0" : :"r" (attr) :"memory" ); - }else { + +/* We may switch to EL2 later, so set those too; fall through */ +case 2 : + asmvolatile ("msr ttbr0_el2, %0" : :"r" (table) :"memory" ); + asmvolatile ("msr tcr_el2, %0" : :"r" (tcr) :"memory" ); + asmvolatile ("msr mair_el2, %0" : :"r" (attr) :"memory" ); +break ;This may be problematic. If we use secure memory for EL3, the MMU tables have to be within the secure memory. But EL2 will not be able to access it. I believe you have verified this patch set actually work. I am curious how it work.
Quoted 8 lines
Quoted 2 lines
That's a good question. I suppose the default config doesn't actually lock secure memory? Or doesn't go secure at all?
The patch set using this secure memory is still pending. Our internal team has been working on it. So the secure memory has been working. I am sure I have put MMU tables in secure memory. You can verify by running "bdi" command. It will show you the secure memory location. If you don't see it, then you don't have secure memory setup. By default, it is enabled.
Ok, yes, I do see secure memory there.
Quoted 5 lines
I remember I have done a test to access to the secure memory from non-secure master and got an exception.
Could your test run at EL2 without a proper MMU table? I don't remember if the core would hang, or continue to run if fetching MMU table fails.
So without this patch, U-Boot would just hang (or probably loop in delivering page faults) in the switch to EL2, before we even reach any EFI payload. I'm not sure why it does succeed in accessing the page tables though if they are indeed in secure memory.
Quoted 8 lines
Maybe we should just turn the whole logic upside down. Switch from EL3 to EL2 in very early init code and get people to just run ATF or some other self-contained trusted firmware (maybe even built as part of U-Boot) in EL3. Putting all of U-Boot into EL3 doesn't seem to much of a good idea either way, as there is a lot of code that has no business at EL3.
Would that approach work for you as well?
Alex,
With recent patches merged, I think we have a solution here. You can call dcache_enable() after switching to el2 in cmd/bootefi.c. Since MMU is not on by default, mmu_setup() will be called. In the weak function, you check if (!gd->arch.tlb_fillptr), so no new tables are created. The code following will enable MMU for EL2. For platforms with mmu_setup (including ls2080a), mmu_setup() will take care of creating new tables in non-secure memory. I have verified on LS1043A with new PPA framework.
I can test this for you, if you educate me how to run distro boot. Do I need hard drive/image to continue?
York
PATCH v4 2/9 efi_loader: AArch64: Run EFI payloads in EL2 if U-Boot runs in EL3
In reply to Alexander GrafHi Alex
Quoted 16 lines
-----Original Message-----
From: Alexander Graf [mailto:agraf at suse.de]
Sent: Tuesday, June 21, 2016 4:37 AM
To: u-boot at lists.denx.de
Cc: york sun <[email protected]>; Prabhakar Kushwaha <[email protected]>
Subject: [PATCH v4 2/9]efi_loader: AArch64: Run EFI payloads in EL2 if U- Boot runs in EL3Some boards decided not to run ATF or other secure firmware in EL3, so they instead run U-Boot there. The uEFI spec doesn't know what EL3 is though - it only knows about EL2 and EL1. So if we see that we're running in EL3, let's get into EL2 to make payloads happy.
Signed-off-by Alexander Graf <[email protected]>---
<snip>
Quoted 7 lines
arch/arm/include/asm/armv8/mmu.h +0
-0asmvolatile ("isb" );cmd/bootefi.c +0
-0@@ -205,6 +205,17 @@ static unsigned long do_bootefi_exec(void *efi, void *fdt) loaded_image_info.device_handle = nethandle;#endif
cmd/bootefi.c static unsigned long do_bootefi_exec(void *efi, void · line 216
Quoted 10 lines
cmd/bootefi.c +9
-0+#ifdef CONFIG_ARM64 +/* On AArch64 we need to make sure we call our payload in < EL3 */ +if (current_el () ==3 ) { +smp_kick_all_cpus (); +dcache_disable ();/* flush cache before switch to EL2 */ +armv8_switch_to_el2 (); +/* Enable caches again */ +set_sctlr (get_sctlr () | (CR_C |CR_M )); + }
As exception level switch to EL2. Who is creating MMU table for EL2.
--prabhakar
PATCH v4 2/9 efi_loader: AArch64: Run EFI payloads in EL2 if U-Boot runs in EL3
Quoted 29 lines · Prabhakar Kushwaha
Hi Alex
Quoted 16 lines
-----Original Message-----
From: Alexander Graf [mailto:agraf at suse.de]
Sent: Tuesday, June 21, 2016 4:37 AM
To: u-boot at lists.denx.de
Cc: york sun <[email protected]>; Prabhakar Kushwaha <[email protected]>
Subject: [PATCH v4 2/9]efi_loader: AArch64: Run EFI payloads in EL2 if U- Boot runs in EL3Some boards decided not to run ATF or other secure firmware in EL3, so they instead run U-Boot there. The uEFI spec doesn't know what EL3 is though - it only knows about EL2 and EL1. So if we see that we're running in EL3, let's get into EL2 to make payloads happy.
Signed-off-by Alexander Graf <[email protected]>---
<snip>
Quoted 8 lines
arch/arm/include/asm/armv8/mmu.h +0
-0asmvolatile ("isb" );cmd/bootefi.c +0
-0@@ -205,6 +205,17 @@ static unsigned long do_bootefi_exec(void *efi, void *fdt) loaded_image_info.device_handle = nethandle;#endif
Quoted 11 lines
cmd/bootefi.c static unsigned long do_bootefi_exec(void *efi, void *fdt) · line 216
Quoted 9 lines
cmd/bootefi.c +9
-0+#ifdef CONFIG_ARM64 +/* On AArch64 we need to make sure we call our payload in < EL3 */ +if (current_el () ==3 ) { +smp_kick_all_cpus (); +dcache_disable ();/* flush cache before switch to EL2 */ +armv8_switch_to_el2 (); +/* Enable caches again */ +set_sctlr (get_sctlr () | (CR_C |CR_M )); + }As exception level switch to EL2. Who is creating MMU table for EL2.
It just reuses the same page tables that EL3 was using. As York already mentioned, that shouldn't have worked, but does :).
Alex
PATCH v4 3/9 ls2080ardb: Reserve DP-DDR RAM
In reply to Alexander GrafThe DP-DDR shouldn't be exposed as conventional memory to an OS, so let's rather claim it's a reserved region in the EFI memory map
--- board/freescale/ls2080ardb/ls2080ardb.c | 9 +++++++++ 1 file changed, 9 insertions(+)
board/freescale/ls2080ardb/ls2080ardb.c +9 -0
@@ -16,6 +16,7 @@#include <fsl_debug_server.h> #include <fsl-mc/fsl_mc.h> #include <environment.h> +#include <efi_loader.h> #include <i2c.h> #include <asm/arch/soc.h> #include <fsl_sec.h>
@@ -202,6 +203,14 @@ int misc_init_r(void)if (adjust_vdd (0 ))printf ("Warning: Adjusting core voltage failed.\n" ); +#ifdef CONFIG_EFI_LOADER +if (soc_has_dp_ddr () && gd->bd->bi_dram[2 ].size) { +efi_add_memory_map (gd->bd->bi_dram[2 ].start, + gd->bd->bi_dram[2 ].size >>EFI_PAGE_SHIFT , +EFI_RESERVED_MEMORY_TYPE , false); + } +#endif +return 0 ; }
Signature · 1 line
1.8.5.6
PATCH v4 3/9 ls2080ardb: Reserve DP-DDR RAM
Hi Alex,
Quoted 31 lines
-----Original Message-----
From: Alexander Graf [mailto:agraf at suse.de]
Sent: Tuesday, June 21, 2016 4:37 AM
To: u-boot at lists.denx.de
Cc: york sun <[email protected]>; Prabhakar Kushwaha <[email protected]>
Subject: [PATCH v4 3/9] ls2080ardb: Reserve DP-DDR RAMThe DP-DDR shouldn't be exposed as conventional memory to an OS, so let's rather claim it's a reserved region in the EFI memory map
Signed-off-by Alexander Graf <[email protected]>--- board/freescale/ls2080ardb/ls2080ardb.c | 9 +++++++++ 1 file changed, 9 insertions(+)board/freescale/ls2080ardb/ls2080ardb.c +1
-0@@ -16,6 +16,7 @@#include <fsl_debug_server.h> #include <fsl-mc/fsl_mc.h> #include <environment.h> +#include <efi_loader.h> #include <i2c.h> #include <asm/arch/soc.h> #include <fsl_sec.h> @@ -202,6 +203,14 @@ int misc_init_r(void)if (adjust_vdd (0 ))
board/freescale/ls2080ardb/ls2080ardb.c int misc_init_r(void) · line 213
Quoted 10 lines
board/freescale/ls2080ardb/ls2080ardb.c +7
-0printf ("Warning: Adjusting core voltage failed.\n" ); +#ifdef CONFIG_EFI_LOADER +if (soc_has_dp_ddr () && gd->bd->bi_dram[2 ].size) { +efi_add_memory_map (gd->bd->bi_dram[2 ].start, + gd->bd->bi_dram[2 ].size >>EFI_PAGE_SHIFT , +EFI_RESERVED_MEMORY_TYPE , false); + } +#endif
DP-DDR is not for ARM cores. It is for other accelerators present in LS2080A. I will suggest not to use DP-DDR for EFI memory.
--prabhakar
PATCH v4 3/9 ls2080ardb: Reserve DP-DDR RAM
Quoted 40 lines
Am 22.06.2016 um 04:51 schrieb Prabhakar Kushwaha <[email protected]>:
Hi Alex,
Quoted 33 lines
-----Original Message-----
From: Alexander Graf [mailto:agraf at suse.de]
Sent: Tuesday, June 21, 2016 4:37 AM
To: u-boot at lists.denx.de
Cc: york sun <[email protected]>; Prabhakar Kushwaha <[email protected]>
Subject: [PATCH v4 3/9] ls2080ardb: Reserve DP-DDR RAMThe DP-DDR shouldn't be exposed as conventional memory to an OS, so let's rather claim it's a reserved region in the EFI memory map
Signed-off-by Alexander Graf <[email protected]>---
board/freescale/ls2080ardb/ls2080ardb.c| 9 +++++++++1 file changed, 9 insertions(+)board/freescale/ls2080ardb/ls2080ardb.c +1
-0@@ -16,6 +16,7 @@#include <fsl_debug_server.h> #include <fsl-mc/fsl_mc.h> #include <environment.h> +#include <efi_loader.h> #include <i2c.h> #include <asm/arch/soc.h> #include <fsl_sec.h> @@ -202,6 +203,14 @@ int misc_init_r(void)if (adjust_vdd (0 ))printf ("Warning: Adjusting core voltage failed.\n" );
Quoted 11 lines
board/freescale/ls2080ardb/ls2080ardb.c int misc_init_r(void) · line 212
Quoted 8 lines
board/freescale/ls2080ardb/ls2080ardb.c +7
-0+#ifdef CONFIG_EFI_LOADER +if (soc_has_dp_ddr () && gd->bd->bi_dram[2 ].size) { +efi_add_memory_map (gd->bd->bi_dram[2 ].start, + gd->bd->bi_dram[2 ].size >>EFI_PAGE_SHIFT , +EFI_RESERVED_MEMORY_TYPE , false); + } +#endif DP-DDR is not for ARM cores. It is for other accelerators present in LS2080A. I will suggest not to use DP-DDR for EFI memory.
That's exactly what this patch does :). It tells marks the DP-DDR as reserved in the memory map.
Alex
PATCH v4 4/9 ls2080ardb: Convert to distro boot
In reply to Alexander GrafMost new systems in U-Boot these days make use of the generic "distro" framework which allows a user to have U-Boot scan for a bootable OS on all available media types.
This patch extends the LS2080ARDB board to use that framework if the hard coded NOR flash location does not contain a bootable image.
---
v1 -> v2:
- Boot NOR flash before distro boot
v2 -> v3:
- Actually run distro boot (s/&&/||/ after bootm)
v3 -> v4:
- Add CONFIG_CMD_FS_GENERIC to defconfig
--- configs/ls2080a_emu_defconfig | 1 + configs/ls2080a_simu_defconfig | 1 + configs/ls2080aqds_SECURE_BOOT_defconfig | 1 + configs/ls2080aqds_defconfig | 1 + configs/ls2080aqds_nand_defconfig | 1 + configs/ls2080ardb_SECURE_BOOT_defconfig | 1 + configs/ls2080ardb_defconfig | 1 + configs/ls2080ardb_nand_defconfig | 1 + include/configs/ls2080ardb.h | 26 +++++++++++++++++++++++++- 9 files changed, 33 insertions(+), 1 deletion(-)
configs/ls2080a_emu_defconfig +1 -0
@@ -27,3 +27,4 @@ CONFIG_CMD_CACHE=y CONFIG_SYS_NS16550=y CONFIG_OF_LIBFDT=y CONFIG_EFI_LOADER_BOUNCE_BUFFER=y +CONFIG_CMD_FS_GENERIC=y
configs/ls2080a_simu_defconfig +1 -0
@@ -30,3 +30,4 @@ CONFIG_NET_RANDOM_ETHADDR=y CONFIG_SYS_NS16550=y CONFIG_OF_LIBFDT=y CONFIG_EFI_LOADER_BOUNCE_BUFFER=y +CONFIG_CMD_FS_GENERIC=y
configs/ls2080aqds_SECURE_BOOT_defconfig +1 -0
@@ -35,3 +35,4 @@ CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y CONFIG_RSA=y CONFIG_EFI_LOADER_BOUNCE_BUFFER=y +CONFIG_CMD_FS_GENERIC=y
configs/ls2080aqds_defconfig +1 -0
@@ -34,3 +34,4 @@ CONFIG_USB=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y CONFIG_EFI_LOADER_BOUNCE_BUFFER=y +CONFIG_CMD_FS_GENERIC=y
configs/ls2080aqds_nand_defconfig +1 -0
@@ -35,3 +35,4 @@ CONFIG_USB=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y CONFIG_EFI_LOADER_BOUNCE_BUFFER=y +CONFIG_CMD_FS_GENERIC=y
configs/ls2080ardb_SECURE_BOOT_defconfig +1 -0
@@ -35,3 +35,4 @@ CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y CONFIG_RSA=y CONFIG_EFI_LOADER_BOUNCE_BUFFER=y +CONFIG_CMD_FS_GENERIC=y
configs/ls2080ardb_defconfig +1 -0
@@ -34,3 +34,4 @@ CONFIG_USB=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y CONFIG_EFI_LOADER_BOUNCE_BUFFER=y +CONFIG_CMD_FS_GENERIC=y
configs/ls2080ardb_nand_defconfig +1 -0
@@ -28,3 +28,4 @@ CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y CONFIG_OF_LIBFDT=y CONFIG_EFI_LOADER_BOUNCE_BUFFER=y +CONFIG_CMD_FS_GENERIC=y
include/configs/ls2080ardb.h +25 -1
@@ -321,10 +321,24 @@ unsigned long get_board_sys_clk(void);#define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2#define CONFIG_USB_STORAGE +#undef CONFIG_CMDLINE_EDITING +#include <config_distro_defaults.h> + +#define BOOT_TARGET_DEVICES (func) \ + func(MMC, mmc, 0) \ + func(SCSI, scsi, 0) \ + func(DHCP, dhcp, na) +#include <config_distro_bootcmd.h> +/* Initial environment variables */ #undef CONFIG_EXTRA_ENV_SETTINGS#define CONFIG_EXTRA_ENV_SETTINGS \ "hwconfig=fsl_ddr:bank_intlv=auto\0" \ + "scriptaddr=0x80800000\0" \ + "kernel_addr_r=0x81000000\0" \ + "pxefile_addr_r=0x81000000\0" \ + "fdt_addr_r=0x88000000\0" \ + "ramdisk_addr_r=0x89000000\0" \ "loadaddr=0x80100000\0" \ "kernel_addr=0x100000\0" \ "ramdisk_addr=0x800000\0" \
@@ -334,8 +348,10 @@ unsigned long get_board_sys_clk(void);"kernel_start=0x581100000\0" \"kernel_load=0xa0000000\0" \"kernel_size=0x2800000\0" \ +"fdtfile=fsl-ls2080a-rdb.dtb\0" \"mcinitcmd=fsl_mc start mc 0x580300000" \ - " 0x580800000 \0" +" 0x580800000 \0" \ + BOOTENV#undef CONFIG_BOOTARGS#define CONFIG_BOOTARGS "console=ttyS1,115200 root=/dev/ram0 " \
@@ -343,6 +359,14 @@ unsigned long get_board_sys_clk(void);"ramdisk_size=0x2000000 default_hugepagesz=2m" \ " hugepagesz=2m hugepages=256" +#undef CONFIG_BOOTCOMMAND +/* Try to boot an on-NOR kernel first, then do normal distro boot */ +#define CONFIG_BOOTCOMMAND "run mcinitcmd && fsl_mc lazyapply dpl 0x580700000" \ + " && cp.b $kernel_start $kernel_load $kernel_size" \ + " && bootm $kernel_load" \ + " || setenv ethact DPMAC5 at xgmii" \ + " && run distro_bootcmd" +/* MAC/PHY configuration */ #ifdef CONFIG_FSL_MC_ENET #define CONFIG_PHYLIB_10G
Signature · 1 line
1.8.5.6
PATCH v4 4/9 ls2080ardb: Convert to distro boot
Quoted 48 lines · Alexander Graf
Most new systems in U-Boot these days make use of the generic "distro" framework which allows a user to have U-Boot scan for a bootable OS on all available media types.
This patch extends the LS2080ARDB board to use that framework if the hard coded NOR flash location does not contain a bootable image.
Signed-off-by Alexander Graf <[email protected]>---
v1 -> v2:
- Boot NOR flash before distro boot
v2 -> v3:
- Actually run distro boot (s/&&/||/ after bootm)
v3 -> v4:
- Add
CONFIG_CMD_FS_GENERICto defconfig--- configs/ls2080a_emu_defconfig | 1 + configs/ls2080a_simu_defconfig | 1 + configs/ls2080aqds_SECURE_BOOT_defconfig | 1 + configs/ls2080aqds_defconfig | 1 + configs/ls2080aqds_nand_defconfig | 1 + configs/ls2080ardb_SECURE_BOOT_defconfig | 1 + configs/ls2080ardb_defconfig | 1 + configs/ls2080ardb_nand_defconfig | 1 + include/configs/ls2080ardb.h | 26 +++++++++++++++++++++++++- 9 files changed, 33 insertions(+), 1 deletion(-)configs/ls2080a_emu_defconfig +1
-0@@ -27,3 +27,4 @@ CONFIG_CMD_CACHE=y CONFIG_SYS_NS16550=y CONFIG_OF_LIBFDT=y CONFIG_EFI_LOADER_BOUNCE_BUFFER=y +CONFIG_CMD_FS_GENERIC=yconfigs/ls2080a_simu_defconfig +0
-0
configs/ls2080a_simu_defconfig CONFIG_NET_RANDOM_ETHADDR=y · line 33
Quoted 4 lines
configs/ls2080a_simu_defconfig +1
-0@@ -30,3 +30,4 @@ CONFIG_NET_RANDOM_ETHADDR=y CONFIG_SYS_NS16550=y CONFIG_OF_LIBFDT=y CONFIG_EFI_LOADER_BOUNCE_BUFFER=y +CONFIG_CMD_FS_GENERIC=y
For simulator and emulator targets, probably the filesystem commands don't get used, due to the physical limitation.
York
PATCH v4 4/9 ls2080ardb: Convert to distro boot
Quoted 52 lines
Am 21.06.2016 um 23:49 schrieb york sun <[email protected]>:
Quoted 48 lines · Alexander Graf
Most new systems in U-Boot these days make use of the generic "distro" framework which allows a user to have U-Boot scan for a bootable OS on all available media types.
This patch extends the LS2080ARDB board to use that framework if the hard coded NOR flash location does not contain a bootable image.
Signed-off-by Alexander Graf <[email protected]>---
v1 -> v2:
- Boot NOR flash before distro boot
v2 -> v3:
- Actually run distro boot (s/&&/||/ after bootm)
v3 -> v4:
- Add
CONFIG_CMD_FS_GENERICto defconfig--- configs/ls2080a_emu_defconfig | 1 + configs/ls2080a_simu_defconfig | 1 + configs/ls2080aqds_SECURE_BOOT_defconfig | 1 + configs/ls2080aqds_defconfig | 1 + configs/ls2080aqds_nand_defconfig | 1 + configs/ls2080ardb_SECURE_BOOT_defconfig | 1 + configs/ls2080ardb_defconfig | 1 + configs/ls2080ardb_nand_defconfig | 1 + include/configs/ls2080ardb.h | 26 +++++++++++++++++++++++++- 9 files changed, 33 insertions(+), 1 deletion(-)configs/ls2080a_emu_defconfig +1
-0@@ -27,3 +27,4 @@ CONFIG_CMD_CACHE=y CONFIG_SYS_NS16550=y CONFIG_OF_LIBFDT=y CONFIG_EFI_LOADER_BOUNCE_BUFFER=y +CONFIG_CMD_FS_GENERIC=yconfigs/ls2080a_simu_defconfig +0
-0
Quoted 8 lines
configs/ls2080a_simu_defconfig CONFIG_NET_RANDOM_ETHADDR=y · line 33
Quoted 5 lines
configs/ls2080a_simu_defconfig +1
-0@@ -30,3 +30,4 @@ CONFIG_NET_RANDOM_ETHADDR=y CONFIG_SYS_NS16550=y CONFIG_OF_LIBFDT=y CONFIG_EFI_LOADER_BOUNCE_BUFFER=y +CONFIG_CMD_FS_GENERIC=yFor simulator and emulator targets, probably the filesystem commands don't get used, due to the physical limitation.
Why not? You can still attach some storage to the simulator, no?
Alex
PATCH v4 4/9 ls2080ardb: Convert to distro boot
Quoted 61 lines · Alexander Graf
Quoted 52 lines
Am 21.06.2016 um 23:49 schrieb york sun <[email protected]>:
Quoted 48 lines · Alexander Graf
Most new systems in U-Boot these days make use of the generic "distro" framework which allows a user to have U-Boot scan for a bootable OS on all available media types.
This patch extends the LS2080ARDB board to use that framework if the hard coded NOR flash location does not contain a bootable image.
Signed-off-by Alexander Graf <[email protected]>---
v1 -> v2:
- Boot NOR flash before distro boot
v2 -> v3:
- Actually run distro boot (s/&&/||/ after bootm)
v3 -> v4:
- Add
CONFIG_CMD_FS_GENERICto defconfig--- configs/ls2080a_emu_defconfig | 1 + configs/ls2080a_simu_defconfig | 1 + configs/ls2080aqds_SECURE_BOOT_defconfig | 1 + configs/ls2080aqds_defconfig | 1 + configs/ls2080aqds_nand_defconfig | 1 + configs/ls2080ardb_SECURE_BOOT_defconfig | 1 + configs/ls2080ardb_defconfig | 1 + configs/ls2080ardb_nand_defconfig | 1 + include/configs/ls2080ardb.h | 26 +++++++++++++++++++++++++- 9 files changed, 33 insertions(+), 1 deletion(-)configs/ls2080a_emu_defconfig +1
-0@@ -27,3 +27,4 @@ CONFIG_CMD_CACHE=y CONFIG_SYS_NS16550=y CONFIG_OF_LIBFDT=y CONFIG_EFI_LOADER_BOUNCE_BUFFER=y +CONFIG_CMD_FS_GENERIC=yconfigs/ls2080a_simu_defconfig +0
-0Quoted 8 lines
configs/ls2080a_simu_defconfig CONFIG_NET_RANDOM_ETHADDR=y · line 33
Quoted 5 lines
configs/ls2080a_simu_defconfig +1
-0@@ -30,3 +30,4 @@ CONFIG_NET_RANDOM_ETHADDR=y CONFIG_SYS_NS16550=y CONFIG_OF_LIBFDT=y CONFIG_EFI_LOADER_BOUNCE_BUFFER=y +CONFIG_CMD_FS_GENERIC=yFor simulator and emulator targets, probably the filesystem commands don't get used, due to the physical limitation.
Quoted 1 line
Why not? You can still attach some storage to the simulator, no?
Well, it doesn't hurt to include FS command. But there is no storage device for our simulator/emulator.
York
PATCH v4 4/9 ls2080ardb: Convert to distro boot
In reply to Alexander GrafHi Alex
Quoted 42 lines
-----Original Message-----
From: Alexander Graf [mailto:agraf at suse.de]
Sent: Tuesday, June 21, 2016 4:37 AM
To: u-boot at lists.denx.de
Cc: york sun <[email protected]>; Prabhakar Kushwaha <[email protected]>
Subject: [PATCH v4 4/9] ls2080ardb: Convert to distro bootMost new systems in U-Boot these days make use of the generic "distro" framework which allows a user to have U-Boot scan for a bootable OS on all available media types.
This patch extends the LS2080ARDB board to use that framework if the hard coded NOR flash location does not contain a bootable image.
Signed-off-by Alexander Graf <[email protected]>---
v1 -> v2:
- Boot NOR flash before distro boot
v2 -> v3:
- Actually run distro boot (s/&&/||/ after bootm)
v3 -> v4:
- Add
CONFIG_CMD_FS_GENERICto defconfig--- configs/ls2080a_emu_defconfig | 1 + configs/ls2080a_simu_defconfig | 1 + configs/ls2080aqds_SECURE_BOOT_defconfig | 1 + configs/ls2080aqds_defconfig | 1 + configs/ls2080aqds_nand_defconfig | 1 + configs/ls2080ardb_SECURE_BOOT_defconfig | 1 + configs/ls2080ardb_defconfig | 1 + configs/ls2080ardb_nand_defconfig | 1 + include/configs/ls2080ardb.h | 26 +++++++++++++++++++++++++- 9 files changed, 33 insertions(+), 1 deletion(-)
<snip>
Quoted 46 lines
index 86a49a5..b0e00b6 100644
include/configs/ls2080ardb.h +17
-1@@ -321,10 +321,24 @@ unsigned long get_board_sys_clk(void);#define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2#define CONFIG_USB_STORAGE +#undef CONFIG_CMDLINE_EDITING +#include <config_distro_defaults.h> + +#define BOOT_TARGET_DEVICES (func) \ + func(MMC, mmc, 0) \ + func(SCSI, scsi, 0) \ + func(DHCP, dhcp, na) +#include <config_distro_bootcmd.h> +/* Initial environment variables */ #undef CONFIG_EXTRA_ENV_SETTINGS#define CONFIG_EXTRA_ENV_SETTINGS \ "hwconfig=fsl_ddr:bank_intlv=auto\0" \ + "scriptaddr=0x80800000\0" \ + "kernel_addr_r=0x81000000\0" \ + "pxefile_addr_r=0x81000000\0" \ + "fdt_addr_r=0x88000000\0" \ + "ramdisk_addr_r=0x89000000\0" \ "loadaddr=0x80100000\0" \ "kernel_addr=0x100000\0" \ "ramdisk_addr=0x800000\0" \@@ -334,8 +348,10 @@ unsigned long get_board_sys_clk(void);"kernel_start=0x581100000\0" \"kernel_load=0xa0000000\0" \"kernel_size=0x2800000\0" \ +"fdtfile=fsl-ls2080a-rdb.dtb\0" \"mcinitcmd=fsl_mc start mc 0x580300000" \ - " 0x580800000 \0" +" 0x580800000 \0" \ + BOOTENV#undef CONFIG_BOOTARGS#define CONFIG_BOOTARGS "console=ttyS1,115200root=/dev/ram0 " \
include/configs/ls2080ardb.h +0
-0@@ -343,6 +359,14 @@ unsigned long get_board_sys_clk(void); "ramdisk_size=0x2000000 default_hugepagesz=2m" \ " hugepagesz=2m hugepages=256"
include/configs/ls2080ardb.h unsigned long get_board_sys_clk(void); · line 372
Quoted 10 lines
include/configs/ls2080ardb.h +8
-0+#undef CONFIG_BOOTCOMMAND +/* Try to boot an on-NOR kernel first, then do normal distro boot */ +#define CONFIG_BOOTCOMMAND "run mcinitcmd && fsl_mc lazyapply dpl 0x580700000" \ +" && cp.b $kernel_start $kernel_load $kernel_size" \ +" && bootm $kernel_load" \ +" || setenv ethact DPMAC5 at xgmii" \ +" && run distro_bootcmd" +
One suggestion, Can we avoid hard-coding here " DPMAC5 at xgmii ". It will be really good if ethrpime being used.
--prabhakar
PATCH v4 5/9 armv8: ls2080a: Declare spin tables as reserved for efi loader
In reply to Alexander GrafThe efi loader code has its own memory map, so it needs to be aware where the spin tables are located, to ensure that no code writes into those regions.
--- arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm/cpu/armv8/fsl-layerscape/fdt.c +6 -0
@@ -5,6 +5,7 @@*/ #include <common.h> +#include <efi_loader.h> #include <libfdt.h> #include <fdt_support.h> #include <phy.h>
@@ -72,6 +73,11 @@ void ft_fixup_cpu(void *blob)fdt_add_mem_rsv (blob, (uintptr_t )&secondary_boot_code, *boot_code_size); +#ifdef CONFIG_EFI_LOADER +efi_add_memory_map ((uintptr_t )&secondary_boot_code, +ALIGN (*boot_code_size,EFI_PAGE_SIZE ) >>EFI_PAGE_SHIFT , +EFI_RESERVED_MEMORY_TYPE , false); +#endif }#endif
Signature · 1 line
1.8.5.6
PATCH v4 5/9 armv8: ls2080a: Declare spin tables as reserved for efi loader
Hi Alex,
Quoted 31 lines
-----Original Message-----
From: Alexander Graf [mailto:agraf at suse.de]
Sent: Tuesday, June 21, 2016 4:37 AM
To: u-boot at lists.denx.de
Cc: york sun <[email protected]>; Prabhakar Kushwaha <[email protected]>
Subject: [PATCH v4 5/9] armv8: ls2080a: Declare spin tables as reserved for efi loaderThe efi loader code has its own memory map, so it needs to be aware where the spin tables are located, to ensure that no code writes into those regions.
Signed-off-by Alexander Graf <[email protected]>--- arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 6 ++++++ 1 file changed, 6 insertions(+)arch/arm/cpu/armv8/fsl-layerscape/fdt.c +1
-0@@ -5,6 +5,7 @@*/ #include <common.h> +#include <efi_loader.h> #include <libfdt.h> #include <fdt_support.h> #include <phy.h>
arch/arm/cpu/armv8/fsl-layerscape/fdt.c void ft_fixup_cpu(void *blob) · line 82
Quoted 10 lines
arch/arm/cpu/armv8/fsl-layerscape/fdt.c +4
-0@@ -72,6 +73,11 @@ void ft_fixup_cpu(void *blob)fdt_add_mem_rsv (blob, (uintptr_t )&secondary_boot_code, *boot_code_size); +#ifdef CONFIG_EFI_LOADER +efi_add_memory_map ((uintptr_t )&secondary_boot_code, +ALIGN (*boot_code_size,EFI_PAGE_SIZE ) >>EFI_PAGE_SHIFT , +EFI_RESERVED_MEMORY_TYPE , false);#endif }#endif
I believe this place(during DTS fix-up) is too late for adding this memory in EFI memory map. Not sure, grub2 user may write this memory before launching Linux.
--prabhakar
PATCH v4 5/9 armv8: ls2080a: Declare spin tables as reserved for efi loader
Quoted 39 lines
Am 22.06.2016 um 05:06 schrieb Prabhakar Kushwaha <[email protected]>:
Hi Alex,
Quoted 32 lines
-----Original Message-----
From: Alexander Graf [mailto:agraf at suse.de]
Sent: Tuesday, June 21, 2016 4:37 AM
To: u-boot at lists.denx.de
Cc: york sun <[email protected]>; Prabhakar Kushwaha <[email protected]>
Subject: [PATCH v4 5/9] armv8: ls2080a: Declare spin tables as reserved for efi loaderThe efi loader code has its own memory map, so it needs to be aware where the spin tables are located, to ensure that no code writes into those regions.
Signed-off-by Alexander Graf <[email protected]>---
arch/arm/cpu/armv8/fsl-layerscape/fdt.c| 6 ++++++1 file changed, 6 insertions(+)arch/arm/cpu/armv8/fsl-layerscape/fdt.c +1
-0@@ -5,6 +5,7 @@*/ #include <common.h> +#include <efi_loader.h> #include <libfdt.h> #include <fdt_support.h> #include <phy.h> @@ -72,6 +73,11 @@ void ft_fixup_cpu(void *blob)
Quoted 12 lines
arch/arm/cpu/armv8/fsl-layerscape/fdt.c void ft_fixup_cpu(void *blob) · line 82
Quoted 9 lines
arch/arm/cpu/armv8/fsl-layerscape/fdt.c +4
-0fdt_add_mem_rsv (blob, (uintptr_t )&secondary_boot_code, *boot_code_size); +#ifdef CONFIG_EFI_LOADER +efi_add_memory_map ((uintptr_t )&secondary_boot_code, +ALIGN (*boot_code_size,EFI_PAGE_SIZE ) >>EFI_PAGE_SHIFT , +EFI_RESERVED_MEMORY_TYPE , false);#endif }#endif I believe this place(during DTS fix-up) is too late for adding this memory in EFI memory map. Not sure, grub2 user may write this memory before launching Linux.
The dt fixups get called in bootefi, so before grub2 starts :)
Alex
PATCH v4 6/9 efi_loader: Allow boards to implement get_time and reset_system
In reply to Alexander GrafEFI allows an OS to leverage firmware drivers while the OS is running. In the generic code we so far had to stub those implementations out, because we would need board specific knowledge about MMIO setups for it.
However, boards can easily implement those themselves. This patch provides the framework so that a board can implement its own versions of get_time and reset_system which would actually do something useful.
While at it we also introduce a simple way for code to reserve MMIO pointers as runtime available.
--- cmd/bootefi.c | 4 ++ include/efi_loader.h | 18 ++++++++ lib/efi_loader/efi_runtime.c | 101 ++++++++++++++++++++++++++++++++++++++----- 3 files changed, 112 insertions(+), 11 deletions(-)
cmd/bootefi.c +4 -0
@@ -216,6 +216,10 @@ static unsigned long do_bootefi_exec(void *efi, void *fdt) }#endif +/* Initialize EFI runtime services */ +efi_reset_system_init (); +efi_get_time_init (); +/* Call our payload! */ debug ("%s:%d Jumping to 0x%lx\n" , __func__, __LINE__, (long )entry);
include/efi_loader.h +18 -0
@@ -150,11 +150,29 @@ static inline void ascii2unicode(u16 *unicode, const char *ascii)#define EFI_RUNTIME_DATA __attribute__ ((section ("efi_runtime_data")))#define EFI_RUNTIME_TEXT __attribute__ ((section ("efi_runtime_text"))) +/* Call this with mmio_ptr as the _pointer_ to a pointer to an MMIO region +* to make it available at runtime */ +void efi_add_runtime_mmio (void *mmio_ptr,u64 len); + +/* Boards may provide the functions below to implement RTS functionality */ + +void EFI_RUNTIME_TEXT EFIAPI efi_reset_system( +enum efi_reset_type reset_type, +efi_status_t reset_status, +unsigned long data_size,void *reset_data); +void efi_reset_system_init (void ); + +efi_status_t EFI_RUNTIME_TEXT EFIAPI efi_get_time( +struct efi_time *time, +struct efi_time_cap *capabilities); +void efi_get_time_init (void ); +#else /* defined(EFI_LOADER) && !defined(CONFIG_SPL_BUILD) */ /* Without CONFIG_EFI_LOADER we don't have a runtime section, stub it out */ #define EFI_RUNTIME_DATA #define EFI_RUNTIME_TEXT +static inline void efi_add_runtime_mmio (void **mmio_ptr,u64 len) { }/* No loader configured, stub out EFI_ENTRY */ static inline void efi_restore_gd (void ) { }
lib/efi_loader/efi_runtime.c +90 -11
166 lines not on this page · raw message
Signature · 1 line
1.8.5.6
PATCH v4 7/9 armv8: fsl-layerscape: Add support for efi_loader RTS reset
In reply to Alexander GrafWhen implementing efi loader support, we can expose runtime services for payloads. One such service is CPU reset.
This patch implements RTS CPU reset support for layerscape systems.
--- arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-)
arch/arm/cpu/armv8/fsl-layerscape/cpu.c +31 -2
@@ -17,6 +17,7 @@#ifdef CONFIG_MP #include <asm/arch/mp.h> #endif +#include <efi_loader.h> #include <fm_eth.h> #include <fsl_debug_server.h> #include <fsl-mc/fsl_mc.h>
@@ -677,9 +678,10 @@ int timer_init(void)return 0 ; } -void reset_cpu (ulong addr) +EFI_RUNTIME_DATA u32 __iomem *rstcr = (u32 *)CONFIG_SYS_FSL_RST_ADDR; + +void EFI_RUNTIME_TEXT reset_cpu(ulong addr) { -u32 __iomem *rstcr = (u32 *)CONFIG_SYS_FSL_RST_ADDR ;u32 val;/* Raise RESET_REQ_B */
@@ -688,6 +690,33 @@ void reset_cpu(ulong addr)scfg_out32 (rstcr, val); } +#ifdef CONFIG_EFI_LOADER + +void EFI_RUNTIME_TEXT EFIAPI efi_reset_system( +enum efi_reset_type reset_type, +efi_status_t reset_status, +unsigned long data_size,void *reset_data) +{ +switch (reset_type) { +case EFI_RESET_COLD : +case EFI_RESET_WARM : +reset_cpu (0 ); +break ; +case EFI_RESET_SHUTDOWN : +/* Nothing we can do */ +break ; + } + +while (1 ) { } +} + +void efi_reset_system_init (void ) +{ +efi_add_runtime_mmio (&rstcr,sizeof (*rstcr)); +} + +#endif +phys_size_t board_reserve_ram_top (phys_size_t ram_size) {phys_size_t ram_top = ram_size;
Signature · 1 line
1.8.5.6
PATCH v4 8/9 efi_loader: Declare secure memory as reserved
In reply to Alexander GrafSome systems may implemente TrustZone (EL3) in U-Boot. Those systems reserve some memory that U-Boot is aware of as secure.
For those systems, mask out that secure memory in the EFI memory map, as it's not usable from EL2 or EL1.
--- lib/efi_loader/efi_memory.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
lib/efi_loader/efi_memory.c +15 -0
@@ -398,5 +398,20 @@ int efi_memory_init(void) efi_bounce_buffer = (void *)(uintptr_t )efi_bounce_buffer_addr;#endif +#ifdef CONFIG_SYS_MEM_RESERVE_SECURE +/* Declare secure ram as reserved */ +if (gd->secure_ram &MEM_RESERVE_SECURE_SECURED ) { +uint64_t secure_start = gd->secure_ram; +uint64_t secure_pages =CONFIG_SYS_MEM_RESERVE_SECURE ; + + secure_start &=MEM_RESERVE_SECURE_ADDR_MASK ; + secure_start &= ~EFI_PAGE_MASK ; + secure_pages = (secure_pages +EFI_PAGE_MASK ) >>EFI_PAGE_SHIFT ; + +efi_add_memory_map (secure_start, secure_pages, +EFI_RESERVED_MEMORY_TYPE , false); + } +#endif +return 0 ; }
Signature · 1 line
1.8.5.6
PATCH v4 8/9 efi_loader: Declare secure memory as reserved
Quoted 16 lines · Alexander Graf
Some systems may implemente TrustZone (EL3) in U-Boot. Those systems reserve some memory that U-Boot is aware of as secure.
For those systems, mask out that secure memory in the EFI memory map, as it's not usable from EL2 or EL1.
Signed-off-by Alexander Graf <[email protected]>--- lib/efi_loader/efi_memory.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)lib/efi_loader/efi_memory.c +0
-0
lib/efi_loader/efi_memory.c int efi_memory_init(void) · line 403
Quoted 6 lines
lib/efi_loader/efi_memory.c +3
-0@@ -398,5 +398,20 @@ int efi_memory_init(void) efi_bounce_buffer = (void *)(uintptr_t )efi_bounce_buffer_addr;#endif +#ifdef CONFIG_SYS_MEM_RESERVE_SECURE +/* Declare secure ram as reserved */ +if (gd->secure_ram &MEM_RESERVE_SECURE_SECURED ) {
This variable has been moved to gd->arch.secure_ram in recent commit.
York
PATCH v4 9/9 efi_loader: Allow bouncing for network
In reply to Alexander GrafSo far bounce buffers were only used for disk I/O, but network I/O may suffer from the same problem.
On platforms that have problems doing DMA on high addresses, let's also bounce outgoing network packets. Incoming ones always already get bounced.
--- lib/efi_loader/efi_net.c | 7 +++++++ 1 file changed, 7 insertions(+)
lib/efi_loader/efi_net.c +7 -0
@@ -152,7 +152,14 @@ static efi_status_t EFIAPI efi_net_transmit(struct efi_simple_network *this,return EFI_EXIT (EFI_INVALID_PARAMETER ); } +#ifdef CONFIG_EFI_LOADER_BOUNCE_BUFFER +/* Ethernet packets always fit, just bounce */ +memcpy (efi_bounce_buffer, buffer, buffer_size); +net_send_packet (efi_bounce_buffer, buffer_size); +#else net_send_packet (buffer, buffer_size); +#endif + new_tx_packet = buffer;return EFI_EXIT (EFI_SUCCESS );
Signature · 1 line
1.8.5.6
v4 cover LS2080ARDB: Enable EFI boot support
In reply to Alexander GrafHi Alex,
Quoted 60 lines
-----Original Message-----
From: Alexander Graf [mailto:agraf at suse.de]
Sent: Tuesday, June 21, 2016 4:37 AM
To: u-boot at lists.denx.de
Cc: york sun <[email protected]>; Prabhakar Kushwaha <[email protected]>
Subject: [PATCH v4 0/9] LS2080ARDB: Enable EFI boot supportWe now have EFI support in U-Boot which worked out of the box on all systems that I tried it on so far. Except for the LS2080ARDB. With this patch set I can successfully boot grub2 and Linux from there on such a system - even using PXE.
v3 -> v4:
- Add
CONFIG_CMD_FS_GENERICto defconfig
- Move code into generic quiesce weak function
- Exit device for real when going to Linux
- Only apply DPL if we have something to apply
- New: armv8: ls2080a: Declare spin tables as reserved for efi loader
- New:efi_loader: Allow boards to implementget_timeandreset_system
- New: armv8: fsl-layerscape: Add support forefi_loaderRTS reset
- New:efi_loader: Declare secure memory as reserved
- New:efi_loader: Allow bouncing for networkAlexander Graf (9):
ls2080: Exit dpaa only right before exiting U-Boot
efi_loader: AArch64: Run EFI payloads in EL2 if U-Boot runs in EL3
ls2080ardb: Reserve DP-DDR RAM
ls2080ardb: Convert to distro boot
armv8: ls2080a: Declare spin tables as reserved for efi loader
efi_loader: Allow boards to implementget_timeandreset_system
armv8: fsl-layerscape: Add support forefi_loaderRTS reset
efi_loader: Declare secure memory as reserved
efi_loader: Allow bouncing for networkarch/arm/cpu/armv8/fsl-layerscape/cpu.c | 33 +++++++++- arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 6 ++ arch/arm/include/asm/armv8/mmu.h | 19 +++--- arch/arm/include/asm/u-boot-arm.h | 1 + arch/arm/lib/bootm.c | 7 +++ board/freescale/ls2080a/ls2080a.c | 6 +- board/freescale/ls2080aqds/ls2080aqds.c | 11 ++-- board/freescale/ls2080ardb/ls2080ardb.c | 20 ++++-- cmd/bootefi.c | 15 +++++ configs/ls2080a_emu_defconfig | 1 + configs/ls2080a_simu_defconfig | 1 + configs/ls2080aqds_SECURE_BOOT_defconfig | 1 + configs/ls2080aqds_defconfig | 1 + configs/ls2080aqds_nand_defconfig | 1 + configs/ls2080ardb_SECURE_BOOT_defconfig | 1 + configs/ls2080ardb_defconfig | 1 + configs/ls2080ardb_nand_defconfig | 1 + drivers/net/fsl-mc/mc.c | 24 +++++++- include/configs/ls2080ardb.h | 26 +++++++- include/efi_loader.h | 18 ++++++ lib/efi_loader/efi_boottime.c | 2 + lib/efi_loader/efi_memory.c | 15 +++++ lib/efi_loader/efi_net.c | 7 +++ lib/efi_loader/efi_runtime.c | 101 +++++++++++++++++++++++++++-
Quoted 1 line
---
I am testing your patch set on ls2080ardb.
Observation:-
1. Linux boot no more crashing with e1000#0, DPMAC5 at XSGMII. Even tried with default bootcmd.
2. Grub2 crash while booting :(
I have applied your patch on top of commit " 9f823615af919c6b89f0b80197f009f78299dcde"
Please find log below.
=> usb start
starting USB...
USB0: Register 200017f NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
USB1: Register 200017f NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 1 for devices... 1 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
=> edit ethact
edit: DPMAC5 at xgmii
=> tftp 0x80000000 fsl-ls2080a-rdb.dtb; fdt addr 0x80000000; fdt boardsetup;tftp 0xa0000000 grubaa64.efi; bootefi a0000000 0x80000000 Using DPMAC5 at xgmii device
TFTP from server 192.168.1.1; our IP address is 192.168.1.34
Filename 'fsl-ls2080a-rdb.dtb'.
Load address: 0x80000000
Loading: ###
2 KiB/s
done
Bytes transferred = 10549 (2935 hex)
WARNING: could not set reg FDT_ERR_NOSPACE.
ERROR: could not set fsl,usb-erratum-a008751 for snps,dwc3: FDT_ERR_NOSPACE.
ERROR: could not set fsl,usb-erratum-a008751 for snps,dwc3: FDT_ERR_NOSPACE. Using DPMAC5 at xgmii device
TFTP from server 192.168.1.1; our IP address is 192.168.1.34 Filename 'grubaa64.efi'.
Load address: 0xa0000000
Loading: #################################################################
#################################################################
###########################################
85.9 KiB/sdone
Bytes transferred = 884224 (d7e00 hex)
## Starting EFI application at 0xa0000000 ...
Scanning disks on scsi...
Scanning disks on usb...
Scanning disks on mmc...
MMC: no card present
MMC Device 1 not found
MMC Device 2 not found
MMC Device 3 not found
Found 4 disks
"Synchronous Abort" handler, esr 0x8a000000
ELR: 97ffeee9d5033fdf LR: fff03d0c x0 : 00000000fff87250 x1 : 00000000fff90720 x2 : 97ffeee9d5033fdf x3 : 00000000fff897a0 x4 : 0000000000000000 x5 : 00000000fff897b0 x6 : 0000000000000008 x7 : 0000000000000001 x8 : 0000000000000003 x9 : 000000000000000c x10: 000000000a200023 x11: 0000000000000002 x12: 0000000000000002 x13: 00000000fff7ccd1 x14: 00000000fff7cccb x15: 00000000ffefeb50 x16: 00000000fff7ccc0 x17: 00000000fff7ccba x18: 00000000ffcf7d78 x19: 00000000fff87250 x20: 0000000080000000 x21: 0000000000000003 x22: 00000000ffd1bf50 x23: 0000000000000003 x24: 00000000fff9e4a4 x25: 0000000000000000 x26: 0000000000000000 x27: 00000000fff87250 x28: 00000000fff87000 x29: 00000000fff03c40
Resetting CPU ...
### ERROR ### Please RESET the board ###
--prabhakar
v4 cover LS2080ARDB: Enable EFI boot support
Quoted 111 lines
Am 23.06.2016 um 07:30 schrieb Prabhakar Kushwaha <[email protected]>:
Hi Alex,
Quoted 60 lines
-----Original Message-----
From: Alexander Graf [mailto:agraf at suse.de]
Sent: Tuesday, June 21, 2016 4:37 AM
To: u-boot at lists.denx.de
Cc: york sun <[email protected]>; Prabhakar Kushwaha <[email protected]>
Subject: [PATCH v4 0/9] LS2080ARDB: Enable EFI boot supportWe now have EFI support in U-Boot which worked out of the box on all systems that I tried it on so far. Except for the LS2080ARDB. With this patch set I can successfully boot grub2 and Linux from there on such a system - even using PXE.
v3 -> v4:
- Add
CONFIG_CMD_FS_GENERICto defconfig
- Move code into generic quiesce weak function
- Exit device for real when going to Linux
- Only apply DPL if we have something to apply
- New: armv8: ls2080a: Declare spin tables as reserved for efi loader
- New:efi_loader: Allow boards to implementget_timeandreset_system
- New: armv8: fsl-layerscape: Add support forefi_loaderRTS reset
- New:efi_loader: Declare secure memory as reserved
- New:efi_loader: Allow bouncing for networkAlexander Graf (9):
ls2080: Exit dpaa only right before exiting U-Boot
efi_loader: AArch64: Run EFI payloads in EL2 if U-Boot runs in EL3
ls2080ardb: Reserve DP-DDR RAM
ls2080ardb: Convert to distro boot
armv8: ls2080a: Declare spin tables as reserved for efi loader
efi_loader: Allow boards to implementget_timeandreset_system
armv8: fsl-layerscape: Add support forefi_loaderRTS reset
efi_loader: Declare secure memory as reserved
efi_loader: Allow bouncing for networkarch/arm/cpu/armv8/fsl-layerscape/cpu.c | 33 +++++++++- arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 6 ++ arch/arm/include/asm/armv8/mmu.h | 19 +++--- arch/arm/include/asm/u-boot-arm.h | 1 + arch/arm/lib/bootm.c | 7 +++ board/freescale/ls2080a/ls2080a.c | 6 +- board/freescale/ls2080aqds/ls2080aqds.c | 11 ++-- board/freescale/ls2080ardb/ls2080ardb.c | 20 ++++-- cmd/bootefi.c | 15 +++++ configs/ls2080a_emu_defconfig | 1 + configs/ls2080a_simu_defconfig | 1 + configs/ls2080aqds_SECURE_BOOT_defconfig | 1 + configs/ls2080aqds_defconfig | 1 + configs/ls2080aqds_nand_defconfig | 1 + configs/ls2080ardb_SECURE_BOOT_defconfig | 1 + configs/ls2080ardb_defconfig | 1 + configs/ls2080ardb_nand_defconfig | 1 + drivers/net/fsl-mc/mc.c | 24 +++++++- include/configs/ls2080ardb.h | 26 +++++++- include/efi_loader.h | 18 ++++++ lib/efi_loader/efi_boottime.c | 2 + lib/efi_loader/efi_memory.c | 15 +++++ lib/efi_loader/efi_net.c | 7 +++ lib/efi_loader/efi_runtime.c | 101 +++++++++++++++++++++++++++-Quoted 1 line
---
I am testing your patch set on ls2080ardb.
Observation:-
1. Linux boot no more crashing with e1000#0, DPMAC5 at XSGMII. Even tried with default bootcmd.
2. Grub2 crash while booting :(I have applied your patch on top of commit "
9f823615af919c6b89f0b80197f009f78299dcde"Please find log below.
=> usb start
starting USB...
USB0: Register 200017f NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
USB1: Register 200017f NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 1 for devices... 1 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
=> edit ethact
edit: DPMAC5 at xgmii
=> tftp0x80000000fsl-ls2080a-rdb.dtb; fdt addr0x80000000; fdt boardsetup;tftp0xa0000000grubaa64.efi; bootefia00000000x80000000Using DPMAC5 at xgmii device
TFTP from server 192.168.1.1; our IP address is 192.168.1.34
Filename 'fsl-ls2080a-rdb.dtb'.
Load address:0x80000000
Loading: ###2 KiB/sdone
Bytes transferred = 10549 (2935 hex)
WARNING: could not set regFDT_ERR_NOSPACE.
ERROR: could not set fsl,usb-erratum-a008751 for snps,dwc3:FDT_ERR_NOSPACE.
ERROR: could not set fsl,usb-erratum-a008751 for snps,dwc3:FDT_ERR_NOSPACE. Using DPMAC5 at xgmii device
TFTP from server 192.168.1.1; our IP address is 192.168.1.34 Filename 'grubaa64.efi'.
Load address:0xa0000000
Loading: ################################################################################################################################## ########################################### 85.9 KiB/s
Quoted 11 lines
done
Bytes transferred = 884224 (d7e00 hex)
## Starting EFI application at0xa0000000...
Scanning disks on scsi...
Scanning disks on usb...
Scanning disks on mmc...
MMC: no card present
MMC Device 1 not found
MMC Device 2 not found
MMC Device 3 not found
Found 4 disks
So it crashes in U-Boot disk enumeration code ...
Quoted 2 lines
"Synchronous Abort" handler, esr
0x8a000000
ELR:97ffeee9d5033fdf
... trying to access an instruction that is completely bogus.
Can you please add #define DEBUG at the beginning of efi_disk.c and try to isolate where it crashes from there?
Alex
v4 cover LS2080ARDB: Enable EFI boot support
Hi Alex,
Please find logs attached.
Regards,
Prabhakar
Quoted 147 lines
-----Original Message-----
From: Alexander Graf [mailto:agraf at suse.de]
Sent: Thursday, June 23, 2016 1:04 PM
To: Prabhakar Kushwaha <[email protected]>
Cc: u-boot at lists.denx.de; york sun <[email protected]>
Subject: Re: [PATCH v4 0/9] LS2080ARDB: Enable EFI boot supportQuoted 1 line
Am 23.06.2016 um 07:30 schrieb Prabhakar Kushwaha
Quoted 65 lines
Hi Alex,
Quoted 62 lines
-----Original Message-----
From: Alexander Graf [mailto:agraf at suse.de]
Sent: Tuesday, June 21, 2016 4:37 AM
To: u-boot at lists.denx.de
Cc: york sun <[email protected]>; Prabhakar Kushwaha <[email protected]>
Subject: [PATCH v4 0/9] LS2080ARDB: Enable EFI boot supportWe now have EFI support in U-Boot which worked out of the box on all systems that I tried it on so far. Except for the LS2080ARDB. With this patch set I can successfully boot grub2 and Linux from there on such a system - even using PXE.
v3 -> v4:
- Add
CONFIG_CMD_FS_GENERICto defconfig
- Move code into generic quiesce weak function
- Exit device for real when going to Linux
- Only apply DPL if we have something to apply
- New: armv8: ls2080a: Declare spin tables as reserved for efi
loader
- New:efi_loader: Allow boards to implementget_timeandreset_system
- New: armv8: fsl-layerscape: Add support forefi_loaderRTS reset
- New:efi_loader: Declare secure memory as reserved
- New:efi_loader: Allow bouncing for networkAlexander Graf (9):
ls2080: Exit dpaa only right before exiting U-Boot
efi_loader: AArch64: Run EFI payloads in EL2 if U-Boot runs in EL3
ls2080ardb: Reserve DP-DDR RAM
ls2080ardb: Convert to distro boot
armv8: ls2080a: Declare spin tables as reserved for efi loader
efi_loader: Allow boards to implementget_timeandreset_system
armv8: fsl-layerscape: Add support forefi_loaderRTS reset
efi_loader: Declare secure memory as reserved
efi_loader: Allow bouncing for networkarch/arm/cpu/armv8/fsl-layerscape/cpu.c | 33 +++++++++- arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 6 ++ arch/arm/include/asm/armv8/mmu.h | 19 +++--- arch/arm/include/asm/u-boot-arm.h | 1 + arch/arm/lib/bootm.c | 7 +++ board/freescale/ls2080a/ls2080a.c | 6 +- board/freescale/ls2080aqds/ls2080aqds.c | 11 ++-- board/freescale/ls2080ardb/ls2080ardb.c | 20 ++++-- cmd/bootefi.c | 15 +++++ configs/ls2080a_emu_defconfig | 1 + configs/ls2080a_simu_defconfig | 1 + configs/ls2080aqds_SECURE_BOOT_defconfig | 1 + configs/ls2080aqds_defconfig | 1 + configs/ls2080aqds_nand_defconfig | 1 + configs/ls2080ardb_SECURE_BOOT_defconfig | 1 + configs/ls2080ardb_defconfig | 1 + configs/ls2080ardb_nand_defconfig | 1 + drivers/net/fsl-mc/mc.c | 24 +++++++- include/configs/ls2080ardb.h | 26 +++++++- include/efi_loader.h | 18 ++++++ lib/efi_loader/efi_boottime.c | 2 + lib/efi_loader/efi_memory.c | 15 +++++ lib/efi_loader/efi_net.c | 7 +++ lib/efi_loader/efi_runtime.c | 101+++++++++++++++++++++++++++-
Quoted 5 lines
Quoted 1 line
---
I am testing your patch set on ls2080ardb.
Observation:-
1. Linux boot no more crashing with e1000#0, DPMAC5 at XSGMII. Even triedwith default bootcmd.
Quoted 3 lines
2. Grub2 crash while booting :(
I have applied your patch on top of commit "
9f823615af919c6b89f0b80197f009f78299dcde"Quoted 23 lines
Please find log below.
=> usb start
starting USB...
USB0: Register 200017f NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
USB1: Register 200017f NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 1 for devices... 1 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found =>
edit ethact
edit: DPMAC5 at xgmii
=> tftp0x80000000fsl-ls2080a-rdb.dtb; fdt addr0x80000000; fdt boardsetup;tftp0xa0000000grubaa64.efi; bootefia00000000x80000000Using DPMAC5 at xgmii device TFTP from server 192.168.1.1; our IP address is 192.168.1.34 Filename 'fsl-ls2080a-rdb.dtb'.
Load address:0x80000000
Loading: ###Quoted 5 lines
2 KiB/sdone
Bytes transferred = 10549 (2935 hex)
WARNING: could not set regFDT_ERR_NOSPACE.
ERROR: could not set fsl,usb-erratum-a008751 for snps,dwc3:
FDT_ERR_NOSPACE.Quoted 1 line
ERROR: could not set fsl,usb-erratum-a008751 for snps,dwc3:
FDT_ERR_NOSPACE.Quoted 5 lines
Using DPMAC5 at xgmii device
TFTP from server 192.168.1.1; our IP address is 192.168.1.34 Filename 'grubaa64.efi'.
Load address:0xa0000000
Loading:##########################################################
#######Quoted 1 line
##########################################################
#######Quoted 13 lines
########################################### 85.9 KiB/sdone
Bytes transferred = 884224 (d7e00 hex) ## Starting EFI application at0xa0000000...
Scanning disks on scsi...
Scanning disks on usb...
Scanning disks on mmc...
MMC: no card present
MMC Device 1 not found
MMC Device 2 not found
MMC Device 3 not found
Found 4 disksSo it crashes in U-Boot disk enumeration code ...
Quoted 2 lines
"Synchronous Abort" handler, esr
0x8a000000
ELR:97ffeee9d5033fdf
Quoted 7 lines
... trying to access an instruction that is completely bogus.
Can you please add #define DEBUG at the beginning of
efi_disk.cand try to isolate where it crashes from there?Alex
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: log.txt
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160623/93b632d1/attachment.txt>
v4 cover LS2080ARDB: Enable EFI boot support
Quoted 695 lines · Prabhakar Kushwaha
Hi Alex,
Please find logs attached.
Regards,
PrabhakarQuoted 147 lines
Quoted 147 lines
-----Original Message-----
From: Alexander Graf [mailto:agraf at suse.de]
Sent: Thursday, June 23, 2016 1:04 PM
To: Prabhakar Kushwaha <[email protected]>
Cc: u-boot at lists.denx.de; york sun <[email protected]>
Subject: Re: [PATCH v4 0/9] LS2080ARDB: Enable EFI boot supportQuoted 1 line
Quoted 1 line
Am 23.06.2016 um 07:30 schrieb Prabhakar Kushwaha
Quoted 57 lines
Quoted 57 lines
Hi Alex,
Quoted 54 lines
Quoted 54 lines
-----Original Message-----
From: Alexander Graf [mailto:agraf at suse.de]
Sent: Tuesday, June 21, 2016 4:37 AM
To: u-boot at lists.denx.de
Cc: york sun <[email protected]>; Prabhakar Kushwaha <[email protected]>
Subject: [PATCH v4 0/9] LS2080ARDB: Enable EFI boot supportWe now have EFI support in U-Boot which worked out of the box on all systems that I tried it on so far. Except for the LS2080ARDB. With this patch set I can successfully boot grub2 and Linux from there on such a system - even using PXE.
v3 -> v4:
- Add
CONFIG_CMD_FS_GENERICto defconfig
- Move code into generic quiesce weak function
- Exit device for real when going to Linux
- Only apply DPL if we have something to apply
- New: armv8: ls2080a: Declare spin tables as reserved for efi
loader
- New:efi_loader: Allow boards to implementget_timeandreset_system
- New: armv8: fsl-layerscape: Add support forefi_loaderRTS reset
- New:efi_loader: Declare secure memory as reserved
- New:efi_loader: Allow bouncing for networkAlexander Graf (9):
ls2080: Exit dpaa only right before exiting U-Boot
efi_loader: AArch64: Run EFI payloads in EL2 if U-Boot runs in EL3
ls2080ardb: Reserve DP-DDR RAM
ls2080ardb: Convert to distro boot
armv8: ls2080a: Declare spin tables as reserved for efi loader
efi_loader: Allow boards to implementget_timeandreset_system
armv8: fsl-layerscape: Add support forefi_loaderRTS reset
efi_loader: Declare secure memory as reserved
efi_loader: Allow bouncing for networkarch/arm/cpu/armv8/fsl-layerscape/cpu.c | 33 +++++++++- arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 6 ++ arch/arm/include/asm/armv8/mmu.h | 19 +++--- arch/arm/include/asm/u-boot-arm.h | 1 + arch/arm/lib/bootm.c | 7 +++ board/freescale/ls2080a/ls2080a.c | 6 +- board/freescale/ls2080aqds/ls2080aqds.c | 11 ++-- board/freescale/ls2080ardb/ls2080ardb.c | 20 ++++-- cmd/bootefi.c | 15 +++++ configs/ls2080a_emu_defconfig | 1 + configs/ls2080a_simu_defconfig | 1 + configs/ls2080aqds_SECURE_BOOT_defconfig | 1 + configs/ls2080aqds_defconfig | 1 + configs/ls2080aqds_nand_defconfig | 1 + configs/ls2080ardb_SECURE_BOOT_defconfig | 1 + configs/ls2080ardb_defconfig | 1 +Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
configs/ls2080ardb_nand_defconfig | 1 + drivers/net/fsl-mc/mc.c | 24 +++++++- include/configs/ls2080ardb.h | 26 +++++++- include/efi_loader.h | 18 ++++++ lib/efi_loader/efi_boottime.c | 2 + lib/efi_loader/efi_memory.c | 15 +++++ lib/efi_loader/efi_net.c | 7 +++ lib/efi_loader/efi_runtime.c | 101+++++++++++++++++++++++++++-
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line
---
I am testing your patch set on ls2080ardb.
Observation:-
1. Linux boot no more crashing with e1000#0, DPMAC5 at XSGMII. Even triedwith default bootcmd.
Quoted 3 lines
Quoted 3 lines
2. Grub2 crash while booting :(
I have applied your patch on top of commit "
9f823615af919c6b89f0b80197f009f78299dcde"Quoted 20 lines
Quoted 20 lines
Please find log below.
=> usb start
starting USB...
USB0: Register 200017f NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
USB1: Register 200017f NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 1 for devices... 1 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found =>
edit ethact
edit: DPMAC5 at xgmii
=> tftp0x80000000fsl-ls2080a-rdb.dtb; fdt addr0x80000000; fdt boardsetup;tftp0xa0000000grubaa64.efi; bootefia00000000x80000000Using DPMAC5 at xgmii device TFTP from server 192.168.1.1; our IP addressQuoted 8 lines
Quoted 8 lines
is 192.168.1.34 Filename 'fsl-ls2080a-rdb.dtb'.
Load address:0x80000000
Loading: ###2 KiB/sdone
Bytes transferred = 10549 (2935 hex)
WARNING: could not set regFDT_ERR_NOSPACE.
ERROR: could not set fsl,usb-erratum-a008751 for snps,dwc3:
FDT_ERR_NOSPACE.Quoted 1 line
Quoted 1 line
ERROR: could not set fsl,usb-erratum-a008751 for snps,dwc3:
FDT_ERR_NOSPACE.Quoted 5 lines
Quoted 5 lines
Using DPMAC5 at xgmii device
TFTP from server 192.168.1.1; our IP address is 192.168.1.34 Filename 'grubaa64.efi'.
Load address:0xa0000000
Loading:##########################################################
#######Quoted 1 line
Quoted 1 line
##########################################################
#######Quoted 5 lines
Quoted 5 lines
########################################### 85.9 KiB/sdone
Bytes transferred = 884224 (d7e00 hex) ## Starting EFI application at0xa0000000...Quoted 8 lines
Quoted 8 lines
Scanning disks on scsi...
Scanning disks on usb...
Scanning disks on mmc...
MMC: no card present
MMC Device 1 not found
MMC Device 2 not found
MMC Device 3 not found
Found 4 disksSo it crashes in U-Boot disk enumeration code ...
Quoted 2 lines
Quoted 2 lines
"Synchronous Abort" handler, esr
0x8a000000
ELR:97ffeee9d5033fdfQuoted 7 lines
Quoted 7 lines
... trying to access an instruction that is completely bogus.
Can you please add #define DEBUG at the beginning of
efi_disk.cand try to isolate where it crashes from there?Alex
log.txt
U-Boot 2016.07-rc2-00026-gd11e29d-dirty (Jun 23 2016 - 15:58:26 +0530)
SoC: LS2085E (
0x87010010)
Clock Configuration:CPU0(A57):1800 MHz CPU1(A57):1800 MHz CPU2(A57):1800 MHz CPU3(A57):1800 MHz CPU4(A57):1800 MHz CPU5(A57):1800 MHz CPU6(A57):1800 MHz CPU7(A57):1800 MHz Bus: 500 MHz DDR: 1866.667 MT/s DP-DDR: 1600 MT/s Reset Configuration Word (RCW): 00000000: 48303828 48480048 00000000 00000000 00000010: 00000000 00200000 00200000 00000000 00000020: 01012980 00002580 00000000 00000000 00000030: 00000e0b 00000000 00000000 00000000 00000040: 00000000 00000000 00000000 00000000 00000050: 00000000 00000000 00000000 00000000 00000060: 00000000 00000000 00027000 00000000 00000070: 412a0000 00000000 00000000 00000000 Model: Freescale Layerscape 2080a RDB Board Board: LS2085E-RDB, Board Arch: V1, Board version: D, boot from vBank: 4 FPGA: v1.20 SERDES1 Reference : Clock1 = 156.25MHz Clock2 = 156.25MHz SERDES2 Reference : Clock1 = 100MHz Clock2 = 100MHz I2C: ready DRAM: Initializing DDR....using SPDDetected UDIMM 18ASF1G72AZ-2G1A1
Detected UDIMM 18ASF1G72AZ-2G1A1
DP-DDR: Detected UDIMM 18ASF1G72AZ-2G1A1
19 GiB
DDR 15 GiB (DDR4, 64-bit, CL=13, ECC on)
DDR Controller Interleaving Mode: 256B
DDR Chip-Select Interleaving Mode: CS0+CS1
DP-DDR 4 GiB (DDR4, 32-bit, CL=11, ECC on)
DDR Chip-Select Interleaving Mode: CS0+CS1
Waking secondary cores to start fromffefb000
All (8) cores are up.Using SERDES1 Protocol: 42 (0x2a) Using SERDES2 Protocol: 65 (0x41) Flash: 128 MiB NAND: 2048 MiB MMC: FSL_SDHC: 0*** Warning - bad CRC, using default environment
EEPROM: NXID v1
PCIe1: disabled
PCIe2: disabled
PCIe3: Root Complex x1 gen1, regs @0x3600000
PCI:01:00.0 - 8086:10d3 - Network controller PCIe3: Bus 00 - 01 PCIe4: Root Complex no link, regs @ 0x3700000 In: serial Out: serial Err: serial Debug Server FW: Not a FIT image SEC0: RNG instantiatedSATA link 0 timeout.
AHCI 0001.0301 32 slots 1 ports 6 Gbps0x1impl SATA mode
flags: 64bit ncq pm clo only pmp fbss pio slum part ccc apst
Found 0 device(s).
SCSI: Net: crc32+
fsl-mc: Booting Management Complex ... SUCCESS
fsl-mc: Management Complex booted (version: 9.0.6, boot status:0x1)
e1000: 68:05:ca:36:94:8c
DPMAC1 at xgmii [PRIME]
Warning: DPMAC1 at xgmii (eth0) using random MAC address - ca:0a:bf:68:4c:60
, DPMAC2 at xgmii
Warning: DPMAC2 at xgmii (eth1) using random MAC address - de:23:02:2f:dd:94
, DPMAC3 at xgmii
Warning: DPMAC3 at xgmii (eth2) using random MAC address - d6:2b:2b:55:51:98
, DPMAC4 at xgmii
Warning: DPMAC4 at xgmii (eth3) using random MAC address - ee:70:d6:f5:b8:90
, DPMAC5 at xgmii
Warning: DPMAC5 at xgmii (eth4) using random MAC address - e6:78:ff:8f:34:9c
, DPMAC6 at xgmii
Warning: DPMAC6 at xgmii (eth5) using random MAC address - be:85:aa:93:8f:0d
, DPMAC7 at xgmii
Warning: DPMAC7 at xgmii (eth6) using random MAC address - b6:8d:83:e9:03:01
, DPMAC8 at xgmii
Warning: DPMAC8 at xgmii (eth7) using random MAC address - 8e:d6:7e:49:ea:09
, e1000#0
Hit any key to stop autoboot: 0
=>
=>
=>
=>
=> edit ethact
edit: e1000#0
=> edit ethprime
edit: e1000#0
=> sav
Unknown command 'sav' - try 'help'
=> saveenv
Saving Environment to Flash...
Un-Protected 1 sectors
Erasing Flash...
. done
Erased 1 sectors
Writing to Flash... 9....8....7....6....5....4....3....2....1....9....8....7....6....5....4....3....2....1....done Protected 1 sectors
=> usb start
starting USB...
USB0: Register 200017f NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
USB1: Register 200017f NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 1 for devices... 1 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
=>
=> All (8) cores are up.<INTERRUPT>
=> tftp0x80000000fsl-ls2080a-rdb.dtb; fdt addr0x80000000; fdt boardsetup;tftp0xa0000000grubaa64.efi; bootefia00000000x80000000*** ERROR: `serverip' not set
libfdtfdt_check_header():FDT_ERR_BADMAGIC
No FDT memory address configured. Please configure
the FDT address via "fdt addr <address>" command.
Aborting!
*** ERROR: `serverip' not set
## Starting EFI application at0xa0000000...
WARNING: Invalid device tree, expect boot to failefi_load_pe: Invalid DOS Signature
## Application terminated, r = -2
=> edit serverip
edit: 192.168.1.1
=> edit ipaddr
edit: 192.168.1.34
=> sav
Unknown command 'sav' - try 'help'
=> save
save saveenv
=> save
save - save file to a filesystemUsage:
save <interface> <dev[:part]> <addr> <filename> bytes [pos]
- Save binary file 'filename' to partition 'part' on device
type 'interface' instance 'dev' from addr 'addr' in memory.
'bytes' gives the size to save in bytes and is mandatory.
'pos' gives the file byte position to start writing to.
If 'pos' is 0 or omitted, the file is written from the start.
=> saven
Unknown command 'saven' - try 'help'
=> saveenv
Saving Environment to Flash...
Un-Protected 1 sectors
Erasing Flash...
. done
Erased 1 sectors
Writing to Flash... 9....8....7....6....5....4....3....2....1....9....8....7....6....5....4....3....2....1....done Protected 1 sectors
=> tftp0x80000000fsl-ls2080a-rdb.dtb; fdt addr0x80000000; fdt boardsetup;tftp0xa0000000grubaa64.efi; bootefia00000000x80000000Using e1000#0 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.34
Filename 'fsl-ls2080a-rdb.dtb'.
Load address:0x80000000
Loading: ###735.4 KiB/sdone
Bytes transferred = 10549 (2935 hex)
WARNING: could not set regFDT_ERR_NOSPACE.
ERROR: could not set fsl,usb-erratum-a008751 for snps,dwc3:FDT_ERR_NOSPACE.
ERROR: could not set fsl,usb-erratum-a008751 for snps,dwc3:FDT_ERR_NOSPACE. Using e1000#0 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.34 Filename 'grubaa64.efi'.
Load address:0xa0000000
Loading: ################################################################################################################################## ########################################### 1.5 MiB/sdone
Bytes transferred = 884224 (d7e00 hex)
## Starting EFI application at0xa0000000...
Scanning disks on scsi...
Scanning disks on usb...
Scanning disks on mmc...
MMC: no card present
MMC Device 1 not found
MMC Device 2 not found
MMC Device 3 not found
Found 4 disks
do_bootefi_exec:225 Jumping to0xfac1d40000000000fff87380,00000000fac28c10,00000000ffcf4d18,00000000fff87380, 0000000000000000, 0x2EFI: Entryefi_cin_get_mode(00000000fff6b1a0, 00000000ffcf4d3c, 0000000000000000, 0000000000000000)
EFI: Entryefi_cin_get_mode(00000000fff6b1a0, 00000000ffcf4d1c, 0000000000000000, 0000000000000000)
EFI: Entryefi_cout_enable_cursor(00000000fff6b150, 1)
EFI: Entryefi_net_initialize(00000000ffd1b958, 0, 0)
EFI: Entryefi_cout_set_attribute(00000000fff6b150, 7)
EFI: Entryefi_cout_set_attribute(00000000fff6b150, 7)
EFI: Entryefi_net_initialize(00000000ffd1b958, 0, 0)
EFI: Entryefi_cout_set_attribute(00000000fff6b150, 0)
EFI: Entryefi_cout_clear_screen(00000000fff6b150)EFI: Entry
efi_cout_set_attribute(00000000fff6b150, 0)
EFI: Entryefi_cout_enable_cursor(00000000fff6b150, 1)
EFI: Entryefi_cout_query_mode(00000000fff6b150, 0, 00000000ffcf4d00, 00000000ffcf4d08)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4ab0)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4ab0)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4ab0)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4ab0)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4ab0)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4ab0)
EFI: Entryefi_cout_query_mode(00000000fff6b150, 0, 00000000ffcf4b50, 00000000ffcf4b58)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
MEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
nEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
mEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
aEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
lEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
BEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
AEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
SEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
HEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)-EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
lEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
kEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
lEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
nEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
dEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
tEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
nEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
gEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
uEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
pEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
pEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
oEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
rEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
tEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
dEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90).EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
FEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
oEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
rEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
tEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
hEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
fEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
rEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
tEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
wEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
oEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
rEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
dEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90),EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
TEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
AEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
BEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
lEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
tEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
pEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
oEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
bEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
lEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
cEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
oEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
mEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
mEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
aEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
nEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
dEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
cEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
oEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
mEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
pEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
lEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
tEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
oEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
nEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90).EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
AEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
nEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
yEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
wEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
hEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
rEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
lEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
TEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
AEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
BEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
lEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
tEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
pEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
oEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
bEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
lEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
dEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
vEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
cEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
oEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
rEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
fEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
lEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
cEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
oEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
mEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
pEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
lEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
tEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
oEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
nEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90).EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_query_mode(00000000fff6b150, 0, 00000000ffcf4b10, 00000000ffcf4b18)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4c20)EFI: Entry
efi_cout_output_string(00000000fff6b150, 00000000ffcf4c20)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4c20)EFI: Entry
efi_cout_output_string(00000000fff6b150, 00000000ffcf4c20)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4c20)EFI: Entry
efi_cout_output_string(00000000fff6b150, 00000000ffcf4c20)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4b50)EFI: Entry
efi_cout_output_string(00000000fff6b150, 00000000ffcf4b50)
EFI: Entryefi_cout_query_mode(00000000fff6b150, 0, 00000000ffcf4a50, 00000000ffcf4a58)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4990)
gEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4990)
rEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4990)
uEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4990)
bEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4990)
Quoted 7 lines
Quoted 1 line
Quoted 1 line
EFI: Entry
efi_cout_query_mode(00000000fff6b150, 0, 00000000ffcf4a50, 00000000ffcf4a58)EFI: Entry
efi_cout_output_string(00000000fff6b150, 00000000ffcf4990)
EFI: Entryefi_cout_query_mode(00000000fff6b150, 0, 00000000ffcf4c10, 00000000ffcf4c18)
EFI: Entryefi_cout_query_mode(00000000fff6b150, 0, 00000000ffcf4c10, 00000000ffcf4c18)"Synchronous Abort" handler, esr0x96000005ELR: fff1cafc LR: fff63410
Ok, this one is different. Here grub2 reaches its shell and then crashes inside of grub2 code.
Sounds like memory corruption somewhere maybe? Can you please try to see if increasing the malloc area helps?
Alex
v4 cover LS2080ARDB: Enable EFI boot support
Quoted 738 lines
-----Original Message-----
From: Alexander Graf [mailto:agraf at suse.de]
Sent: Thursday, June 23, 2016 6:10 PM
To: Prabhakar Kushwaha <[email protected]>
Cc: u-boot at lists.denx.de; york sun <[email protected]>
Subject: Re: [PATCH v4 0/9] LS2080ARDB: Enable EFI boot supportQuoted 94 lines · Prabhakar Kushwaha
Hi Alex,
Please find logs attached.
Regards,
PrabhakarQuoted 86 lines
Quoted 86 lines
-----Original Message-----
From: Alexander Graf [mailto:agraf at suse.de]
Sent: Thursday, June 23, 2016 1:04 PM
To: Prabhakar Kushwaha <[email protected]>
Cc: u-boot at lists.denx.de; york sun <[email protected]>
Subject: Re: [PATCH v4 0/9] LS2080ARDB: Enable EFI boot supportQuoted 1 line
Quoted 1 line
Am 23.06.2016 um 07:30 schrieb Prabhakar Kushwaha
Quoted 61 lines
Quoted 61 lines
Hi Alex,
Quoted 58 lines
Quoted 58 lines
-----Original Message-----
From: Alexander Graf [mailto:agraf at suse.de]
Sent: Tuesday, June 21, 2016 4:37 AM
To: u-boot at lists.denx.de
Cc: york sun <[email protected]>; Prabhakar Kushwaha <[email protected]>
Subject: [PATCH v4 0/9] LS2080ARDB: Enable EFI boot supportWe now have EFI support in U-Boot which worked out of the box on all systems that I tried it on so far. Except for the LS2080ARDB. With this patch set I can successfully boot grub2 and Linux from there on such a system - even using PXE.
v3 -> v4:
- Add
CONFIG_CMD_FS_GENERICto defconfig
- Move code into generic quiesce weak function
- Exit device for real when going to Linux
- Only apply DPL if we have something to apply
- New: armv8: ls2080a: Declare spin tables as reserved for
efi loader
- New:efi_loader: Allow boards to implementget_timeandreset_system
- New: armv8: fsl-layerscape: Add support forefi_loaderRTS
reset
- New:efi_loader: Declare secure memory as reserved
- New:efi_loader: Allow bouncing for networkAlexander Graf (9):
ls2080: Exit dpaa only right before exiting U-Boot
efi_loader: AArch64: Run EFI payloads in EL2 if U-Boot runs
in EL3
ls2080ardb: Reserve DP-DDR RAM
ls2080ardb: Convert to distro boot
armv8: ls2080a: Declare spin tables as reserved for efi
loader
efi_loader: Allow boards to implementget_timeandreset_system
armv8: fsl-layerscape: Add support forefi_loaderRTS reset
efi_loader: Declare secure memory as reserved
efi_loader: Allow bouncing for networkarch/arm/cpu/armv8/fsl-layerscape/cpu.c | 33 +++++++++- arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 6 ++ arch/arm/include/asm/armv8/mmu.h | 19 +++--- arch/arm/include/asm/u-boot-arm.h | 1 + arch/arm/lib/bootm.c | 7 +++ board/freescale/ls2080a/ls2080a.c | 6 +- board/freescale/ls2080aqds/ls2080aqds.c | 11 ++-- board/freescale/ls2080ardb/ls2080ardb.c | 20 ++++-- cmd/bootefi.c | 15 +++++ configs/ls2080a_emu_defconfig | 1 + configs/ls2080a_simu_defconfig | 1 + configs/ls2080aqds_SECURE_BOOT_defconfig | 1 + configs/ls2080aqds_defconfig | 1 + configs/ls2080aqds_nand_defconfig | 1 + configs/ls2080ardb_SECURE_BOOT_defconfig | 1 + configs/ls2080ardb_defconfig | 1 +Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
configs/ls2080ardb_nand_defconfig | 1 + drivers/net/fsl-mc/mc.c | 24 +++++++- include/configs/ls2080ardb.h | 26 +++++++- include/efi_loader.h | 18 ++++++ lib/efi_loader/efi_boottime.c | 2 + lib/efi_loader/efi_memory.c | 15 +++++ lib/efi_loader/efi_net.c | 7 +++ lib/efi_loader/efi_runtime.c | 101+++++++++++++++++++++++++++-
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line
---
I am testing your patch set on ls2080ardb. Observation:-
1. Linux boot no more crashing with e1000#0, DPMAC5 at XSGMII.Even
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 1 line
Quoted 1 line
tried
with default bootcmd.
Quoted 3 lines
Quoted 3 lines
2. Grub2 crash while booting :(
I have applied your patch on top of commit "
9f823615af919c6b89f0b80197f009f78299dcde"Quoted 13 lines
Quoted 13 lines
Please find log below.
=> usb start
starting USB...
USB0: Register 200017f NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
USB1: Register 200017f NbrPorts 2
Starting the controller
USB XHCI 1.00Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
scanning bus 1 for devices... 1 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s)
found => edit ethact
edit: DPMAC5 at xgmii
=> tftp0x80000000fsl-ls2080a-rdb.dtb; fdt addr0x80000000; fdt boardsetup;tftp0xa0000000grubaa64.efi; bootefia00000000x80000000Using DPMAC5 at xgmii device TFTP from server 192.168.1.1; our IP address is 192.168.1.34 Filename 'fsl-ls2080a-rdb.dtb'.
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 7 lines
Load address:
0x80000000
Loading: ###2 KiB/sdone
Bytes transferred = 10549 (2935 hex)
WARNING: could not set regFDT_ERR_NOSPACE.
ERROR: could not set fsl,usb-erratum-a008751 for snps,dwc3:
FDT_ERR_NOSPACE.Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Quoted 1 line
ERROR: could not set fsl,usb-erratum-a008751 for snps,dwc3:
FDT_ERR_NOSPACE.Quoted 5 lines
Quoted 5 lines
Using DPMAC5 at xgmii device
TFTP from server 192.168.1.1; our IP address is 192.168.1.34 Filename 'grubaa64.efi'.
Load address:0xa0000000
Loading:##########################################################
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
#######
Quoted 1 line
Quoted 1 line
##########################################################
Quoted 189 lines
Quoted 21 lines
Quoted 21 lines
#######
Quoted 6 lines
Quoted 6 lines
########################################### 85.9 KiB/sdone
Bytes transferred = 884224 (d7e00 hex) ## Starting EFI application at0xa0000000...Quoted 8 lines
Quoted 8 lines
Scanning disks on scsi...
Scanning disks on usb...
Scanning disks on mmc...
MMC: no card present
MMC Device 1 not found
MMC Device 2 not found
MMC Device 3 not found
Found 4 disksSo it crashes in U-Boot disk enumeration code ...
Quoted 2 lines
Quoted 2 lines
"Synchronous Abort" handler, esr
0x8a000000
ELR:97ffeee9d5033fdfQuoted 7 lines
Quoted 7 lines
... trying to access an instruction that is completely bogus.
Can you please add #define DEBUG at the beginning of
efi_disk.cand try to isolate where it crashes from there?Alex
log.txt
U-Boot 2016.07-rc2-00026-gd11e29d-dirty (Jun 23 2016 - 15:58:26 +0530)
SoC: LS2085E (
0x87010010)
Clock Configuration:CPU0(A57):1800 MHz CPU1(A57):1800 MHz CPU2(A57):1800 MHz CPU3(A57):1800 MHz CPU4(A57):1800 MHz CPU5(A57):1800 MHz CPU6(A57):1800 MHz CPU7(A57):1800 MHz Bus: 500 MHz DDR: 1866.667 MT/s DP-DDR: 1600 MT/s Reset Configuration Word (RCW): 00000000: 48303828 48480048 00000000 00000000 00000010: 00000000 00200000 00200000 00000000 00000020: 01012980 00002580 00000000 00000000 00000030: 00000e0b 00000000 00000000 00000000 00000040: 00000000 00000000 00000000 00000000 00000050: 00000000 00000000 00000000 00000000 00000060: 00000000 00000000 00027000 00000000 00000070: 412a0000 00000000 00000000 00000000 Model: Freescale Layerscape 2080a RDB Board Board: LS2085E-RDB, Board Arch: V1, Board version: D, boot from vBank: 4 FPGA: v1.20 SERDES1 Reference : Clock1 = 156.25MHz Clock2 = 156.25MHz SERDES2 Reference : Clock1 = 100MHz Clock2 = 100MHz I2C: ready DRAM: Initializing DDR....using SPDDetected UDIMM 18ASF1G72AZ-2G1A1
Detected UDIMM 18ASF1G72AZ-2G1A1
DP-DDR: Detected UDIMM 18ASF1G72AZ-2G1A1
19 GiB
DDR 15 GiB (DDR4, 64-bit, CL=13, ECC on)
DDR Controller Interleaving Mode: 256B
DDR Chip-Select Interleaving Mode: CS0+CS1 DP-DDR 4 GiB (DDR4,
32-bit, CL=11, ECC on)
DDR Chip-Select Interleaving Mode: CS0+CS1 Waking secondary
cores to start fromffefb000All (8) cores are up.Using SERDES1 Protocol: 42 (0x2a) Using SERDES2 Protocol: 65 (0x41) Flash: 128 MiB NAND: 2048 MiB MMC: FSL_SDHC: 0*** Warning - bad CRC, using default environment
EEPROM: NXID v1
PCIe1: disabled
PCIe2: disabled
PCIe3: Root Complex x1 gen1, regs @0x3600000
PCI:01:00.0 - 8086:10d3 - Network controller PCIe3: Bus 00 - 01 PCIe4: Root Complex no link, regs @ 0x3700000 In: serial Out: serial Err: serial Debug Server FW: Not a FIT image SEC0: RNG instantiatedSATA link 0 timeout.
AHCI 0001.0301 32 slots 1 ports 6 Gbps0x1impl SATA mode
flags: 64bit ncq pm clo only pmp fbss pio slum part ccc apst Found 0 device(s).
SCSI: Net: crc32+
fsl-mc: Booting Management Complex ... SUCCESS
fsl-mc: Management Complex booted (version: 9.0.6, boot status:0x1)
e1000: 68:05:ca:36:94:8c
DPMAC1 at xgmii [PRIME]
Warning: DPMAC1 at xgmii (eth0) using random MAC address - ca:0a:bf:68:4c:60 , DPMAC2 at xgmii
Warning: DPMAC2 at xgmii (eth1) using random MAC address - de:23:02:2f:dd:94 , DPMAC3 at xgmii
Warning: DPMAC3 at xgmii (eth2) using random MAC address - d6:2b:2b:55:51:98 , DPMAC4 at xgmii
Warning: DPMAC4 at xgmii (eth3) using random MAC address - ee:70:d6:f5:b8:90 , DPMAC5 at xgmii
Warning: DPMAC5 at xgmii (eth4) using random MAC address - e6:78:ff:8f:34:9c , DPMAC6 at xgmii
Warning: DPMAC6 at xgmii (eth5) using random MAC address - be:85:aa:93:8f:0d , DPMAC7 at xgmii
Warning: DPMAC7 at xgmii (eth6) using random MAC address - b6:8d:83:e9:03:01 , DPMAC8 at xgmii
Warning: DPMAC8 at xgmii (eth7) using random MAC address - 8e:d6:7e:49:ea:09 , e1000#0 Hit any key to stop autoboot: 0 => => => => => edit ethact
edit: e1000#0
=> edit ethprime
edit: e1000#0
=> sav
Unknown command 'sav' - try 'help'
=> saveenv
Saving Environment to Flash...
Un-Protected 1 sectors
Erasing Flash...
. done
Erased 1 sectors
Writing to Flash... 9....8....7....6....5....4....3....2....1....9....8....7....6....5.... 4....3....2....1....done
Protected 1 sectors
=> usb start
starting USB...
USB0: Register 200017f NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
USB1: Register 200017f NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 1 for devices... 1 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
=> => All (8) cores are up.<INTERRUPT> => tftp0x80000000fsl-ls2080a-rdb.dtb; fdt addr0x80000000; fdt boardsetup;tftp0xa0000000grubaa64.efi; bootefia00000000x80000000
*** ERROR: `serverip' not set
libfdtfdt_check_header():FDT_ERR_BADMAGICNo FDT memory address configured. Please configure the FDT address via "fdt addr <address>" command.
Aborting!
*** ERROR: `serverip' not set
## Starting EFI application at0xa0000000...
WARNING: Invalid device tree, expect boot to failefi_load_pe: Invalid DOS Signature
## Application terminated, r = -2
=> edit serverip
edit: 192.168.1.1
=> edit ipaddr
edit: 192.168.1.34
=> sav
Unknown command 'sav' - try 'help'
=> save
save saveenv
=> save
save - save file to a filesystemUsage:
save <interface> <dev[:part]> <addr> <filename> bytes [pos]
- Save binary file 'filename' to partition 'part' on device type 'interface' instance 'dev' from addr 'addr' in memory. 'bytes' gives the size to save in bytes and is mandatory. 'pos' gives the file byte position to start writing to. If 'pos' is 0 or omitted, the file is written from the start.
=> saven
Unknown command 'saven' - try 'help'
=> saveenv
Saving Environment to Flash...
Un-Protected 1 sectors
Erasing Flash...
. done
Erased 1 sectors
Writing to Flash... 9....8....7....6....5....4....3....2....1....9....8....7....6....5.... 4....3....2....1....done
Protected 1 sectors
=> tftp0x80000000fsl-ls2080a-rdb.dtb; fdt addr0x80000000; fdt boardsetup;tftp0xa0000000grubaa64.efi; bootefia00000000x80000000Using e1000#0 device TFTP from server 192.168.1.1; our IP address is 192.168.1.34 Filename 'fsl-ls2080a-rdb.dtb'.
Load address:0x80000000
Loading: ###Quoted 5 lines
735.4 KiB/sdone
Bytes transferred = 10549 (2935 hex)
WARNING: could not set regFDT_ERR_NOSPACE.
ERROR: could not set fsl,usb-erratum-a008751 for snps,dwc3:
FDT_ERR_NOSPACE.Quoted 1 line
ERROR: could not set fsl,usb-erratum-a008751 for snps,dwc3:
FDT_ERR_NOSPACE.Quoted 5 lines
Using e1000#0 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.34 Filename 'grubaa64.efi'.
Load address:0xa0000000
Loading:##########################################################
#######Quoted 1 line
##########################################################
#######Quoted 368 lines
########################################### 1.5 MiB/sdone
Bytes transferred = 884224 (d7e00 hex) ## Starting EFI application at0xa0000000...
Scanning disks on scsi...
Scanning disks on usb...
Scanning disks on mmc...
MMC: no card present
MMC Device 1 not found
MMC Device 2 not found
MMC Device 3 not found
Found 4 disks
do_bootefi_exec:225 Jumping to0xfac1d40000000000fff87380,00000000fac28c10,00000000ffcf4d18,00000000fff87380, 0000000000000000, 0x2EFI: Entryefi_cin_get_mode(00000000fff6b1a0, 00000000ffcf4d3c, 0000000000000000, 0000000000000000)
EFI: Entryefi_cin_get_mode(00000000fff6b1a0, 00000000ffcf4d1c, 0000000000000000, 0000000000000000)
EFI: Entryefi_cout_enable_cursor(00000000fff6b150, 1)
EFI: Entryefi_net_initialize(00000000ffd1b958, 0, 0)
EFI: Entryefi_cout_set_attribute(00000000fff6b150, 7)
EFI: Entryefi_cout_set_attribute(00000000fff6b150, 7)
EFI: Entryefi_net_initialize(00000000ffd1b958, 0, 0)
EFI: Entryefi_cout_set_attribute(00000000fff6b150, 0)
EFI: Entryefi_cout_clear_screen(00000000fff6b150)EFI: Entry
efi_cout_set_attribute(00000000fff6b150, 0)
EFI: Entryefi_cout_enable_cursor(00000000fff6b150, 1)
EFI: Entryefi_cout_query_mode(00000000fff6b150, 0, 00000000ffcf4d00, 00000000ffcf4d08)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4ab0)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4ab0)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4ab0)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4ab0)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4ab0)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4ab0)
EFI: Entry efi_cout_query_mode(00000000fff6b150, 0,00000000ffcf4b50,00000000ffcf4b58)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
MEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
nEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
mEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
aEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
lEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
BEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
AEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
SEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
HEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)-EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
lEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
kEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
lEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
nEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
dEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
tEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
nEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
gEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
uEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
pEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
pEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
oEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
rEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
tEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
dEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90).EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
FEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
oEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
rEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
tEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
hEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
fEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
rEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
tEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
wEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
oEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
rEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
dEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90),EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
TEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
AEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
BEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
lEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
tEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
pEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
oEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
bEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
lEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
cEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
oEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
mEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
mEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
aEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
nEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
dEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
cEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
oEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
mEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
pEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
lEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
tEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
oEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
nEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90).EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
AEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
nEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
yEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
wEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
hEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
rEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
lEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
TEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
AEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
BEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
lEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
tEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
pEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
oEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
bEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
lEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
dEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
vEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
cEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
oEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
rEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
fEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
lEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
cEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
oEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
mEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
pEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
lEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
eEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
tEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
iEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
oEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
nEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
sEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90).EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a90)
EFI: Entry efi_cout_query_mode(00000000fff6b150, 0,00000000ffcf4b10,00000000ffcf4b18)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4a40)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4c20)EFI: Entry
efi_cout_output_string(00000000fff6b150, 00000000ffcf4c20)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4c20)EFI: Entry
efi_cout_output_string(00000000fff6b150, 00000000ffcf4c20)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4c20)EFI: Entry
efi_cout_output_string(00000000fff6b150, 00000000ffcf4c20)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4b50)EFI: Entry
efi_cout_output_string(00000000fff6b150, 00000000ffcf4b50)
EFI: Entryefi_cout_query_mode(00000000fff6b150, 0, 00000000ffcf4a50, 00000000ffcf4a58)
EFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4990)
gEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4990)
rEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4990)
uEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4990)
bEFI: Entryefi_cout_output_string(00000000fff6b150, 00000000ffcf4990)Quoted 2 lines
Quoted 2 lines
EFI: Entry
efi_cout_query_mode(00000000fff6b150, 0, 00000000ffcf4a50, 00000000ffcf4a58)Quoted 7 lines
EFI: Entry
efi_cout_output_string(00000000fff6b150, 00000000ffcf4990)
EFI: Entry efi_cout_query_mode(00000000fff6b150, 0,00000000ffcf4c10,00000000ffcf4c18)
EFI: Entryefi_cout_query_mode(00000000fff6b150, 0, 00000000ffcf4c10, 00000000ffcf4c18)"Synchronous Abort" handler, esr0x96000005ELR: fff1cafc LR: fff63410
Quoted 6 lines
Ok, this one is different. Here grub2 reaches its shell and then crashes inside of grub2 code.
Sounds like memory corruption somewhere maybe? Can you please try to see if increasing the malloc area helps?
No success :(
EFI: Entry efi_cout_output_string(00000000fff6b150, 00000000ffaf4c20)
EFI: Entry efi_cout_output_string(00000000fff6b150, 00000000ffaf4c20)
EFI: Entry efi_cout_output_string(00000000fff6b150, 00000000ffaf4c20)
EFI: Entry efi_cout_output_string(00000000fff6b150, 00000000ffaf4c20)
EFI: Entry efi_cout_output_string(00000000fff6b150, 00000000ffaf4c20)
EFI: Entry efi_cout_output_string(00000000fff6b150, 00000000ffaf4b50)
EFI: Entry efi_cout_output_string(00000000fff6b150, 00000000ffaf4b50)
EFI: Entry efi_cout_query_mode(00000000fff6b150, 0, 00000000ffaf4a50, 00000000ffaf4a58)
EFI: Entry efi_cout_output_string(00000000fff6b150, 00000000ffaf4990)
gEFI: Entry efi_cout_output_string(00000000fff6b150, 00000000ffaf4990)
rEFI: Entry efi_cout_output_string(00000000fff6b150, 00000000ffaf4990)
uEFI: Entry efi_cout_output_string(00000000fff6b150, 00000000ffaf4990)
bEFI: Entry efi_cout_output_string(00000000fff6b150, 00000000ffaf4990)
Quoted 1 line
EFI: Entry
efi_cout_query_mode(00000000fff6b150, 0, 00000000ffaf4a50, 00000000ffaf4a58)
EFI: Entry efi_cout_output_string(00000000fff6b150, 00000000ffaf4990)
EFI: Entry efi_cout_query_mode(00000000fff6b150, 0, 00000000ffaf4c10, 00000000ffaf4c18)
EFI: Entry efi_cout_query_mode(00000000fff6b150, 0, 00000000ffaf4c10, 00000000ffaf4c18) "Synchronous Abort" handler, esr 0x96000005
ELR: fff1cafc LR: fff63410 x0 : 00000000ffaf4808 x1 : 0000000000000214 x2 : 00000000fffffffa x3 : 0000000000000020 x4 : 0000000000000000 x5 : 0000000000000001 x6 : 0000000000000000 x7 : 0000000000000020 x8 : 0000000000000032 x9 : 000000000000001b x10: 000000000000000f x11: 00000000ffaf4618 x12: 00000000fff6ab90 x13: 0000000000000000 x14: 000000000000200d x15: 000000000000200c x16: 00000000faa1ee18 x17: 00000000fff7ca0e x18: 00000000fffffffe x19: 000000000000005e x20: 00000083bffb4100 x21: 00000000ffb1b908 x22: 00000083bffb4f98 x23: 00000083bfeeb120 x24: 00000000ffaf4b68 x25: 00000000fff87380 x26: 0000000000000000 x27: 0000000000000020 x28: 00000083bff975a0 x29: 00000000ffaf4790
Resetting CPU ...
### ERROR ### Please RESET the board ###
Following changes is done
include/configs/ls2080a_common.h +1 -1
@@ -88,7 +88,7 @@#define COUNTER_FREQUENCY 25000000/* 25MHz */ /* Size of malloc() pool */ -#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 2048 * 1024) +#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 2 * 2048 * 1024)/* I2C */ #define CONFIG_SYS_I2C
--prabhakar