开发板uboot常用参数配置

210原始启动参数:

bootargs=console=ttySAC2,115200 root=/dev/mmcblk0p2 rw init=/linuxrc rootfstype=ext3
bootcmd=movi read kernel 30008000; movi read rootfs 30B00000 300000; bootm 30008000 30B00000
mtdpart=80000 400000 3000000
bootdelay=3
baudrate=115200
ethaddr=00:40:5c:26:0a:5b
gatewayip=192.168.0.1
netmask=255.255.0.0
ipaddr=192.168.0.10
serverip=192.168.0.102

nfs启动参数

setenv bootargs root=/dev/nfs nfsroot=192.168.1.110:/home/nfs/rootfs/rootfs ip=192.168.1.10:192.168.1.110:192.168.1.1:255.255.0.0::eth0:off init=/linuxrc console=ttySAC2,115200

//----------------------------------------------------------------
修改serverip

set ipaddr 192.168.1.10
save

set serverip 192.168.1.110
save

//------------------------------------------------------------------
用开发板来调试模块
设置bootcmd使开发板通过tftp下载自己建立的内核源码树编译得到的zImage
 

set bootcmd 'tftp 0x30008000 zImage;bootm 0x30008000'

//----------------------配置支持NFS启动的内核---------------------------

1、配置网络部分,主要是使能CONFIG_IP_PNP以在2中能够看到Root file system on NFS选项
Networking support 
    Networking options 
        TCP/IP networking
                IP: kernel level autoconfiguration
                    [*] IP: DHCP support
                    [*] IP: BOOTP support
                    
2、配置开启nfs服务
File systems  --->    
    Network File Systems  --->
        <*> NFS client support 
        [*] NFS client support for NFS version 3                                  [*] NFS client support for the NFSv3 ACL protocol extension 
        [*] NFS client support for NFS version 4 (EXPERIMENTAL) 
        [*] NFS client support for NFSv4.1 (DEVELOPER ONLY) 
        [*] Root file system on NFS

 

 

 

 

你可能感兴趣的:(嵌入式开发,C/C++,计算机基础)