【问题标题】:Run Raspberry Pi Zero W image in qemu在 qemu 中运行 Raspberry Pi Zero W 映像
【发布时间】:2020-05-24 09:29:06
【问题描述】:

我使用yoctoRaspberry 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


    【解决方案1】:

    Raspberry Pi 2 具有与 RPiZero 或 RPi1 不同的处理器 BCM2836(四核)和不同的内存映射 我所做的是修改和重新编译 QEMU 以支持 Raspberry Pi Zero W。 你可以在以下位置找到我的补丁叉: https://github.com/igwtech/qemu

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-10-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-12-16
      • 1970-01-01
      • 2021-04-08
      相关资源
      最近更新 更多