Can mount filesystem over nfs

321 views
Skip to first unread message

cppdev programmer

unread,
Dec 31, 2011, 7:20:37 PM12/31/11
to linux...@googlegroups.com
Hi,

I have the Linuxstamp II 9260 (at91sam9260). I am trying to boot over NFS and I keep getting timeouts for DHCP....

Sending DHCP requests .
eth0: link up (100/Full)
..... timed out!
IP-Config: Retrying forever (NFS root)...
eth0: link down
eth0: link up (100/Full)
Sending DHCP requests ...
....
....

I am using the grip squeeze downloaded from http://linuxstamp.budgetdedicated.com/index.php?dir=lnst2_9g20/rootfs/&file=grip_squeeze_20110512.tar.bz2

But I am able to perfectly mount this nfs share successfully on other machines on my network.

I tried to mount this filesystem after booting into Linux on flash. Even there I have an issue.

debian>mount -t nfs 192.168.2.139:/home/lsi/Linux_Stamp/RootFS/GRIP/grip_squeeze /mnt/nfstest
mount: wrong fs type, bad option, bad superblock on 192.168.2.139:/home/lsi/Linux_Stamp/RootFS/GRIP/grip_squeeze,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount.<type> helper program)
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

so i tried the /sbin/mount but No such file or directory.....


Below is the complete log file. Can someone point me to what i am doing wrong?

U-Boot> printenv
bootdelay=3
baudrate=115200
ethact=macb0
ethaddr=00:00:00:00:00:5b
bootcmd=cp.b 0xD0042000 0x20800000 0x210000; bootm 0x20800000
filesize=1D4FE8
fileaddr=20800000
autoload=no
gatewayip=192.168.2.1
netmask=255.255.255.0
ipaddr=192.168.2.115
serverip=192.168.2.139
ip=ip=192.168.2.115:192.168.2.139:192.168.2.1:255.255.255.0::eth0:off
nwhwconf=nwhwconf=device:eth0,hwaddr:00:00:00:00:00:5b
defbootargs=mem=32M console=ttyS0,115200 rootdelay=0 ip=192.168.2.115 ubi.mtd=1 root=ubi0_0 rootfstype=ubifs
stdin=serial
stdout=serial
stderr=serial
nfsrootpath=/home/lsi/Linux_Stamp/RootFS/GRIP/grip_squeeze
nfsbootargs=mem=32M console=ttyS0,115200 rootdelay=0 ip=dhcp rw root=/dev/nfs nfsroot=192.168.2.139:/home/lsi/Linux_Stamp/RootFS/GRIP/grip_squeeze
nfsroot=192.168.2.139:/home/lsi/Linux_Stamp/RootFS/GRIP/grip_squeeze
bootargs=mem=32M console=ttyS0,115200 rootdelay=0 ip=dhcp rw root=/dev/nfs nfsroot=192.168.2.139:/home/lsi/Linux_Stamp/RootFS/GRIP/grip_squeeze

Environment size: 957/16892 bytes
U-Boot> tftp 20800000 uImage
macb0: link up, 100Mbps full-duplex (lpa: 0xcde1)
Using macb0 device
TFTP from server 192.168.2.139; our IP address is 192.168.2.115
Filename 'uImage'.
Load address: 0x20800000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #########################################
done
Bytes transferred = 1873284 (1c9584 hex)
U-Boot> bootm 20800000
## Booting kernel from Legacy Image at 20800000 ...
   Image Name:   Linux-2.6.31.6
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1873220 Bytes =  1.8 MB
   Load Address: 20008000
   Entry Point:  20008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux...................................................................................................................... done, booting .
Linux version 2.6.31.6 (lsi@ubuntu) (gcc version 4.5.2 (Sourcery G++ Lite 2011.03-41) ) #1 Thu Dec 29 17:40:22 EST 2011
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Atmel AT91SAM9260-EK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: mem=32M console=ttyS0,115200 rootdelay=0 ip=dhcp rw root=/dev/nfs nfsroot=192.168.2.139:/home/lsi/Linux_Stamp/RootFS/GRIP/grip_squee
PID hash table entries: 128 (order: 7, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 28672KB available (3280K code, 273K data, 116K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:192
AT91: 96 gpio irqs in 3 banks
Console: colour dummy device 80x30
console [ttyS0] enabled
Calibrating delay loop... 98.91 BogoMIPS (lpj=494592)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
msgmni has been set to 56
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered (default)
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
atmel_usart.1: ttyS1 at MMIO 0xfffb0000 (irq = 6) is a ATMEL_SERIAL
atmel_usart.2: ttyS2 at MMIO 0xfffb4000 (irq = 7) is a ATMEL_SERIAL
brd: module loaded
ssc ssc.0: Atmel SSC device at 0xc2880000 (irq 14)
MACB_mii_bus: probed
eth0: Atmel MACB at 0xfffc4000 irq 21 (00:00:00:00:00:5b)
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ffffffff:00, irq=-1)
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit)
AT91 NAND: 8-bit, Hardware ECC
Scanning device for bad blocks
Bad eraseblock 239 at 0x000001de0000
Bad eraseblock 531 at 0x000004260000
Bad eraseblock 892 at 0x000006f80000
Bad eraseblock 1237 at 0x000009aa0000
Bad eraseblock 1595 at 0x00000c760000
Bad eraseblock 1628 at 0x00000cb80000
Creating 2 MTD partitions on "atmel_nand":
0x000000000000-0x000000040000 : "Partition 1"
ftl_cs: FTL header not found.
0x000000040000-0x000010000000 : "Partition 2"
ftl_cs: FTL header not found.
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: irq 20, io mem 0x00500000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
udc: at91_udc version 3 May 2006
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
i2c-gpio i2c-gpio: using pins 55 (SDA) and 56 (SCL)
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
Sending DHCP requests .
eth0: link up (100/Full)
..... timed out!
IP-Config: Retrying forever (NFS root)...
eth0: link down
eth0: link up (100/Full)
Sending DHCP requests ...
                                                                    


Thanks
-Raj

On Fri, May 13, 2011 at 1:00 AM, Paul Thomas <pthom...@gmail.com> wrote:
OK, here's the new emdebian grip squeeze fs:
http://linuxstamp.budgetdedicated.com/index.php?dir=lnst2_9g20/rootfs/&file=grip_squeeze_20110512.tar.bz2

I didn't know about init= before, that could come in handy sometimes.

thanks,
Paul


Paul Thomas

unread,
Dec 31, 2011, 9:52:04 PM12/31/11
to linux...@googlegroups.com
To do it for a root nfs from bootargs you'll want to do something like rootnfs=ip_addr:path you can also try ip=ip_address instead of ip=dhcp. As far as why it doesn't work once it's booted, you probably need the debian nfs stuff installed, that might be just nfs-utils.

thanks,
Paul

--
You received this message because you are subscribed to the Google Groups "linuxstamp" group.
To post to this group, send email to linux...@googlegroups.com.
To unsubscribe from this group, send email to linuxstamp+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/linuxstamp?hl=en.

cppdev programmer

unread,
Jan 1, 2012, 12:30:57 PM1/1/12
to linux...@googlegroups.com
Hi Paul,

I already tried that approach of ip=ip_address and it has not much change..

Here are the boot args
bootargs=mem=32M console=ttyS0,115200 rootdelay=0 ip=192.168.2.115 rw root=/dev/nfs nfsroot=192.168.2.139:/home/lsi/Linux_Stamp/RootFS/GRIP/grip_squeeze

and I read in few forums on ip param and tried another variant...
bootargs=mem=32M console=ttyS0,115200 rootdelay=0 ip=192.168.2.115:192.168.2.139:192.168.2.1:255.255.255.0::eth0:off rw root=/dev/nfs
nfsroot=192.168.2.139:/home/lsi/Linux_Stamp/RootFS/GRIP/grip_squeeze

any ideas on this errror ---  Root-NFS: Server returned error -5

and here is the log

U-Boot> bootm 20800000
## Booting kernel from Legacy Image at 20800000 ...
   Image Name:   Linux-2.6.31.6
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1873220 Bytes =  1.8 MB
   Load Address: 20008000
   Entry Point:  20008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux...................................................................................................................... done, booting .
Linux version 2.6.31.6 (lsi@ubuntu) (gcc version 4.5.2 (Sourcery G++ Lite 2011.03-41) ) #1 Thu Dec 29 17:40:22 EST 2011
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Atmel AT91SAM9260-EK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: mem=32M console=ttyS0,115200 rootdelay=0 ip=192.168.2.115 rw root=/dev/nfs nfsroot=192.168.2.139:/home/lsi/Linux_Stamp/RootFS/GRIP/e
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
     device=eth0, addr=192.168.2.115, mask=255.255.255.0, gw=255.255.255.255,
     host=192.168.2.115, domain=, nis-domain=(none),
     bootserver=255.255.255.255, rootserver=192.168.2.139, rootpath=
Looking up port of RPC 100003/2 on 192.168.2.139
eth0: link up (100/Full)
rpcbind: server 192.168.2.139 not responding, timed out
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 192.168.2.139
rpcbind: server 192.168.2.139 not responding, timed out
Root-NFS: Unable to get mountd port number from server, using default
Root-NFS: Server returned error -5 while mounting /home/lsi/Linux_Stamp/RootFS/GRIP/grip_squeeze
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[<c0029e94>] (unwind_backtrace+0x0/0xcc) from [<c028f8c4>] (panic+0x3c/0x108)
[<c028f8c4>] (panic+0x3c/0x108) from [<c0008ee4>] (mount_block_root+0x1bc/0x1fc)
[<c0008ee4>] (mount_block_root+0x1bc/0x1fc) from [<c0009274>] (prepare_namespace+0x164/0x1b8)
[<c0009274>] (prepare_namespace+0x164/0x1b8) from [<c0008b48>] (kernel_init+0xd4/0x108)
[<c0008b48>] (kernel_init+0xd4/0x108) from [<c0026720>] (kernel_thread_exit+0x0/0x8)
Reply all
Reply to author
Forward
0 new messages