qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QEMU boot kernel for ppc e300c3 problem


From: Thomas Huth
Subject: Re: QEMU boot kernel for ppc e300c3 problem
Date: Mon, 6 Sep 2021 08:09:56 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0

On 04/09/2021 12.59, Ali Vatankhah wrote:
I am new to QEMU. I built a Linux kernel 4.14 and rootfs for MPC8308 (this CPU has e300c3 ppc core with Yocto (thud version) and it works on real hardware well.
When I run this command to run kernel with QEMU:

qemu-system-ppc -kernel vmlinux.bin -nographic

it prints this output and hangs up with 100% CPU usage on one CPU core:

 >> =============================================================
 >> OpenBIOS 1.1 [Mar 16 2021 08:16]
 >> Configuration device id QEMU version 1 machine id 2
 >> CPUs: 1
 >> Memory: 128M
 >> UUID: 00000000-0000-0000-0000-000000000000
 >> CPU type PowerPC,750

You definitly need to select the right CPU type, too. So for your case, you'd need to add the "-cpu e300c3" command line switch. See "-cpu help" for a complete list.

But the CPU is only a part of the hardware, you also need to select a supported board with the "-M" command line parameter. See "-M help" for a list. I don't think that QEMU supports any machine that features the e300 CPU, so your case likely does not work. You could try "-M ppce500", maybe you're lucky and that works, too, but I guess it will rather crash instead.

 Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]