qemu-ppc
[Top][All Lists]
Advanced

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

Re: [PATCH] target/ppc: Fix e6500 boot


From: BALATON Zoltan
Subject: Re: [PATCH] target/ppc: Fix e6500 boot
Date: Sat, 25 Dec 2021 22:53:16 +0100 (CET)

On Sat, 25 Dec 2021, mario@locati.it wrote:
I have tried to launch a freshly compiled qemu from git master on a NXP T2080RDB devkit that has a e6500 CPU in combination with a freshly compiled kernel 5.16-rc6 I have Debian SID ppc64 up and running using such a kernel, and when I launch qemu to run a VM with the same debian sid for ppc64 and the same kernel using --enable-kvm I end up with a kernel panic


[....]
Run /sbin/init as init process
random: fast init done
systemd[1]: illegal instruction (4) at 3fff96562ac8 nip 3fff96562ac8 lr 
3fff96562aa8 code 1 in libc-2.32.so[3fff96516000+1f7000]
systemd[1]: code: 60000000 38600006 9122b7e8 4801bead 60000000 60000000 
8122b7e8 2c090004 
systemd[1]: code: 40820014 39200005 60000000 9122b7e8 <00000000> 60000000 
8122b7e8 2c090005 

Looks like it trips on a 0 opcode here in the middle of other values that look like valid code so I wonder how that 0 got there? Did something overwrite it before it tried to execute it? If it always happens on the same address maybe you could try attaching gdb and put a watch point on that address to see what writes there, otherwise I don't know how to debug this.

Regards,
BALATON Zoltan

Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
Rebooting in 180 seconds..


On the positive side, for the first time I am not flooded by milions kernel error messages from the serial console attached to the devkit, not a single error spitted out from it, great!


The kernel config file I used
https://repo.powerprogress.org/t2080rdb/qemu/kernel_5.16-rc6.config


The resulting kernel
https://repo.powerprogress.org/t2080rdb/qemu/uImage_5.16-rc6


The complete console output I get when configuring qemu before compilation
https://repo.powerprogress.org/t2080rdb/qemu/2021-12-25_qemu_git_configure_on_ppc64.txt


The complete console output that end up with the kernel panic when launching 
qemu
https://repo.powerprogress.org/t2080rdb/qemu/2021-12-25_qemu_ppc64_e6500_kvm_debian_sid_log.txt
 

reply via email to

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