Hello,
i'm trying to run a MPC8544CDS with a persistent storage. But so far i had no success and hope you can help me.
This is my setup:
- qemu-9.0.0.0
- Host system is a Debian 11 (bullseye)
x86-64
- buildroot-2018.08.4
- linux kernel 4.16.7
So far the most promising approaches were the following two.
1.approach: virtio block device
I added the virtio block device support to the kernel and run i with this command:
qemu-system-ppc -nographic -m 1024 -M mpc8544ds -cpu e500v2 -drive file=storage.img,index=0,media=disk,if=virtio -kernel vmlinux
Unfortunately it stops at this line:
virtio_blk virtio1: [vda] 2097152 512-byte logical blocks (1.07 GB/1.00 GiB)
Tell me if you need more of the console log.
2. approach: ahci sisci drive
I added libata with ahci sata support and scsi disk support to the kernel and run i with this command:
qemu-system-ppc -nographic -m 1024 -M mpc8544ds -cpu e500v2 -device ich9-ahci,id=ahci -drive if=none,id=hda,file=storage.img,format=raw -device ide-hd,drive=hda,bus=ahci.0 -kernel vmlinux
This time the system fully starts and i have a /dev/sda device. I even can add a partition table with fdisk and i get the /dev/sda1 device.
But unfortunately a can't mount the device. If i try to mount i get the following error:
# mkdir /mnt/mydisk
# mount /dev/sda1 /mnt/mydisk
mount: mounting /dev/sda1 on /mnt/mydisk failed: No such file or directory
The error code 255 for the mount command didn't help me much.
Tell me if you need more or other information.
Fabian