From: Willy Tarreau <willy@w.ods.org>
To: George Nychis <gnychis@cmu.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: need help booting from SATA in 2.4.32
Date: Wed, 17 May 2006 05:48:14 +0200 [thread overview]
Message-ID: <20060517034814.GA25818@w.ods.org> (raw)
In-Reply-To: <446A418E.3070307@cmu.edu>
On Tue, May 16, 2006 at 05:18:06PM -0400, George Nychis wrote:
>
>
> Willy Tarreau wrote:
> > On Tue, May 16, 2006 at 04:31:52PM -0400, George Nychis wrote:
> >> Hi,
> >>
> >> I've booted from a SATA drive in 2.4.32 before, but for some reason
> >> 2.4.32 will not recognize this disk. It is recognized when I boot 2.6.9
> >> though.
> >>
> >> It uses the ata_piix module in both kernels. Whenever I boot 2.6.9 I see:
> >> ----------------------------------------------------------------------
> >> SCSI subsystem initialized
> >> ACPI: PCI interrupt 0000:00:1f.2[B] -> GSI 7 (level, low) -> IRQ 7
> >> ata: 0x170 IDE port busy
> >> ata1: SATA max UDMA/133 cmd 0x1F0 ctl 0x3F6 bmdma 0xBFA0 irq 14
> >> ata1: dev 0 ATA, max UDMA/100, 78140160 sectors:
> >> ata1(0): applying bridge limits
> >> ata1: dev 0 configured for UDMA/100
> >> scsi0 : ata_piix
> >> Vendor: ATA Model: FUJITSU MHV2040A Rev: 0000
> >> Type: Direct-Access ANSI SCSI revision: 05
> >> SCSI device sda: 78140160 512-byte hdwr sectors (40008 MB)
> >> SCSI device sda: drive cache: write back
> >> sda: sda1 sda2 sda3 sda4 < sda5 >
> >> Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
> >> device-mapper: 4.1.0-ioctl (2003-12-10) initialised: dm@uk.sistina.com
> >> ------------------------------------------------------------------------
> >>
> >> However in 2.4.32 all i see is:
> >> ----------------------------
> >> SCSI subsystem initialized
> >> ----------------------------
> >>
> >> I am positive that my 2.4.32 has been compiled with ata_piix as a
> >> module, and it does reside in /lib/modules/2.4.32/kernel/driver/scsi/
> >>
> >> Any clues?
> >
> > Could you retry with it statically linked in the kernel ? I vaguely
> > remember that if the original PIIX4 driver registers the device first,
> > then ata_piix cannot get it. You could also ensure that you have
> > properly removed CONFIG_IDE_PIIX4 (I believe it's called like this).
> >
> >> Thanks!
> >> George
> >
> > Regards,
> > Willy
> >
> >
>
> Thanks for the help Willy,
>
> I think you're on to something. I noticed this during the 2.4.32 kernel
> bootup:
> -----------------------------------------------------------------
> hda: FUJITSU MHV2040AH, ATA DISK drive
> hda: attached ide-disk driver.
> hda: host protected area => 1
> hda: 78140160 sectors (40008 MB) w/8192KiB Cache, CHS=4864/255/63
> -----------------------------------------------------------------
>
> However i can't find CONFIG_IDE_PIIX4 in .config anyhwere. I did find
> CONFIG_BLK_DEV_PIIX so i tried disabling it, but the device still
> registered under hda.
OK, you correctly removed the one I was thinking about. You should also
remove other CONFIG_BLK_DEB_IDE* and CONFIG_IDEDMA*, because there is
also a generic PCI support for IDE controllers. Most probably your
drive has been detected on a generic PCI controller. At least, just for
a test, completely disable IDE to be sure, and enable ata_piix. As long
as you'll not see your disk as sda, it will not work.
> If i build it statically, i get this error trying to boot:
> ----------------------------------------------------------------------
> kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
> Kernel panic: VFS: Unable to mount root fs on 00:00
> ----------------------------------------------------------------------
>
> AND it still finds the drive as /dev/hda
>
> Therefore I built it as a module and put "alias scsi_hostadapter
> ata_piix" in /etc/modules.conf" to atleast eliminate the
> scsi_hostadapter thing
>
> This is FC3, and my root is actually an LVM, so i get:
> NVS: Cannot open root device "VolGroup00/LogVol00" or 00:00
>
> So i'm thinking once the drive shows up as /dev/sda, the LVM will be
> proper, and VolGroup00/LogVol00 will show up.
I don't know, I'm a terrible loser when it comes to LVM unfortunately.
I just hope you're right :-)
> Any more ideas?
>
> Thanks!
> George
Regards,
willy
next prev parent reply other threads:[~2006-05-17 3:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-16 20:31 need help booting from SATA in 2.4.32 George Nychis
2006-05-16 20:39 ` Willy Tarreau
2006-05-16 21:18 ` George Nychis
2006-05-17 3:48 ` Willy Tarreau [this message]
2006-05-17 13:29 ` George Nychis
2006-05-17 13:34 ` Lennart Sorensen
2006-05-17 13:40 ` George Nychis
2006-05-17 15:53 ` Lennart Sorensen
2006-05-17 17:30 ` need help booting from SATA in 2.4.32 / LVM George Nychis
2006-05-17 20:37 ` Willy Tarreau
2006-05-17 14:24 ` need help booting from SATA in 2.4.32 Willy Tarreau
2006-05-17 15:13 ` help booting from SATA in 2.4.32.. initrd not loading George Nychis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060517034814.GA25818@w.ods.org \
--to=willy@w.ods.org \
--cc=gnychis@cmu.edu \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox