I have written a bare-metal program and i need flash/SD to storge my file system.
My option of the QEMU is "qemu-system-aarch64 -machine virt -cpu cortex-a57 -smp 1 -m 1G -nographic -serial mon:stdio -d in_asm,int,mmu -D ./qemu.log -kernel myimg.bin".
I dump the dts of QEMU(arm64) virt machine and these is only a PCIe bus and a cfi-flash. It seems that the cfi-flash is used for boot. And the PCIe is too complex to me.
I have known that devices which connected to system bus can not be dynamically instantiated by command line.
How can i add any flash/SD to the virt machine?
If it must add by PCIe, what should the command line be? Is there any PCIe bare-metal driver i can reference?