run-u-boot.ds:14 while executing: set spl_boot_list[0]=0 ! Could not find the symbol "spl_boot_list" Please suggest any inputs on above error. Thanks & Regards Satrasala Raju 翻訳 0件の賞賛 返信 6 返答(返信) JingyangTeh
sc_rm_is_resource_owned(-1, SC_R_FSPI_0)) spl_boot_list[0] = BOOT_DEVICE_NOR; } } 而spl_boot_device也是一个弱函数,被arch/arm/mach-imx/spl.c中的spl_boot_device所覆盖。 u32 spl_boot_device(void) { enum boot_device boot_device_spl = get_boot_device(); return spl_board_boot...
BOOT_DEVICE_NONE, }; __weak void board_boot_order(u32 *spl_boot_list) { spl_boot_list[0] = spl_boot_device(); @@ -374,15 +365,15 @@ static struct spl_image_loader *spl_ll_find_loader(uint boot_device) return NULL; } static int spl_load_image(u32 boot_device) static int...
1、board_boot_order–读取支持的启动设备 board_boot_order被定义为一个弱函数,可以被厂商覆盖,因此我们这里会使用arch/arm/mach-imx/imx8/cpu.c中定义的board_boot_order函数。 voidboard_boot_order(u32*spl_boot_list) { spl_boot_list[0]=spl_boot_device(); if(spl_boot_list[0]==BOOT_DEVICE_SP...
.u_boot_list : { . = ALIGN(8); KEEP(*(SORT(.u_boot_list*))); } >.sram .image_copy_end : { . = ALIGN(8); *(.__image_copy_end) } >.sram .end : { . = ALIGN(8); *(.__end) } >.sram _image_binary_end = .; ...
你可以看到,他通过调用board_boot_order获取到了一个boot list,这个函数的原型是 __weakvoidboard_boot_order(u32*spl_boot_list){spl_boot_list[0]=spl_boot_device();} 他又通过调用spl_boot_device来获取启动设备,将其放入list首位,也就是将要启动的设备。
= ALIGN(8); *(.data*) } >.sram .u_boot_list : { . = ALIGN(8); KEEP(*(SORT(.u_boot_list*))); } >.sram .image_copy_end : { . = ALIGN(8); *(.__image_copy_end) } >.sram .end : { . = ALIGN(8); *(.__end) } >.sram _image_binary_end = .; .bss_start ...
.u_boot_list : { . = ALIGN(8); KEEP(*(SORT(.u_boot_list*))); } >.sram .image_copy_end : { . = ALIGN(8); *(.__image_copy_end) } >.sram .end : { . = ALIGN(8); *(.__end) } >.sram _image_binary_end = .; ...
KEEP(*(SORT(.u_boot_list*)));} >.sram .image_copy_end : { . = ALIGN(8);*(.__image...
BOOT_DEVICE_NONE, }; __weak void board_boot_order(u32 *spl_boot_list) { spl_boot_list[0] = spl_boot_device(); } static int spl_load_image(u32 boot_device) { switch (boot_device) { @@ -247,7 +264,7 @@ static int spl_load_image(u32 boot_device) void board_init_r(gd_...