CONFIG_CMDLINE:命令行模式开关 CONFIG_SYS_PROMPT:命令行模式提示符 CONFIG_HUSH_PARSER:使用hush shell 来对命令进行解析 BOOTDELAY:设置启动延时 Tip:meneconfig中查找苦难?实时/符号,输入1或2或3,直接查找指定标识。 打开之后,重新编译,并将Uboot镜像烧录到开发板中,再次启动,我们就能够看到倒计时。
2.读取命令行输入 命令行输入模式实际上是一个死循环,循环体简化后如下所示: for (;;) { len = readline (CONFIG_SYS_PROMPT); flag = 0; /* assume no special flags for now */ if (len > 0)strcpy(lastcommand, console_buffer); else if (len == 0) flag |= CMD_FLAG_REPEAT; if (len ...
在执行make smdk2440_defconfig,依赖于configs/smdk2440_defconfig文件,所以我们也将smdk2410_defconfig复制过来: cd configscpsmdk2410_defconfig smdk2440_defconfig 修改smdk2440_defconfig: CONFIG_ARM=y CONFIG_TARGET_SMDK2440=y CONFIG_HUSH_PARSER=y CONFIG_SYS_PROMPT="SMDK2440 #"CONFIG_CMD_USB=y # CONFIG_...
CONFIG_SYS_CONSOLE_IS_IN_ENV=y CONFIG_SYS_CONSOLE_INFO_QUIET=y CONFIG_ENV_SIZE=0x4000 CONFIG_ENV_OFFSET=0x4200 CONFIG_DEFAULT_DEVICE_TREE="exynos4412-ex4412" CONFIG_SPL_TEXT_BASE=0x02023400 CONFIG_SYS_PROMPT="EX4412 # " CONFIG_TEXT_BASE=0x43E00000 CONFIG_SD_BOOT=y CONFIG_IDENT_STRING=...
#ifdef CONFIG_SYS_REDUNDAND_ENVIRONMENT unsigned char flags; /* active/obsolete flags */ #endif unsigned char data[ENV_SIZE]; /* Environment data */ } env_t; 这两个类型变量记录了刚启动时的信息,还将记录作为引导内核和文件系统的参数,如 bootargs 等,并且将来还会在启动内核时,由 uboot 交由 ...
#define CONFIG_SYS_PROMPT "DengJin # " 1. 2. 3. 4. 5. 6. 7. 重新编译Uboot [root@itcast uboot_tiny4412-master]# make -j4 1. 重新烧写Uboot到SD卡 [root@itcast tiny4412]# ./sd_fusing.sh /dev/sdb /dev/sdb reader is identified. ...
CONFIG_TARGET_LINGYUN_IGKBOARD=y CONFIG_DEFAULT_DEVICE_TREE="igkboard" CONFIG_IMX_CONFIG="board/lingyun/igkboard/imximage.cfg" CONFIG_SYS_PROMPT="[u-boot@igkboard]# " CONFIG_USB_GADGET_VENDOR_NUM=0x0525 CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5 CONFIG_OF_LIBFDT_OVERLAY=y 1. 2. 3. 4. 5...
CONFIG_SPL=y CONFIG_IDENT_STRING=" for ITOP4412" CONFIG_DISTRO_DEFAULTS=y # CONFIG_USE_BOOTCOMMAND is not set CONFIG_SYS_CONSOLE_IS_IN_ENV=y CONFIG_SYS_CONSOLE_INFO_QUIET=y # CONFIG_SPL_FRAMEWORK is not set CONFIG_SYS_PROMPT="ITOP4412 # " ...
len = readline (CFG_PROMPT); flag = 0; /* assume no special flags for now */ if (len > 0) strcpy (lastcommand, console_buffer); else if (len == 0) flag |= CMD_FLAG_REPEAT; // ...其它代码 if (len == -1) puts ("<INTERRUPT>\n"); else ...
The MMC can be accessed from the boot prompt by mapping the device to physical memory similar to flash. Command line is enabled with CONFIG_CMD_MMC. The MMC driver also works with the FAT fs. This is enabled with CONFIG_CMD_FAT. CONFIG_SH_MMCIF Support for Renesas on-chip MMCIF ...