LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-22-2009, 06:04 AM   #1
great3003
LQ Newbie
 
Registered: Nov 2008
Posts: 3

Rep: Reputation: 0
adding realtek rtl8102 nic card in initrd.img


Hi
i have redhat EL desktop 4.6 version.For tftp i want to add rtl8102 nic drivers
in initrd.img, for redhat desktop. i am new one in linux so if somebody
write step by step configuration for extracting initrd , adding nic and make again initrd.img and vmlinuz.
Thanks for help
 
Old 12-23-2009, 07:47 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Why do you need it in the initrd ? ... the initrd is really only for loading drivers for the storage device
 
Old 12-29-2009, 12:28 AM   #3
great3003
LQ Newbie
 
Registered: Nov 2008
Posts: 3

Original Poster
Rep: Reputation: 0
for tftp boot or pxe booting drivers must be add in initrd.img
 
Old 12-29-2009, 12:49 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Sorry for this RTFM answer, but look in the mkinitrd manpage for your system. On mine, there is the -m option to include modules.

On my SuSE installation:
Code:
       -m module_list
           Modules to include in initrd, defaults to INITRD_MODULES variable in /etc/sysconfig/kernel.
I could simply add the module to this variable in this config file. However, your system may be different. The mkinitrd manpage is probably the best place to look.

There are two types of initrd files. One is a compressed ext2 filesystem. The other is a compressed cpio archive.
Here is an example of extracting the contents of the initrd file on my system:
mkdir ~/initrd
cd ~/initrd
cpio -vid < <( zcat /boot/initrd-2.6.31.5-0.1-desktop )

However, you still may have other things to edit such as /etc/modprobe.conf or a file in /etc/modprobe.d/.
It would be far easier to learn how to use mkinitrd on your system than inserting the module manually.

Last edited by jschiwal; 12-29-2009 at 12:57 AM.
 
  


Reply



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 06:29 PM
Does Linux kernel 2.4.37 support RealTek RTL8102 Ethernet driver afa_linux Linux - Kernel 1 05-26-2009 02:53 PM
How to create new initrd.gz (or initrd.img) file? kkpal Programming 2 12-10-2007 08:38 AM
Add new cciss driver module to initrd.img ,stage2.img kunalroy2002 Linux - Software 4 09-25-2007 12:09 AM
Failed to symbolic-link boot/initrd.img-2.6.18-4-486 to initrd.img Scotteh Linux - Software 8 06-01-2007 11:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:43 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
Open Source Consulting | Domain Registration