免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1824 | 回复: 0
打印 上一主题 下一主题

uboot的nfs启动配置 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-12-12 22:32 |只看该作者 |倒序浏览

                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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP