Bug 4269

Summary: routerstation/mpc8315e: can not boot with 3.4 kernel
Product: [Build System, Metadata & Runtime] BSPs Reporter: Yi Zhao <yi.zhao>
Component: bsps-meta-yoctoAssignee: Bruce Ashfield <bruce.ashfield>
Status: VERIFIED FIXED QA Contact:
Severity: critical    
Priority: High CC: jessica.zhang, ke.zou, ning.zhang, richard.purdie, sgw, yi.zhao
Version: 1.4   
Target Milestone: 1.4 M6   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Yi Zhao 2013-04-12 07:14:15 UTC
Image location: http://autobuilder.yoctoproject.org/pub/nightly/20130411-3/
Git rev: dylan/dab237bc6a7679dfeaa981c14736aedc7b04ecb9

The routerstation and mpc8315e can not boot up via nfs.

routerstation boot log:
#################
Board: Ubiquiti RouterStation PRO
 Arch: ar7100pro
  RAM: 0x80000000-0x88000000, [0x8003bf00-0x87fe1000] available
Flash: 0xbf000000-0xc0000000, in 256 blocks of 0x00010000 bytes each
== Executing boot script in 10.000 seconds - enter ^C to abort
RedBoot> ip_address -l 128.224.178.127 -h 128.224.178.20
IP: 128.224.178.127/255.255.255.0, Gateway: 128.224.162.1
Default server: 128.224.178.20
RedBoot> load -v vlm-boards/19255/kernel
Using default protocol (TFTP)
Entry point: 0x803a4400, address range: 0x80060000-0x80537c54
RedBoot> exec -c "console=ttyS0,115200 root=/dev/nfs rw nfsroot=128.224.178.20:/export/pxeboot/vlm-boards/19255/rootfs ip=128.224.178.127:128.224.178.20:128.224.178.1:255.255.254.0::eth0:off board=UBNT-RSPRO"
Now booting linux kernel:
 Base address 0x80050000 Entry 0x803a4400
 Cmdline : console=ttyS0,115200 root=/dev/nfs rw nfsroot=128.224.178.20:/export/pxeboot/vlm-boards/19255/rootfs ip=128.224.178.127:128.224.178.20:128.224.178.1:255.255.254.0::eth0:off board=UBNT-RSPRO
 memsize=0x08000000
 modetty0=0,n,8,1,hw
 board=RouterStation PRO
 ethaddr=00.00.00.00.46.61
Linux version 3.4.36-yocto-standard (pokybuild@ab10.i.yoctoproject.org) (gcc version 4.7.2 (GCC) ) #1 Thu Apr 11 14:59:48 UTC 2013
bootconsole [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
SoC: Atheros AR7161 rev 2
Clocks: CPU:720.000MHz, DDR:360.000MHz, AHB:180.000MHz, Ref:40.000MHz
Determined physical RAM map:
 memory: 08000000 @ 00000000 (usable)
Zone PFN ranges:
  Normal   0x00000000 -> 0x00008000
Movable zone start PFN for each node
Early memory PFN ranges
    0: 0x00000000 -> 0x00008000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line:   console=ttyS0,115200 root=/dev/nfs rw nfsroot=128.224.178.20:/export/pxeboot/vlm-boards/19255/rootfs ip=128.224.178.127:128.224.178.20:128.224.178.1:255.255.254.0::eth0:off board=UBNT-RSPRO ethaddr=00.00.00.00.46.61
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=0001e202
Readback ErrCtl register=0001e202
Memory: 124364k/131072k available (3399k kernel code, 6708k reserved, 1372k data, 184k init, 0k highmem)
SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:48
Console: colour dummy device 80x25
Calibrating delay loop... 477.18 BogoMIPS (lpj=954368)
pid_max: default: 32768 minimum: 301
Security Framework initialized
Mount-cache hash table entries: 512
devtmpfs: initialized
gpiochip_add: registered GPIOs 0 to 15 on device: ath79
MIPS: machine is Ubiquiti RouterStation Pro
registering PCI controller with io_map_base unset
bio: create slab <bio-0> at 0
vgaarb: loadedSCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [mem 0x10000000-0x16ffffff]
pci_bus 0000:00: root bus resource [io  0x0000]
Switching to clocksource MIPS
squashfs: version 4.0 (2009/01/31) Phillip Lougher
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
ROMFS MTD (C) 2007 Red Hat, Inc.
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
loop: module loaded
ath79-spi ath79-spi: master is unqueued, this is deprecated
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-platform ehci-platform: Generic Platform EHCI Controller
ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
ehci-platform ehci-platform: irq 3, io mem 0x1b000000
ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-platform ohci-platform: Generic Platform OHCI Controller
ohci-platform ohci-platform: new USB bus registered, assigned bus number 2
ohci-platform ohci-platform: irq 14, io mem 0x1c000000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
i8042: i8042 controller selftest timeout
Trying to free nonexistent resource <0000000000000060-000000000000006f>
mousedev: PS/2 mouse device common for all mice
watchdog: Software Watchdog: cannot register miscdev on minor=130 (err=-16)
watchdog: error registering /dev/watchdog (err=-16)
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: multipath personality registered for level -4
md: faulty personality registered for level -5
device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
oprofile: using mips/24K performance monitoring.
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
VFS: Cannot open root device "nfs" or unknown-block(0,255): error -6
Please append a correct "root=" boot option; here are the available partitions:
VFS: Unable to mount root fs on unknown-block(0,255)
User configuration error - no valid root filesystem found
Kernel panic - not syncing: Invalid configuration from end user prevents continuing

###################


mpc8315e boot log:
##################
U-Boot 2012.04.01 (Jun 29 2012 - 13:48:03)MPC83XX

Reset Status: Software Hard, External/Internal Soft, External/Internal Hard

CPU:   e300c3, MPC8315E, Rev: 1.2 at 400 MHz, CSB: 133.333 MHz
Board: Freescale MPC8315ERDB Rev 1.0
I2C:   ready
DRAM:  128 MiB (DDR2, 32-bit, ECC off, 266.667 MHz)
Flash: 8 MiB
NAND:  32 MiB
PCIE0: No link
PCIE1: No link
In:    serial
Out:   serial
Err:   serial
Net:   eTSEC0, eTSEC1
Hit any key to stop autoboot:  0 
Speed: 100, full duplex
Using eTSEC0 device
TFTP from server 128.224.165.20; our IP address is 128.224.178.141
Filename 'vlm-boards/17652/kernel'.
Load address: 0x1000000
Loading: #################################################################
         #################################################################
         ############################################
done
Bytes transferred = 2552265 (26f1c9 hex)
Speed: 100, full duplex
Using eTSEC0 device
TFTP from server 128.224.165.20; our IP address is 128.224.178.141
Filename 'vlm-boards/17652/dtb'.
Load address: 0xa00000
Loading: ##
done
Bytes transferred = 21042 (5232 hex)
## Booting kernel from Legacy Image at 01000000 ...
   Image Name:   Linux-3.4.36-yocto-standard
   Created:      2013-04-11  14:56:26 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    2552201 Bytes = 2.4 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 00a00000
   Booting using the fdt blob at 0x00a00000
   Uncompressing Kernel Image ... OK
   Loading Device Tree to 07f0f000, end 07f17231 ... OK
NOTICE: No or unknown board_type hwconfig specified.
        Assuming board with TSEC1.
Using MPC831x RDB machine description
Linux version 3.4.36-yocto-standard (pokybuild@autobuilder04) (gcc version 4.7.2 (GCC) ) #1 Thu Apr 11 14:56:24 UTC 2013
bootconsole [udbg0] enabled
setup_arch: bootmem
mpc831x_rdb_setup_arch()
Found FSL PCI host bridge at 0x00000000e0008500. Firmware bus number: 0->0
PCI host bridge /pci@e0008500 (primary) ranges:
 MEM 0x0000000090000000..0x000000009fffffff -> 0x0000000090000000 
 MEM 0x0000000080000000..0x000000008fffffff -> 0x0000000080000000 Prefetch
  IO 0x00000000e0300000..0x00000000e03fffff -> 0x0000000000000000
No pci config register base in dev tree, using default
Found FSL PCI host bridge at 0x00000000e0009000. Firmware bus number: 0->255
PCI host bridge /pcie@e0009000  ranges:
 MEM 0x00000000a0000000..0x00000000afffffff -> 0x00000000a0000000 
  IO 0x00000000b1000000..0x00000000b17fffff -> 0x0000000000000000
No pci config register base in dev tree, using default
Found FSL PCI host bridge at 0x00000000e000a000. Firmware bus number: 0->255
PCI host bridge /pcie@e000a000  ranges:
 MEM 0x00000000c0000000..0x00000000cfffffff -> 0x00000000c0000000 
  IO 0x00000000d1000000..0x00000000d17fffff -> 0x0000000000000000
arch: exit
Zone PFN ranges:
  DMA      0x00000000 -> 0x00008000
  Normal   empty
Movable zone start PFN for each node
Early memory PFN ranges
    0: 0x00000000 -> 0x00008000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: root=/dev/nfs rw nfsroot=128.224.165.20:/export/pxeboot/vlm-boards/17652/rootfs/ ip=128.224.178.141:128.224.165.20:128.224.178.1:::eth0:off console=ttyS0,115200
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 124556k/131072k available (4924k kernel code, 6516k reserved, 176k data, 175k bss, 152k init)
Kernel virtual memory layout:
  * 0xfffdf000..0xfffff000  : fixmap
  * 0xfcef7000..0xfe000000  : early ioremap
  * 0xc9000000..0xfcef7000  : vmalloc & ioremap
SLUB: Genslabs=15, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:512 nr_irqs:512 16
IPIC (128 IRQ sources) at c9000700
clocksource: timebase mult[1e000005] shift[24] registered
Console: colour dummy device 80x25
pid_max: default: 32768 minimum: 301
Security Framework initialized
Mount-cache hash table entries: 512
devtmpfs: initialized
             
PCI: Probing PCI hardware
PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io  0x0000-0xfffff]
pci_bus 0000:00: root bus resource [mem 0x90000000-0x9fffffff]
pci_bus 0000:00: root bus resource [mem 0x80000000-0x8fffffff pref]
PCI host bridge to bus 0001:01
pci_bus 0001:01: root bus resource [io  0xff7fe000-0xffffdfff] (bus address [0x0000-0x7fffff])
pci_bus 0001:01: root bus resource [mem 0xa0000000-0xafffffff]
PCI host bridge to bus 0002:02
pci_bus 0002:02: root bus resource [io  0xfeffc000-0xff7fbfff] (bus address [0x0000-0x7fffff])
pci_bus 0002:02: root bus resource [mem 0xc0000000-0xcfffffff]
bio: create slab <bio-0> at 0
Freescale Elo / Elo Plus DMA driver
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource timebase
fsl-elo-dma e00082a8.dma: #0 (fsl,elo-dma-channel), irq 71
fsl-elo-dma e00082a8.dma: #1 (fsl,elo-dma-channel), irq 71
fsl-elo-dma e00082a8.dma: #2 (fsl,elo-dma-channel), irq 71
fsl-elo-dma e00082a8.dma: #3 (fsl,elo-dma-channel), irq 71
ROMFS MTD (C) 2007 Red Hat, Inc.
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xe0004500 (irq = 16) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
serial8250.0: ttyS1 at MMIO 0xe0004600 (irq = 17) is a 16550A
loop: module loaded
fsl-sata e0018000.sata: Sata FSL Platform/CSB Driver init
scsi0 : sata_fsl
ata1: SATA max UDMA/133 irq 44
fsl-sata e0019000.sata: Sata FSL Platform/CSB Driver init
scsi1 : sata_fsl
ata2: SATA max UDMA/133 irq 45
fe000000.flash: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000001 Chip ID 0x001001
Amd/Fujitsu Extended Query Table at 0x0040
  Amd/Fujitsu Extended Query version 1.3.
fe000000.flash: Swapping erase regions for top-boot CFI table.
number of CFI chips: 1
fsl_spi e0007000.spi: master is unqueued, this is deprecated
fsl_spi e0007000.spi: at 0xc9020000 (irq = 19), CPU mode
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
/immr@e0000000/usb@23000: Invalid 'dr_mode' property, fallback to host mode
fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
fsl-ehci fsl-ehci.0: irq 38, io mem 0xe0023000
fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mousedev: PS/2 mouse device common for all mice
i2c /dev entries driver
mpc-i2c e0003000.i2c: timeout 1000000 us
at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
rtc-ds1307 0-0068: rtc core: registered ds1339 as rtc0
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: multipath personality registered for level -4
md: faulty personality registered for level -5
device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
talitos e0030000.crypto: hwrng
talitos e0030000.crypto: fsl,sec3.3 algorithms registered in /proc/crypto
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
oprofile: using timer interrupt.
rtc-ds1307 0-0068: setting system clock to 2013-04-12 07:09:55 UTC (1365750595)
usb 1-1: new high-speed USB device number 2 using fsl-ehci
hub 1-1:1.0: USB hub found
ata2: No Device OR PHYRDY change,Hstatus = 0xa0000000
ata2: SATA link down (SStatus 0 SControl 300)
ata1: Signature Update detected @ 504 msecs
hub 1-1:1.0: 4 ports detected
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.00: ATA-8: WDC WD1600AAJS-22L7A0, 01.03E01, max UDMA/133
ata1.00: 312581808 sectors, multi 0: LBA48 NCQ (depth 16/32)
ata1.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access     ATA      WDC WD1600AAJS-2 01.0 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 312581808 512-byte logical blocks: (160 GB/149 GiB)
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1 sda2 sda3 sda4 < sda5 >
sd 0:0:0:0: [sda] Attached SCSI disk
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
VFS: Cannot open root device "nfs" or unknown-block(0,255): error -6
Please append a correct "root=" boot option; here are the available partitions:
1f00            8192 mtdblock0  (driver?)
0800       156290904 sda  driver: sd
  0801        41943040 sda1 00000000-0000-0000-0000-000000000000
  0802        41943040 sda2 00000000-0000-0000-0000-000000000000
  0803        41943040 sda3 00000000-0000-0000-0000-000000000000
  0804               1 sda4 00000000-0000-0000-0000-000000000000
  0805        30459736 sda5 00000000-0000-0000-0000-000000000000
VFS: Unable to mount root fs on unknown-block(0,255)
User configuration error - no valid root filesystem found
Kernel panic - not syncing: Invalid configuration from end user prevents continuing
Call Trace:
[c7829e70] [c0007ad4] show_stack+0x48/0x150 (unreliable)
[c7829eb0] [c034b028] panic+0xc0/0x1f8
[c7829f00] [c04a9ed4] mount_block_root+0x27c/0x2a0
[c7829f50] [c04aa0bc] prepare_namespace+0x15c/0x1a4
[c7829f60] [c04a9b10] kernel_init+0x1dc/0x1e0
[c7829ff0] [c000d548] kernel_thread+0x4c/0x68
Rebooting in 180 seconds..

######################
Comment 1 Bruce Ashfield 2013-04-12 12:38:04 UTC
Can someone grep the kernel config for NFS root options ? Mine are all present and accounted
for:

> grep NFS 3.8.4+gitAUTOINC+27b63fdbd25ad1a37bacc05f49a205c150d21779_11998bd1f44b21cd0b8c0ca11cbd36865f14bfdc-r4.0/linux-routerstationpro-standard-build/.config 
CONFIG_NFS_FS=y
CONFIG_NFS_V2=y
CONFIG_NFS_DEF_FILE_IO_SIZE=4096
CONFIG_NFS_V3=y
# CONFIG_NFS_V3_ACL is not set
CONFIG_NFS_V4=y
# CONFIG_NFS_SWAP is not set
# CONFIG_NFS_V4_1 is not set
CONFIG_ROOT_NFS=y
# CONFIG_NFS_USE_LEGACY_DNS is not set
CONFIG_NFS_USE_KERNEL_DNS=y
# CONFIG_NFSD is not set
CONFIG_NFS_COMMON=y
Comment 2 Bruce Ashfield 2013-04-12 14:42:52 UTC
I just built and booted this:

root@mpc8315e-rdb:~# uname -a
Linux mpc8315e-rdb 3.4.36-yocto-standard #1 PREEMPT Fri Apr 12 10:28:27 EDT 2013 ppc GNU/Linux
root@mpc8315e-rdb:~# cat /proc/cmdline 
root=/dev/nfs rw nfsroot=128.224.146.167:/nfsroot/mpc8315erdb ip=128.224.146.168:128.224.146.167:128.224.146.1:255.255.254.0::eth0:off console=ttyS0,115200

With a fix I'm doing for the beagleboard, so at the minimum, this issue will be resolved with that bug.

Patches are forthcoming.
Comment 3 Bruce Ashfield 2013-04-12 15:28:56 UTC
root@routerstationpro:~# uname -a
Linux routerstationpro 3.4.36-yocto-standard #1 PREEMPT Fri Apr 12 11:05:35 EDT 2013 mips GNU/Linux
root@routerstationpro:~# cat /proc/cmdline 
  console=ttyS0,115200 root=/dev/nfs rw nfsroot=128.224.146.167:/nfsroot/rsp ip=128.224.146.168:128.224.146.167:128.224.146.1:255.255.254.0::eth0:off ethaddr=00.15.6d.c5.c3.ad board=UBNT-RSPRO
Comment 4 Bruce Ashfield 2013-04-12 15:56:42 UTC
Patch sent to Richard for this issue.
Comment 6 Yi Zhao 2013-04-19 09:44:49 UTC
Verified with dylan branch: 789b2b7e0cca404ff8ba8ed5ba823d215e6ba5b4