默认情况下,buildroot 都会编译第三方依赖库,耗费很久,如何编译五脏俱全的固件呢,它也提供了相关命令
make help 详细的参数
Configuration:
menuconfig - interactive curses-based configurator
nconfig - interactive ncurses-based configurator
xconfig - interactive Qt-based configurator
gconfig - interactive GTK-based configurator
oldconfig - resolve any unresolved symbols in .config
silentoldconfig - Same as oldconfig, but quietly, additionally update deps
olddefconfig - Same as silentoldconfig but sets new symbols to their default value
randconfig - New config with random answer to all options
defconfig - New config with default answer to all options
BR2_DEFCONFIG, if set, is used as input
savedefconfig - Save current config to BR2_DEFCONFIG (minimal config)
allyesconfig - New config where all options are accepted with yes
allnoconfig - New config where all options are answered with no
randpackageconfig - New config with random answer to package options
allyespackageconfig - New config where pkg options are accepted with yes
allnopackageconfig - New config where package options are answered with no
基于buildroot编译出来的文件系统带有登录问题,可以通过make menuconfig 设置登录密码
System configuration –> Root password
正常情况下,文件系统启动后有“buildroot login:”要求输入用户名,重新制作了文件系统后,没有上述字样。 启动后会分析/etc/inittab中的内容,然后执行相关命令,顺着这样的思路分析找问题
发现# ttyS0默认是关闭的,打开后问题解决
# Put a getty on the serial port
#ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL
::respawn:/sbin/getty -L ttyS2 115200 vt100
前提条件设备的串口必须对应才有效