rust-embedded / rust-raspberrypi-OS-tutorials

:books: Learn to write an embedded OS in Rust :crab:

Repository from Github https://github.comrust-embedded/rust-raspberrypi-OS-tutorialsRepository from Github https://github.comrust-embedded/rust-raspberrypi-OS-tutorials

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

phial3 opened this issue · comments

commented

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

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?