采用initramfs方式,把内核和根文件系统合并编译在一起。内核版本:linux-xlnx-xilinx-v2015.3.zip
在linux启动的时候出现如下错误:
Warning: unable to open an initial console.
VFS: Cannot open root device "null" or unknown-block(0,0): error -2
出现此问题的原因是系统没有正确启动根文件系统。
折腾了好几天才解决,总结以下配置:
1. General setup>Initramfs source file(s) 设置 为 initramfs.cpio 。直接指定文件而不是目录,cpio格式而不是gz格式。
2. 删掉下载的文件系统中的/dev/console和/dev/null,重新建立
mknod -m 660 console c 5 1
mknod -m 660 null c 1 3
3. Device Drivers > Character devices
[*] Enable TTY
[*] Virtual terminal