#16881: qemu, malta le: Kernel panic - not syncing: Attempted to kill init!
exitcode=0x00000004
------------------------+------------------------------------------
  Reporter:  dwrobel@…  |      Owner:  florian
      Type:  defect     |     Status:  accepted
  Priority:  low        |  Milestone:  Barrier Breaker (trunk)
 Component:  kernel     |    Version:  Trunk
Resolution:             |   Keywords:  qemu, malta, mipsel,  r41302
------------------------+------------------------------------------
Description changed by florian:

Old description:

> Just wanted to debug something on emulator.
>
> While trying to run the official image for qemu malta le target[1] using
> the example given in target/linux/malta/README file it crashes as
> following:
>
> $ qemu-system-mipsel -kernel bin/malta/openwrt-malta-le-vmlinux-
> initramfs.elf -nographic -m 256
>
> [    0.000000] Linux version 3.10.36 (openwrt@gb-10) (gcc version 4.8.3
> (OpenWrt/Linaro GCC 4.8-2014.04 r41302) ) #2 SMP Mon Jun 23 18:11:58 UTC
> 2014
> [    0.000000] Config serial console: console=ttyS0,38400n8r
> [    0.000000] bootconsole [early0] enabled
> [    0.000000] CPU revision is: 00019300 (MIPS 24Kc)
> [    0.000000] FPU revision is: 00739300
> [    0.000000] Software DMA cache coherency enabled
> [    0.000000] Determined physical RAM map:
> [    0.000000]  memory: 00001000 @ 00000000 (reserved)
> [    0.000000]  memory: 000ef000 @ 00001000 (ROM data)
> [    0.000000]  memory: 006a9000 @ 000f0000 (reserved)
> [    0.000000]  memory: 0f867000 @ 00799000 (usable)
> [    0.000000] Wasting 62240 bytes for tracking 1945 unused pages
> [    0.000000] Initrd not found or empty - disabling initrd
> [    0.000000] Zone ranges:
> [    0.000000]   DMA      [mem 0x00000000-0x00ffffff]
> [    0.000000]   Normal   [mem 0x01000000-0x0fffffff]
> [    0.000000] Movable zone start for each node
> [    0.000000] Early memory node ranges
> [    0.000000]   node   0: [mem 0x00000000-0x0fffffff]
> [    0.000000] Primary instruction cache 2kB, VIPT, 2-way, linesize 16
> bytes.
> [    0.000000] Primary data cache 2kB, 2-way, VIPT, no aliases, linesize
> 16 bytes
> [    0.000000] PERCPU: Embedded 7 pages/cpu @81203000 s6848 r8192 d13632
> u32768
> [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.
> Total pages: 65024
> [    0.000000] Kernel command line:  console=ttyS0,38400n8r
> [    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
> [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072
> bytes)
> [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536
> bytes)
> [    0.000000] Writing ErrCtl register=00000000
> [    0.000000] Readback ErrCtl register=00000000
> [    0.000000] Memory: 252056k/254364k available (2702k kernel code,
> 2308k reserved, 748k data, 3204k init, 0k highmem)
> [    0.000000] Hierarchical RCU implementation.
> [    0.000000]  RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
> [    0.000000] NR_IRQS:256
> [    0.000000] CPU frequency 200.00 MHz
> [    0.000000] Console: colour dummy device 80x25
> [    0.000000] Calibrating delay loop... 956.00 BogoMIPS (lpj=4780032)
> [    0.150000] pid_max: default: 32768 minimum: 301
> [    0.150000] Mount-cache hash table entries: 512
> [    0.170000] Brought up 1 CPUs
> [    0.180000] NET: Registered protocol family 16
> [    0.210000] bio: create slab <bio-0> at 0
> [    0.210000] SCSI subsystem initialized
> [    0.210000] PCI host bridge to bus 0000:00
> [    0.210000] pci_bus 0000:00: root bus resource [mem
> 0x10000000-0x17ffffff]
> [    0.220000] pci_bus 0000:00: root bus resource [io  0x2000-0x1fffff]
> [    0.220000] pci_bus 0000:00: No busn resource found for root bus, will
> use [bus 00-ff]
> [    0.220000] pci 0000:00:0a.3: no compatible bridge window for [io
> 0x1100-0x110f]
> [    0.220000] pci 0000:00:0a.3: BAR 8: [io  0x1100-0x110f] has bogus
> alignment
> [    0.230000] pci 0000:00:12.0: BAR 0: assigned [mem
> 0x10000000-0x11ffffff pref]
> [    0.230000] pci 0000:00:0b.0: BAR 6: assigned [mem
> 0x12000000-0x1203ffff pref]
> [    0.230000] pci 0000:00:12.0: BAR 6: assigned [mem
> 0x12040000-0x1204ffff pref]
> [    0.230000] pci 0000:00:12.0: BAR 1: assigned [mem
> 0x12050000-0x12050fff]
> [    0.230000] pci 0000:00:0a.2: BAR 4: assigned [io  0x2000-0x201f]
> [    0.230000] pci 0000:00:0b.0: BAR 0: assigned [io  0x2020-0x203f]
> [    0.230000] pci 0000:00:0b.0: BAR 1: assigned [mem
> 0x12051000-0x1205101f]
> [    0.230000] pci 0000:00:0a.1: BAR 4: assigned [io  0x2040-0x204f]
> [    0.240000] Switching to clocksource pit
> [    0.270000] NET: Registered protocol family 2
> [    0.270000] TCP established hash table entries: 2048 (order: 2, 16384
> bytes)
> [    0.270000] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
> [    0.270000] TCP: Hash tables configured (established 2048 bind 2048)
> [    0.280000] TCP: reno registered
> [    0.280000] UDP hash table entries: 256 (order: 1, 8192 bytes)
> [    0.280000] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
> [    0.280000] NET: Registered protocol family 1
> [    0.280000] PCI: Enabling device 0000:00:0a.2 (0000 -> 0001)
> [    0.360000] VFS: Disk quotas dquot_6.5.2
> [    0.360000] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
> [    0.360000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
> [    0.360000] jffs2: version 2.2 (NAND) (LZMA) (RTIME) (CMODE_PRIORITY)
> (c) 2001-2006 Red Hat, Inc.
> [    0.360000] msgmni has been set to 492
> [    0.370000] Block layer SCSI generic (bsg) driver version 0.4 loaded
> (major 253)
> [    0.370000] io scheduler noop registered
> [    0.370000] io scheduler deadline registered (default)
> [    0.500000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
> [    0.520000] serial8250.0: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
> [    0.520000] console [ttyS0] enabled, bootconsole disabled
> [    0.520000] console [ttyS0] enabled, bootconsole disabled
> [    0.530000] serial8250.0: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
> [    0.540000] serial8250.0: ttyS2 at MMIO 0x1f000900 (irq = 20) is a
> 16550A
> [    0.550000] brd: module loaded
> [    0.560000] physmap platform flash device: 00400000 at 1e000000
> [    0.560000] physmap-flash.0: Found 1 x32 devices at 0x0 in 32-bit
> bank. Manufacturer ID 0x000000 Chip ID 0x000000
> [    0.560000] Intel/Sharp Extended Query Table at 0x0031
> [    0.570000] Using buffer write method
> [    0.570000] Creating 3 MTD partitions on "physmap-flash.0":
> [    0.570000] 0x000000000000-0x000000100000 : "YAMON"
> [    0.570000] 0x000000100000-0x0000003e0000 : "User FS"
> [    0.570000] 0x0000003e0000-0x000000400000 : "Board Config"
> [    0.580000] mousedev: PS/2 mouse device common for all mice
> [    0.580000] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
> [    0.580000] rtc_cmos rtc_cmos: alarms up to one day, 242 bytes nvram
> [    0.580000] TCP: cubic registered
> [    0.580000] NET: Registered protocol family 17
> [    0.580000] Bridge firewalling registered
> [    0.580000] 8021q: 802.1Q VLAN Support v1.8
> [    0.590000] rtc_cmos rtc_cmos: setting system clock to 2014-06-24
> 15:01:07 UTC (1403622067)
> [    0.600000] Freeing YAMON memory: 956k freed
> [    0.610000] Freeing unused kernel memory: 3204K (8045f000 - 80780000)
> [    0.650000] Kernel panic - not syncing: Attempted to kill init!
> exitcode=0x00000004
> [    0.650000]
> Killed
>
> $ qemu-system-mipsel --version
> QEMU emulator version 1.6.2, Copyright (c) 2003-2008 Fabrice Bellard
>
> I haven't use it so far, thus don't know whether it worked previously or
> no. Is there any changes to get it working? If you need some additional
> information please let me know.
>
> [1] http://downloads.openwrt.org/snapshots/trunk/malta/openwrt-malta-le-
> vmlinux-initramfs.elf

New description:

 Just wanted to debug something on emulator.

 While trying to run the official image for qemu malta le target[1] using
 the example given in target/linux/malta/README file it crashes as
 following:

 {{{
 $ qemu-system-mipsel -kernel bin/malta/openwrt-malta-le-vmlinux-
 initramfs.elf -nographic -m 256

 [    0.000000] Linux version 3.10.36 (openwrt@gb-10) (gcc version 4.8.3
 (OpenWrt/Linaro GCC 4.8-2014.04 r41302) ) #2 SMP Mon Jun 23 18:11:58 UTC
 2014
 [    0.000000] Config serial console: console=ttyS0,38400n8r
 [    0.000000] bootconsole [early0] enabled
 [    0.000000] CPU revision is: 00019300 (MIPS 24Kc)
 [    0.000000] FPU revision is: 00739300
 [    0.000000] Software DMA cache coherency enabled
 [    0.000000] Determined physical RAM map:
 [    0.000000]  memory: 00001000 @ 00000000 (reserved)
 [    0.000000]  memory: 000ef000 @ 00001000 (ROM data)
 [    0.000000]  memory: 006a9000 @ 000f0000 (reserved)
 [    0.000000]  memory: 0f867000 @ 00799000 (usable)
 [    0.000000] Wasting 62240 bytes for tracking 1945 unused pages
 [    0.000000] Initrd not found or empty - disabling initrd
 [    0.000000] Zone ranges:
 [    0.000000]   DMA      [mem 0x00000000-0x00ffffff]
 [    0.000000]   Normal   [mem 0x01000000-0x0fffffff]
 [    0.000000] Movable zone start for each node
 [    0.000000] Early memory node ranges
 [    0.000000]   node   0: [mem 0x00000000-0x0fffffff]
 [    0.000000] Primary instruction cache 2kB, VIPT, 2-way, linesize 16
 bytes.
 [    0.000000] Primary data cache 2kB, 2-way, VIPT, no aliases, linesize
 16 bytes
 [    0.000000] PERCPU: Embedded 7 pages/cpu @81203000 s6848 r8192 d13632
 u32768
 [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.
 Total pages: 65024
 [    0.000000] Kernel command line:  console=ttyS0,38400n8r
 [    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
 [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072
 bytes)
 [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536
 bytes)
 [    0.000000] Writing ErrCtl register=00000000
 [    0.000000] Readback ErrCtl register=00000000
 [    0.000000] Memory: 252056k/254364k available (2702k kernel code, 2308k
 reserved, 748k data, 3204k init, 0k highmem)
 [    0.000000] Hierarchical RCU implementation.
 [    0.000000]  RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
 [    0.000000] NR_IRQS:256
 [    0.000000] CPU frequency 200.00 MHz
 [    0.000000] Console: colour dummy device 80x25
 [    0.000000] Calibrating delay loop... 956.00 BogoMIPS (lpj=4780032)
 [    0.150000] pid_max: default: 32768 minimum: 301
 [    0.150000] Mount-cache hash table entries: 512
 [    0.170000] Brought up 1 CPUs
 [    0.180000] NET: Registered protocol family 16
 [    0.210000] bio: create slab <bio-0> at 0
 [    0.210000] SCSI subsystem initialized
 [    0.210000] PCI host bridge to bus 0000:00
 [    0.210000] pci_bus 0000:00: root bus resource [mem
 0x10000000-0x17ffffff]
 [    0.220000] pci_bus 0000:00: root bus resource [io  0x2000-0x1fffff]
 [    0.220000] pci_bus 0000:00: No busn resource found for root bus, will
 use [bus 00-ff]
 [    0.220000] pci 0000:00:0a.3: no compatible bridge window for [io
 0x1100-0x110f]
 [    0.220000] pci 0000:00:0a.3: BAR 8: [io  0x1100-0x110f] has bogus
 alignment
 [    0.230000] pci 0000:00:12.0: BAR 0: assigned [mem
 0x10000000-0x11ffffff pref]
 [    0.230000] pci 0000:00:0b.0: BAR 6: assigned [mem
 0x12000000-0x1203ffff pref]
 [    0.230000] pci 0000:00:12.0: BAR 6: assigned [mem
 0x12040000-0x1204ffff pref]
 [    0.230000] pci 0000:00:12.0: BAR 1: assigned [mem
 0x12050000-0x12050fff]
 [    0.230000] pci 0000:00:0a.2: BAR 4: assigned [io  0x2000-0x201f]
 [    0.230000] pci 0000:00:0b.0: BAR 0: assigned [io  0x2020-0x203f]
 [    0.230000] pci 0000:00:0b.0: BAR 1: assigned [mem
 0x12051000-0x1205101f]
 [    0.230000] pci 0000:00:0a.1: BAR 4: assigned [io  0x2040-0x204f]
 [    0.240000] Switching to clocksource pit
 [    0.270000] NET: Registered protocol family 2
 [    0.270000] TCP established hash table entries: 2048 (order: 2, 16384
 bytes)
 [    0.270000] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
 [    0.270000] TCP: Hash tables configured (established 2048 bind 2048)
 [    0.280000] TCP: reno registered
 [    0.280000] UDP hash table entries: 256 (order: 1, 8192 bytes)
 [    0.280000] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
 [    0.280000] NET: Registered protocol family 1
 [    0.280000] PCI: Enabling device 0000:00:0a.2 (0000 -> 0001)
 [    0.360000] VFS: Disk quotas dquot_6.5.2
 [    0.360000] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
 [    0.360000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
 [    0.360000] jffs2: version 2.2 (NAND) (LZMA) (RTIME) (CMODE_PRIORITY)
 (c) 2001-2006 Red Hat, Inc.
 [    0.360000] msgmni has been set to 492
 [    0.370000] Block layer SCSI generic (bsg) driver version 0.4 loaded
 (major 253)
 [    0.370000] io scheduler noop registered
 [    0.370000] io scheduler deadline registered (default)
 [    0.500000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
 [    0.520000] serial8250.0: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
 [    0.520000] console [ttyS0] enabled, bootconsole disabled
 [    0.520000] console [ttyS0] enabled, bootconsole disabled
 [    0.530000] serial8250.0: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
 [    0.540000] serial8250.0: ttyS2 at MMIO 0x1f000900 (irq = 20) is a
 16550A
 [    0.550000] brd: module loaded
 [    0.560000] physmap platform flash device: 00400000 at 1e000000
 [    0.560000] physmap-flash.0: Found 1 x32 devices at 0x0 in 32-bit bank.
 Manufacturer ID 0x000000 Chip ID 0x000000
 [    0.560000] Intel/Sharp Extended Query Table at 0x0031
 [    0.570000] Using buffer write method
 [    0.570000] Creating 3 MTD partitions on "physmap-flash.0":
 [    0.570000] 0x000000000000-0x000000100000 : "YAMON"
 [    0.570000] 0x000000100000-0x0000003e0000 : "User FS"
 [    0.570000] 0x0000003e0000-0x000000400000 : "Board Config"
 [    0.580000] mousedev: PS/2 mouse device common for all mice
 [    0.580000] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
 [    0.580000] rtc_cmos rtc_cmos: alarms up to one day, 242 bytes nvram
 [    0.580000] TCP: cubic registered
 [    0.580000] NET: Registered protocol family 17
 [    0.580000] Bridge firewalling registered
 [    0.580000] 8021q: 802.1Q VLAN Support v1.8
 [    0.590000] rtc_cmos rtc_cmos: setting system clock to 2014-06-24
 15:01:07 UTC (1403622067)
 [    0.600000] Freeing YAMON memory: 956k freed
 [    0.610000] Freeing unused kernel memory: 3204K (8045f000 - 80780000)
 [    0.650000] Kernel panic - not syncing: Attempted to kill init!
 exitcode=0x00000004
 [    0.650000]
 Killed
 }}}

 $ qemu-system-mipsel --version
 QEMU emulator version 1.6.2, Copyright (c) 2003-2008 Fabrice Bellard

 I haven't use it so far, thus don't know whether it worked previously or
 no. Is there any changes to get it working? If you need some additional
 information please let me know.

 [1] http://downloads.openwrt.org/snapshots/trunk/malta/openwrt-malta-le-
 vmlinux-initramfs.elf

--

--
Ticket URL: <https://dev.openwrt.org/ticket/16881#comment:9>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to