From: Tom H. <to...@uw...> - 2005-12-27 19:47:03
|
Can the Gumstix be booted so as to have the root filesystem be mounted over NFS? I have tried the following from u-boot: setenv bootargs "console=ttyS0,115200n8 ip=129.89.149.64 nfsroot=129.89.149.77:/exports/gumstixroot reboot=cold,hard rootfstype=nfs" setenv ipaddr 129.89.149.64 setenv serverip 129.89.149.77 tftpboot a2000000 uImage bootm a2000000 and it complains at the end: VFS: Cannot open root device "<NULL>" or unknown-block(0,0) Please append a correct "root=" boot option Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) Can I make this work, or is root over NFS simply not enabled in the supplied kernel (I have 2.6.11gum)? -- Tom Hansen Senior Information Processing Consultant Great Lakes WATER Institute to...@uw... www.glwi.uwm.edu |
From: Dave H. <dhy...@gm...> - 2005-12-27 20:27:37
|
Hi Tom, On 12/27/05, Tom Hansen <to...@uw...> wrote: > Can the Gumstix be booted so as to have the root filesystem be mounted > over NFS? I haven't done this before myself, but I think to do that you need to ensure that NFS and all of the modules that it requires are all compiled into the kernel statically, rather than being a loadable module. Craig probably has more insight... -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |
From: Alexandre P. N. <al...@om...> - 2005-12-27 20:46:43
|
Dave Hylands escreveu: >Hi Tom, > >On 12/27/05, Tom Hansen <to...@uw...> wrote: > > >>Can the Gumstix be booted so as to have the root filesystem be mounted >>over NFS? >> >> > >I haven't done this before myself, but I think to do that you need to >ensure that NFS and all of the modules that it requires are all >compiled into the kernel statically, rather than being a loadable >module. > >Craig probably has more insight... > > > Yes, you need to ensure that NFS client is statically linked, plus you need to say yes to 'Kernel level autoconfiguration', under networking -> networking options -> tcp/ip networking (which will also allow you to set 'root filesystem on nfs' back on the filesystems), and finnaly you need to supply a root=/dev/nfs parameter. Since it has been a while since I last tried this (on a x86 box, by that time), reading Documentation/nfsroot.txt may provide you with more up-to-date information. Good luck! Alexandre |