[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Linux kernel image for powerpc 64 endian less not booting
From: |
Oscar Carter |
Subject: |
Re: Linux kernel image for powerpc 64 endian less not booting |
Date: |
Fri, 14 Aug 2020 12:11:59 +0200 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
Hi Greg,
On Mon, Aug 03, 2020 at 10:22:21AM +0200, Greg Kurz wrote:
> On Sat, 1 Aug 2020 15:41:30 +0200
> Oscar Carter <oscar.carter@gmx.com> wrote:
>
> > Hi,
> >
> > I'm working in a new feature for the powerpc architecture in the linux
> > kernel.
> > I'm a newbie in the kernel and with the qemu. So, I will explain my probem.
> >
> > I've compiled the kernel with a default configuration and the set to NO the
> > CONFIG_KEXEC option with the nconfig (I've do this because googling I've
> > found that for someone resolves the problem).
> >
> > When I try to boot this kernel with qemu I obtained the following:
> >
> > ubuntu@ubuntu:~/Documents$ qemu-system-ppc -kernel
> > /media/ubuntu/Data/linux/arch/powerpc/boot/zImage -append "root=/dev/sda
> > console=ttyS0" -drive file=qemu_image.img,index=0,media=disk,format=raw
> > --nographic
> >
>
> Hi,
>
> You should use qemu-system-ppc64 to run 64-bit guests.
>
Thank you very much for your help. I've tested this and now the boot stops
with an exception.
I've tested this with the qemu version 4.2 (ubuntu 20.04) and with the qemu
version:
QEMU emulator version 5.0.93 (v5.1.0-rc3-dirty)
Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers
building from sources. In both cases the stop point and exception is the
same:
To run qemu:
qemu-system-ppc64 -kernel /media/ubuntu/Data/linux/arch/powerpc/boot/zImage
-append "root=/dev/sda console=ttyS0" -drive
file=qemu_image.img,index=0,media=disk,format=raw --nographic
The output:
SLOF **********************************************************************
QEMU Starting
Build Date = Jul 17 2020 11:15:24
FW Version = git-e18ddad8516ff2cf
Press "s" to enter Open Firmware.
Populating /vdevice methods
Populating /vdevice/vty@71000000
Populating /vdevice/nvram@71000001
Populating /vdevice/l-lan@71000002
Populating /vdevice/v-scsi@71000003
SCSI: Looking for devices
8000000000000000 DISK : "QEMU QEMU HARDDISK 2.5+"
8200000000000000 CD-ROM : "QEMU QEMU CD-ROM 2.5+"
Populating /pci@800000020000000
00 0000 (D) : 1234 1111 qemu vga
00 0800 (D) : 1033 0194 serial bus [ usb-xhci ]
No NVRAM common partition, re-initializing...
Installing QEMU fb
Scanning USB
XHCI: Initializing
USB Keyboard
USB mouse
No console specified using screen & keyboard
Detected RAM kernel at 400000 (9085d8 bytes)
Welcome to Open Firmware
Copyright (c) 2004, 2017 IBM Corporation All rights reserved.
This program and the accompanying materials are made available
under the terms of the BSD License available at
http://www.opensource.org/licenses/bsd-license.php
Booting from memory...
( 700 ) Program Exception [ 1dbf04c4 ]
R0 .. R7 R8 .. R15 R16 .. R23 R24 .. R31
8000000000002000 000000001e47d200 0000000000000000 0000000000000000
000000001dc76000 8000000000000000 0000000000000000 0000000000000000
0000000000000000 000000001e47c010 0000000000000000 0000000000000000
0000000000000000 0000000000000030 0000000000000000 0000000000000000
0000000000000000 000000000000005b 0000000000000000 0000000000000000
000000001dbf04c4 0000000000000000 0000000000000000 0000000000000000
0000000000000000 0000000000000000 0000000000000000 0000000000000000
0000000000000000 0000000000000000 0000000000000000 0000000000000000
CR / XER LR / CTR SRR0 / SRR1 DAR / DSISR
80000000 000000001dbf04f0 0000000000400000 0000000000000000
0000000020040000 0000000000400000 8000000000082000 00000000
2 > QEMU: Terminated
I don't know what's happening now. What am I doing wrong?
Thanks in advance.
Oscar Carter