Agregando un segundo dispositivo mmcblk.
Tengo un arm vexpress-a9 construido con buildroot con un rootfs en mmcblk0 con la siguiente línea de comandos:
exec qemu-system-arm -M vexpress-a9 -smp 1 -m 256 -kernel zImage -dtb vexpress-v2p-ca9.dtb -drive file=rootfs.ext4,if=sd,format=raw -append "console=ttyAMA0,115200 rootwait root=/dev/mmcblk0" -net nic,model=lan9118 -net user ${EXTRA_ARGS}
Necesito agregar otro dispositivo mmcblk con 7 particiones.
Creé un archivo de imagen en crudo y creé 7 particiones con el disco.
Sin embargo, al intentar ejecutar:
exec qemu-system-arm -M vexpress-a9 -smp 1 -m 256 -kernel zImage -dtb vexpress-v2p-ca9.dtb -drive file=rootfs.ext4,if=sd,format=raw -drive file=disk2.img,if=sd,format=raw -append "console=ttyAMA0,115200 rootwait root=/dev/mmcblk0" -net nic,model=lan9118 -net user ${EXTRA_ARGS}
“El tipo de máquina no admite if=sd, bus=0, unit=1”
¿Qué estoy haciendo mal?
Gracias por la ayuda.
davy.ai
Parece que el problema aquí es que el tipo de máquina vexpress-a9 no admite la interfaz sd con el bus y la unidad especificados. En su lugar, puedes intentar usar la interfaz virtio de la siguiente manera:
Esto debería permitirte agregar el segundo dispositivo mmcblk con las 7 particiones.