I can't get my custom kernel to work.
I installed Slackware 12 today, on my Asus A8Js.
The "Huge SMP" kernel worked out of the box.
The "Generic SMP" kernel worked after I create an initrd for it with "mkinitrd -c -k 126.96.36.199-smp -m reiserfs -o /boot/generic.gz".
So far so good. Unfortunately, neither kernel had CONFIG_HOTPLUG_CPU enabled, which meant I would have to build a kernel before I could suspend.
So I downloaded a kernel from kernel.org (188.8.131.52). Then I configured it by copying /boot/config-generic-smp-184.108.40.206-smp to the root of the kernel source and doing a "make oldconfig." I did not alter the kernel configuration aside from accepting the defaults for options that were new. While I do plan on making changes later, I want things working on this level first. Then, after building the kernel and copying /arch/i386/boot/bzImage to /boot/vmlinuz-custom, I did a "make modules_install" and got a directory full of kernel modules at /lib/modules/220.127.116.11-smp.
Next, I created an initrd file for my new kernel, using the same steps as above, changing only the version number and the output filename (to "custom.gz").
The relevant sections of my lilo.conf looked like this:
# This works
image = /boot/vmlinuz-generic-smp-18.104.22.168-smp
root = /dev/sda5
initrd = /boot/generic.gz
label = Generic
# This does not
image = /boot/vmlinuz-custom
root = /dev/sda5
initrd = /boot/custom.gz
label = Custom
When I booted the new kernel, I got:
initrd.gz: Loading kernel modules from initrd image:
mount: mounting /dev/sda5 on /mnt failed
ERROR: No /sbin/init found on rootdev (or not mounted). Trouble ahead.
Kernel panic - not syncing: Attempted to kill init!
How can this be, when my new kernel has exactly the same
configuration as one known to work?
So I tried compiling reiserfs support into the custom kernel, and booting it without an initrd. The results are below:
VFS: Cannot open root device "805" or unknown-block(8,5)
Please append a correct "root=" boot option; here are the available partitions:
0300 117220824 hda driver: ide-disk
0301 5120000 hda1
0302 47358976 hda2
0303 50050507 hda3
0304 1 hda4
0305 10490413 hda5
0306 4192933 hda6
1640 4590208 hdd driver: ide-cdrom
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,5)
This is a SATA machine, so the above is rather strange.