I extracted zImage and initrd from the OpenSUSE image for sabrelite and use it to start qemu-system-arm generally successful.
But i detect that the initrd execute 2 times, even with the parameter "noinitrd".
But without the qemu-system-arm paramater "-initrd initrd" the mmc (sdcard) will not be recognized and it is unable to boot...
Here is my call of qemu:
`qemu-system-arm -M sabrelite -m 3G \
-smp 4 \
-drive file=$1,format=raw,cache=writeback,id=sabre \
-device sd-card,drive=sabre \
-kernel zImage \
-initrd initrd \
-append "noinitrd ipv6.disable=1 root=/dev/$2 rw console=ttymxc0" \
-net user,hostfwd=tcp::2222-:22 \
-net nic \
-no-reboot \
-nographic \
-dtb imx6q-sabrelite.dtb
`
In all examples which I found anywhere, initrd is never used...?
Errors without initrd:
`[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.12.14-lp150.11-default (geeko@buildhost) (gcc version 7.3.1 20180323 [gcc-7-branch revision 258812] (SUSE Linux) ) #1 SMP PREEMPT Fri May 11 08:28:30 UTC 2018 (a9fee09)
[ 0.000000] CPU: ARMv7 Processor [410fc090] revision 0 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Freescale i.MX6 Quad SABRE Lite Board
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 64 MiB at 0xcc000000
[ 0.000000] percpu: Embedded 18 pages/cpu @ee48f000 s43148 r8192 d22388 u73728
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 784704
[ 0.000000] Kernel command line: ipv6.disable=1 root=/dev/mmcblk1p2 rw rootfstype=ext4 console=ttymxc0
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 3029376K/3145728K available (11264K kernel code, 1494K rwdata, 4668K rodata, 2048K init, 805K bss, 50816K reserved, 65536K cma-reserved, 2293760K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0208000 - 0xc0e00000 (12256 kB)
[ 0.000000] .init : 0xc1400000 - 0xc1600000 (2048 kB)
[ 0.000000] .data : 0xc1600000 - 0xc17758e0 (1495 kB)
[ 0.000000] .bss : 0xc177ef80 - 0xc184871c ( 806 kB)
[ 0.000000] ftrace: allocating 42119 entries in 124 pages
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=4.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] GIC physical location is 0xa01000
[ 0.000000] L2C: DT/platform modifies aux control register: 0x00000000 -> 0x00400000
[ 0.000000] L2C-310 errata 588369 769419 enabled
[ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[ 0.000000] L2C-310 cache controller enabled, 8 ways, 64 kB
[ 0.000000] L2C-310: CACHE_ID 0x00000000, AUX_CTRL 0x00000000
[ 0.000000] Switching to timer-based delay loop, resolution 15ns
[ 0.000209] sched_clock: 32 bits at 66MHz, resolution 15ns, wraps every 32537631224ns
[ 0.000395] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 28958491609 ns
[ 0.011618] Console: colour dummy device 80x30
[ 0.012714] Calibrating delay loop (skipped), value calculated using timer frequency.. 132.00 BogoMIPS (lpj=330000)
[ 0.012857] pid_max: default: 32768 minimum: 301
[ 0.014187] Security Framework initialized
[ 0.016588] AppArmor: AppArmor initialized
[ 0.022097] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.022143] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.034040] CPU: Testing write buffer coherency: ok
[ 0.045204] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.098375] Setting up static identity map for 0x10300000 - 0x103000a0
[ 0.176193] smp: Bringing up secondary CPUs ...
[ 0.336749] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.453804] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.572444] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.585228] smp: Brought up 1 node, 4 CPUs
[ 0.585338] SMP: Total of 4 processors activated (528.00 BogoMIPS).
[ 0.585518] CPU: All CPU(s) started in SVC mode.
[ 0.618605] devtmpfs: initialized
[ 0.665394] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 0
[ 0.717294] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302231375000 ns
[ 0.717926] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.735695] pinctrl core: initialized pinctrl subsystem
[ 0.754434] NET: Registered protocol family 16
[ 0.773180] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.780355] cpuidle: using governor ladder
[ 0.780560] cpuidle: using governor menu
[ 0.782354] CPU identified as i.MX6Q, silicon rev 1.0
[ 0.813631] irq: no irq domain found for /soc/aips-bus@02000000/gpio@0209c000 !
[ 0.818338] imx_mmdc_probe: failed to enable automatic power saving
[ 0.819240] imx-mmdc: probe of 21b0000.mmdc failed with error -16
[ 0.832078] imx6q_suspend_init: failed to get iomuxc base -19!
[ 0.832506] imx6_pm_common_init: No DDR LPM support with suspend -19!
[ 0.833597] No ATAGs?
[ 0.833705] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.835505] SoCFPGA initialized for DDR self-refresh during suspend.
[ 0.840648] imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[ 0.849474] Serial: AMBA PL011 UART driver
[ 0.960809] stmp_reset_block(f090a000): module reset timeout
[ 0.961336] mxs-dma: probe of 110000.dma-apbh failed with error -110
[ 0.971781] vgaarb: loaded
[ 0.976159] SCSI subsystem initialized
[ 1.007715] EDAC MC: Ver: 3.0.0
[ 1.035649] NetLabel: Initializing
[ 1.035687] NetLabel: domain hash size = 128
[ 1.035705] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
[ 1.037131] NetLabel: unlabeled traffic allowed by default
[ 1.116753] clocksource: Switched to clocksource mxc_timer1
[ 1.285601] VFS: Disk quotas dquot_6.6.0
[ 1.285883] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 1.290020] AppArmor: AppArmor Filesystem Enabled
[ 1.364593] NET: Registered protocol family 2
[ 1.378615] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 1.378843] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 1.379030] TCP: Hash tables configured (established 8192 bind 8192)
[ 1.380027] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 1.380158] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 1.386193] NET: Registered protocol family 1
[ 1.396938] NetWinder Floating Point Emulator V0.97 (extended precision)
[ 1.397718] hw perfevents: no interrupt-affinity property for /soc/pmu, guessing.
[ 1.406875] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 1 counters available
[ 1.447843] audit: initializing netlink subsys (disabled)
[ 1.465812] audit: type=2000 audit(0.614:1): state=initialized audit_enabled=0 res=1
[ 1.466719] workingset: timestamp_bits=14 max_order=20 bucket_order=6
[ 1.474390] zbud: loaded
[ 1.521197] random: fast init done
[ 1.557495] Key type asymmetric registered
[ 1.557659] Asymmetric key parser 'x509' registered
[ 1.558059] bounce: pool size: 64 pages
[ 1.558583] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 1.577517] io scheduler noop registered
[ 1.577597] io scheduler deadline registered
[ 1.578070] io scheduler cfq registered (default)
[ 1.578122] io scheduler mq-deadline registered
[ 1.578159] io scheduler kyber registered
[ 1.578442] io scheduler bfq registered
[ 1.634249] OF: PCI: host bridge /soc/pcie@1ffc000 ranges:
[ 1.634735] OF: PCI: IO 0x01f80000..0x01f8ffff -> 0x00000000
[ 1.635102] OF: PCI: MEM 0x01000000..0x01efffff -> 0x01000000
[ 1.845541] imx6q-pcie 1ffc000.pcie: outbound iATU is not being enabled
[ 5.814805] imx6q-pcie 1ffc000.pcie: phy link never came up
[ 5.829922] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00
[ 5.830402] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 5.830573] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 5.830623] pci_bus 0000:00: root bus resource [mem 0x01000000-0x01efffff]
[ 5.831420] PCI: bus0: Fast back to back transfers enabled
[ 5.872992] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[ 5.933871] Serial: AMBA driver
[ 5.936949] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 26, base_baud = 5000000) is a IMX
[ 6.005440] console [ttymxc0] enabled
[ 6.022181] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 70, base_baud = 5000000) is a IMX
[ 6.030651] msm_serial: driver initialized
[ 6.032468] STMicroelectronics ASC driver initialized
[ 6.101880] exynos-drm-ipp exynos-drm-ipp: drm ipp registered successfully.
[ 6.109979] [drm:exynos_drm_bind] *ERROR* no device found for DMA mapping operations.
[ 6.122026] exynos-drm exynos-drm: master bind failed: -19
[ 6.134189] panel-simple panel-lcd: panel-lcd supply power not found, using dummy regulator
[ 6.140571] panel-simple panel-lvds0: panel-lvds0 supply power not found, using dummy regulator
[ 6.154192] imx-ipuv3 2400000.ipu: IPUv3H probed
[ 6.158747] imx-ipuv3 2800000.ipu: IPUv3H probed
[ 6.175969] libphy: Fixed MDIO Bus: probed
[ 6.193543] mousedev: PS/2 mouse device common for all mice
[ 6.221777] snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-r as rtc0
[ 6.264967] ledtrig-cpu: registered to indicate activity on CPUs
[ 6.266015] hidraw: raw HID events driver (C) Jiri Kosina
[ 6.309418] IPv6: Loaded, but administratively disabled, reboot required to enable
[ 6.315358] ThumbEE CPU extension supported.
[ 6.317634] Registering SWP/SWPB emulation handler
[ 6.505749] registered taskstats version 1
[ 6.507813] zswap: loaded using pool lzo/zbud
[ 6.721708] Key type big_key registered
[ 6.773603] Key type encrypted registered
[ 6.775347] AppArmor: AppArmor sha1 policy hashing enabled
[ 6.826745] panel-simple panel-lcd: panel-lcd supply power not found, using dummy regulator
[ 6.831670] panel-simple panel-lvds0: panel-lvds0 supply power not found, using dummy regulator
[ 6.848868] snvs_rtc 20cc000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01 00:00:00 UTC (0)
[ 6.851112] sr_init: No PMIC hook to init smartreflex
[ 6.852401] sr_init: platform driver register failed for SR
[ 6.855812] usb_otg_vbus: disabling
[ 6.857270] CAN XCVR: disabling
[ 6.865888] VFS: Cannot open root device "mmcblk1p2" or unknown-block(0,0): error -6
[ 6.869636] Please append a correct "root=" boot option; here are the available partitions:
[ 6.879623] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 6.880241] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.12.14-lp150.11-default #1 openSUSE Leap 42.3
[ 6.880643] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
[ 6.881661] [<c0320148>] (unwind_backtrace) from [<c03190c0>] (show_stack+0x20/0x28)
[ 6.882790] [<c03190c0>] (show_stack) from [<c06f55c8>] (dump_stack+0x94/0xa8)
[ 6.883693] [<c06f55c8>] (dump_stack) from [<c049bd50>] (panic+0xec/0x284)
[ 6.884506] [<c049bd50>] (panic) from [<c14015b4>] (mount_block_root+0x254/0x33c)
[ 6.885621] [<c14015b4>] (mount_block_root) from [<c1401720>] (mount_root+0x84/0x88)
[ 6.886606] [<c1401720>] (mount_root) from [<c1401884>] (prepare_namespace+0x160/0x1a8)
[ 6.887418] [<c1401884>] (prepare_namespace) from [<c14010fc>] (kernel_init_freeable+0x280/0x298)
[ 6.888213] [<c14010fc>] (kernel_init_freeable) from [<c0d41a08>] (kernel_init+0x18/0x120)
[ 6.889036] [<c0d41a08>] (kernel_init) from [<c03144e8>] (ret_from_fork+0x14/0x2c)
[ 6.890188] CPU1: stopping
[ 6.890319] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.12.14-lp150.11-default #1 openSUSE Leap 42.3
[ 6.890515] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
[ 6.890703] [<c0320148>] (unwind_backtrace) from [<c03190c0>] (show_stack+0x20/0x28)
[ 6.890888] [<c03190c0>] (show_stack) from [<c06f55c8>] (dump_stack+0x94/0xa8)
[ 6.891117] [<c06f55c8>] (dump_stack) from [<c031ca60>] (handle_IPI+0x3b8/0x3c8)
[ 6.891290] [<c031ca60>] (handle_IPI) from [<c03018d4>] (gic_handle_irq+0x98/0x9c)
[ 6.891468] [<c03018d4>] (gic_handle_irq) from [<c0d48ab8>] (__irq_svc+0x58/0x8c)
[ 6.891664] Exception stack(0xed985f20 to 0xed985f68)
[ 6.891863] 5f20: 00000001 00000000 00000000 c032d1c0 ffffe000 c1604dbc c1604e20 00000002
[ 6.892080] 5f40: 00000000 00000000 c1604e2c ed985f7c ed985f80 ed985f70 c0315680 c0315684
[ 6.892256] 5f60: 60000013 ffffffff
[ 6.892390] [<c0d48ab8>] (__irq_svc) from [<c0315684>] (arch_cpu_idle+0x4c/0x54)
[ 6.892566] [<c0315684>] (arch_cpu_idle) from [<c0d47dd0>] (default_idle_call+0x30/0x44)
[ 6.892814] [<c0d47dd0>] (default_idle_call) from [<c03ac984>] (do_idle+0x1a0/0x230)
[ 6.893058] [<c03ac984>] (do_idle) from [<c03accf0>] (cpu_startup_entry+0x28/0x2c)
[ 6.893310] [<c03accf0>] (cpu_startup_entry) from [<c031c3ec>] (secondary_start_kernel+0x174/0x1a0)
[ 6.893768] [<c031c3ec>] (secondary_start_kernel) from [<103020cc>] (0x103020cc)
[ 6.896672] CPU3: stopping
[ 6.896792] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 4.12.14-lp150.11-default #1 openSUSE Leap 42.3
[ 6.897006] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
[ 6.897212] [<c0320148>] (unwind_backtrace) from [<c03190c0>] (show_stack+0x20/0x28)
[ 6.897393] [<c03190c0>] (show_stack) from [<c06f55c8>] (dump_stack+0x94/0xa8)
[ 6.897583] [<c06f55c8>] (dump_stack) from [<c031ca60>] (handle_IPI+0x3b8/0x3c8)
[ 6.897762] [<c031ca60>] (handle_IPI) from [<c03018d4>] (gic_handle_irq+0x98/0x9c)
[ 6.897941] [<c03018d4>] (gic_handle_irq) from [<c0d48ab8>] (__irq_svc+0x58/0x8c)
[ 6.898125] Exception stack(0xed989f20 to 0xed989f68)
[ 6.898262] 9f20: 00000001 00000000 00000000 c032d1c0 ffffe000 c1604dbc c1604e20 00000008
[ 6.898441] 9f40: 00000000 00000000 c1604e2c ed989f7c ed989f80 ed989f70 c0315680 c0315684
[ 6.898612] 9f60: 60000013 ffffffff
[ 6.898720] [<c0d48ab8>] (__irq_svc) from [<c0315684>] (arch_cpu_idle+0x4c/0x54)
[ 6.898892] [<c0315684>] (arch_cpu_idle) from [<c0d47dd0>] (default_idle_call+0x30/0x44)
[ 6.899101] [<c0d47dd0>] (default_idle_call) from [<c03ac984>] (do_idle+0x1a0/0x230)
[ 6.899308] [<c03ac984>] (do_idle) from [<c03accf0>] (cpu_startup_entry+0x28/0x2c)
[ 6.899503] [<c03accf0>] (cpu_startup_entry) from [<c031c3ec>] (secondary_start_kernel+0x174/0x1a0)
[ 6.899710] [<c031c3ec>] (secondary_start_kernel) from [<103020cc>] (0x103020cc)
[ 6.900708] CPU0: stopping
[ 6.900887] CPU: 0 PID: 8 Comm: rcu_preempt Not tainted 4.12.14-lp150.11-default #1 openSUSE Leap 42.3
[ 6.901382] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
[ 6.901694] [<c0320148>] (unwind_backtrace) from [<c03190c0>] (show_stack+0x20/0x28)
[ 6.902085] [<c03190c0>] (show_stack) from [<c06f55c8>] (dump_stack+0x94/0xa8)
[ 6.902405] [<c06f55c8>] (dump_stack) from [<c031ca60>] (handle_IPI+0x3b8/0x3c8)
[ 6.902720] [<c031ca60>] (handle_IPI) from [<c03018d4>] (gic_handle_irq+0x98/0x9c)
[ 6.903292] [<c03018d4>] (gic_handle_irq) from [<c0d48ab8>] (__irq_svc+0x58/0x8c)
[ 6.904179] Exception stack(0xed95bdb8 to 0xed95be00)
[ 6.904679] bda0: ee498c40 00000002
[ 6.905416] bdc0: 00000000 0000081c ee498c40 c1656930 c1608800 ed92f840 c0d42c08 00000000
[ 6.906102] bde0: 00000000 ed95be14 ed95be18 ed95be08 c038e8c8 c0d48390 60000013 ffffffff
[ 6.906779] [<c0d48ab8>] (__irq_svc) from [<c0d48390>] (_raw_spin_unlock_irq+0x30/0x68)
[ 6.912810] [<c0d48390>] (_raw_spin_unlock_irq) from [<c038e8c8>] (finish_task_switch+0x7c/0x204)
[ 6.913640] [<c038e8c8>] (finish_task_switch) from [<c0d42c08>] (__schedule+0x338/0x9c4)
[ 6.914388] [<c0d42c08>] (__schedule) from [<c0d432f4>] (schedule+0x60/0xd0)
[ 6.921066] [<c0d432f4>] (schedule) from [<c0d46d80>] (schedule_timeout+0x90/0x424)
[ 6.921867] [<c0d46d80>] (schedule_timeout) from [<c03dbb5c>] (rcu_gp_kthread+0x5b4/0x978)
[ 6.922599] [<c03dbb5c>] (rcu_gp_kthread) from [<c0385f2c>] (kthread+0x170/0x178)
[ 6.923255] [<c0385f2c>] (kthread) from [<c03144e8>] (ret_from_fork+0x14/0x2c)
[ 6.941115] Rebooting in 90 seconds..
[ 46.512125] Reboot failed -- System halted
`
Thanks in advance Uli
User contributions licensed under CC BY-SA 3.0