u-boot1.5移植
系统环境:
windows XP pro2002 pack2
VMware workstation 5.5.2
linux 9.0(全安装)
编译环境:
cross-2.95.3
原文件
u-boot-1.1.4.tar.bz2
linux-2.4.18
busybox-1.1.3
移植过程:
1、编译u-boot-1.1.4(参考uboot编译文章)
修改Makefile,"crosscompile=/usr/local/arm/2.95.3/bin/arm-linux-"
修改include/configs/smdk2410.h,增加tftp\ping\nand命令。
2、编译busybox-1.1.3(参考busybox编译文章)
修改编译环境“crosscompile=/usr/local/arm/2.95.3/bin/arm-linux-”
修改shells->ash
编译生成“./-install",busybox根文件系统文件夹
"cp -arf ..."将根文件夹拷贝到nfs根文件系统
确定server主机的nfs、tftp server服务已经打开,关闭iptables防火墙。
3、编译linux-2.4.18
$make menuconfig
选择“networking options->IP:kernel level autoconfiguration"
选择“file systems->network file systems->nfs file system support"
"root file system on nfs"
$make zImage
4、server nfs设置
$sudo apt-get install nfs-kernel-server
(安装nfs-kernel-server时,apt自动安装nfs-common和portmap)
配置exports,“/nfsroot”为nfs server使用的目录
/nfsroot *(rw,sync,root_squash)
启动nfs服务
$sudo /etc/init.d/nfs-kernel-server restart
阅读(461) | 评论(0) | 转发(0) |