Hello,
first I tried compiling the kernel with the default configuration,
religiously following the Kernel Rebuilt Howto from
http://www.digitalhermit.com/~kwan/kernel.html.
For the first shot I used the default configuration. make xconfig gave
me a window with unreadable characters, but running
scripts/kconfig/qconf arch/i386/Kconfig directly got me pas that
problem.
I just saved the configurarion, set EXTRAVERSION, and did a 'make
bzImage', 'make modules', became root, 'make modules_install', created
the initial ramdisk then copied the bzImage to /boot, set up
grub.conf.
Here's what grub.conf looked like after installing Fedora then
upgrading with apt-get:
default=1
timeout=3
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.4.22-1.2188.nptl)
root (hd0,0)
kernel /vmlinuz-2.4.22-1.2188.nptl ro root=LABEL=/ rhgb
initrd /initrd-2.4.22-1.2188.nptl.img
title Fedora Core (2.4.22-1.2115.nptl)
root (hd0,0)
kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ rhgb
initrd /initrd-2.4.22-1.2115.nptl.img
I added the following at the bottom:
title Test Kernel
root (hd0,0)
kernel /bzImage-2.6.6boby ro root=LABEL=/ rhgb
initrd /initrd-2.6.6boby.img
Now it looks like, contrary to lilo, you mustn't run grub to install
the changes, right? Anyway when things failed later on, I tried
running grub then exiting when I got the prompt.
I rebooted and hey, the new kernel worked. As expected it didn't fit
my computer perfectly (e.g. the usb mouse didn't worked).
Then I copied a .config from the "Linux on a ThinkPad X40" page
(http://www.chronox.de/x40_linux/linux_on_x40.html). make xconfig,
save it, build everything.
I was a little more daring this time, instead of making the ramdrive
and copying the kernel myself, I simply did 'make modules_install ;
make install'. I checked grub.conf; there was a new entry at near the
top, which I moved to the bottom:
title Fedora Core (2.6.6-x40)
root (hd0,0)
kernel /vmlinuz-2.6.6-x40 ro root=LABEL=/ rhgb
initrd /initrd-2.6.6-x40.img
When I tried to boot the new kernel, this time I got a panic because
it couldn't mount the root filesystem.
Weird, what's the difference with the "Test Kernel" entry. Putting a
"root=/dev/hda3" solved that problem. But does it? Anyway I want to
understand...
I also tried going back to manual mkinitrd, copy bzImage etc, still no
cigar.
Sadly, I still have no usb mouse; not even the internal mouse (my
computer is a laptop) works this time (it did with the Test Kernel).
I see that I have a bunch of '.ko' files in the apprpriate
/lib/modules directory (.o extension changed to .ko - kernel o,
right?):
lib/modules/2.6.6-x40/kernel/drivers/usb
/lib/modules/2.6.6-x40/kernel/drivers/usb/input/usbhid.ko
# ...
/lib/modules/2.6.6-x40/kernel/drivers/usb/core/usbcore.ko
/lib/modules/2.6.6-x40/kernel/sound/usb
....and lsusb says "cannot open /proc/bus/usb, No such file or
directory (2)".
Any help? TIA...
--
Jean-Louis Leroy
ps: my grub.conf in entirety:
default=1
timeout=3
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.4.22-1.2188.nptl)
root (hd0,0)
kernel /vmlinuz-2.4.22-1.2188.nptl ro root=LABEL=/ rhgb
initrd /initrd-2.4.22-1.2188.nptl.img
title Fedora Core (2.4.22-1.2115.nptl)
root (hd0,0)
kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ rhgb
initrd /initrd-2.4.22-1.2115.nptl.img
title Test Kernel
root (hd0,0)
kernel /bzImage-2.6.6boby ro root=LABEL=/ rhgb
initrd /initrd-2.6.6boby.img
title Fedora Core (2.6.6-x40)
root (hd0,0)
kernel /vmlinuz-2.6.6-x40 ro root=LABEL=/ rhgb
initrd /initrd-2.6.6-x40.img
my fstab:
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda5 swap swap defaults 0 0
toots:/home /mnt/toots/home nfs defaults,user,rw,noauto 0 0
....should I post my kernel .config?