Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3552

General discussion • qemu buildroot image for rpi4: serial console login and output

$
0
0
Hi All,

I wanted to build a very minimal embedded linux image consisting of only busybox , bash , less, nano and vim.
Enabled serial console option in boot/config.txt . Used buildroot to build a aarch64 image for rpi4. Want to run this image in qemu and see the serial output.

Code: Select all

qemu-system-aarch64 -machine raspi4b \
-cpu cortex-a72 \
-m 2G \
-nographic \
-kernel Image \
-dtb bcm2711-rpi-4-b.dtb \
-drive file=./sdcard.img,if=sd,format=raw \
-append 'root=/dev/mmcblk0p2 rootwait console=tty1 console=ttyAMA0,115200'
-serial stdio
QEMU 9.0.0 monitor - type 'help' for more information
qemu-system-aarch64: -serial stdio: cannot use stdio by multiple character devices
qemu-system-aarch64: -serial stdio: could not connect serial device to character backend 'stdio'

Statistics: Posted by rpireaper — Tue Jun 04, 2024 1:11 am



Viewing all articles
Browse latest Browse all 3552

Trending Articles