Re: sparc hardware added to boot-floppies Installation Manual
Adam Di Carlo <aph@debian.org> writes:
> >>>>> "Steve" == Steve Dunham <dunham@cse.msu.edu> writes:
> Steve> Eric, I've come up with the rules file magic to generate both
> Steve> sparc32 and sparc64 kernels from the same source package. (It
> Steve> generates kernel-image-2.2.x-sparc64_*, then generates a
> Steve> complete set of packages for the sparc32 architecture.)
> Steve, this is a non-boot-floppies issue, but right now I'm left in
> the unenviable position of not being able to build a sparc64 kernel
> from sources in the Debian archive.
There is no kernel-source-*.deb corresponding to the above packages,
because it would have had the same name as an existing package. You
need to get the Debian source package, kernel-source-sparc. (I will
add this to the extras directory on the first sparc CD.)
I probably should have made a kernel-source-sparc binary package, but
it's too late for slink...
The sources in kernel-source-2.2.1 are kinda useless. To get the
kernel to compile from the "kpkg" package, you have to run something
along the lines of "make-kpkg configure" (somehow managing to get the
patch to magically apply from the patch package), then run the
generated debian/rules file manually with "KERNEL_ARCH=sparc64" added
to the end of the command line. It isn't pretty. The kpkg rules file
was such a tangled mess that I just gave up and wrote my own - but it
does explicitely override the kernel Makefile's choice of
architecture.
> Where can I get the sources or rather, I guess, the 2.2.1 patches
> which you used to build the sparc64 linux kernel?
The patches are "debian/*.patch" in the linux-kernel-source Debian
source package. They are applied by the rules file. ("make
patched-stamp" will take you as far as the patching process.)
One final thing: you need "egcs64" installed to build sparc64 kernels.
Steve
dunham@cse.msu.edu
Reply to: