When working with photonvision and without a romi in front of me, I decided to give qemu a try.
It works, but it is very slow.
See the 'boot' script provided for booting.
- system reboots twice before staying up
- first boot runs /usr/lib/raspberrypi-sys-mods/firstboot
- not sure what the second boot does
- third boot stays up.
sudo apt-get install qemu-system-arm cloud-image-utils
Download the image and grab kernel and dtb (device tree) file out.
$ wget https://github.com/wpilibsuite/WPILibPi/releases/download/v2023.1.1/WPILibPi_image-v2023.1.1-Romi.zip
$ unzip WPILibPi_image-v2023.1.1-Romi.zip
$ sudo mount-image-callback --read-only --part=1 \
WPILibPi-v2023.1.1_2023-01-16-Romi.img -- \
sh -c \
'cp -v $MOUNTPOINT/cmdline.txt $MOUNTPOINT/bcm2710-rpi-3-b.dtb $MOUNTPOINT/kernel8.img .'
Use 'boot' script below. Things to note:
- I took the cmdline from cmdline.txt and adjusted a bit
- I do not think the root=PARTUUID parameter to work although it should have (partition table is MBR and the disk label-id matched the PARTUUID per sfdisk --dump).
- console=ttyAMA0 is what you want for console output.
- Once it is up, you can ssh to localhost port 22, get to guests romi web interface at http://localhost:5580 and photonvision web interface at http://localhost:5800
Just some links to pages that helped me along: