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".

Very good, thanks!

Reply via email to