QEMU?
I compiled compiled the 03-screentext example from Circle. My Rules.mk reads as follows:
Code: Select all
AARCH ?= 32
RASPPI ?= 2
PREFIX ?= arm-none-eabi-
PREFIX64 ?= aarch64-none-elf-
I build the project, transfer it to a SD card, boot, and it works!
Now I'm trying to get it to work via qemu. I did fallocate to create a disk, and formatted it:
Code: Select all
file circle.fs
circle.fs: DOS/MBR boot sector, code offset 0x3c+2, OEM-ID "mkfs.fat", sectors/cluster 4, reserved sectors 4, root entries 512, Media descriptor 0xf8, sectors/FAT 68, sectors/track 32, heads 64, sectors 69632 (volumes > 32 MB), serial number 0x5d3c1921, unlabeled, FAT (16 bit)
I add all the files that I have for the SD card. I launch qemu via the command line:
Code: Select all
qemu-system-arm -M raspi2 -cpu cortex-a7 -m 256M -drive file=circle.fs,if=sd,format=raw -kernel circle.fs
QEMU launches, but the output screen is blank. I'm expecting it to print stuff to the window, but I don't see anything. I've tried a variety of settings, but to no avail.
Can anyone suggest what's going wrong?