qemu-ppc
[Top][All Lists]
Advanced

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

Re: QEMU and E500


From: Nicholas Piggin
Subject: Re: QEMU and E500
Date: Tue, 08 Aug 2023 13:05:26 +1000

On Mon Aug 7, 2023 at 5:57 AM AEST, BALATON Zoltan wrote:
> On Sun, 6 Aug 2023, Nicholas Piggin wrote:
> > On Fri Aug 4, 2023 at 2:06 AM AEST, Andrea Palmatè wrote:
> >> Of course I did..
> >> There are no great examples that use that machine.. That link is one of the
> >> few I've found online. And no one of them are using an ISO to boot via CD
> >
> > How is it not booting? Can you take the kernel from the ISO and boot it
> > directly with -kernel? Linux needs CONFIG_PPC_QEMU_E500=y which might
> > not be set.
>
> This wasn't clear from the report and took me some time to get too but the 
> keyword is -cpu e500v2 which looks like this CPU is not well supported by 
> Linux so one needs to dig up some experimental kernel for it then find the 
> problem that there's no user space for it too. I think that's the main 
> problem here in my understanding but not too sure either.

qemu-system-ppc -kernel ~/build/linux/ppc32e/vmlinux --machine ppce500 \
  --cpu e500v2 -append 'console=tty0 console=ttyS0 noreboot'           \
  -nographic -initrd ~/images/tmp.cpio.gz -m 1024 -smp 4 -vga none     \
  -nic model=e1000

Works for me.

Linux version 6.4.0-rc5-00011-g06a4b0f6a3ae (npiggin@wheely) 
(powerpc64le-linux-gnu-gcc (Debian 12.3.0-4) 12.3.0, GNU ld (GNU Binutils for 
Debian) 2.40.50.20230625) #1126 Sun Aug  6 23:29:26 AEST 2023
Network interface test passed
Boot successful.
/ # cat /proc/cpuinfo
processor       : 0
cpu             : e500v2
clock           : 400.000000MHz
revision        : 2.2 (pvr 8021 0022)
bogomips        : 800.00

timebase        : 400000000
platform        : QEMU e500
model           : QEMU ppce500
Memory          : 1024 MB
/ #

Thanks,
Nick



reply via email to

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