Problem getting new kernel to boot on uncommon platform
I would like to beg someone to help a rookie please.
I am trying to get a new gentoo dist to work on a VIA pico ITX. It has two HDD's, one ancient PATA having some equally ancient gentoo kernels (they work) and a new fancy SATA SSD that has problems. The SSD having one of the ancient kernels (that works on this disk as well) but the new one I'm trying to get running is hopeless (the new dist with issues are 2.6.31-r10).
I'm getting this :
> Cannot open root device "sda3" or unknown-block(0,0)
> Please append a correct "root=" boot option; here are available partitions:
> Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
I think I have the correct kernel choices, like SCSI-support and all that, but I'm not sure any more. I have tried using the old kernel config set up to the new one, but after a few weeks of trying I just find myself guessing.
I attached some files with system information and things that may be needed for fault trace.
Help is, needles to say, appreciated.
Oh, one more thing, the old kernel puts the SATA disk as HDA, while the new one names it SDA. I know this has to be changed in the fstab-thing, but that is a later problem. I think I need it to find its partitions first.
Suggest using oldconfig then menuconfig
I'd copy your old .config from your 2.6.25 kernel and run oldconfig ... then run menuconfig after to double check for sensible entries. You should be prompted for new entries and get clues about default values as well. When I update kernel I run a script like this ... which has worked for me up until now at least:D. I have a copy of .config which I keep in /usr/src with relevant sudo entries for nopasswd use of sudo commands in the script. I keep one backup kernel image to allow system boot incase the new kernel will not boot:dazed:
echo Check output of eselect is correct for symlink - press enter
eselect kernel list
echo Change to source folder
echo Now clearing old compile info - press enter to continue
sudo chown jonathan /usr/src/linux/* -R
sudo chown jonathan /usr/src/linux
echo Copy config to source folder
sudo cp -p /usr/src/.config /usr/src/linux/
echo Next configure the kernel
echo Now compile the kernel - press enter to continue
#sudo chown jonathan /usr/src/linux/* -R
make && make modules
echo Now install modules
sudo make modules_install
echo Now copy latest image to /boot/kernel-latest - press enter
cp arch/i386/boot/bzImage /boot/kernel-current
echo Check kernel dates
ls /boot -l
echo now re-emerge nvidia drivers - press enter
sudo emerge -av nvidia-drivers