7d914839a4
PowerNV is the platform using the OPAL [1] firmware on OpenPOWER systems. OPAL first loads a kernel and an initramfs image based on buildroot including a second boot loader petitboot [2]. The latter does device discovery and kexecs a new Linux image from disk or network. QEMU implements PowerNV machines [3] for the POWER8, POWER9 and Power10 processors which are used for dev and tests. POWER8 images being compatible with POWER9 and Power10, simply add a single qemu_ppc64le_powernv8 board for all. The QEMU script boots directly from a nvme disk because it is simple enough but a real system would boot from a ramfs first. [1] https://github.com/open-power/skiboot/blob/master/doc/overview.rst [2] https://github.com/open-power/petitboot/ [3] https://qemu.readthedocs.io/en/latest/system/ppc/powernv.html Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
6 lines
453 B
Plaintext
6 lines
453 B
Plaintext
Run the emulation with:
|
|
|
|
qemu-system-ppc64 -M powernv9 -kernel vmlinux -append "console=hvc0 rootwait root=/dev/nvme0n1" -device nvme,bus=pcie.3,addr=0x0,drive=drive0,serial=1234 -drive file=./rootfs.ext2,if=none,id=drive0,format=raw,cache=none -device e1000e,netdev=net0,mac=C0:FF:EE:00:01:03,bus=pcie.1,addr=0x0 -netdev user,id=net0 -serial mon:stdio -nographic # qemu_ppc64le_powernv8_defconfig
|
|
|
|
The login prompt will appear in the terminal window.
|