Hello,
I'm setting up an NFS server for a ROACH-1 board. I've done this a couple
of times before but this time there's an issue I've never encountered. The
ROACH board is assigned the correct ip address (dhcp is working) and seems
to load the uImage just fine. However, when it attempts to mount the root
directory it suddenly fails and the kernel panics (see attached minicom
output). My issue is very similar to this post from 2015
<https://casper.berkeley.narkive.com/5CLtX8BR/roach1-not-working> except
I'm not getting a useful NFS error. I don't have another machine on this
subnet that I can use to test the NFS mounting from, but I am able to mount
that directory using 'sudo mount 192.168.4.12:/srv/roach_boot_etch /mnt'
from the same host (I'm not sure if this undermines NFS and just remounts
the target).
Has anyone else seen something like this before? My ethernet connect is
100Mbps, my exports match what's in the dnsmasq configuration file, I've
made sure to restart all services (nfs-kernel-server, dnsmasq, etc.) after
all changes, and permissions for the boot/etch directories not restricted
(currently all is 777, but there is no change when using 755). In fact, as
far as I can tell, my current configuration is identical to others that I
have working. I've included the contents of my dnsmasq config, dnsmasq log,
the output of rpcinfo -p, exportfs -rva, and showmount -e to this message
as well. Any suggests for what to try next at this point would be greatly
appreciated!

Best,
LD

-- 
You received this message because you are subscribed to the Google Groups 
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CALQjEoW7%3Dv%2BDcruFFx9CPuhVmbMORwv7%3DENhTRFmbPbcAJT72w%40mail.gmail.com.

U-Boot 2008.10-svn3231 (Jul 15 2010 - 14:58:38)

CPU:   AMCC PowerPC 440EPx Rev. A at 533.333 MHz (PLB=133, OPB=66, EBC=66 MHz)
       No Security/Kasumi support
       Bootstrap Option C - Boot ROM Location EBC (16 bits)
       32 kB I-Cache 32 kB D-Cache
Board: Roach
I2C:   ready
DTT:   1 FAILED INIT
DRAM:  (spd v1.3) dram: notice: ecc ignored
 1 GB
FLASH: 64 MB
USB:   Host(int phy) Device(ext phy)
Net:   ppc_4xx_eth0

Roach Information
Serial Number:    040226
Monitor Revision: 10.1.1843
CPLD Revision:    8.0.1588
Waiting for PHY auto negotiation to complete.. done
ENET Speed is 100 Mbps - FULL duplex connection (EMAC0)
BOOTP broadcast 1
*** Unhandled DHCP Option in OFFER/ACK: 28
*** Unhandled DHCP Option in OFFER/ACK: 28
DHCP client bound to address 192.168.4.21
Using ppc_4xx_eth0 device
TFTP from server 192.168.4.12; our IP address is 192.168.4.21
Filename 'uImage'.
Load address: 0x400000
Loading: *#################################################################
         ##############################
done
Bytes transferred = 1390149 (153645 hex)
WARNING: adjusting available memory to 30000000
## Booting kernel from Legacy Image at 00400000 ...
   Image Name:   Linux-2.6.25-svn3489
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1390085 Bytes =  1.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
id mach(): done
MMU:enter
MMU:hw init
MMU:mapin
MMU:setio
MMU:exit
setup_arch: enter
setup_arch: bootmem
ocp: exit
arch: exit
Linux version 2.6.25-svn3489 (dave@lapster) (gcc version 4.2.2) #6 Fri Aug 12 
09:36:28 SAST 2011
AMCC PowerPC 440EPx Roach Platform
Zone PFN ranges:
  DMA             0 ->   262143
  Normal     262143 ->   262143
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0:        0 ->   262143
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096
Kernel command line: console=ttyS0,115200 
mtdparts=physmap-flash.0:1792k(linux),256k@0x1c0000(fdt),8192k@0x200000(root),54656k@0xa00000(usr),256k@0x3f60000(env),384k@0x3fa0000(uboot)fdt_addr=0xfc1c0000
 root=192.168.4.12:/srv/roach_boot/etch ip=dhcp
PID hash table entries: 4096 (order: 12, 16384 bytes)
console [ttyS0] enabled
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1036416k available (2084k kernel code, 720k data, 132k init, 0k highmem)
Mount-cache hash table entries: 512
BORPH version CVS-$Revision: 1.10 $ Initialized
net_namespace: 152 bytes
NET: Registered protocol family 16
             
PCI: Probing PCI hardware
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: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
hwrtype_roach version CVS-$Revision: 1.1 $ registered
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
io scheduler noop registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = 0) is a 16550A
serial8250: ttyS1 at MMIO 0x0 (irq = 1) is a 16550A
serial8250: ttyS2 at MMIO 0x0 (irq = 35) is a 16550A
serial8250: ttyS3 at MMIO 0x0 (irq = 36) is a 16550A
brd: module loaded
PPC 4xx OCP EMAC driver, version 3.54
mal0: initialized, 2 TX channels, 2 RX channels
rgmii0: input 0 in RGMII mode
eth0: emac0, MAC 02:00:00:04:02:26
eth0: found Generic MII PHY (0x1e)
rgmii0: input 1 in RGMII mode
emac1: can't find PHY!
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
Driver 'sd' needs updating - please use bus_type methods
physmap platform flash device: 04000000 at fc000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
physmap-flash.0: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
mtd: bad character after partition (f)
6 cmdlinepart partitions found on MTD device physmap-flash.0
Creating 6 MTD partitions on "physmap-flash.0":
0x00000000-0x001c0000 : "linux"
0x001c0000-0x00200000 : "fdt"
0x00200000-0x00a00000 : "root"
0x00a00000-0x03f60000 : "usr"
0x03f60000-0x03fa0000 : "env"
0x03fa0000-0x04000000 : "uboot"
ppc-soc-ohci ppc-soc-ohci.0: USB Host Controller
ppc-soc-ohci ppc-soc-ohci.0: new USB bus registered, assigned bus number 1
ppc-soc-ohci ppc-soc-ohci.0: irq 21, io mem 0xe0000400
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: USB Host Controller
usb usb1: Manufacturer: Linux 2.6.25-svn3489 ohci_hcd
usb usb1: SerialNumber: PPC-SOC USB
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
i2c /dev entries driver
IBM IIC driver v2.1
ibm-iic0: using standard (100 kHz) mode
ibm-iic1: using standard (100 kHz) mode
rmon: found Roach Monitor - Rev 10.1.1843
rmon_sensors: initialized 23 sensors
rmon 0-000f: rtc core: registered rmon as rtc0
roach_mmc: Roach MMC/SD driver
rmmc: initialized mmc
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rmon 0-000f: setting system clock to 2029-07-10 09:35:12 UTC (1878370512)
eth0: interrupt coalescing (RX:count=8 time=1000, TX:count=8 time=1000)
eth0: link is down
eth0: link is up, 100 FDX, pause enabled
Sending DHCP requests .., OK
IP-Config: Got DHCP answer from 192.168.4.12, my address is 192.168.4.21
IP-Config: Complete:
     device=eth0, addr=192.168.4.21, mask=255.255.255.0, gw=192.168.4.12,
     host=roach, domain=, nis-domain=(none),
     bootserver=192.168.4.12, rootserver=192.168.4.12, 
rootpath=/srv/roach_boot/etch
Looking up port of RPC 100003/2 on 192.168.4.12
Looking up port of RPC 100005/1 on 192.168.4.12
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "192.168.4.12:/srv/roach_boot/etch" or 
unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
0100       4096 ram0 (driver?)
0101       4096 ram1 (driver?)
0102       4096 ram2 (driver?)
0103       4096 ram3 (driver?)
0104       4096 ram4 (driver?)
0105       4096 ram5 (driver?)
0106       4096 ram6 (driver?)
0107       4096 ram7 (driver?)
0108       4096 ram8 (driver?)
0109       4096 ram9 (driver?)
010a       4096 ram10 (driver?)
010b       4096 ram11 (driver?)
010c       4096 ram12 (driver?)
010d       4096 ram13 (driver?)
010e       4096 ram14 (driver?)
010f       4096 ram15 (driver?)
1f00       1792 mtdblock0 (driver?)
1f01        256 mtdblock1 (driver?)
1f02       8192 mtdblock2 (driver?)
1f03      54656 mtdblock3 (driver?)
1f04        256 mtdblock4 (driver?)
1f05        384 mtdblock5 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
Rebooting in 180 seconds..
Apr  8 22:47:11 dnsmasq[16438]: started, version 2.79 cachesize 150
Apr  8 22:47:11 dnsmasq[16438]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
Apr  8 22:47:11 dnsmasq-dhcp[16438]: DHCP, IP range 192.168.4.128 -- 192.168.4.254, lease time 12h
Apr  8 22:47:11 dnsmasq-dhcp[16438]: DHCP, sockets bound exclusively to interface enp2s0
Apr  8 22:47:11 dnsmasq-tftp[16438]: TFTP root is /srv/roach_boot/boot 
Apr  8 22:47:11 dnsmasq[16438]: reading /etc/resolv.conf
Apr  8 22:47:11 dnsmasq[16438]: using nameserver 127.0.0.53#53
Apr  8 22:47:11 dnsmasq[16438]: read /etc/hosts - 8 addresses
Apr  8 22:47:39 dnsmasq-dhcp[16438]: DHCPDISCOVER(enp2s0) 02:00:00:04:02:26 
Apr  8 22:47:39 dnsmasq-dhcp[16438]: DHCPOFFER(enp2s0) 192.168.4.21 02:00:00:04:02:26 
Apr  8 22:47:39 dnsmasq-dhcp[16438]: DHCPREQUEST(enp2s0) 192.168.4.21 02:00:00:04:02:26 
Apr  8 22:47:39 dnsmasq-dhcp[16438]: DHCPACK(enp2s0) 192.168.4.21 02:00:00:04:02:26 roach
Apr  8 22:47:39 dnsmasq-tftp[16438]: sent /srv/roach_boot/boot/uImage to 192.168.4.21
Apr  8 22:47:45 dnsmasq-dhcp[16438]: DHCPDISCOVER(enp2s0) 02:00:00:04:02:26 
Apr  8 22:47:45 dnsmasq-dhcp[16438]: DHCPOFFER(enp2s0) 192.168.4.21 02:00:00:04:02:26 
Apr  8 22:47:45 dnsmasq-dhcp[16438]: DHCPREQUEST(enp2s0) 192.168.4.21 02:00:00:04:02:26 
Apr  8 22:47:45 dnsmasq-dhcp[16438]: DHCPACK(enp2s0) 192.168.4.21 02:00:00:04:02:26 roach
Apr  9 01:23:33 dnsmasq[2870]: started, version 2.79 cachesize 150
Apr  9 01:23:33 dnsmasq[2870]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
Apr  9 01:23:33 dnsmasq-dhcp[2870]: DHCP, IP range 192.168.4.128 -- 192.168.4.254, lease time 12h
Apr  9 01:23:33 dnsmasq-dhcp[2870]: DHCP, sockets bound exclusively to interface enp2s0
Apr  9 01:23:33 dnsmasq-tftp[2870]: TFTP root is /srv/roach_boot/boot 
Apr  9 01:23:33 dnsmasq[2870]: reading /etc/resolv.conf
Apr  9 01:23:33 dnsmasq[2870]: using nameserver 127.0.0.53#53
Apr  9 01:23:33 dnsmasq[2870]: read /etc/hosts - 8 addresses
Apr  9 01:23:52 dnsmasq-dhcp[2870]: DHCPDISCOVER(enp2s0) 02:00:00:04:02:26 
Apr  9 01:23:52 dnsmasq-dhcp[2870]: DHCPOFFER(enp2s0) 192.168.4.21 02:00:00:04:02:26 
Apr  9 01:23:52 dnsmasq-dhcp[2870]: DHCPREQUEST(enp2s0) 192.168.4.21 02:00:00:04:02:26 
Apr  9 01:23:52 dnsmasq-dhcp[2870]: DHCPACK(enp2s0) 192.168.4.21 02:00:00:04:02:26 roach
Apr  9 01:23:53 dnsmasq-tftp[2870]: sent /srv/roach_boot/boot/uImage to 192.168.4.21
Apr  9 01:23:58 dnsmasq-dhcp[2870]: DHCPDISCOVER(enp2s0) 02:00:00:04:02:26 
Apr  9 01:23:58 dnsmasq-dhcp[2870]: DHCPOFFER(enp2s0) 192.168.4.21 02:00:00:04:02:26 
Apr  9 01:24:01 dnsmasq-dhcp[2870]: DHCPDISCOVER(enp2s0) 02:00:00:04:02:26 
Apr  9 01:24:01 dnsmasq-dhcp[2870]: DHCPOFFER(enp2s0) 192.168.4.21 02:00:00:04:02:26 
Apr  9 01:24:01 dnsmasq-dhcp[2870]: DHCPREQUEST(enp2s0) 192.168.4.21 02:00:00:04:02:26 
Apr  9 01:24:01 dnsmasq-dhcp[2870]: DHCPACK(enp2s0) 192.168.4.21 02:00:00:04:02:26 roach
# Configuration file for dnsmasq
# Edited for ROACH boot server

# We don't want dnsmasq to read /etc/resolv.conf or anything else
#no-resolv

# Assign the ROACH an IP address manually, based on its MAC
dhcp-host=02:00:00:04:02:26,192.168.4.21

# Have a DHCP address range for other things
dhcp-range=192.168.4.128,192.168.4.254,12h

# Set the location of the ROACH's root filesystem on the NFS server.
dhcp-option=17,192.168.4.12:/srv/roach_boot/etch

# Set the boot filename for BOOTP, which is what the ROACH boots over
dhcp-boot=uImage

# Enable dnsmasq's built-in TFTP server. Required for BOOTP.
enable-tftp

# Set the root directory for files availble via FTP.
tftp-root=/srv/roach_boot/boot

# Set the DHCP server to authoritative mode (then keep away from other
# networks!)
dhcp-authoritative

#Specify which ethernet interface you use to connect to the ROACH (eth0, eth1,
#eth2 ...)
interface=enp2s0

#May be useful if you have several ethernet interfaces
bind-interfaces
   program vers proto   port  service
    100000    4   tcp    111  portmapper
    100000    3   tcp    111  portmapper
    100000    2   tcp    111  portmapper
    100000    4   udp    111  portmapper
    100000    3   udp    111  portmapper
    100000    2   udp    111  portmapper
    100005    1   udp  44479  mountd
    100005    1   tcp  41165  mountd
    100005    2   udp  55874  mountd
    100005    2   tcp  42805  mountd
    100005    3   udp  57887  mountd
    100005    3   tcp  56017  mountd
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100227    3   tcp   2049
    100003    3   udp   2049  nfs
    100227    3   udp   2049
    100021    1   udp  57370  nlockmgr
    100021    3   udp  57370  nlockmgr
    100021    4   udp  57370  nlockmgr
    100021    1   tcp  34139  nlockmgr
    100021    3   tcp  34139  nlockmgr
    100021    4   tcp  34139  nlockmgr
exporting 192.168.4.0/24:/srv/roach_boot/etch
exporting 192.168.4.0/24:/srv/roach_boot
Export list for lcc3:
/srv/roach_boot/etch 192.168.4.0/24
/srv/roach_boot      192.168.4.0/24

Reply via email to