【发布时间】:2020-05-24 09:29:06
【问题描述】:
我使用yocto 为Raspberry Pi zero W 生成了一个core-image-minimal。
我正在尝试使用qemu-system-arm 使用此命令运行它:
sudo qemu-system-arm -kernel uImage-1-4.19.93+git0+3fdcc814c5-r0-raspberrypi0-wifi-20200208095028.bin \
-cpu arm1176 \
-m 512 \
-M raspi2 \
-no-reboot \
-serial stdio \
-append "root=/dev/sda2 panic=1 rootfstype=ext4 rw init=/bin/bash" \
-drive "file=core-image-minimal-raspberrypi0-wifi-20200208095028.rootfs.tar.bz2,index=0,media=disk,format=raw"
但模拟器以空白屏幕运行。
我在local.conf里面的变化:
MACHINE ??= "raspberrypi0-wifi"
RPI_USE_U_BOOT = "1"
ENABLE_UART = "1"
IMAGE_FSTYPES = "tar.bz2 ext4.xz"
SDIMG_ROOTFS_TYPE = "ext4.xz"
DISTRO_FEATURES_remove = "x11"
【问题讨论】:
标签: yocto qemu raspberry-pi-zero