aboutsummaryrefslogtreecommitdiffstats
path: root/vm/qemu
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-04-29 15:56:15 +0200
committerAleksandr Nogikh <nogikh@google.com>2025-04-29 14:07:32 +0000
commit85a5a23f228f2de970f578bf3b452a23a222c09d (patch)
tree39003c4d34a07ea4e913f0f9ecb59b7aa3caf74f /vm/qemu
parent280a32a956ce6a62533ea6dd81bf5f47ec53aaf2 (diff)
vm/qemu: use -machine virt and -cpu max for arm32
The previously used combination does not boot our buildroot image: [ 6.334727][ T1] Run /sbin/init as init process [ 6.668200][ T1] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
Diffstat (limited to 'vm/qemu')
-rw-r--r--vm/qemu/qemu.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm/qemu/qemu.go b/vm/qemu/qemu.go
index 398eb8047..3253815de 100644
--- a/vm/qemu/qemu.go
+++ b/vm/qemu/qemu.go
@@ -161,8 +161,8 @@ var archConfigs = map[string]*archConfig{
},
"linux/arm": {
Qemu: "qemu-system-arm",
- // For some reason, new qemu-system-arm versions complain that "The only valid type is: cortex-a15".
- QemuArgs: "-machine vexpress-a15 -cpu cortex-a15 -accel tcg,thread=multi",
+ // The buildroot image we use does not boot with vexpress-a15/cortex-a15.
+ QemuArgs: "-machine virt -cpu max -accel tcg,thread=multi",
NetDev: "virtio-net-device",
RngDev: "virtio-rng-device",
UseNewQemuImageOptions: true,