You are not logged in.

#1 2009-08-30 04:35:17

B4RR13N705
Member
Registered: 2009-06-08
Posts: 87

SATA trouble when compiling kernel from source.

Hi, im compiling 2.6.18 kernel, and i got this kernel panic:

VFS: Cannot open root device 'sda3' or unknown-block(0,0)
please append a correct 'root=' boot option.
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Ive searched in google, and this seem to be a SATA support issue.
Ive activated this when compiling:

CONFIG_SCSI_SATA=m

And when generating kernel image i get:

[root@arch4linux ~]# mkinitcpio -k 2.6.18-OS -g /boot/kernel26-OS.img
:: Begin build
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [autodetect]
:: Parsing hook [pata]
:: Parsing hook [scsi]
:: Parsing hook [sata]
ERROR: module 'sd[-_]mod' not found

Whats left in kernel config?


OS -----> Arch Linux     DE -----> KDE4
CPU ---> 2.66GHz         RAM ---> 512 MB
SWAP -> 2 G                / -------> 10 G
/home -> 50 G             /boot ---> 64 MB

Offline

#2 2009-08-30 10:36:41

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: SATA trouble when compiling kernel from source.

Hello B4RR13N705!

First of all, can you check your menu.lst is okay, and relevant to the /etc/fstab e.g. ?

Offline

#3 2009-08-30 11:27:53

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: SATA trouble when compiling kernel from source.

Do you need to use an initramfs image with this kernel? The error you posted occurs when the initramfs image does not provide the support your system requires at boot -time.It will simplify things for you if you can do without the initramfs, as you can build everything you need into the kernel.

Offline

#4 2009-09-01 02:25:48

broch
Banned
From: L.A. California
Registered: 2006-11-13
Posts: 975

Re: SATA trouble when compiling kernel from source.

CONFIG_SCSI_SATA=m

not good enough:
you need to have
CONFIG_BLK_DEV_SD=m
and
CONFIG_CHR_DEV_SG=m
and maybe (your hardware, may not need this but check mkinitcpio.conf)
CONFIG_SCSI_SATA_AHCI=m
at minimum

or set kernel without initrd as mentioned above but then these must be build in and also fs must be build-in

Offline

Board footer

Powered by FluxBB