Skip to content
This repository was archived by the owner on Apr 13, 2024. It is now read-only.

Commit 27c9d15

Browse files
committed
driver: Fix arm64's qemu_cmdline to specify virtio-blk-device
We need this to support booting up with EFI, otherwise arm64 on 4.4 panics because the block device cannot be found. This mirrors what is done for arm32. Suggested-by: Kees Cook <keescook@chromium.org> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
1 parent c35ebf1 commit 27c9d15

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

driver.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ setup_variables() {
8585
image_name=Image.gz
8686
qemu="qemu-system-aarch64"
8787
qemu_cmdline=( -cpu cortex-a57
88-
-drive "file=images/arm64/rootfs.ext4,format=raw"
88+
-drive "file=images/arm64/rootfs.ext4,format=raw,id=rootfs,if=none"
89+
-device "virtio-blk-device,drive=rootfs"
8990
-append "console=ttyAMA0 root=/dev/vda" )
9091
export CROSS_COMPILE=aarch64-linux-gnu- ;;
9192

0 commit comments

Comments
 (0)