- 论坛徽章:
- 0
|
1.在/tftpboot下创建一个NFS目录,如:mkdir tftpboot/s3c2410/root
2.利用NFS服务配置工具设置一个NFS共享;将共享目录设置为1种建立的目录
3.配置内核如下:
1)选中Networking support->Networking options->IP:kernel level autoconfiguration
2)File systems->Network File System->NFS system support
3)File systems->Network File System->Root file system on NFS(注NFS file system support 不能作为模块编译)
4)取消Block devices->RAM disk support
4.把生成的文件系统复制到1的目录中
5.设置U-boot启动参数
baudrate=115200
ethaddr=00:12:34:56:78:99
netmask=255.255.255.0
kernel_addr=0x2040000
bootcmd=run nfscmd
hostname=yhc.com
bootargs=root=/dev/nfs rw
rootpath=/tftpboot/s3c2410/root
nfscmd=setenv bootargs root=/dev/nfs rw nfsroot=\$(serverip):\$(rootpath),rsize=1024,wsize=1024 ip=\$(ipaddr):\$(serverip):\$(gatewayip):\$(netmask):\$(hostname):eth1:off\;bootm \$(kernel_addr)
serverip=192.168.1.11
gatewayip=192.168.1.234
6.启动目标板进入U-BOOT。把内核烧入到flash中,然后重新启动,否则使用如下命令不能从NFS启动。
tftp 0x800000 mImage
bootm 0x800000
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/23483/showart_214407.html |
|