[SLUG] Adding Ultra ATA PCI card (ide2) to grub.conf

From: James Marcinek (jmarc1@jemconsult.biz)
Date: Sun Oct 17 2004 - 08:34:51 EDT


Hello Everyone,

What I thought would be simple turning out to be a bit tricky.

I purchased a 200G hard drive and an Ultra ATA PCI card (IDE) controller card. I
did this for performance and later scalability. The problem I'm having is that
the new ide device wasn't being recognized(looked at /proc/ide, /var/log/dmesg,
etc). It seems that the problem can be rectified by passing the parameters to
the kernel in grub. I found this site:

http://www.captain.at/programming/ultra-ata/

"The solution is to pass additional parameters to the kernel in GRUB:

title Fedora Core (2.6.5-1.356)
        root (hd0,0)
        kernel /vmlinuz-2.6.5-1.356 ro root=LABEL=/ rhgb quiet selinux=0
ide2=0xa800,0xac02
        initrd /initrd-2.6.5-1.356.img

Here is how I figured out the correct values for ide2 (and ide3). I booted with
the Fedora harddisk as slave disk on the motherboard controller and issued the
lspci command:

# lspci -v

[...]
02:0b.0 Unknown mass storage controller: Integrated Technology Express, Inc.
   IT/ITE8212 Dual channel ATA RAID controller (PCI version seems to be IT8212,
   embedded seems (rev 11)
        Subsystem: Integrated Technology Express, Inc.: Unknown device 0001
        Flags: bus master, 66Mhz, medium devsel, latency 0, IRQ 11
        I/O ports at a800
        I/O ports at ac00 [size=4]
        I/O ports at b000 [size=8]
        I/O ports at b400 [size=4]
        I/O ports at b800 [size=16]
        Capabilities: [80] Power Management version 2

You see the lines starting with "I/O ports". Construct the kernel parameters
with the following formula:

ide2=A,B+2

where A is the address of the first I/O port and B the address of the second I/O
port plus 2. "

So I do the lspci -v:

02:09.0 Unknown mass storage controller: Integrated Technology Express, Inc.
IT/ITE8212 Dual channel ATA RAID controller (PCI version seems to be IT8212,
embedded seems (rev 11)
        Subsystem: Integrated Technology Express, Inc.: Unknown device 0001
        Flags: bus master, 66Mhz, medium devsel, latency 0, IRQ 11
        I/O ports at 2820 [size=8]
        I/O ports at 2814 [size=4]
        I/O ports at 2818 [size=8]
        I/O ports at 2810 [size=4]
        I/O ports at 2800 [size=16]
        Expansion ROM at <unassigned> [disabled] [size=128K]
        Capabilities: [80] Power Management version 2

Although it seems that my ports are reversed I do the same thing (but found one
other bit on another site I added:

title Red Hat Enterprise Linux ES (2.4.21-20.EL)
        root (hd0,0)
        kernel /vmlinuz-2.4.21-20.EL ro root=LABEL=/ ide2=0x2820,0x2816
ide2=autotune
        initrd /initrd-2.4.21-20.EL.img

When I reboot I can see that /dev/hde is found; however when the processes are
starting I get a kernel panic. I currently don't have a server set up to capture
the kernel panic dump but I did write down the code if it does any good:

8b 87 c4 00 00 00 85 c0 74 0c 8b 00 8b 5c 24 30 83 f8 ff 0f

I've tried variations of the B number (eg raising it lowering it) and I either
get a kernel panic or it hangs after it reports attaching the ide-driver (I
think to hde).

Does anyone have any idea.

Thanks,

James

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:56:32 EDT