LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 11-21-2012, 04:42 AM   #1
PierreB.
Member
 
Registered: Apr 2012
Location: Grenoble
Distribution: Rhel[456],CentOS[56],fedora18
Posts: 33

Rep: Reputation: Disabled
Question Including a module to an initrd.img


Hi all,

I know this kind of problem has been widely discussed, but i still have issues...

I am trying to install a RHEL55ES os on a Dell T1650 using a PXE boot and so on...
The e1000e network driver shipped with this OS is out of date and does not support the 82579 based card, for this reason i had to get and compile the newer version of the driver (2.1.4-NAPI).

I did this and tested it, but after building the initrd.img it cannot get the KS because it failed to bring up network...

I've been spending the last 3 days on this i am kind of hopeless now, i really need help !

When if failed to bring up network, i can see the following errors :
Code:
failed to insert module (2) /tmp/e1000e.ko
Anyone knows what this error code means ? (vermagic ? or anything else)


I tried to compiled the module against the used kernel, once with a 2.6.18.194-el5 and once with 2.6.18.194-el5PAE...

Thank you for trying to help.



Pier B.
 
Old 11-21-2012, 05:13 AM   #2
TKH
Member
 
Registered: Jul 2011
Location: Milky Way
Distribution: Ubuntu, LFS, Slackware, Fedora
Posts: 205

Rep: Reputation: 20
Tell me if i'm wrong, but it doesn't really make sense to have modules in /tmp directory.
It's possible that the problem is within the scripting.
 
Old 11-21-2012, 05:19 AM   #3
PierreB.
Member
 
Registered: Apr 2012
Location: Grenoble
Distribution: Rhel[456],CentOS[56],fedora18
Posts: 33

Original Poster
Rep: Reputation: Disabled
Thanks for your reply TKH,

I actually did not put anything module in /tmp, this is how the PXE boot works, it extracts the required modules from the modules.cgz to /tmp in order to load them...

At least this is my understanding of PXE.


Still need some help.
 
Old 11-21-2012, 08:51 AM   #4
PierreB.
Member
 
Registered: Apr 2012
Location: Grenoble
Distribution: Rhel[456],CentOS[56],fedora18
Posts: 33

Original Poster
Rep: Reputation: Disabled
I AM happy, i finally fix this s*** up !

As usual it was simple, but for this i had to catch an error message from the PXE message low (i do not know how to redirect them, if possible).

The error message was :

Code:
unknown symbol VLAN_GRO_RECEIVE
Searching the web i found out that the e1000e.ko module needed the 8021q.ko module to be loaded first, i then just add the following lines to my modules.dep file from the initrd.img tree :

Code:
e1000e: 8021q

UPDATE

So here is my problem now :

It seems to be working as it goes beyond the step described above, but it ends saying :

vfs can't find an ext2 filesystem on dev loop0

when mounting the stage2.img ...

The anaconda gui is saying something like :

The Red Hat Enterprise Linux installation tree in that directory does not seem to match your boot media.

I just search this on the web and found out something, i'll try this tomorrow.

If there is any ideas out there feel free to send it away !


Pierre B.

Last edited by PierreB.; 11-21-2012 at 11:40 AM. Reason: update
 
Old 11-21-2012, 10:40 PM   #5
TKH
Member
 
Registered: Jul 2011
Location: Milky Way
Distribution: Ubuntu, LFS, Slackware, Fedora
Posts: 205

Rep: Reputation: 20
It seems that all your problems there are related to your kernel module, or at least won't go far from it.

I'm glad that you overcame your first problem, and I would be more than glad to help you with another one.
It seems to me that your kernel doesn't load any module for the file system.

Did you compile your own kernel? If so, I would recommend you to put all the file system supports (especially the one that your rootfs uses).

Tell me more when you make a progress.
 
Old 11-22-2012, 05:29 AM   #6
PierreB.
Member
 
Registered: Apr 2012
Location: Grenoble
Distribution: Rhel[456],CentOS[56],fedora18
Posts: 33

Original Poster
Rep: Reputation: Disabled
TKH,and the readers of this thread,

I also fixed my second issue, the stage2.img one : this one was a problem with the .buildstamp contains in my custom initrd.img image.

To answer your question TKH : no i did not compile my own kernel.

So please welcome my third issue! :

My T1650 computer is now unable to detect hard-drive (the installer does not found any partition or disk at all).
This must be related to another driver not shipped with the initrd image, i now have to find out which driver is missing and to add it (again!) to my initrd image...

I keep you posted.
 
Old 11-18-2013, 01:55 PM   #7
PierreB.
Member
 
Registered: Apr 2012
Location: Grenoble
Distribution: Rhel[456],CentOS[56],fedora18
Posts: 33

Original Poster
Rep: Reputation: Disabled
The problem was eventually due to a fake RAID (intel ich10). Once i turned up Hdd back to non-raid config everything went fine.
 
  


Reply

Tags
initrd, module, module load error, modules


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I pack stage2.img into initrd.img for a PXE linux rescue? real1elmo Red Hat 12 10-14-2009 07:29 PM
help placing driver module in initrd.img for remote tftp/nfs/pxeboot radiance29 Linux - Kernel 1 08-13-2008 02:07 PM
How to create new initrd.gz (or initrd.img) file? kkpal Programming 2 12-10-2007 09:38 AM
Add new cciss driver module to initrd.img ,stage2.img kunalroy2002 Linux - Software 4 09-25-2007 01:09 AM
Failed to symbolic-link boot/initrd.img-2.6.18-4-486 to initrd.img Scotteh Linux - Software 8 06-02-2007 12:24 AM


All times are GMT -5. The time now is 01:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration