- 论坛徽章:
- 0
|
3 Host端设置
3.1 安装kermit
第一步,从源码安装kermit(若前面已安装kermit,则略过这一步)
make linux && make install
cp –v kermrc ~/.kermrc
第二步,打开~/.kermrc,修改“set line”一行,确认你所用的串口设备,若用的是USB-to-Serial转接器,可以改成:“set line /dev/ttyUSB0”
3.2 安装NFS Server
第一步,安装NFS server软件包
# apt-get install nfs-kernel-server
第二步,编辑/etc/exports文件,添加下面两行:
/maxwit/rootfs *(rw,sync,no_root_squash)
/maxwit/sysroot *(rw,sync,no_root_squash)
第三步,重启NFS Server:
# /etc/init.d/nfs-kernel-server restart
第四步,测试NFS Server:
# mount -t nfs 192.168.0.111:/maxwit/sysroot /mnt/
(假定本机IP为192.168.0.111)
3.3 安装TFTP Server
第一步,编译tftp软件(如果前面已经通过apt方式安装了tftp,则跳过这一步)
# tar jxvf tftp-hpa-0.40.tar.bz2
# cd tftp-hpa-0.40
# ./configure –prefix=/usr
# make && make install
第二步,启动tftp server
# in.tftpd –l –s /maxwit/images
第三步,测试tftp server
# cd /tmp
# echo hello > /maxwit/images/test
# chmod 666 /maxwit/images/test
# tftp 192.168.0.111(假定本机IP为192.168.0.111)
> get test
> quit
# cat test
# rm test /maxwit/images/test |
|