rust-embedded / rust-raspberrypi-OS-tutorials

:books: Learn to write an embedded OS in Rust :crab:
Apache License 2.0
13.68k stars 799 forks source link

docker image `rustembedded/osdev-utils:2021.12` unsupported for raspi4 and raspi5 #218

Open phial3 opened 2 months ago

phial3 commented 2 months ago

in Makefile change QEMU_MACHINE_TYPE = raspi4b

then

make test BSP=rpi4

error:

Boot test - rpi4
docker run -t --rm -v /Users/admin/Workspace/rust/github.com/rust-raspberrypi-OS-tutorials/04_safe_globals:/work/tutorial -w /work/tutorial -v /Users/admin/Workspace/rust/github.com/rust-raspberrypi-OS-tutorials/04_safe_globals/../common:/work/common rustembedded/osdev-utils:2021.12 ruby ../common/tests/dispatch.rb qemu-system-aarch64 -M raspi4b -serial stdio -display none -kernel kernel8.img
         -------------------------------------------------------------------
         🦀 Running 1 console I/O tests
         -------------------------------------------------------------------

           1. Checking for the string: 'Stopping here'..................

         Console log:

         -------------------------------------------------------------------
         ❌ Failure: Boot test: #<Errno::EIO: Input/output error @ io_fillbuf - fd:5 /dev/pts/1> - QEMU might have quit early
         -------------------------------------------------------------------

make: *** [test_boot] Error 1
BartMassey commented 2 months ago

I don't know what is needed to get QEMU running as an emulator for Pi 4. I doubt Pi 5 has a full emulator available at this point, although I haven't checked.

Perhaps someone else has more info?