QEMU=qemu-system-arm
ARGS=(
-M virt -cpu cortex-a15 -m 4G -nographic -serial stdio
- -kernel armhf/vmlinuz -initrd armhf/initrd.gz
+ #-kernel armhf/vmlinuz -initrd armhf/initrd.gz
+ -kernel vmlinuz-6.1.0-25-armmp -initrd armhf-initrd.img
-append "console=ttyAMA0 root=/dev/vda1 roottype=ext4$APPEND"
-chardev socket,id=QEMU,server=on,wait=off,path=QEMU-armhf
-mon chardev=QEMU,mode=readline
-netdev vde,sock=/run/vde.ctl,id=unet
)
;;
+ ppc64el)
+ QEMU=qemu-system-ppc64le
+ ARGS=(
+ -M pseries -cpu power8 -m 4G -smp 4
+ -serial stdio
+ -kernel ppc64el/vmlinux
+ -initrd ppc64el/initrd.gz
+ #-append "root=/dev/ram0"
+ #-boot c
+ -append "root=/dev/sda2 roottype=ext4$APPEND"
+ #-chardev socket,id=QEMU,server=on,wait=off,path=QEMU-ppc64el
+ #-mon chardev=QEMU,mode=readline
+ -device virtio-blk-pci,id=blk0,drive=bootimg
+ -drive if=none,id=bootimg,format=raw,file=ppc64el/boot.img
+ -device virtio-blk-pci,id=blk1,drive=hd
+ -drive if=none,id=hd,file=$IMG,format=raw
+ -device virtio-net-pci,netdev=unet
+ -netdev vde,sock=/run/vde.ctl,id=unet
+ )
+ ;;
*)
echo "unknown \$1=$1" >&2
exit 1
;;
esac
+pwd
echo $QEMU "${ARGS[@]}" | sed 's/ -/\n -/g' >&2
exec $QEMU "${ARGS[@]}"