nfs挂载根文件系统

来源:互联网 发布:qt mysql数据库 编辑:程序博客网 时间:2024/06/04 20:03


文件系统由内核引导,而uboot可以向内核传参设置内核的引导方式


博客:

http://blog.csdn.net/xtydtc/article/details/56008433


最主要还是要根据规范抄,如下:

uboot:sd卡
bootcmd=mmc dev 1;
ext2load mmc 1:2 0xa00000 /boot/uImage;ext2load mmc 1:2 0x1500000 /boot/mv6220-toc.dtb;
setenv bootargs $bootargs root=/dev//dev/mmcblk1p2 uio_pdrv_genirq.of_id=generic-uio rootwait;
bootm 0xa00000 - 0x1500000


emmc(setenv 可以设置bootcmd) saveenv保存
bootcmd=mmc dev 0
ext2load mmc 0:2 0xa00000 /boot/uImage
ext2load mmc 0:2 0x1500000 /boot/mv6220-toc.dtb
setenv bootargs $bootargs root=/dev/mmcblk0p2 uio_pdrv_genirq.of_id=generic-uio rootwait
bootm 0xa00000 - 0x1500000
setenv bootcmd mmc dev 0;ext2load mmc 0:2 0xa00000 /boot/uImage;ext2load mmc 0:2 0x1500000 /boot/mv6220-toc.dtb;setenv bootargs $bootargs root=/dev/mmcblk0p2 uio_pdrv_genirq.of_id=generic-uio rootwait;bootm 0xa00000 - 0x1500000
setenv bootcmd 'mmc dev 0;ext2load mmc 0:2 0xa00000 /boot/uImage;ext2load mmc 0:2 0x1500000 /boot/mv6220-toc.dtb;setenv bootargs $bootargs root=/dev/mmcblk0p2 uio_pdrv_genirq.of_id=generic-uio rootwait;bootm 0xa00000 - 0x1500000'
setenv bootargs noinitrd root=/dev/nfs nfsroot=192.168.1.222:/home/edison/nfshhh/rootfs/ ip=192.168.1.190:192.168.1.222:192.168.1.1:255.255.255.0::eth0:off init=/linuxrc console=ttyS0
setenv bootcmd 'mmc dev 0;ext2load mmc 0:2 0xa00000 /boot/uImage;ext2load mmc 0:2 0x1500000 /boot/mv6220-toc.dtb;setenv bootargs $bootargs noinitrd root=/dev/nfs nfsroot=192.168.1.222:/home/edison/nfshhh/rootfs/ ip=192.168.1.190:192.168.1.222:192.168.1.255:255.255.255.0::eth0:on init=/linuxrc console=ttySAC0;bootm 0xa00000 - 0x1500000'






原创粉丝点击