#ifdef CONFIG_ENV_IS_IN_REMOTE ENVL_REMOTE, #endif #ifdef CONFIG_ENV_IS_IN_SATA ENVL_ESATA, #endif #ifdef CONFIG_ENV_IS_IN_SPI_FLASH ENVL_SPI_FLASH, #endif #ifdef CONFIG_ENV_IS_IN_UBI ENVL_UBI, #endif #ifdef CONFIG_ENV_IS_NOWHERE ENVL_NOWHERE, #endif }; 1. 2. 3. 4. 5...
struct udevice{conststruct driver*driver;constchar*name;void*plat_;void*parent_plat_;void*uclass_plat_;ulong driver_data;struct udevice*parent;void*priv_;struct uclass*uclass;void*uclass_priv_;void*parent_priv_;struct list_head uclass_node;struct list_head child_head;struct list_head sibling_...
等等,最后通过bootm启动内核,通过setenv 设置bootargs,引导内核时就可以将bootargs传递给内核了。咱们在...
Uboot通过U_BOOT_ENV_LOCATION宏定义环境变量的存储位置,例如对于mmc其定义如下(env/mmc.c): U_BOOT_ENV_LOCATION(mmc) = { .location = ENVL_MMC, ENV_NAME("MMC") .load = env_mmc_load, #ifndef CONFIG_SPL_BUILD .save = env_save_ptr(env_mmc_save), .erase = ENV_ERASE_PTR(env_mmc_eras...
setenv bootargs ‘mem=32M console=ttyS0,115200 root=/dev/ram rw init=/linuxrc’注意这种情况下你应该要在bootm命令中指定ramdisk在flash中的地址,如bootm kernel_addr ramdisk_addr (fdt_addr)3). 假设文件系统是jffs2类型的,且在flash中,bootargs的设置应该如下 setenv bootargs ‘mem=32M console=ttyS...
dm-Driver model low level accessecho-echoargs to console editenv-edit environment variableenv-environment handling commands erase-erase FLASH memory exit-exit script ext2load- load binaryfilefrom a Ext2 filesystem ext2ls- list filesina directory (default /) ...
printenv- print environment variables pxe - commands to get and boot from pxe files rbrom - Perform RESET of the CPU reboot - Perform RESET of the CPU, alias of 'reset' reset - Perform RESET of the CPU rkimgtest- Test if storage media have rockchip image ...
env_relocate (); #ifdef CONFIG_VFD drv_vfd_init(); #endif #ifdef CONFIG_SERIAL_MULTI serial_initialize(); #endif gd->bd->bi_ip_addr = getenv_IPaddr ("ipaddr"); stdio_init (); jumptable_init (); #if defined(CONFIG_API)
14)initr_env,环境变量有关的初始化。 15)initr_secondary_cpu,初始化其它的CPU core。 16)stdio_add_devices,各种输入输出设备的初始化,如LCD driver等。 17)interrupt_init,中断有关的初始化。 18)initr_enable_interrupts,使能系统的中断,涉及的配置项有CONFIG_ARM(ARM平台u-boot实在开中断的情况下运行的)...
int env_load(void) { struct env_driver *drv; int best_prio = -1; int prio; for (prio = 0; (drv = env_driver_lookup(ENVOP_LOAD, prio)); prio++) { int ret; if (!drv->load) continue; if (!env_has_inited(drv->location)) continue; printf("###\r\n...