Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184825 - Intel SATA not recognized by gentoo-sources-2.6.22
Summary: Intel SATA not recognized by gentoo-sources-2.6.22
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-10 11:48 UTC by Jiri Pittner
Modified: 2007-07-20 20:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
kernel .config (.config,57.15 KB, text/plain)
2007-07-11 04:07 UTC, Jiri Pittner
Details
working .config (.config,55.97 KB, text/plain)
2007-07-13 13:16 UTC, Mike Pagano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Pittner 2007-07-10 11:48:43 UTC
I have installed 2.6.22-gentoo and performed make oldconfig from previous 2.6.21 kernel. After reboot, kernel panicked - cannot find root filesystem.
I have a laptop with 
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller (rev 02)
and the previous kernel worked with CONFIG_SATA_INTEL_COMBINED=y..
In 2.6.22, the option CONFIG_SATA_INTEL_COMBINED seems to be missing and I did not 
see an obvious replacement (also nothing has been suggested by oldconfig).
What driver should be used instead?


Reproducible: Always

Steps to Reproduce:
1.emerge =gentoo-sources-2.6.22
2.make and install kernel
3.reboot

Actual Results:  
kernel panic, root filesystem not found

Expected Results:  
booted system

Acer TM 8204WLMI,
lspci:00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller (rev 02)
Portage 2.1.2.9 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.21-gentoo i686)
=================================================================
System uname: 2.6.21-gentoo i686 Genuine Intel(R) CPU T2500 @ 2.00GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 10 Jul 2007 06:20:01 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3, 2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4m -msse2 -pipe -fno-omit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium4m -msse2 -pipe -fno-omit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.supp.name/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/gnuradio /usr/local/portage /usr/local/overlays/erazor-zone.de"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib ac3 acl acpi alsa amr arts berkdb bitmap-fonts blas bluetooth bonobo bzip2 cairo cddb cdparanoia cdr cli cracklib crypt dbus dri dv dvb dvd dvdr dvdread eds emboss encode esd evo fam ffmpeg firefox fortran ftp gcj gdbm gif gnome gphoto2 gpm gps gstreamer gtk hal http hwac3 icc iconv ieee1394 imagemagick imap ipv6 isdnlog jabber java javascript jpeg jpeg2k kde kerberos lapack ldap lesstif libg++ libwww lirc lm_sensors lprng mad mbox midi mikmod mime mmap mmx mozilla mp3 mpeg mpi mudflap mysql nas ncurses nls nptl nptlonly nsplugin obex ogg opengl openmp oss pcmcia pcre pdf perl plotutils png posix pppd python qt3 qt3support qt4 quicktime readline real reflection samba scanner sdl session sharedmem smartcard sndfile sockets socks5 sox spell spl sse sse2 ssl svg svga tcl tcltk tcpd tetex threads tiff tk truetype truetype-fonts type1-fonts unicode usb usrp v4l v4l2 vanilla vcd vorbis wifi win32codecs wxwindows x86 xine xml xorg xpm xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon fglrx vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2007-07-10 13:16:04 UTC
Here's the change that removed the combined option (including rationale):
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=8cdfb29c0cd801

I'm assuming you were using libata (ata_piix) for your root disk, and your disk was /dev/sda or similar (as opposed to hda). Compile CONFIG_ATA_PIIX into your kernel but NOT CONFIG_BLK_DEV_PIIX

If your cdrom was previously /dev/hdc (or similar), it will now become /dev/sr0. Remember to compile SCSI CDROM support into your kernel.
Comment 2 Jiri Pittner 2007-07-11 04:07:34 UTC
Created attachment 124505 [details]
kernel .config

currently employed kernel config
Comment 3 Jiri Pittner 2007-07-11 04:09:55 UTC
Comment on attachment 124505 [details]
kernel .config

the suggestion in comment #1 did not help; in the attachment is my .config file.
Comment 4 Jiri Pittner 2007-07-13 11:55:40 UTC
I have tried 2.6.22-r1, problem remains the same.
J.P.
Comment 5 Duane Griffin 2007-07-13 12:18:35 UTC
What is the command line you boot your kernel with? In particular, what device do you tell it to use for your root partition?
Comment 6 Mike Pagano gentoo-dev 2007-07-13 12:54:49 UTC
(In reply to comment #5)
> What is the command line you boot your kernel with? In particular, what device
> do you tell it to use for your root partition?
> 

I had the same problem and the following worked for me:

grub.conf
changed root=/dev/sda7 to root=/dev/hda7

/etc/fstab
changed /boot / and swap from
/dev/sdaX to /dev/hdaX

.config
followed dsd's suggestions:
CONFIG_ARA_PIIX=y
#CONFIG_BLK_DEV is not set

Hope this helps you
Comment 7 Mike Pagano gentoo-dev 2007-07-13 13:16:39 UTC
Created attachment 124747 [details]
working .config

Here's my working .config
Comment 8 Mike Pagano gentoo-dev 2007-07-13 14:58:00 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > What is the command line you boot your kernel with? In particular, what device
> > do you tell it to use for your root partition?
> > 
> 
> I had the same problem and the following worked for me:
> 
> grub.conf
> changed root=/dev/sda7 to root=/dev/hda7
> 
> /etc/fstab
> changed /boot / and swap from
> /dev/sdaX to /dev/hdaX
> 
> .config
> followed dsd's suggestions:
> CONFIG_ARA_PIIX=y
> #CONFIG_BLK_DEV is not set
> 
> Hope this helps you
> 

dsd has responded that this is an incorrect solution. 
Please don't follow this. 

Comment 9 Maarten Bressers (RETIRED) gentoo-dev 2007-07-19 23:09:51 UTC
(In reply to comment #4)
> I have tried 2.6.22-r1, problem remains the same.
> J.P.
> 

Could you please post your /boot/grub/grub.conf and your /etc/fstab ?
Comment 10 Jiri Pittner 2007-07-20 06:09:15 UTC
here is grub.conf:
# For booting GNU/Linux
title  GNU/Linux default
root (hd0,2)
kernel /boot/kernel root=/dev/sda5 libata.atapi_enabled=1 hdc=noprobe
#initrd /initrd.img
#
title  GNU/Linux runlevel 1
root (hd0,2)
kernel /boot/kernel root=/dev/sda5 libata.atapi_enabled=1 hdc=noprobe 1

title  GNU/Linux 2.6.22-r1
root (hd0,2)
kernel /boot/kernel-gentoo-2.6.22-r1 root=/dev/sda5

title  GNU/Linux 2.6.21-r1
root (hd0,2)
kernel /boot/kernel-gentoo-2.6.21-r1 root=/dev/sda5 libata.atapi_enabled=1 hdc=noprobe

title  GNU/Linux 2.6.21
root (hd0,2)
kernel /boot/kernel-gentoo-2.6.21 root=/dev/sda5 libata.atapi_enabled=1 hdc=noprobe

...some more entries skipped...

and /etc/fstab:
/dev/sda3               /boot           ext2            auto,noatime    1 2
/dev/sda5               /               ext3            noatime         0 1
/dev/sda2               none            swap            sw              0 0
/dev/vg0/usr            /usr            ext3            auto,noatime  0 1
/dev/vg0/opt            /opt            ext3            auto,noatime  0 1
/dev/vg0/local          /local          ext3            auto,noatime  0 1
/dev/vg0/quantchem      /quantchem      ext3            auto,noatime  0 1
/dev/vg0/scratch        /scratch        xfs             auto,noatime  0 1
/dev/mapper/cryptohome  /home           ext3            auto,noatime  0 1
/dev/cdrom      /mnt/cdrom      iso9660         user,noatime,noauto,ro  0 0
/dev/cdrom      /mnt/udf        udf             user,noatime,noauto,rw  0 0
/dev/mapper/cryptodisk  /mnt/disk0      xfs     user,noatime,noauto,rw  0 0
/dev/sdb        /mnt/nokiausb   auto            user,noatime,noauto,rw  0 0
/dev/sdb1       /mnt/disk1      auto            user,noatime,noauto,rw  0 0
/dev/sdc1       /mnt/disk2      auto            user,noatime,noauto,rw  0 0
/dev/sdd1       /mnt/disk3      auto            user,noatime,noauto,rw  0 0
/dev/sda1               /c              ntfs-3g         rw,auto,codepage=852,iocharset=iso8859-2,noatime,umask=00  0 0
#/dev/sda1              /c              captive-ntfs            rw,auto,noatime,umask=00  0 0
/dev/sda7               /f              vfat            rw,codepage=852,iocharset=iso8859-2,quiet,umask=00,auto,noatime  0 0
jiri@bohr.jh-inst.cas.cz /mnt/bhome sshfs       user,noauto,noatime,rw 0 0
obexfs#00:12:D2:AD:FE:A7#11     /mnt/nokia      fuse user,noauto,noatime,rw 0 0
#/dev/fd0               /mnt/floppy     auto            noauto          0 0

# NOTE: The next line is critical for boot!
proc                    /proc           proc            defaults        0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for 
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0

...nfs skipped...
Comment 11 Mike Pagano gentoo-dev 2007-07-20 13:19:11 UTC
Is this thread related to this issue?

http://lkml.org/lkml/2007/4/29/188



Comment 12 Maarten Bressers (RETIRED) gentoo-dev 2007-07-20 16:34:00 UTC
You're using both the old ide and the new ata drivers. It's possible that these conflict, and anyway I don't think it's needed since CONFIG_ATA_PIIX also supports PATA drives on the Intel ICH controller. So please disable CONFIG_IDE in your .config, and remove the hdc=noprobe option from your grub.conf and see if that works for you.
Comment 13 Jiri Pittner 2007-07-20 20:08:29 UTC
>  So please disable CONFIG_IDE
> in your .config, and remove the hdc=noprobe option from your grub.conf and see
> if that works for you.

This works!
Thanks,
Jiri