LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-05-2018, 06:57 AM   #1
wangwy
LQ Newbie
 
Registered: Dec 2017
Posts: 3

Rep: Reputation: Disabled
How to install intel i211 LAN driver to initrd.img


Hello,

Is anyone know how to install the Intel i211 LAN to initrd.img in Slackware?


Thanks.
 
Old 01-05-2018, 07:22 AM   #2
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64-current (started with 13.37(32))
Posts: 384

Rep: Reputation: 117Reputation: 117
Hello, welcome to LQ Slackware forum
Searching the Internet with Google, I found that the driver name is 'igb'.
You could generate a new initrd with the 'mkinitrd' command as root.
Code:
mkinitrd -m igb:ext4
This will generate a initrd file for the running kernel (if you want for
another version add e.g. '-k 4.14.7') with the ext4 and igb modules.

You must run 'lilo' again after generate a new initrd.gz file.
 
2 members found this post helpful.
Old 01-08-2018, 10:50 AM   #3
wangwy
LQ Newbie
 
Registered: Dec 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Paulo2 View Post
Hello, welcome to LQ Slackware forum
Searching the Internet with Google, I found that the driver name is 'igb'.
You could generate a new initrd with the 'mkinitrd' command as root.
Code:
mkinitrd -m igb:ext4
This will generate a initrd file for the running kernel (if you want for
another version add e.g. '-k 4.14.7') with the ext4 and igb modules.

You must run 'lilo' again after generate a new initrd.gz file.
Hello,

Thanks for your answer. I found the "igb" driver but I don't want to generate a new initrd.img file. I want to add the driver to an existed initrd.img file. Do you know how to do? Thanks.
 
Old 01-08-2018, 11:29 AM   #4
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,294

Rep: Reputation: 895Reputation: 895Reputation: 895Reputation: 895Reputation: 895Reputation: 895Reputation: 895
Why someone will want to load a LAN driver in initrd? What utility has to do that?

After all, this driver will do something useful AFTER the network services are started by /etc/rc.d/rc.M (the final multiuser stage)

Last edited by Darth Vader; 01-08-2018 at 11:39 AM.
 
Old 01-08-2018, 11:43 AM   #5
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64-current (started with 13.37(32))
Posts: 384

Rep: Reputation: 117Reputation: 117
Quote:
Originally Posted by wangwy View Post
Hello,

Thanks for your answer. I found the "igb" driver but I don't want to generate a new initrd.img file. I want to add the driver to an existed initrd.img file. Do you know how to do? Thanks.
I think if you don't use the mkinitrd '-c' option, '/boot/initrd-tree' won't be cleared and all the
other modules will be avialable, but I don't know for sure.


edit-
I think I misunderstood the question
'I don't want to generate a new initrd.img file. I want to add the driver to an existed initrd.img file. Do you know how to do?'
Adding directily a file to the initrd.gz would be just add the file to the compressed initrd.gz, but I don't know if this is a good practice.
If you use Lilo, you should run lilo again anyway, with grub I think it isn't necessary.

But if you run 'mkinitrd -m igb' you will see that some other files will be added as well,
so I think it is better to run mkinitrd with a list of the modules you want.

Last edited by Paulo2; 01-08-2018 at 02:34 PM.
 
Old 01-09-2018, 07:48 AM   #6
wangwy
LQ Newbie
 
Registered: Dec 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Darth Vader View Post
Why someone will want to load a LAN driver in initrd? What utility has to do that?

After all, this driver will do something useful AFTER the network services are started by /etc/rc.d/rc.M (the final multiuser stage)
For PXE.
 
1 members found this post helpful.
Old 01-09-2018, 09:01 AM   #7
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,062

Rep: Reputation: 4714Reputation: 4714Reputation: 4714Reputation: 4714Reputation: 4714Reputation: 4714Reputation: 4714Reputation: 4714Reputation: 4714Reputation: 4714Reputation: 4714
Quote:
Originally Posted by wangwy View Post
For PXE.
You need more than just a network driver if you want to PXE-boot a Slackware OS.
The initrd.img of the Slackware installer already contains the 'igb' driver but it also contains a DHCP client, plus the code to initialize the interface and get an IP address. It will be a lot of work to add this. I know because I added PXE support to Slackware Live.
 
4 members found this post helpful.
  


Reply


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
help placing driver module in initrd.img for remote tftp/nfs/pxeboot radiance29 Linux - Kernel 1 08-13-2008 01:07 PM
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
HPPA install and initrd.img flatloop Debian 1 04-10-2006 10:16 AM
no initrd.img after install of new kernel? denniz Linux - General 1 08-17-2004 09:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration