Hi Fabio,

Fabio Estevam wrote:
> I am using uClinux-dist-20060803 and I can do NFS
> mount on the M5208EVB.
>
> Now I would like to do a NFS root file system mount.
>
> My question is: how to enable NFS root file system
> support?
>
> I am using dBug as bootloader and I am not sure if it
> can pass boot arguments to uClinux.

Here's some instructions I've used for NFS mounting a root
filesystem on a M5208EVB.  Hope this helps.  (Make sure
you disable the CONFIG_ROMFS_FS option in the kernel.)

Regards,
Matt

---+ NFS deployment example

In this example we assume the following parameters:

Host system's IP address:  192.168.0.9
Target board's IP address: 192.168.0.254

---++ setup your host and target IP addresses

Change the bootloader parameters (this is persistent and so needs to
only be done once):

dBUG> set client 192.168.0.254
dBUG> set server 192.168.0.9

---++ Configure the target IP and Kernel command line

Next, you need to set the kernel command line for NFS deployment.
If you have a newer bootloader, you can use the 'set kcl' command.
If not, you're going to have to configure this into the kernel you build

---+++ Newer dBUG bootloaders that support 'set kcl'

dBUG> set kcl "console=ttyS0,115200 root=/dev/nfs rw ip=192.168.0.254:192.168.0.
9:::::"

---+++ Older dBUG bootloaders that don't support 'set kcl'

Configure the kernel

Kernel hacking  --->
[*] Compiled-in Kernel Boot Parameter
 Kernel Boot Parameter: "console=ttyS0,115200 root=/dev/nfs rw ip=192.168.0.254:
192.168.0.9:::::"

Build kernel

---++ Copy the kernel to the /tftpboot area

$ cp rootfs/boot/vmlinux.bin /tftpboot

---++ Setup the NFS server area

As root make a symlink to your root filesystem area:

# cd /tftpboot
# ln -s /home/uClinux-dist/romfs 192.168.0.254

As root, edit /etc/exports and enter into this:

/tftpboot/192.168.0.254 192.168.0.254(rw,no_root_squash,sync)

re-export the NFS area:

# /usr/sbin/exportfs -rv

Note: make sure your NFS server is running.
And:  make sure your firewall (iptables) is not blocking 192.168.0.254

---++ Download the built kernel

dBUG> dn vmlinux.bin
Address:  0x40020000
Downloading Image 'vmlinux.bin' from 192.168.0.9
TFTP transfer completed
Read 1519616 bytes (2969 blocks)

---++ Boot the kernel

dBUG> go 0x40020000



____________________________________________________________________________________ Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to