Skip to content
Michael Ellerman edited this page Dec 3, 2018 · 4 revisions

Booting a powerpc kernel with Qemu

Installing Qemu

sudo apt-get install qemu-system-ppc

Getting a rootdisk

For little endian:

wget https://openpower.xyz/job/initramfs/job/buildroot-master/lastSuccessfulBuild/artifact/rootfs-le.cpio.xz

For big endian:

wget https://openpower.xyz/job/initramfs/job/buildroot-master/lastSuccessfulBuild/artifact/rootfs-be.cpio.xz

There are also root disks built by Guenter Roeck available here:

https://github.com/groeck/linux-build-test/tree/master/rootfs

Running

qemu-system-ppc64 -M pseries -m 1G -nographic -vga none -kernel vmlinux -initrd rootfs-le.cpio.xz 

Login with username root.

# cat /proc/cpuinfo 
processor	: 0
cpu		: POWER7 (raw), altivec supported
clock		: 1000.000000MHz
revision	: 2.3 (pvr 003f 0203)

timebase	: 512000000
platform	: pSeries
model		: IBM pSeries (emulated by qemu)
machine		: CHRP IBM pSeries (emulated by qemu)

Shutdown with halt.

Clone this wiki locally