dnw工具安装:
1.解压缩 :tar xvf dnw.tar.gz
2.cd dnw-linux
3.make
4.sudo make install
nfs配置:
1.sudo vi /etc/export
增加:/home/linux/nfs *(rw,sync,no_subtree_check,no_root_squash)
2.重启nfs服务
sudo /etc/init.d/nfs-kernel-server restart
在minicom终端操作;
setenv bootargs root=/dev/nfs //根文件系统是nfs方式,当然这里也可以是其他方式,NFS方式较为通用。
nfsroot=192.168.0.254:/home/linux/nfs //指定nfs文件夹位置
console=ttySAC0,115200 //内核的打印终端,printk的输出位置
ip=192.168.0.100 //开发板ip地址(系统内的地址)
lcd=S70 //lcd的型号
saveenv //保存设置的参数
minicom终端进行dnw下载程序:
dnw 0x40008000
在pc:
sudo dnw zImage
在minicom:
bootm 0x40008000
静态网络配置:
sudo /etc/network/interfaces
1 auto lo
2 iface lo inet loopback
3
4 auto eth0
5 iface eth0 inet static
6 address 192.168.0.100
7 netmask 255.255.255.0
8 gateway 192.168.0.1
保存退出:
重启网络:
sudo /etc/init.d/networking restart
linux内核编译: