Re: Fwd: Debian on Linux-SH4
Hi Robert!
On 1/11/22 15:49, Robert Święcki wrote:
> Ha.. I didn't. debian's cross-sh4-gcc (I think I tried versions 11 10
> 8 and 6) doesn't build "working" kernels. Dunno why. It compiles, but
> doesn't boot.
>
> In the end I had to compile it myself with one of those
> https://toolchains.bootlin.com/releases_sh-sh4.html and use it with
> istaller's initrd.
OK, that is very interesting. We need to figure out what the problem with
Debian's compiler is what causes the kernel to be non-bootable.
I have already had a discussion with QEMU upstream and we hadn't come up
with a solution yet, so your successful boot with QEMU is a very useful
result.
> Fortunately it allowed me to proceed even if the
> *-di* modules couldn't be loaded. The only thing I had to do was to
> trick the installer into thinking that my custom kernel is the same
> kernel version as the *di* version in pool-sh4 via EXTRAVERSION in
> kernel's Makefile, because the "anna" thingy stops the installation
> process w/o it.
Yes, but that's a different problem and doesn't normally happen when using
the standard kernel.
> $ ./sh-sh4--glibc--stable/bin/sh4-linux-gcc --version
> sh4-linux-gcc.br_real (Buildroot 2017.05) 5.4.0
>
> [ 0.000000] Linux version 5.15.0 (jagger@jd)
> (sh4-buildroot-linux-gnu-gcc.br_real (Buildroot 2017.05) 5.4.0, GNU ld
> (GNU Binutils) 2.27) #37 Tue Jan 11 12:58:34 CET 2022
Thanks for the information.
If you can find out anything else on the kernel/GCC issue that would be much
appreciated. I have been quite stuck on this issue in the past although it
works on real hardware.
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
Reply to: