LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-30-2015, 08:51 PM   #1
DBabo
Member
 
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568

Rep: Reputation: 40
Question how to add driver during the boot


Gents,
i wonder how can i load a driver during the system boot (fedora 21)?

Current situation:
a. dell latitude e6400
b. built-in Network controller: Broadcom Corporation BCM4312 802.11b/g LP-PHY (rev 01)

during the boot network (wifi) won't come up and i manually have to :
Code:
export FIRMWARE_INSTALL_DIR="/lib/firmware"
b43-fwcutter -w "$FIRMWARE_INSTALL_DIR" broadcom-wl-5.100.138/linux/wl_apsta.o

modprobe -r b43
modprobe b43
after that wifi comes up and life is great... until next reboot.
Appreciate your guidance
 
Old 03-30-2015, 09:35 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
You can put the following in a file say wifi.sh:

Code:
export FIRMWARE_INSTALL_DIR="/lib/firmware"
b43-fwcutter -w "$FIRMWARE_INSTALL_DIR" broadcom-wl-5.100.138/linux/wl_apsta.o

modprobe -r b43
modprobe b43
And then put wifi.sh in /etc/rc.d/rc.local

Make sure that /etc/rc.d/rc.local has got execute permission.
 
1 members found this post helpful.
Old 03-30-2015, 09:37 PM   #3
DBabo
Member
 
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by T3RM1NVT0R View Post
You can put the following in a file say wifi.sh:

Code:
export FIRMWARE_INSTALL_DIR="/lib/firmware"
b43-fwcutter -w "$FIRMWARE_INSTALL_DIR" broadcom-wl-5.100.138/linux/wl_apsta.o

modprobe -r b43
modprobe b43
And then put wifi.sh in /etc/rc.d/rc.local

Make sure that /etc/rc.d/rc.local has got execute permission.
thats a good idea. thank you.
yet i thought there maybe a "better" way to accomplish the same ?
 
Old 03-30-2015, 09:42 PM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Another way to do it is to recompile the kernel with the driver so that the driver becomes part of kernel itself. More work, so adding it to /etc/rc.d/rc.local would be an easier way to achieve the same.
 
Old 03-30-2015, 10:06 PM   #5
DBabo
Member
 
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by T3RM1NVT0R View Post
Another way to do it is to recompile the kernel with the driver so that the driver becomes part of kernel itself. More work, so adding it to /etc/rc.d/rc.local would be an easier way to achieve the same.
plus - won't have to recompile after every kernel update... (which is often)..
i think you convinced me to use your solution
thank you
 
Old 03-30-2015, 10:08 PM   #6
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
You're welcome!!

Glad you find it useful Please mark the thread as solved.

Enjoy Linux!!!
 
  


Reply

Tags
add driver, b43


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
Need to add Windows 7 boot option to Debian Grub boot loader VRich Linux - Newbie 3 03-05-2012 08:44 AM
[SOLVED] Dual Boot 2 seperate Drives - Add option to Boot Menu? janap-146 Ubuntu 11 12-13-2009 08:28 AM
How to manually add SATA driver manually when kernel boot? aixilin Linux - Kernel 6 08-15-2008 10:36 AM
[SOLVED] Add driver at boot time for Fedora Core 6 MensaWater Linux - Hardware 4 08-16-2007 03:01 PM
How to add a boot record which used to startup windows under my Grub boot loader? yunxiang Linux - Newbie 6 02-01-2003 02:22 AM

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

All times are GMT -5. The time now is 08:55 AM.

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