On Wed, Jun 11, 2014 at 8:32 AM, [email protected] <[email protected]> wrote: > On Tue, Jun 10, 2014 at 11:12 PM, Rajesh Mallah <[email protected]> > wrote: >> dear Jons hope NFS support is built into the kernel. Also ensure that root >> filesystem exported >> by the server is mountable under normal circumstances. > > > I have bootargs set to this. > setenv bootargs console=ttyS0,115200 loglevel=9 earlyprintk > root=/dev/nfs ip=dhcp nfsroot=192.168.1.50:/export/work/root > > And boot from NFS is selected in Kconfig. > > What is odd is that I don't see any packets from the kernel trying to > mount the NFS filesystem with Wireshark. I can capture the DHCP > packets from the kernel right before it tries NFS without trouble. So > something is wrong in the kernel not the server. > > I attached my .config
I found the problem. You need to force use of eth0 on the kernel bootargs. ip=:::::eth0:dhcp > >> >> >> On Wed, Jun 11, 2014 at 7:45 AM, [email protected] <[email protected]> >> wrote: >>> >>> Has any one had any luck getting the 3.15+ dev kernel to boot with a >>> NFS root? I watched with Wireshark and I can see the DHCP packets but >>> no NFS traffic. >>> >>> [ 2.204211] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) >>> [ 2.212608] mmc1: queuing unknown CIS tuple 0x80 (7 bytes) >>> [ 2.233433] mmc1: new high speed SDIO card at address 0001 >>> [ 2.322115] No MAC Management Counters available >>> [ 2.341451] Sending DHCP requests .. >>> [ 6.311504] stmmaceth 1c50000.ethernet eth0: Link is Up - >>> 1Gbps/Full - flow control rx/tx >>> [ 9.681180] ., OK >>> [ 10.581644] IP-Config: Got DHCP answer from 192.168.1.254, my >>> address is 192.168.1.163 >>> [ 10.589753] IP-Config: Complete: >>> [ 10.593033] device=eth0, hwaddr=70:71:bc:b8:ab:ee, >>> ipaddr=192.168.1.163, mask=255.255.255.0, gw=192.168.1.254 >>> [ 10.603384] host=192.168.1.163, domain=att.net, nis-domain=(none) >>> [ 10.609904] bootserver=0.0.0.0, rootserver=192.168.1.50, rootpath= >>> [ 10.616350] nameserver0=192.168.1.254 >>> [ 10.620742] ALSA device list: >>> [ 10.623725] No soundcards found. >>> [ 99.406938] random: nonblocking pool is initialized >>> [ 105.671637] VFS: Unable to mount root fs via NFS, trying floppy. >>> [ 105.678076] VFS: Cannot open root device "nfs" or >>> unknown-block(2,0): error -6 >>> [ 105.685352] Please append a correct "root=" boot option; here are >>> the available partitions: >>> [ 105.693721] b300 15558144 mmcblk0 driver: mmcblk >>> [ 105.699045] b301 65536 mmcblk0p1 00000000-01 >>> [ 105.704381] b302 15491584 mmcblk0p2 00000000-02 >>> [ 105.709699] Kernel panic - not syncing: VFS: Unable to mount root >>> fs on unknown-block(2,0) >>> [ 105.717956] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.15.0+ #6 >>> [ 105.723990] [<c001512c>] (unwind_backtrace) from [<c0011d04>] >>> (show_stack+0x18/0x1c) >>> [ 105.731734] [<c0011d04>] (show_stack) from [<c057afe0>] >>> (dump_stack+0x78/0x94) >>> [ 105.738956] [<c057afe0>] (dump_stack) from [<c0577bc4>] >>> (panic+0x8c/0x1f8) >>> [ 105.745833] [<c0577bc4>] (panic) from [<c07fa0e4>] >>> (mount_block_root+0x1d4/0x214) >>> [ 105.753314] [<c07fa0e4>] (mount_block_root) from [<c07fa200>] >>> (mount_root+0xdc/0x100) >>> [ 105.761140] [<c07fa200>] (mount_root) from [<c07fa348>] >>> (prepare_namespace+0x124/0x184) >>> [ 105.769141] [<c07fa348>] (prepare_namespace) from [<c07f9d38>] >>> (kernel_init_freeable+0x228/0x274) >>> [ 105.778008] [<c07f9d38>] (kernel_init_freeable) from [<c0576c18>] >>> (kernel_init+0x10/0xec) >>> [ 105.786180] [<c0576c18>] (kernel_init) from [<c000e4b8>] >>> (ret_from_fork+0x14/0x20) >>> [ 105.793745] ---[ end Kernel panic - not syncing: VFS: Unable to >>> mount root fs on unknown-block(2,0) >>> >>> >>> -- >>> Jon Smirl >>> [email protected] >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "linux-sunxi" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "linux-sunxi" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. > > > > -- > Jon Smirl > [email protected] -- Jon Smirl [email protected] -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
