System configuration---> (myzr) System hostname 设置主机名 /dev management (Dynamic using devtmpfs + mdev) kernel配置支持medv,系统也配置mdev Run a getty (login prompt) after boot ---> (ttymxc0) TTY port 设置登陆串口 Baudrate (115200) ---> 波特率
不编译kernel Kernel---> [] Linux Kernel 不选
不编译U-BOOT Bootloaders ---> [] U-Boot 不选
$ make -j4 //用4个线程编译 结果看产生output/images/rootfs.tar 看图片“结果1”和“结果2”(结果2是没编译kernel报的错误不管)
最后修改一下rootfs里面的
vim etc/issue Welcome to MY-IMX6-EK200
vim etc/profile
if [ "$PS1" ]; then if [ "`id -u`" -eq 0 ]; then export PS1='u@h:w# ' else export PS1='u@h:w$ ' fi fi
最后压缩烧写进去,用root登陆,默认没密码 VFS: Mounted root (ext3 filesystem) on device 179:2. devtmpfs: mounted Freeing unused kernel memory: 396K (809c6000 - 80a29000) Starting logging: OK Starting mdev... Initializing random number generator... random: dd urandom read with 47 bits of entropy available done. Starting network: OK Welcome to MY-IMX6-EK200 myzr login: root root@myzr:~# root@myzr:~# root@myzr:~# ls root@myzr:~# ls / bin lib lost+found opt run tmp dev lib32 media proc ***in usr etc linuxrc mnt root sys var