[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4
From: |
John Paul Adrian Glaubitz |
Subject: |
Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4 |
Date: |
Sat, 23 Oct 2021 03:12:58 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 |
Hello Zoltan!
On 10/23/21 03:07, BALATON Zoltan wrote:
>> I can confirm that the default config works for me, too. Both with gcc-8 and
>> gcc-11.
>
> OK with your config I can reproduce the problem too but the kernel with that
> config
> is 177MB and the r2d board has 64MB RAM so this can't work that way. Then
> it's likely
> not a but but a too big kernel.
You either need to strip the kernel with "strip vmlinux" or use the image from
arch/sh/
boot/zImage.
>> Using that kernel, however, I cannot use the debian-installer initrd.gz,
>> even with
>> CONFIG_BLK_DEV_INITRD enabled in the kernel configuration.
>>
>> The kernel prints a message saying that the initramfs is uncompressed, but
>> whatever I
>> do I cannot get it to mount the initramfs. All I get is this:
>>
>> [ 0.096000] Trying to unpack rootfs image as initramfs...
>>
>> and then later:
>>
>> [ 0.480000] ---[ end trace 46a3adcb34136251 ]---
>> [ 0.480000] Kernel panic - not syncing: Attempted to kill init!
>> exitcode=0x0000000b
>> [ 0.480000] ---[ end Kernel panic - not syncing: Attempted to kill init!
>> exitcode=0x0000000b ]---
>
> I don't know, you have to find the needed config options to have what's
> needed to use this initrd.
> You could either try to strip down the debian config or add more to the
> default until you get a
> working kernel that fits in the memory (and there's some left to run other
> processes).
I'll keep digging.
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz@debian.org
`. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
- Looking for advise on debugging a non-boot kernel on qemu-system-sh4, John Paul Adrian Glaubitz, 2021/10/21
- Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4, BALATON Zoltan, 2021/10/21
- Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4, John Paul Adrian Glaubitz, 2021/10/21
- Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4, BALATON Zoltan, 2021/10/21
- Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4, John Paul Adrian Glaubitz, 2021/10/21
- Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4, BALATON Zoltan, 2021/10/22
- Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4, John Paul Adrian Glaubitz, 2021/10/22
- Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4, John Paul Adrian Glaubitz, 2021/10/22
- Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4, BALATON Zoltan, 2021/10/22
- Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4,
John Paul Adrian Glaubitz <=
- Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4, BALATON Zoltan, 2021/10/23
- Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4, John Paul Adrian Glaubitz, 2021/10/25
- Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4, BALATON Zoltan, 2021/10/25
Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4, Thomas Huth, 2021/10/21