Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Kernel Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 9th May 2006, 14:39
zokahn zokahn is offline
Junior Member
 
Join Date: Jan 2006
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
Sponsored Links
  #2  
Old 9th May 2006, 17:58
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

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
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 11th May 2006, 08:56
zokahn zokahn is offline
Junior Member
 
Join Date: Jan 2006
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #4  
Old 11th May 2006, 18:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

I think the module must be somewhere in the /lib directory (/lib/2.6....).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 11th May 2006, 22:45
zokahn zokahn is offline
Junior Member
 
Join Date: Jan 2006
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding new ip's to server phamels Installation/Configuration 4 18th October 2005 10:06
Custom Kernel and Installing nVidia Drivers (Xandros) neu2linux Suggest HOWTO 0 6th October 2005 16:33


All times are GMT +2. The time now is 05:22.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.