qemu.sh 300 B

123456789
  1. if [ ! -f "sd.bin" ]; then
  2. dd if=/dev/zero of=sd.bin bs=1024 count=65536
  3. fi
  4. qemu-system-aarch64 -M raspi4b -serial stdio \
  5. -kernel rtthread.bin \
  6. -drive if=sd,file=sd.bin \
  7. -dtb bcm2711-rpi-4-b.dtb \
  8. -append 'printk.time=0 earlycon=pl011,0xfe201000 console=ttyAMA0 root=ram0 rw'