LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-29-2018, 05:09 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
Installing a driver by hand.


Hi: I have installed debian (debian-9.4.0-i386-DVD-1.iso) on an Acer Aspire One computer. The driver for the wi-fi controller is propietary (non-free firmware) and, so, it is not included in the distribution. However the installer asks for media containing the file (iwlwifi-3160-17.ucode) to be inserted. I have tested in several ways, including putting it into a directory called /media, with no results. So I gave up and installed instead the firmware iso image which comes with non-free distributable drivers. However I want to be able to install without recourse to internet and so (that is to install from the debian-9.4.0-i386-DVD-1.iso) I need a means to install the driver by hand. OK.

I made
Code:
root@revenge mnt]# locate iwlwifi-3160-17
/home/semoi/Downloads/iwlwifi-3160-17.ucode
/stretch/lib/firmware/iwlwifi-3160-17.ucode
/usr/lib/firmware/iwlwifi-3160-17.ucode
[root@revenge mnt]#
As you can see, the firmware installer put the driver into /lib/firmware. So, what if after installing debian-9.4.0-i386-DVD-1.iso I copy the driver to /lib/firmware and make modprobe <name of the driver>? Could it be as simple as that?

Note: I have two partitions mounted. One with Stretch and the other with Arch linux, which is the running OS at present. Hence the duplicated entries. Stretch is mounted on /stretch.
 
Old 05-29-2018, 06:38 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,596
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
Yes, it's as simple as that. All firmware goes in /lib/firmware. That's where the kernel will look for it.

You may not need to use modprobe. I once had a laptop with a broadcom card and the kernel found and loaded the main driver by itself. Then the main driver loaded the firmware.
 
1 members found this post helpful.
Old 05-29-2018, 12:20 PM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Thanks. Tell me, what permissions should I give that file in /lib/firmware, that is the driver I will copy? And what utility could I use to see if things work (I have no GUI at present)? Maybe the ping command?

Last edited by stf92; 05-29-2018 at 12:25 PM.
 
Old 05-29-2018, 01:23 PM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,892

Rep: Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317
I think it is not really important, but read only should be sufficient (check other files in that dir).
you can use dmesg or lsmod to check if that was picked (during boot)
 
Old 05-29-2018, 05:01 PM   #5
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
If you edit /etc/apt/sources.list and put 'non-free' at the end of your main sources line, you can use the package manager to install the firmware.

-edit, except I'm am a moron, because there's no Internet without the firmware!

Last edited by AwesomeMachine; 05-29-2018 at 05:03 PM.
 
Old 05-29-2018, 05:16 PM   #6
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Well, I have just been able to login as root (a whole day trying to get it) and have just copied the iwlwifiIdontKnowWhat.ucode file, after creating the /lib/firmware directory. I'll see dmesg and in any case I can rm the module and modprobe it. A strange thing is I don't find the ifconfig command, but I installed from a netinst image with the firmware driver and have only a basic install (no GUI). But I do have apt-get. In the ping man page, the syntax is
ping [options] destination
What is that destination? An IP? How could I use ping to verify connectivity?
 
Old 05-29-2018, 10:38 PM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by stf92 View Post
after creating the /lib/firmware directory.
that sounds wrong.
on all systems i ever used the directory already existed.
that or /usr/lib/firmware.

Quote:
In the ping man page, the syntax is
ping [options] destination
What is that destination? An IP? How could I use ping to verify connectivity?
examples:
ping 8.8.8.8
ping goggle.com
 
Old 05-30-2018, 05:32 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,596
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
Quote:
Originally Posted by stf92 View Post
What is that destination? An IP? How could I use ping to verify connectivity?
If you want to verify connectivity, your destination must be an ip address. If you use a domain name and you can't get through, you have no way of knowing whether it's the name resolution that is failing or the actual connection. 8.8.8.8 is a very good address to use. It's one of the Google name servers so it's always up.
 
  


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
LXer: Why Microsoft's Linux lovefest goes hand-in-hand with its Azure cloud strategy LXer Syndicated Linux News 0 07-17-2016 07:06 PM
Trying my hand at installing a game... Tux Racer GameCodingNinja Linux From Scratch 15 08-18-2014 10:13 AM
N00b - a hand installing my ethernet card? kgmf Linux - Hardware 3 03-15-2006 09:22 AM
LXer: Linux Training and Laptops Go Hand in Hand at LinuxCertified LXer Syndicated Linux News 0 01-31-2006 12:01 PM
FAI or installing by hand? microsoft/linux General 0 02-28-2005 09:29 PM

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

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