Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4

2022-01-12 Thread BALATON Zoltan
Hello, On Wed, 12 Jan 2022, John Paul Adrian Glaubitz wrote: Hi Zoltan! On 10/26/21 00:40, BALATON Zoltan wrote: On Tue, 26 Oct 2021, John Paul Adrian Glaubitz wrote: Hi Zoltan! On 10/23/21 15:22, BALATON Zoltan wrote: You either need to strip the kernel with "strip vmlinux" or use the imag

Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4

2022-01-12 Thread John Paul Adrian Glaubitz
Hi Zoltan! On 10/26/21 00:40, BALATON Zoltan wrote: > On Tue, 26 Oct 2021, John Paul Adrian Glaubitz wrote: >> Hi Zoltan! >> >> On 10/23/21 15:22, BALATON Zoltan wrote: You either need to strip the kernel with "strip vmlinux" or use the image from arch/sh/ boot/zImage. >>> >>> I've

Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4

2021-10-25 Thread BALATON Zoltan
On Tue, 26 Oct 2021, John Paul Adrian Glaubitz wrote: Hi Zoltan! On 10/23/21 15:22, BALATON Zoltan wrote: You either need to strip the kernel with "strip vmlinux" or use the image from arch/sh/ boot/zImage. I've actually used that kernel but looked at the wrong uncompressed size, it's indee

Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4

2021-10-25 Thread John Paul Adrian Glaubitz
Hi Zoltan! On 10/23/21 15:22, BALATON Zoltan wrote: >> You either need to strip the kernel with "strip vmlinux" or use the image >> from arch/sh/ >> boot/zImage. > > I've actually used that kernel but looked at the wrong uncompressed size, > it's indeed just > 9.2MB when stripped so that should

Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4

2021-10-23 Thread BALATON Zoltan
Hello, On Sat, 23 Oct 2021, John Paul Adrian Glaubitz wrote: 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

Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4

2021-10-22 Thread John Paul Adrian Glaubitz
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 wor

Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4

2021-10-22 Thread BALATON Zoltan
On Sat, 23 Oct 2021, John Paul Adrian Glaubitz wrote: On 10/22/21 23:49, John Paul Adrian Glaubitz wrote: How did you compile the kernel that does not boot? What config have you used? The config is constructed from the Debian kernel configuration tree. I have uploaded the resulting config fil

Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4

2021-10-22 Thread John Paul Adrian Glaubitz
Hi Zoltan! On 10/22/21 23:49, John Paul Adrian Glaubitz wrote: >> How did you compile the kernel that does not boot? What config have you used? > > The config is constructed from the Debian kernel configuration tree. I have > uploaded > the resulting config file here: > >> https://people.debian

Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4

2021-10-22 Thread John Paul Adrian Glaubitz
Hi Zoltan! Thanks a lot for helping me to investigate the problem. Much appreciated! On 10/22/21 23:06, BALATON Zoltan wrote: >> I think I've seen problems with compressed kernel images and QEMU before. I >> will switch >> to an uncompressed kernel and try again. > > How did you compile the ker

Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4

2021-10-22 Thread BALATON Zoltan
On Thu, 21 Oct 2021, John Paul Adrian Glaubitz wrote: On 10/21/21 15:49, BALATON Zoltan wrote: So somthing seems to overwrite it. Maybe you can try building an uncompressed kernel or one using a different compression and see if that does the same, at least that way we can see if it's in the deco

Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4

2021-10-21 Thread John Paul Adrian Glaubitz
Hi Zoltan! On 10/21/21 15:49, BALATON Zoltan wrote: > So somthing seems to overwrite it. Maybe you can try building an uncompressed > kernel or one using a different compression and see if that does the same, at > least that way we can see if it's in the decompressing or later. I think it's > past

Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4

2021-10-21 Thread BALATON Zoltan
On Thu, 21 Oct 2021, John Paul Adrian Glaubitz wrote: Hi Zoltan! On 10/21/21 14:12, BALATON Zoltan wrote: Adding -d in_asm shows it seems to loop early in the kernel but not sure where. Maybe try to compare addresses with System.map to find out where it's getting stuck (but System.map was not i

Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4

2021-10-21 Thread Thomas Huth
On 21/10/2021 11.49, John Paul Adrian Glaubitz wrote: Hello! I'm regularly building debian-installer packages for Debian's unofficial ports which includes sh4 among others. The kernel package and therefore the installer package contains a kernel for the SH7751R machine which is emulated by QEMU

Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4

2021-10-21 Thread John Paul Adrian Glaubitz
Hi Zoltan! On 10/21/21 14:12, BALATON Zoltan wrote: > Adding -d in_asm shows it seems to loop early in the kernel but not sure > where. > Maybe try to compare addresses with System.map to find out where it's getting > stuck (but System.map was not included in your installer image). Here is the S

Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4

2021-10-21 Thread BALATON Zoltan
Hello, On Thu, 21 Oct 2021, John Paul Adrian Glaubitz wrote: I'm regularly building debian-installer packages for Debian's unofficial ports which includes sh4 among others. The kernel package and therefore the installer package contains a kernel for the SH7751R machine which is emulated by QEMU

Looking for advise on debugging a non-boot kernel on qemu-system-sh4

2021-10-21 Thread John Paul Adrian Glaubitz
Hello! I'm regularly building debian-installer packages for Debian's unofficial ports which includes sh4 among others. The kernel package and therefore the installer package contains a kernel for the SH7751R machine which is emulated by QEMU when choosing the "r2d" type. Unfortunately, I have not