Hi Gregor,

On Tue, 2024-09-03 at 19:19 +0200, Gregor Riepl wrote:
> > > If you have issues to bi-sect just let us know for any arch. Given T2’s 
> > > cross-compile
> > > support and I have most hardware in my museum now, I can usually bisect 
> > > issues
> > > within a day or two.
> > 
> > I don't have issues with bisecting, I'm just rather time-constrained at the 
> > moment, so
> > I'm always happy when someone else can step in and help. Would be great to 
> > get this issue
> > fixed upstream.
> 
> My Ultra 10 and Fire V215 are desperately waiting for a more stable kernel.
> I actually wanted to offer help with bisecting, but kept back due to a lack
> of time and also suitable build system (compiling kernels is so 
> time-consuming).

Any help is welcome ;-).

> I may have some time to do test runs next week.
> Could you give me some quick starters for setting up a kernel cross build env 
> on
> an amd64 machine, or maybe access to a Sun box I could use?

It's actually pretty simple these days as the kernel.org mirrors provide binary
distributions of freestanding toolchains for all major supported architectures
of the Linux kernel.

To set up on any x86_64 machine, do the following:

# wget 
https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/14.2.0/x86_64-gcc-14.2.0-nolibc-sparc64-linux.tar.gz
# tar xf x86_64-gcc-14.2.0-nolibc-sparc64-linux.tar.gz
# export PATH=$PATH:$PWD/gcc-14.2.0-nolibc/sparc64-linux/bin/
# git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
# cd linux
# export ARCH=sparc
# export CROSS_COMPILE=sparc64-linux-
# make sparc64_defconfig
# make -j<number of parallel jobs>

The cross-compiled kernel will be available as "vmlinux".

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Reply via email to