I don't get it. What's wrong with qemu? It is the perfect candidate for what the OP wants.
You can run it as "qemu -M raspi2" to emulate 32 bit RPi2 (for those Cambridge tutorials the OP linked), or "qemu -M raspi3" for 64 bit.
It is true, that the emulation is not fully complete, but pretty good. A full emulation also exists, but you have to compile that from source, because it hasn't been merged with the qemu mainline.
satyria wrote: ↑Fri Jul 24, 2020 3:38 pm
Hi Guys,
I am looking for a way to recreate and program the hardware of the Raspberry PI directly. I am not here, for example, running Rasberian or the like, but I want to be able to program this directly, such as at
https://www.cl.cam.ac.uk/projects/raspb ... orials/os/
I've programmed a few things for this myself, but what bothers me about the way it works is that I have to constantly rewrite an SD card to test my attempts.
You could try the aforementioned rpiboot, or if that's too heavy to your taste, then you can use a small chainloader like raspbootcom or imgrecv too. My raspi3 tutorials has a minimal chainloader example, which loads your kernel over serial line. But qemu would be my first choice.
satyria wrote: ↑Fri Jul 24, 2020 3:38 pm
I need the following things, which the emulator should support, at least it would be nice:
Graphics, sound, USB
This is pretty vague list

Graphics is supported (framebuffer and other stuff, but not 3D accelerations), sound and USB also to some extent.
satyria wrote: ↑Fri Jul 24, 2020 3:38 pm
I don't need any other hardware (e.g. GPIO etc.)
I would have Linux or Windows as the host operating system.
Qemu is available for both Linux and Windows. Kernel senders (for the serial port chainloaders) also available for both Linux and Windows.
Cheers,
bzt