Re: New Debian sparc64 test kernel for stack corruption issue
On Thu, 2025-11-13 at 21:30 +0100, Gregor Riepl wrote:
> > I have posted instructions on how to cross-build and install your own kernel
> > not too long ago, see:
> >
> > https://lists.debian.org/debian-sparc/2025/10/msg00103.html
> >
> > I don't think it's particularly hard.
>
> The upstream kernel sources also have a built-in way to build a Debian kernel package,
> if you want to make your life a little bit easier:
> https://kernel-team.pages.debian.net/kernel-handbook/ch-common-tasks.html
I think the problem was that the generated kernel image is compressed which is why it
won't work with GRUB unless to decompress it first on the target machine.
Can you confirm that? If yes, we should probably patch the kernel build system to create
a Debian package with an uncompressed image.
> TL;DR:
> export ARCH=sparc
> make -j<jobs> bindeb-pkg
>
> A little bit of preparation is still needed:
>
> apt install debian-ports-archive-keyring
> dpkg --add-architecture sparc64
> cat >/etc/apt/sources.list.d/debian-ports.sources <<EOF
> Types: deb
> URIs: http://ftp.ports.debian.org/debian-ports/
> Suites: sid
> Components: main
> Signed-By: /usr/share/keyrings/debian-ports-archive-keyring.gpg
> EOF
> apt update
> apt install gcc-sparc64-linux-gnu libdw-dev:native libssl-dev:sparc64
What's libssl-dev needed for?
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Reply to: