
9th May 2006, 14:39
|
|
Junior Member
|
|
Join Date: Jan 2006
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Adding ata drivers to initrd.img (it821x)
Hi,
After updating the kernel to a version that has the proper kernel driver for the ite 8212 ata controler i now have the problem that it will not load at boot-time. Compile was done using the kernel howto of Falko with the current 2.6.1.4 kernel. http://www.howtoforge.com/forums/showthread.php?t=21
During boot, mount fails and sugests maintenance mode, after typing the password i do:
modprobe it821x
vgscan
vgchange -a y
mount <filesystem>
^d
And the system boots. Offcourse i want it to just boot. But how to add the driver to the initrd.img. The mkinitrd man page talks about preloading and --with=module... this seems to solve my problem, however the Falko Howto does not really let me add other modules?( http://www.netadmintools.com/html/mkinitrd.man.html)
Please help me load this module!
Gr,
Zokahn
|

9th May 2006, 17:58
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,843
Thanks: 781
Thanked 1,557 Times in 1,476 Posts
|
|
You can add the module to /etc/mkinitrd/modules. Then you create an initrd.img like this:
Code:
mkinitrd -k -r /dev/hda1 -o /boot/initrd.img-2.6.15-1-amd64-generic 2.6.15-1-amd64-generic
|

11th May 2006, 08:56
|
|
Junior Member
|
|
Join Date: Jan 2006
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks, Falko...
I've tried the sugestion and indeed the initrd tries to load the module.
I entered the it821x in the /etc/mkinitrd/modules file and in the /tmp/makeinitblabla I see the the module is copied in. At boottime however it simply states: module IT821x.ko not found. But it's there...
Gr,
Zokahn
|

11th May 2006, 18:45
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,843
Thanks: 781
Thanked 1,557 Times in 1,476 Posts
|
|
I think the module must be somewhere in the /lib directory (/lib/2.6....).
|

11th May 2006, 22:45
|
|
Junior Member
|
|
Join Date: Jan 2006
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Falko,
You are right... The dir i was refering to was the temp dir mkinitrd uses the build the image, it was just to show that the module was indeed in the image.
However... I did manage to solve my issue! Solving the problem in the end was, as problems often do, really easy. My root disk boots from the intel chipset native ide, which uses kernel drivers that have been in stable for ages.
So it was just a matter of putting the right module in /etc/modules
SSTTUUPPIIDD me did do that but with the file extention... it821x.ko and that my friends won´t fly.
So all it was in the end was my broken keyboard... Again,... I should really have it fixed
Gr,
Zokahn
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 12:23.
|
Recent comments
3 hours 50 min ago
9 hours 6 min ago
9 hours 17 min ago
9 hours 25 min ago
10 hours 27 min ago
12 hours 35 min ago
15 hours 23 sec ago
15 hours 18 min ago
15 hours 26 min ago
16 hours 42 min ago