View previous topic :: View next topic |
Author |
Message |
mikers456 n00b
Joined: 07 Jul 2004 Posts: 36
|
Posted: Wed Jul 07, 2004 5:06 am Post subject: How to change builtin kernel driver load order? [solved] |
|
|
Hi,
Any help would be appreciated.
The problem: It looks like (in dmesg) my raid (md) device driver is trying to detect the RAID1 array BEFORE the PROMISE IDE drivers are loaded, and hence it fails to find my HD attached to the PROMIES controller. This is a problem because one of my raid partitions is on the PROMISE controller.
What I want: I want to change the order of builtin kernel drivers so that the stupid thing FIRST detects the Promise card, then tries the md/RAID detection thing.
I have: 2.6.7-r1 gentoo-dev-sources kernel.
Important hardware: Promise Ultra100 TX2 controller (non-raid), built-in PCI IDE on motherboard (which hosts BOOT partition). Using software RAID1 between hard disk on /dev/hda and /dev/hdf, hda being on the PCI-IDE controller and hdf on the promise.
Background: I had everything working PERFECTLY until i decided to add a promise card, and move my second HD to it. Now I can access it after booting, but my raid doesn't get autoconfigured at boot because the order of the promise driver and raid driver should be flipped. hda works fine, the promise controller works fine, the hard disk on the promise is perfectly accessible after boot up, but my raid1 is not operational (I can add it later, but I would prefer at boot time) because of the promise driver.
All my promise, raid and PCI-IDE drivers are kernel level (not modules), so init scripts and such won't help. This must be some kernel parameter, or kernel compilation option i'm not aware of.
My raidtab looks like:
Code: |
# /boot (RAID 1) Reserve for future use /dev/md0
# / (RAID 1)
raiddev /dev/md1
... blah blah
device /dev/hda5
raid-disk 0
device /dev/hdf5
raid-disk 1
|
My dmesg:
Code: |
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt8235 (rev 00) IDE UDMA133 controller on pci0000:00:11.1
ide0: BM-DMA at 0x9800-0x9807, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0x9808-0x980f, BIOS settings: hdc:pio, hdd:DMA
hda: WDC WD2000JB-00FUA0, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
....
then later
....
md: Autodetecting RAID arrays.
md: autorun ...
md: considering hda6 ...
md: adding hda6 ...
md: hda5 has different UUID to hda6
md: created md2
md: bind<hda6>
md: running: <hda6>
raid1: raid set md2 active with 1 out of 2 mirrors
md: considering hda5 ...
md: adding hda5 ...
md: created md1
md: bind<hda5>
md: running: <hda5>
raid1: raid set md1 active with 1 out of 2 mirrors
md: ... autorun DONE.
....
and finally (too late for the raid of course)
....
PDC20268: IDE controller at PCI slot 0000:00:0b.0
PDC20268: chipset revision 2
PDC20268: 100% native mode on irq 3
ide2: BM-DMA at 0xb400-0xb407, BIOS settings: hde:pio, hdf:pio
ide3: BM-DMA at 0xb408-0xb40f, BIOS settings: hdg:pio, hdh:pio
hdf: ST3120022A, ATA DISK drive
ide2 at 0xd800-0xd807,0xd402 on irq 3
hdf: max request size: 1024KiB
|
As you can see, if the PDC stuff was above the raid I wouldn't have this problem. How do I move the PROMISE PDC stuff above the raid at the kernel level?
Thanks!
Last edited by mikers456 on Wed Jul 07, 2004 1:30 pm; edited 1 time in total |
|
Back to top |
|
|
mikers456 n00b
Joined: 07 Jul 2004 Posts: 36
|
Posted: Wed Jul 07, 2004 1:29 pm Post subject: Hehe... fixed it |
|
|
Turns out that the promise driver WAS trying to load as a module. Changed that and the dependencies resolved just fine. |
|
Back to top |
|
|
drescherjm Advocate
Joined: 05 Jun 2004 Posts: 2790 Location: Pittsburgh, PA, USA
|
Posted: Wed Jul 07, 2004 3:05 pm Post subject: |
|
|
Quote: | Changed that and the dependencies resolved just fine. |
Did you compile the promise driver into the kernel? _________________ John
My gentoo overlay
Instructons for overlay |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|