Bug 5460

Summary: qemuarm fails to boot - kernel panic - Cannot open root device - after many sym0: SCSI BUS has been reset messages
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Stefan Stanacar <sstncr>
Component: kernelAssignee: Bruce Ashfield <bruce.ashfield>
Status: VERIFIED FIXED QA Contact: Stefan Stanacar <sstncr>
Severity: normal    
Priority: Medium+ CC: bogdanx.a.voiculescu, bruce.ashfield, sgw, tom.zanussi
Version: 1.6   
Target Milestone: 1.6   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Stefan Stanacar 2013-11-05 08:53:34 UTC
BB_VERSION        = "1.21.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Fedora-19"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "qemuarm"
DISTRO            = "poky"
DISTRO_VERSION    = "1.5+snapshot-20131105"
TUNE_FEATURES     = "armv5 thumb dsp"
TARGET_FPU        = "soft"
meta              
meta-yocto        
meta-yocto-bsp    = "master:9160f376065752e2e92c8b37ee9a80d0eb86b53b"


bitbake core-image-sato


runqemu qemuarm core-image-sato serial

Assuming core-image-sato really means /home/stefans/yocto/poky/build/tmp/deploy/images/qemuarm/core-image-sato-qemuarm.ext3

Continuing with the following parameters:
KERNEL: [/home/stefans/yocto/poky/build/tmp/deploy/images/qemuarm/zImage-qemuarm.bin]
ROOTFS: [/home/stefans/yocto/poky/build/tmp/deploy/images/qemuarm/core-image-sato-qemuarm.ext3]
FSTYPE: [ext3]
Acquiring lockfile for tap0...
Using preconfigured tap device 'tap0'
If this is not intended, use flock on /tmp/qemu-tap-locks/tap0.lock to make runqemu skip tap0.
Interrupt character is '^]'
Running qemu-system-arm...
/home/stefans/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-arm -kernel /home/stefans/yocto/poky/build/tmp/deploy/images/qemuarm/zImage-qemuarm.bin -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=no,downscript=no -M versatilepb -hda /home/stefans/yocto/poky/build/tmp/deploy/images/qemuarm/core-image-sato-qemuarm.ext3 -no-reboot -show-cursor -usb -usbdevice wacom-tablet -no-reboot -serial stdio -m 128 --append "root=/dev/sda rw console=ttyAMA0,115200 console=tty ip=192.168.7.2::192.168.7.1:255.255.255.0 mem=128M highres=off console=ttyS0"
Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.10.17-yocto-standard (stefans@firebird) (gcc version 4.8.1 (GCC) ) #1 PREEMPT Tue Nov 5 10:31:47 EET 2013
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00093177
CPU: VIVT data cache, VIVT instruction cache
Machine: ARM-Versatile PB
Memory policy: ECC disabled, Data cache writeback
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: root=/dev/sda rw console=ttyAMA0,115200 console=tty ip=192.168.7.2::192.168.7.1:255.255.255.0 mem=128M highres=off  console=ttyS0
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)
allocated 262144 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Memory: 128MB = 128MB total
Memory: 120336k/120336k available, 10736k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc07b6b70   (7867 kB)
      .init : 0xc07b7000 - 0xc0806e2c   ( 320 kB)
      .data : 0xc0808000 - 0xc085c468   ( 338 kB)
       .bss : 0xc085c468 - 0xc0916070   ( 744 kB)
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptible hierarchical RCU implementation.
NR_IRQS:224
VIC @f1140000: id 0x00041190, vendor 0x41
FPGA IRQ chip 0 "SIC" @ f1003000, 13 irqs
Console: colour dummy device 80x30
console [tty0] enabled
Calibrating delay loop... 758.16 BogoMIPS (lpj=3790848)
pid_max: default: 32768 minimum: 301
Security Framework initialized
Mount-cache hash table entries: 512
Initializing cgroup subsys debug
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
CPU: Testing write buffer coherency: ok
ftrace: allocating 20582 entries in 61 pages
Setting up static identity map for 0xc058c168 - 0xc058c1c0
devtmpfs: initialized
xor: measuring software checksum speed
   arm4regs  :   797.600 MB/sec
   8regs     :   922.800 MB/sec
   32regs    :   894.800 MB/sec
xor: using function: 8regs (922.800 MB/sec)
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
Serial: AMBA PL011 UART driver
dev:f1: ttyAMA0 at MMIO 0x101f1000 (irq = 44) is a PL011 rev1
console [ttyAMA0] enabled
dev:f2: ttyAMA1 at MMIO 0x101f2000 (irq = 45) is a PL011 rev1
dev:f3: ttyAMA2 at MMIO 0x101f3000 (irq = 46) is a PL011 rev1
fpga:09: ttyAMA3 at MMIO 0x10009000 (irq = 70) is a PL011 rev1
PCI core found (slot 11)
PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [mem 0x50000000-0x5fffffff]
pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff pref]
pci_bus 0000:00: root bus resource [io  0x1000-0xffff]
pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
PCI: bus0: Fast back to back transfers disabled
pci 0000:00:0d.0: BAR 2: assigned [mem 0x50000000-0x50001fff]
pci 0000:00:0d.0: BAR 1: assigned [mem 0x50002000-0x500023ff]
pci 0000:00:0c.0: BAR 0: assigned [mem 0x50002400-0x500024ff]
pci 0000:00:0d.0: BAR 0: assigned [io  0x1000-0x10ff]
bio: create slab <bio-0> at 0
raid6: int32x1    336 MB/s
raid6: int32x2    275 MB/s
raid6: int32x4    190 MB/s
raid6: int32x8    155 MB/s
raid6: using algorithm int32x1 (336 MB/s)
raid6: using intx1 recovery algorithm
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 timer3
NET: Registered protocol family 2
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
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
PCI: enabling device 0000:00:0c.0 (0100 -> 0102)
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
bio: create slab <bio-1> at 1
Btrfs loaded
aufs 3.10-20130819
msgmni has been set to 235
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
clcd-pl11x dev:20: PL110 rev0 at 0x10120000
clcd-pl11x dev:20: Versatile hardware, VGA display
Console: switching to colour frame buffer device 80x30
brd: module loaded
PCI: enabling device 0000:00:0d.0 (0100 -> 0103)
sym0: <895a> rev 0x0 at pci 0000:00:0d.0 irq 93
sym0: No NVRAM, ID 7, Fast-40, LVD, parity checking
sym0: SCSI BUS has been reset.
scsi0 : sym-2.2.3
scsi 0:0:0:0: ABORT operation started
scsi 0:0:0:0: ABORT operation timed-out.
scsi 0:0:0:0: DEVICE RESET operation started
scsi 0:0:0:0: DEVICE RESET operation timed-out.
scsi 0:0:0:0: BUS RESET operation started
scsi 0:0:0:0: BUS RESET operation timed-out.
scsi 0:0:0:0: HOST RESET operation started
sym0: SCSI BUS has been reset.
scsi 0:0:0:0: HOST RESET operation timed-out.
scsi 0:0:0:0: Device offlined - not ready after error recovery
scsi 0:0:1:0: ABORT operation started
scsi 0:0:1:0: ABORT operation timed-out.
scsi 0:0:1:0: DEVICE RESET operation started
scsi 0:0:1:0: DEVICE RESET operation timed-out.
scsi 0:0:1:0: BUS RESET operation started
scsi 0:0:1:0: BUS RESET operation timed-out.
scsi 0:0:1:0: HOST RESET operation started
sym0: SCSI BUS has been reset.
scsi 0:0:1:0: HOST RESET operation timed-out.
scsi 0:0:1:0: Device offlined - not ready after error recovery
scsi 0:0:2:0: ABORT operation started
scsi 0:0:2:0: ABORT operation timed-out.
scsi 0:0:2:0: DEVICE RESET operation started
scsi 0:0:2:0: DEVICE RESET operation timed-out.
scsi 0:0:2:0: BUS RESET operation started
scsi 0:0:2:0: BUS RESET operation timed-out.
scsi 0:0:2:0: HOST RESET operation started
sym0: SCSI BUS has been reset.
scsi 0:0:2:0: HOST RESET operation timed-out.
scsi 0:0:2:0: Device offlined - not ready after error recovery
scsi 0:0:3:0: ABORT operation started
scsi 0:0:3:0: ABORT operation timed-out.
scsi 0:0:3:0: DEVICE RESET operation started
scsi 0:0:3:0: DEVICE RESET operation timed-out.
scsi 0:0:3:0: BUS RESET operation started
scsi 0:0:3:0: BUS RESET operation timed-out.
scsi 0:0:3:0: HOST RESET operation started
sym0: SCSI BUS has been reset.
scsi 0:0:3:0: HOST RESET operation timed-out.
scsi 0:0:3:0: Device offlined - not ready after error recovery
scsi 0:0:4:0: ABORT operation started
scsi 0:0:4:0: ABORT operation timed-out.
scsi 0:0:4:0: DEVICE RESET operation started
scsi 0:0:4:0: DEVICE RESET operation timed-out.
scsi 0:0:4:0: BUS RESET operation started
scsi 0:0:4:0: BUS RESET operation timed-out.
scsi 0:0:4:0: HOST RESET operation started
sym0: SCSI BUS has been reset.
scsi 0:0:4:0: HOST RESET operation timed-out.
scsi 0:0:4:0: Device offlined - not ready after error recovery
scsi 0:0:5:0: ABORT operation started
scsi 0:0:5:0: ABORT operation timed-out.
scsi 0:0:5:0: DEVICE RESET operation started
scsi 0:0:5:0: DEVICE RESET operation timed-out.
scsi 0:0:5:0: BUS RESET operation started
scsi 0:0:5:0: BUS RESET operation timed-out.
scsi 0:0:5:0: HOST RESET operation started
sym0: SCSI BUS has been reset.
scsi 0:0:5:0: HOST RESET operation timed-out.
scsi 0:0:5:0: Device offlined - not ready after error recovery
scsi 0:0:6:0: ABORT operation started
scsi 0:0:6:0: ABORT operation timed-out.
scsi 0:0:6:0: DEVICE RESET operation started
scsi 0:0:6:0: DEVICE RESET operation timed-out.
scsi 0:0:6:0: BUS RESET operation started
scsi 0:0:6:0: BUS RESET operation timed-out.
scsi 0:0:6:0: HOST RESET operation started
sym0: SCSI BUS has been reset.
scsi 0:0:6:0: HOST RESET operation timed-out.
scsi 0:0:6:0: Device offlined - not ready after error recovery
scsi 0:0:8:0: ABORT operation started
scsi 0:0:8:0: ABORT operation timed-out.
scsi 0:0:8:0: DEVICE RESET operation started
scsi 0:0:8:0: DEVICE RESET operation timed-out.
scsi 0:0:8:0: BUS RESET operation started
scsi 0:0:8:0: BUS RESET operation timed-out.
scsi 0:0:8:0: HOST RESET operation started
sym0: SCSI BUS has been reset.
scsi 0:0:8:0: HOST RESET operation timed-out.
scsi 0:0:8:0: Device offlined - not ready after error recovery
scsi 0:0:9:0: ABORT operation started
scsi 0:0:9:0: ABORT operation timed-out.
scsi 0:0:9:0: DEVICE RESET operation started
scsi 0:0:9:0: DEVICE RESET operation timed-out.
scsi 0:0:9:0: BUS RESET operation started
scsi 0:0:9:0: BUS RESET operation timed-out.
scsi 0:0:9:0: HOST RESET operation started
sym0: SCSI BUS has been reset.
scsi 0:0:9:0: HOST RESET operation timed-out.
scsi 0:0:9:0: Device offlined - not ready after error recovery
scsi 0:0:10:0: ABORT operation started
scsi 0:0:10:0: ABORT operation timed-out.
scsi 0:0:10:0: DEVICE RESET operation started
scsi 0:0:10:0: DEVICE RESET operation timed-out.
scsi 0:0:10:0: BUS RESET operation started
scsi 0:0:10:0: BUS RESET operation timed-out.
scsi 0:0:10:0: HOST RESET operation started
sym0: SCSI BUS has been reset.
scsi 0:0:10:0: HOST RESET operation timed-out.
scsi 0:0:10:0: Device offlined - not ready after error recovery
scsi 0:0:11:0: ABORT operation started
scsi 0:0:11:0: ABORT operation timed-out.
scsi 0:0:11:0: DEVICE RESET operation started
scsi 0:0:11:0: DEVICE RESET operation timed-out.
scsi 0:0:11:0: BUS RESET operation started
scsi 0:0:11:0: BUS RESET operation timed-out.
scsi 0:0:11:0: HOST RESET operation started
sym0: SCSI BUS has been reset.
scsi 0:0:11:0: HOST RESET operation timed-out.
scsi 0:0:11:0: Device offlined - not ready after error recovery
scsi 0:0:12:0: ABORT operation started
scsi 0:0:12:0: ABORT operation timed-out.
scsi 0:0:12:0: DEVICE RESET operation started
scsi 0:0:12:0: DEVICE RESET operation timed-out.
scsi 0:0:12:0: BUS RESET operation started
scsi 0:0:12:0: BUS RESET operation timed-out.
scsi 0:0:12:0: HOST RESET operation started
sym0: SCSI BUS has been reset.
scsi 0:0:12:0: HOST RESET operation timed-out.
scsi 0:0:12:0: Device offlined - not ready after error recovery
scsi 0:0:13:0: ABORT operation started
scsi 0:0:13:0: ABORT operation timed-out.
scsi 0:0:13:0: DEVICE RESET operation started
scsi 0:0:13:0: DEVICE RESET operation timed-out.
scsi 0:0:13:0: BUS RESET operation started
scsi 0:0:13:0: BUS RESET operation timed-out.
scsi 0:0:13:0: HOST RESET operation started
sym0: SCSI BUS has been reset.
scsi 0:0:13:0: HOST RESET operation timed-out.
scsi 0:0:13:0: Device offlined - not ready after error recovery
scsi 0:0:14:0: ABORT operation started
scsi 0:0:14:0: ABORT operation timed-out.
scsi 0:0:14:0: DEVICE RESET operation started
scsi 0:0:14:0: DEVICE RESET operation timed-out.
scsi 0:0:14:0: BUS RESET operation started
scsi 0:0:14:0: BUS RESET operation timed-out.
scsi 0:0:14:0: HOST RESET operation started
sym0: SCSI BUS has been reset.
scsi 0:0:14:0: HOST RESET operation timed-out.
scsi 0:0:14:0: Device offlined - not ready after error recovery
scsi 0:0:15:0: ABORT operation started
scsi 0:0:15:0: ABORT operation timed-out.
scsi 0:0:15:0: DEVICE RESET operation started
scsi 0:0:15:0: DEVICE RESET operation timed-out.
scsi 0:0:15:0: BUS RESET operation started
scsi 0:0:15:0: BUS RESET operation timed-out.
scsi 0:0:15:0: HOST RESET operation started
sym0: SCSI BUS has been reset.
scsi 0:0:15:0: HOST RESET operation timed-out.
scsi 0:0:15:0: Device offlined - not ready after error recovery
smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@fluxnic.net>
eth0: SMC91C11xFD (rev 1) at c89d4000 IRQ 57 [nowait]
eth0: Ethernet addr: 52:54:00:12:34:56
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci_hcd 0000:00:0c.0: OHCI Host Controller
ohci_hcd 0000:00:0c.0: new USB bus registered, assigned bus number 1
ohci_hcd 0000:00:0c.0: irq 93, io mem 0x50002400
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
mousedev: PS/2 mouse device common for all mice
usbcore: registered new interface driver wacom
rtc-pl031 dev:e8: rtc core: registered pl031 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.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
mmci-pl18x: probe of fpga:05 failed with error -38
mmci-pl18x: probe of fpga:0b failed with error -38
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
oprofile: no performance counters
oprofile: using timer interrupt.
u32 classifier
    Actions configured
TCP: cubic registered
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
Key type dns_resolver registered
VFP support v0.3: implementor 41 architecture 1 part 10 variant 9 rev 0
console [netcon0] enabled
netconsole: network logging started
rtc-pl031 dev:e8: setting system clock to 2013-11-05 08:53:19 UTC (1383641599)
sym0: unknown interrupt(s) ignored, ISTAT=0x1 DSTAT=0x80 SIST=0x0
input: AT Raw Set 2 keyboard as /devices/fpga:06/serio0/input/input0
eth0: link up
IP-Config: Complete:
     device=eth0, hwaddr=52:54:00:12:34:56, ipaddr=192.168.7.2, mask=255.255.255.0, gw=192.168.7.1
     host=192.168.7.2, domain=, nis-domain=(none)
     bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=
usb 1-1: new full-speed USB device number 2 using ohci_hcd
input: Wacom Penpartner as /devices/pci0000:00/0000:00:0c.0/usb1/1-1/1-1:1.0/input/input1
input: ImExPS/2 Generic Explorer Mouse as /devices/fpga:07/serio1/input/input2
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 "sda" or unknown-block(0,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
VFS: Unable to mount root fs on unknown-block(0,0)
User configuration error - no valid root filesystem found
Kernel panic - not syncing: Invalid configuration from end user prevents continuing
CPU: 0 PID: 1 Comm: swapper Not tainted 3.10.17-yocto-standard #1
[<c00154a0>] (unwind_backtrace+0x0/0xec) from [<c0011ccc>] (show_stack+0x20/0x24)
[<c0011ccc>] (show_stack+0x20/0x24) from [<c0582ad4>] (dump_stack+0x20/0x28)
[<c0582ad4>] (dump_stack+0x20/0x28) from [<c057d8e4>] (panic+0x94/0x1d8)
[<c057d8e4>] (panic+0x94/0x1d8) from [<c07b8170>] (mount_block_root+0x22c/0x27c)
[<c07b8170>] (mount_block_root+0x22c/0x27c) from [<c07b83a0>] (mount_root+0xe8/0x110)
[<c07b83a0>] (mount_root+0xe8/0x110) from [<c07b8530>] (prepare_namespace+0x168/0x1c8)
[<c07b8530>] (prepare_namespace+0x168/0x1c8) from [<c07b7cf4>] (kernel_init_freeable+0x214/0x264)
[<c07b7cf4>] (kernel_init_freeable+0x214/0x264) from [<c057c1b0>] (kernel_init+0x18/0xf4)
[<c057c1b0>] (kernel_init+0x18/0xf4) from [<c000ded0>] (ret_from_fork+0x14/0x20)
Comment 1 Bruce Ashfield 2013-11-05 15:18:31 UTC
I've got this.
Comment 2 Bruce Ashfield 2013-11-05 18:48:37 UTC
patch sent to the list.
Comment 4 Stefan Stanacar 2013-11-11 09:46:20 UTC
Marked as Verified.