[SOLVED] Need to create a new initrd that contains new driver
Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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'.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.