Booting a ppc linux kernel in qemu

1

i am new at this. I am trying to boot a linux kernel image cross compiled for powerpc inside qemu. I followed guides on the web, but i am stuck and i don;t really know what do to next.

qemu-system-ppc -kernel vmlinux_2 -hda ss1.1.img -append "console=ttyS0 root=/dev/sda1" -nographic

>> =============================================================
>> OpenBIOS 1.1 [Jul 30 2013 21:44]
>> Configuration device id QEMU version 1 machine id 2
>> CPUs: 1
>> Memory: 128M
>> UUID: 00000000-0000-0000-0000-000000000000
>> CPU type PowerPC,750
Welcome to OpenBIOS v1.1 built on Jul 30 2013 21:44
>> [ppc] Kernel already loaded (0x01000000 + 0x001e5608) (initrd 0x00000000 + 0x00000000)
>> [ppc] Kernel command line: console=ttyS0 root=/dev/sda1

from here on it does nothing, i can enter monitor mode but nothing. Nothing happens. I even tried to copy a fs to the img file hoping that smt would happen but nothing. If i run the command without the nographic option vnc only shows me a white screen with the bios version, and a blinking cursor. Any ideeas / advice? I looked trough the qemu documentation, but the problem is i don't even know where i am wrong.

linux
kernel
qemu
powerpc
asked on Stack Overflow Aug 21, 2013 by Doru

5 Answers

0

Looking your initrd output:

(0x01000000 + 0x001e5608) (initrd 0x00000000 + 0x00000000)

It really does not look normal at all.

My bootup attempt:

qemu-system-ppc -m 1024 -kernel vmlinux -cdrom mini.iso -boot d

where the mini.iso, initrd.gz, vmlinux is loaded from here:

http://ports.ubuntu.com/ubuntu-ports/dists/xenial/main/installer-powerpc/current/images/powerpc/netboot

does work. At the installation prompt, just enter "alt-F2" (or "alt-F3") to switch to another console and "dmesg" and you can see that the entire kernel has been successfully booted up.

The dmesg tail-end and starting lines are shown here:

enter image description here

answered on Stack Overflow Dec 10, 2013 by Peter Teoh • edited Dec 8, 2018 by evandrix
0

I had the same problem when building a qemuppc image with Yocto. Please try to rebuild your kernel without this config - it solved the problem in my case:

  • CONFIG_KEXEC

kexec is a system call that implements the ability to shutdown your current kernel, and to start another kernel. It is like a reboot but it is independent of the system firmware.

If you google "CONFIG_KEXEC PowerPC" you will also find some answers.

answered on Stack Overflow Aug 25, 2014 by Liviu Gheorghisan
0

For me it was when I built the kernel. If I did not enable: Platform support ---> Support booting from Open firmware or yaboot I got the exact same screen as you. When I flipped it to on, rebuilt the kernel using bitbake virtual/kernel -c menuconfig for yocto/poky all was well! :)

answered on Stack Overflow Dec 22, 2017 by David Aubin
0

OF[openfirmware] can't boot kdump kernel. qemuppc using openbios.

answered on Stack Overflow Apr 24, 2018 by dudengke
-1

Dont use nographic use below command ,

qemu-system-ppc -kernel vmlinux_2 -hda ss1.1.img -append "console=ttyS0 root=/dev/sda1"

or

qemu-system-ppc -kernel vmlinux_2 -hda ss1.1.img -append "root=/dev/sda1"

answered on Stack Overflow Aug 22, 2013 by vinay hunachyal

User contributions licensed under CC BY-SA 3.0