Building kernel for hp zv5000
Actually, building the kernel wasn’t hard. I cloned linus’ tree then used the existing configuration from /boot as the starting point. I then enabled keyspan support and oprofile, but it wouldn’t boot.
The problem was I needed to have an initrd image, after several tries it turns out with ubuntu there is a script, update-initramfs that does the trick. I ran
update-initramfs -c -v -k 2.6.24-rc2
This command built the image and put it in /boot, I then updated /boot/grub/menu.list to:
title Ubuntu 7.10, kernel vmlinuz
root (hd0,0)
kernel /boot/vmlinuz root=UUID=90ea4e0b-25cb-4fce-8b06-7f9b318ae304 ro single
initrd /boot/initrd.img-2.6.24-rc2
That did the trick.