Hi:
I am currently trying to boot ubuntu-18.04-arm64-docker.img using QEMU. The
image file was extracted from aarch-system-20220707.tar.bz2, which I downloaded
from https://www.gem5.org/documentation/general_docs/fullsystem/guest_binaries.
I compiled my own kernel using the following commands:
```
git clone https://gem5.googlesource.com/arm/linux
make ARCH=arm64 CROSS_COMPILER=aarch64-linux-gnu- gem5_defconfig
make ARCH=arm64 CROSS_COMPILER=aarch64-linux-gnu- -j32
```
However, I encountered an error when I tried to boot using the QEMU command:
```
qemu-system-aarch64 \
-m 4096 \
-cpu cortex-a57 \
-nographic \
-machine virt \
-kernel /home/dev/gem5-all/power/prep/my-disks/linux/arch/arm64/boot/Image \
-append 'root=/dev/vda1 rw rootwait mem=4096M console=ttyAMA0,38400n8' \
-device virtio-blk-device,drive=image \
-drive
if=none,id=image,file=/home/dev/gem5-all/power/prep/disks/ubuntu-18.04-arm64-docker.img
```
The error message I received was "
--[ end Kernel panic - not syncing: Attempted to kill init!
exitcode=0x00008400".
full log message is in attachment.
Could you please provide me with assistance on how to resolve this issue?
Thank you for your time and support.
Best regards,
Leon
bash: ./qemu-arm-ubuntu: No such file or directory
dev@user-PowerEdge-T640:~/gem5-all/power/prep$ ./qemu-arm-ubuntu.sh
WARNING: Image format was not specified for
'/home/dev/gem5-all/power/prep/disks/ubuntu-18.04-arm64-docker.img' and probing
guessed raw.
Automatically detecting the format is dangerous for raw images, write
operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
qemu-system-aarch64: -netdev user,id=user0: network backend 'user' is not
compiled into this binary
dev@user-PowerEdge-T640:~/gem5-all/power/prep$ ./qemu-arm-ubuntu.sh
WARNING: Image format was not specified for
'/home/dev/gem5-all/power/prep/disks/ubuntu-18.04-arm64-docker.img' and probing
guessed raw.
Automatically detecting the format is dangerous for raw images, write
operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
qemu-system-aarch64: -device virtio-net-device,netdev=user0: Property
'virtio-net-device.netdev' can't find value 'user0'
dev@user-PowerEdge-T640:~/gem5-all/power/prep$ ./qemu-arm-ubuntu.sh
WARNING: Image format was not specified for
'/home/dev/gem5-all/power/prep/disks/ubuntu-18.04-arm64-docker.img' and probing
guessed raw.
Automatically detecting the format is dangerous for raw images, write
operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.0+ (dev@user-PowerEdge-T640) (gcc version
9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)) #2 SMP PREEMPT Wed Apr 26 09:49:11 CST
2023
[ 0.000000] Boot CPU: AArch64 Processor [411fd070]
[ 0.000000] Machine model: linux,dummy-virt
[ 0.000000] Memory limited to 4096MB
[ 0.000000] cma: Reserved 16 MiB at 0x00000000ff000000
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: Trusted OS migration not required
[ 0.000000] percpu: Embedded 21 pages/cpu @ffffffc0fffd6000 s45464 r8192
d32360 u86016
[ 0.000000] Detected PIPT I-cache on CPU0
[ 0.000000] CPU features: enabling workaround for ARM erratum 832075
[ 0.000000] CPU features: enabling workaround for ARM erratum 834220
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 1032192
[ 0.000000] Kernel command line: root=/dev/vda1 rw rootwait mem=4096M
console=ttyAMA0,38400n8
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304
bytes)
[ 0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.000000] software IO TLB [mem 0xfafff000-0xfefff000] (64MB) mapped at
[ffffffc0bafff000-ffffffc0beffefff]
[ 0.000000] Memory: 4028568K/4194304K available (5950K kernel code, 472K
rwdata, 3348K rodata, 384K init, 262K bss, 149352K reserved, 16384K
cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] modules : 0xffffff8000000000 - 0xffffff8008000000 ( 128
MB)
[ 0.000000] vmalloc : 0xffffff8008000000 - 0xffffffbebfff0000 ( 250
GB)
[ 0.000000] .text : 0xffffff8008080000 - 0xffffff8008650000 ( 5952
KB)
[ 0.000000] .rodata : 0xffffff8008650000 - 0xffffff80089a0000 ( 3392
KB)
[ 0.000000] .init : 0xffffff80089a0000 - 0xffffff8008a00000 ( 384
KB)
[ 0.000000] .data : 0xffffff8008a00000 - 0xffffff8008a76008 ( 473
KB)
[ 0.000000] .bss : 0xffffff8008a76008 - 0xffffff8008ab78d8 ( 263
KB)
[ 0.000000] fixed : 0xffffffbefe7fd000 - 0xffffffbefec00000 ( 4108
KB)
[ 0.000000] PCI I/O : 0xffffffbefee00000 - 0xffffffbeffe00000 ( 16
MB)
[ 0.000000] vmemmap : 0xffffffbf00000000 - 0xffffffc000000000 ( 4
GB maximum)
[ 0.000000] 0xffffffbf00000000 - 0xffffffbf04000000 ( 64
MB actual)
[ 0.000000] memory : 0xffffffc000000000 - 0xffffffc100000000 ( 4096
MB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=1.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv2m: range[mem 0x08020000-0x08020fff], SPI[80:143]
[ 0.000000] arch_timer: cp15 timer(s) running at 62.50MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff
max_cycles: 0x1cd42e208c, max_idle_ns: 881590405314 ns
[ 0.000169] sched_clock: 56 bits at 62MHz, resolution 16ns, wraps every
4398046511096ns
[ 0.007904] Console: colour dummy device 80x25
[ 0.008717] Calibrating delay loop (skipped), value calculated using timer
frequency.. 125.00 BogoMIPS (lpj=250000)
[ 0.008896] pid_max: default: 32768 minimum: 301
[ 0.010407] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.010533] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.036244] /cpus/cpu-map: empty cluster
[ 0.054938] ASID allocator initialised with 65536 entries
[ 0.062264] Hierarchical SRCU implementation.
[ 0.083626] smp: Bringing up secondary CPUs ...
[ 0.083749] smp: Brought up 1 node, 1 CPU
[ 0.083799] SMP: Total of 1 processors activated.
[ 0.083930] CPU features: detected feature: 32-bit EL0 Support
[ 0.084837] CPU: All CPU(s) started at EL1
[ 0.085697] alternatives: patching kernel code
[ 0.103231] devtmpfs: initialized
[ 0.112367] random: get_random_u32 called from
bucket_table_alloc+0x108/0x268 with crng_init=0
[ 0.115086] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff,
max_idle_ns: 7645041785100000 ns
[ 0.115238] futex hash table entries: 256 (order: 3, 32768 bytes)
[ 0.139418] random: fast init done
[ 0.147601] NET: Registered protocol family 16
[ 0.158204] cpuidle: using governor menu
[ 0.158681] vdso: 2 pages (1 code @ ffffff8008656000, 1 data @
ffffff8008a04000)
[ 0.158985] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.167677] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.167733] Serial: AMBA PL011 UART driver
[ 0.204869] 9000000.pl011: ttyAMA0 at MMIO 0x9000000 (irq = 39, base_baud =
0) is a PL011 rev1
[ 0.219256] console [ttyAMA0] enabled
[ 0.314904] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.326241] vgaarb: loaded
[ 0.328502] SCSI subsystem initialized
[ 0.333247] usbcore: registered new interface driver usbfs
[ 0.333962] usbcore: registered new interface driver hub
[ 0.334672] usbcore: registered new device driver usb
[ 0.338097] pps_core: LinuxPPS API ver. 1 registered
[ 0.338273] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo
Giometti <giome...@linux.it>
[ 0.338808] PTP clock support registered
[ 0.351352] clocksource: Switched to clocksource arch_sys_counter
[ 0.400965] NET: Registered protocol family 2
[ 0.409121] TCP established hash table entries: 32768 (order: 6, 262144
bytes)
[ 0.409725] TCP bind hash table entries: 32768 (order: 7, 524288 bytes)
[ 0.410573] TCP: Hash tables configured (established 32768 bind 32768)
[ 0.414321] UDP hash table entries: 2048 (order: 4, 65536 bytes)
[ 0.416624] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes)
[ 0.418422] NET: Registered protocol family 1
[ 0.430140] RPC: Registered named UNIX socket transport module.
[ 0.430378] RPC: Registered udp transport module.
[ 0.430511] RPC: Registered tcp transport module.
[ 0.430655] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.439435] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters
available
[ 0.440416] kvm [1]: HYP mode not available
[ 0.447897] workingset: timestamp_bits=62 max_order=20 bucket_order=0
[ 0.492960] fuse init (API version 7.26)
[ 0.502217] io scheduler noop registered
[ 0.502971] io scheduler cfq registered (default)
[ 0.503151] io scheduler mq-deadline registered
[ 0.503929] io scheduler kyber registered
[ 0.509211] atomic64_test: passed
[ 0.510795] OF: PCI: host bridge /pcie@10000000 ranges:
[ 0.511706] OF: PCI: IO 0x3eff0000..0x3effffff -> 0x00000000
[ 0.512272] OF: PCI: MEM 0x10000000..0x3efeffff -> 0x10000000
[ 0.512507] OF: PCI: MEM 0x8000000000..0xffffffffff -> 0x8000000000
[ 0.513826] pci-host-generic 4010000000.pcie: ECAM at [mem
0x4010000000-0x401fffffff] for [bus 00-ff]
[ 0.515984] pci-host-generic 4010000000.pcie: PCI host bridge to bus 0000:00
[ 0.516431] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.516725] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 0.516927] pci_bus 0000:00: root bus resource [mem 0x10000000-0x3efeffff]
[ 0.517142] pci_bus 0000:00: root bus resource [mem
0x8000000000-0xffffffffff]
[ 0.524810] pci 0000:00:01.0: BAR 6: assigned [mem 0x10000000-0x1003ffff
pref]
[ 0.525387] pci 0000:00:01.0: BAR 4: assigned [mem 0x8000000000-0x8000003fff
64bit pref]
[ 0.525792] pci 0000:00:01.0: BAR 1: assigned [mem 0x10040000-0x10040fff]
[ 0.526047] pci 0000:00:01.0: BAR 0: assigned [io 0x1000-0x101f]
[ 0.538203] virtio-pci 0000:00:01.0: enabling device (0000 -> 0003)
[ 0.562175] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 0.567923] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.629804] vda: vda1
[ 0.648495] libphy: Fixed MDIO Bus: probed
[ 0.648644] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[ 0.648821] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 0.649291] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[ 0.649500] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 0.650101] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[ 0.650305] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 0.650977] ixgbe: Intel(R) 10 Gigabit PCI Express Network Driver - version
5.1.0-k
[ 0.652100] ixgbe: Copyright (c) 1999-2016 Intel Corporation.
[ 0.657251] ixgbevf: Intel(R) 10 Gigabit PCI Express Virtual Function
Network Driver - version 4.1.0-k
[ 0.657529] ixgbevf: Copyright (c) 2009 - 2015 Intel Corporation.
[ 0.662256] i40e: Intel(R) Ethernet Connection XL710 Network Driver -
version 2.1.14-k
[ 0.662518] i40e: Copyright (c) 2013 - 2014 Intel Corporation.
[ 0.667657] ixgb: Intel(R) PRO/10GbE Network Driver - version 1.0.135-k2-NAPI
[ 0.667867] ixgb: Copyright (c) 1999-2008 Intel Corporation.
[ 0.668164] i40evf: Intel(R) 40-10 Gigabit Virtual Function Network Driver -
version 3.0.0-k
[ 0.668448] Copyright (c) 2013 - 2015 Intel Corporation.
[ 0.676590] usbcore: registered new interface driver usb-storage
[ 0.678882] mousedev: PS/2 mouse device common for all mice
[ 0.684414] IR NEC protocol handler initialized
[ 0.684516] IR RC5(x/sz) protocol handler initialized
[ 0.684680] IR RC6 protocol handler initialized
[ 0.684794] IR JVC protocol handler initialized
[ 0.684905] IR Sony protocol handler initialized
[ 0.685019] IR SANYO protocol handler initialized
[ 0.685156] IR Sharp protocol handler initialized
[ 0.685282] IR MCE Keyboard/mouse protocol handler initialized
[ 0.685407] IR XMP protocol handler initialized
[ 0.686308] gem5_energy_ctrl_mc: gem5_mc_init: No energy controller found
[ 0.693144] usbcore: registered new interface driver usbhid
[ 0.693282] usbhid: USB HID core driver
[ 0.697187] NET: Registered protocol family 17
[ 0.720578] EXT4-fs (vda1): couldn't mount as ext3 due to feature
incompatibilities
[ 0.765410] EXT4-fs (vda1): recovery complete
[ 0.766977] EXT4-fs (vda1): mounted filesystem with ordered data mode. Opts:
(null)
[ 0.767668] VFS: Mounted root (ext4 filesystem) on device 254:1.
[ 0.773136] devtmpfs: mounted
[ 0.789121] Freeing unused kernel memory: 384K
+ mount -t proc - /proc
+ mount -t sysfs - /sys
+ mount -t debugfs - /sys/kernel/debug/
+ [ -e /dev/sdb1 ]
+ [ -e /dev/sdb ]
+ [ -e /dev/vdb1 ]
+ [ -e /dev/vdb ]
+ [ -e /dev/vda1 ]
+ mount /dev/vda1 /data
+ break
+ f=/tmp/script
+ /sbin/m5 readfile
[ 1.068469] m5[647]: undefined instruction: pc=0000000000409268
[ 1.068836] Code: ff430110 d65f03c0 ff4f0110 d65f03c0 (ff500110)
Illegal instruction
[ 1.076921] Kernel panic - not syncing: Attempted to kill init!
exitcode=0x00008400
[ 1.076921]
[ 1.077427] CPU: 0 PID: 1 Comm: init Not tainted 4.14.0+ #2
[ 1.077607] Hardware name: linux,dummy-virt (DT)
[ 1.077915] Call trace:
[ 1.078034] [<ffffff8008088068>] dump_backtrace+0x0/0x328
[ 1.078255] [<ffffff80080883a4>] show_stack+0x14/0x20
[ 1.078411] [<ffffff8008620ff4>] dump_stack+0x8c/0xb0
[ 1.078569] [<ffffff80080b5ef0>] panic+0x11c/0x264
[ 1.078727] [<ffffff80080b91e0>] do_exit+0x910/0x918
[ 1.078883] [<ffffff80080b9d44>] do_group_exit+0x34/0x98
[ 1.079046] [<ffffff80080b9db8>] __wake_up_parent+0x0/0x30
[ 1.079316] Exception stack(0xffffff800800bec0 to 0xffffff800800c000)
[ 1.079599] bec0: 0000000000000084 0000000000000000 0000000000000084
0000007f8ee402a0
[ 1.079842] bee0: 0000000000000020 1871eb0d1eb69d3e 481b3debfec9a0ff
7f7f7fffffffff7f
[ 1.080058] bf00: 000000000000005e 0000007f8ed306d0 0000000000000000
0000007fd0986c28
[ 1.080285] bf20: 0000000000000020 0000000000000000 0000000000000000
0000007f8ecc3e08
[ 1.080486] bf40: 0000005557628a40 0000007f8ed62ad0 0000000000000019
0000000000000004
[ 1.080690] bf60: 0000000000000000 0000005557603330 0000000000000000
0000000000000000
[ 1.080920] bf80: 0000000000000000 0000000000000000 0000000000000000
0000000000000000
[ 1.081154] bfa0: 0000000000000000 0000007fd09871b0 0000005557612588
0000007fd09871b0
[ 1.081397] bfc0: 0000007f8ed62aec 0000000060000000 0000000000000084
000000000000005e
[ 1.081622] bfe0: 0000000000000000 0000000000000000 0000000000000000
0000000000000000
[ 1.081869] [<ffffff8008082fb0>] el0_svc_naked+0x24/0x28
[ 1.082253] Kernel Offset: disabled
[ 1.082506] CPU features: 0x002082
[ 1.082660] Memory Limit: 4096 MB
[ 1.083144] ---[ end Kernel panic - not syncing: Attempted to kill init!
exitcode=0x00008400
[ 1.083144]
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org