LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-07-2011, 02:36 AM   #1
dann_radkov
Member
 
Registered: Sep 2011
Posts: 52

Rep: Reputation: Disabled
Need to create a new initrd that contains new driver


Hey folks,
My question is how do we modify an initrd gzipped compressed file not the initrd.img(which in my case handles the tftpboot)so that it contains drivers for the network.

I downloaded an .iso file that supposably has the drivers.Inside i see:
1.be2net.ko
2.hp_be2net_2.104.277.1_2.src.rpm
(which contains A)tar.gz file B)spec file)
3.README_INSTALL
4.rpmmacros

My question
1.I take it I should implement/append the kernel modules within the initrd file.?
2.Do I need to configure something else apart from that?
 
Old 10-09-2011, 06:58 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Take your existing initrd (assuming you have one), un-compress it, and un-cpio-archive it. Add the new ingredients, and re-cpio-archive and compress it. You will have to have cpio, and gzip. gzip needs the file to have to extension '.zip', so you have to rename it before un-compressing it. Drivers probably need to go in the /lib/modules/2.6.yourkernelversion/... tree.

Not sure what distinction you are trying to make when you say 'an initrd gzipped compressed file not the initrd.img'.

--- rod.

Last edited by theNbomr; 10-09-2011 at 06:59 PM.
 
1 members found this post helpful.
Old 10-10-2011, 03:27 AM   #3
dann_radkov
Member
 
Registered: Sep 2011
Posts: 52

Original Poster
Rep: Reputation: Disabled
Spot on. I got it working. Just wanted to check whether additional things need to be configured. After the initrd has been replaced after my reboot the SLES11 that I am about to install will have network support. No additional changes are necessary?Just swapping the newly modified initrd.
 
Old 10-10-2011, 11:26 AM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
The process I outlined will recreate a well-formed initrd image, which you can specify in your bootloader as the initrd (not as an initramfs kernel built-in). I cannot vouch for the correctness of any changes you might have made. If you're adding driver modules, it might be necessary to modify some scripting &/o config files in order for the drivers to get properly loaded.

--- rod.
 
1 members found this post helpful.
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create initrd for a new install rmcconnell Slackware - Installation 11 01-04-2010 10:20 PM
Create an initrd hoshangi Linux - Software 2 09-29-2008 07:02 AM
How to create new initrd.gz (or initrd.img) file? kkpal Programming 2 12-10-2007 08:38 AM
Create initrd namit Linux - Software 8 08-12-2007 05:50 PM
create initrd alaios Debian 5 01-19-2005 09:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:51 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