Cross compile kernel
I decided I wanted a 64bit kernel for my UK2 server (seeing as it's an Athlon X2, and I wanted an ubuntu amd64 chroot to work on it).
After a little playing around, this is how you do it:
- Get your kernel
- Extract it
make menuconfig ARCH=x86_64
- Create some
linux-amd64-gcc
,linux-amd64-ld
, etc. wrappers. Some need-m64
options. Others autodetect what's required. (I made a tarball of my wrappers, but they've been lost.) CONCURRENCY_LEVEL=4 make-kpkg --append-to-version '-londonpride' --revision '1.00' --rootcmd fakeroot --arch amd64 kernel_image
- Extract the control.tar.gz from the deb, edit control file, and change the architecture to i386.
- Install
Unfortunaly, in the week after this, my machine died of disk corruption. This is the 2nd time it's happened. I hope UK2 don't use dodgy hardware...