How to build custom sparc64 kernel?
I can't figure out how to build a custom Sparc64 kernel. I need to build a
64bit custom SMP kernel for an Ultra 60 (2 CPUs).
I have gotten the 2.4.25 source (both Debian and from kernel.org). I can't
get either (or 2.4.24) to work.
(Note that in between each attempt I do a make mrproper to clean up any
mess)
If I do a make menuconfig, it hangs.
If I do a sparc32 make arch=sparc64 menuconfig, I can create the .config
file:
If I do a make dep, it doesn't work. It appears that it can't
execute /usr/src/kernel-source-2.4.25/arch/sparc64/kernel/check_asm:
/bin/sh: line 1: ./check_asm: cannot execute binary file
This is a 64bit file. My current kernel is a 64bit 2.4.18 kernel,
so I'm not sure why it can't execute this file. Could this have something
to do with the problem? Why can't I execute a 64bit file?
If I do a sparc32 make arch=sparc64 dep, it will compile
successfully. However, the output is a collection of 32bit SparcV7
binaries. This is WRONG! I need a collection of 64bit SparcV9 binaries.
How do I do that? If I then do a sparc32 make arch=sparc64 vmlinux modules
modules_install, I end up with a 32bit SparcV7 vmlinux kernel that is not
bootable on an UltraSPARC (my Ultra 60).
I also got the egcs64 package and altered my CC line to:
CC = $(CROSS_COMPILE)sparc64-linux-gcc.egcs64
This has no effect. If I repeat the above, I get the same results (doesn't
work or 32bit binaries).
This can't be this hard. What am I doing wrong? Does anyone have a step by
step guide to building a 64bit SparcV9 SMP kernel on an UltraSparc machine?
My current configuration:
Linux debian 2.4.18 #2 Thu Apr 11 14:37:17 EDT 2002 sparc64 GNU/Linux
I am running the latest of all packages (unstable) except for SILO. The
latest version of SILO won't load the vmlinuz kernel on my machine.
Any help would be greatly appreciated.
Thanks,
<> Jim
Reply to: