2010年8月17日星期二

Building the NFS server for TQ2440 Board

Building tftp server in Ubuntu:

1.install the packages:
sudo apt-get install tftp tftpd xinetd

2.configure the tftp
sudo vim /etc.inetd.conf
add the below to file:
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /home/oneyoung/ project/rootfs

3.install and configure nfs server for mounting root filesystem on an NFS Server:

sudo apt-get install nfs-kernel-server

then add the below line to /etc/exports:
/home/oneyoung/project/rootfs 10.164.43.24(rw,no_root_squash)

next step: restart the nfs server:
sudo /etc/init.d/nfs-kernel-server restart

set the bootargs like below:
root=/dev/nfs rw nfsroot=10.164.43.23:/home/oneyoung/project/root fs ip=10.164.43.24 init=/linuxrc console=ttySAC0


没有评论:

发表评论