Hi Fabio, assuming you have a linux-based computer you may set up nfs by performing the following steps: - On your Host 1. Install the nfs-(kernel)-server package of your Distribution. 2. Make sure nfsd and portmap are started, if necessary please start portmap first 3. Create the directory /nfsroot 4. Edit /etc/exports: /nfsroot *(no_root_squash,rw) 5. Restart nfs-server 6. Copy the files from the romfs/ directory of uClinux /nfsroot 7. Create the device-Inodes in /nfsroot/dev by 7. (a) copying all of your hosts' /dev into /nfsroot/dev . 7. (b) create all devices "in-place" by using the following command directly within /nfsroot/dev ls -1 @* | awk -F'[@,]' '{print "mknod " $2,$3,$4,$5}' | sh - On your target 1. Enable IP-Autoconfiguration and NFS-Root in the Kernel-Options 2. Append to the kernel-commandline, subsituting $server_ip by your hosts IP-Address and $client_ip by your Boards IP-Address: rootfstype=nfs root=/dev/nfs nfsroot=$server_ip:/nfsroot ip=$client_ip:$server_ip:$server_ip:$netmask:uclinux:eth0:dhcp 3. Boot your target: Hope you're done!
Hope this helped. Best Regards, Peter On Mar 15, 2010, at 7:37 AM, Fabio Giovagnini wrote: > Hi All, Hi Peter, > I have this problem; now I can map my flash but I fail to mount the rootfs. > Ho can I debug the problem? > Does anyone know how to set the embedded kernel and the host PC to configure > an > nfsroot filesystem? > > Thanks a lot > > > > > In data lunedì 08 marzo 2010 09:43:05, Fabio Giovagnini ha scritto: > : > Thanks a a lot. >> What is the command to apply the patchs; so I do not get wrong. >> >> Thanks alot >> >> Alle 09:35, lunedì 8 marzo 2010, Peter Turczak ha scritto: >>> Hi Fabio, >>> >>> about a one and a half year ago I stumbled across exactly the same >>> Problem. SST reports it's flashes size twice, one time as "Blocks" and >>> once again as "Sectors". I did a workaround for exactly this problem. >>> (See >>> http://www.mail-archive.com/uclinux-dev@uclinux.org/msg05737.html ). >>> >>> Please find attached the corresponding Patches. Unfortunately I haven't >>> tested them on the most recent Kernels, but you might at least have hint >>> where to search ;). >>> >>> Best Regards, >>> Peter >> > > -- > Fabio Giovagnini > > Aurion s.r.l. > P.I e C.F. > 00885711200 > Tel. +39.051.594.78.24 > Cell. +39.335.83.50.919 _______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev