Re: Successful boot of recompiled kernel.

"Bruno Lopes F. Cabral" <[email protected]>
Newsgroups gmane.linux.uclinux.actiontec
Organization Openline ISP, http://www.openline.com.br
Message-ID <[email protected]>
Hi there

Patrick McNamara wrote:
>> Can the kernel you compiled mount nfs drives?
> 
> The kernel supports it, I know where the params are set in the 2.4.6 
> kernel source, I just have tried compiling it in yet.

to easy you guys life, here it is what I use to NFS mount
the root file system

$ grep NFS uClinux/.config
CONFIG_NFS_FS=y
# CONFIG_NFS_V3 is not set
CONFIG_ROOT_NFS=y
# CONFIG_NFSD is not set
# CONFIG_NFSD_V3 is not set
# CONFIG_NCPFS_NFS_NS is not set

$ grep CMDLINE uClinux/.config
CONFIG_CMDLINE="ro console=ttyS0 single root=/dev/nfs 
nfsroot=192.168.1.1:/nfs 
ip=192.168.1.2:192.168.1.1::255.255.255.0:smc:eth0:off"

(all in one line! 192.168.1.1 is the NFS server and
192.168.1.2 will be the unit. plese note that it is
possible to bootp this info!! -- although my example
is hardcoded)

$ cat /etc/exports
/nfs 192.168.1.2(rw,no_root_squash,no_all_squash,sync)

(I unpack the root image on /nfs dir)

$ grep 192.168.1.2 /etc/hosts.allow
ALL: 192.168.1.2

don't forget to add nfs-utils package and to start it with
/etc/init.d/nfs start

hope this helps
Cheers
!3runo
__
ActionHack Mailing List - ActionHack-W7/[email protected]
http://www.express.org/mailman/listinfo/actionhack
http://www.embeddedlinuxinterfacing.com/wiki.php/ActiontecDualModem
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.