LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-27-2017, 11:51 AM   #1
dets
LQ Newbie
 
Registered: Jul 2017
Location: South Africa
Distribution: Debian
Posts: 13

Rep: Reputation: Disabled
WIFI not woking


Hi
I have a Laptop with Debian newly installed. That means I am a newbie to Linux. The wireless card doesn't come with a linux driver.
Broadcom 1x1 11b/g/n Wireless LAN PCI Express
I have downloaded it and run it and terminal window gives me:

root@debian:/home/dets/WIFI-1# make
/bin/sh: 1: cc: not found
expr: missing operand
Try 'expr --help' for more information.
expr: missing operand
Try 'expr --help' for more information.
expr: missing operand
Try 'expr --help' for more information.
expr: missing operand
Try 'expr --help' for more information.
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory '/lib/modules/4.9.0-3-amd64/build'
make[1]: *** No targets specified and no makefile found. Stop.
make[1]: Leaving directory '/lib/modules/4.9.0-3-amd64/build'
Makefile:159: recipe for target 'all' failed
make: *** [all] Error 2

I heard that the Realtech RTL8188ce and RTL8192ce linux driver works. There I am getting

root@debian:/home/dets/WIFI-2# make
make[1]: Entering directory '/lib/modules/4.9.0-3-amd64/build'
make[1]: *** No rule to make target 'modules'. Stop.
make[1]: Leaving directory '/lib/modules/4.9.0-3-amd64/build'
Makefile:24: recipe for target 'all' failed
make: *** [all] Error 2

How can I make this work...?
 
Old 07-27-2017, 08:33 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
This Debian WiKi page should help you install the firmware for Realtek. That is if you have a Realtek usb dongle.

https://wiki.debian.org/rtl819x

I didn't see Broadcom 1x1 on this page.
https://wiki.debian.org/wl

Are you sure your wireless nic is Broadcom?

What is the output of this command?

Code:
lspci | grep -i network
 
Old 07-27-2017, 09:23 PM   #3
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
I'm not well versed but
Code:
/bin/sh: 1: cc: not found
seems to indicate you don't have a c compiler installed.
 
Old 07-27-2017, 09:38 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
You're right TheEzekielProject, looks like gcc and build essentials are missing.

http://www.linuxquestions.org/questi...nd-4175535607/

https://www.cyberciti.biz/faq/debian...-gcc-compiler/
 
Old 07-28-2017, 10:41 AM   #5
dets
LQ Newbie
 
Registered: Jul 2017
Location: South Africa
Distribution: Debian
Posts: 13

Original Poster
Rep: Reputation: Disabled
I have now added the build-essential and updated

root@debian:/home/detlef# apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

root@debian:/home/detlef# whereis gcc make
gcc: /usr/bin/gcc /usr/lib/gcc

This is for Ztcoracat
root@debian:/home/detlef# lspci | grep -i network
02:00.0 Network controller: Broadcom Limited BCM43142 802.11b/g/n (rev 01)
That is a internal device, not a dongle

Now this looks a little diffrent, but still failed

This is the -- rtl8192ce_linux_2.6.0005.1116.2010
root@debian:/home/detlef/WIFI-1# make
make[1]: Entering directory '/lib/modules/4.9.0-3-amd64/build'
make[1]: *** No rule to make target 'modules'. Stop.
make[1]: Leaving directory '/lib/modules/4.9.0-3-amd64/build'
Makefile:24: recipe for target 'all' failed
make: *** [all] Error 2

This is the -- Broadcom 802.11abg Networking Device Driver
root@debian:/home/detlef/WIFI-2# make
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory '/lib/modules/4.9.0-3-amd64/build'
make[1]: *** No targets specified and no makefile found. Stop.
make[1]: Leaving directory '/lib/modules/4.9.0-3-amd64/build'
Makefile:159: recipe for target 'all' failed
make: *** [all] Error 2

I found on the https://wiki.debian.org/wl the broadcom-sta-dkms which can be installed via
apt-get install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms

unfortunately the outcome has failed....

root@debian:/home/detlef/WIFI-2# apt-get install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package broadcom-sta-dkms

Do you have an idea..????

Last edited by dets; 07-28-2017 at 01:23 PM.
 
Old 07-28-2017, 02:29 PM   #6
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,620

Rep: Reputation: 255Reputation: 255Reputation: 255
this device should be into your kernel, get a >4.5.X or higher from Debian and the related modules
you bring it to grub and boot, with initrd.

compiling kernel needs time and precision regarding modules


what gives uname -a, ls -1 /lib/modules and ifconfig -a ?
 
Old 07-28-2017, 09:57 PM   #7
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Thanks for the output.
Since you have the BCM43142 this page will help you get it working. Follow steps 1-5.

https://wiki.debian.org/wl

For wireless-tools pick stretch (stable).
https://packages.debian.org/search?k...wireless-tools

This link looks good too:
https://wiki.debian.org/bcm43xx

Post the output for Xeratul when you can.

Last edited by Ztcoracat; 07-28-2017 at 10:07 PM.
 
Old 07-30-2017, 10:15 AM   #8
dets
LQ Newbie
 
Registered: Jul 2017
Location: South Africa
Distribution: Debian
Posts: 13

Original Poster
Rep: Reputation: Disabled
Thumbs up

Hi... I have news....

I began to reinstall the system.
Then
- "sudo vi /etc/apt/sources.list". [enter]
- You need to detele the line where it stands
- "deb cdrom:[Debian GNU/Linux 9.0.0 _Stretch_ - Official amd64 DVD Binary-1 20170617-13:08]/ stretch main"
- You have to add the lines
- "deb http://ftp.debian.org/debian/ stable main contrib non-free"
- "deb http://ftp.debian.org/debian wheezy main"
- "deb-src http://ftp.debian.org/debian wheezy main"

Update
- "sudo apt-get update" [Enter]
Install
- "sudo apt-get install build-essential" [Enter]
Update again
- "sudo apt-get update" [Enter]
Install Brodacom
- "sudo apt-get install broadcom-sta-dkms" [Enter]

Following the screen the install, does install itself in the kernal. After the reboot the wireless is there and is functioning normal.

Many thanks to all of you.....

Last edited by dets; 07-30-2017 at 10:17 AM.
 
Old 07-30-2017, 01:29 PM   #9
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,620

Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by dets View Post
Hi... I have news....

I began to reinstall the system.
Then
- "sudo vi /etc/apt/sources.list". [enter]
- You need to detele the line where it stands
- "deb cdrom:[Debian GNU/Linux 9.0.0 _Stretch_ - Official amd64 DVD Binary-1 20170617-13:08]/ stretch main"
- You have to add the lines
- "deb http://ftp.debian.org/debian/ stable main contrib non-free"
- "deb http://ftp.debian.org/debian wheezy main"
- "deb-src http://ftp.debian.org/debian wheezy main"

Update
- "sudo apt-get update" [Enter]
Install
- "sudo apt-get install build-essential" [Enter]
Update again
- "sudo apt-get update" [Enter]
Install Brodacom
- "sudo apt-get install broadcom-sta-dkms" [Enter]

Following the screen the install, does install itself in the kernal. After the reboot the wireless is there and is functioning normal.

Many thanks to all of you.....
Super. Good news.

Which lsmod you have?

Could you give a short how-to for someone that has the very same hardware, so, we would need specs of the wifi, and driver file infos.


Quote:
# The loopback network interface
auto lo wlp2s0
iface lo inet loopback
iface wlp2s0 inet dhcp
wpa-conf /etc/network/wifi-wpa-config.conf

Quote:
network={
ssid="dsafadsfadsfdsa"
psk="asfddsfadsfa"

}

Last edited by Xeratul; 07-30-2017 at 01:30 PM.
 
Old 07-31-2017, 07:47 AM   #10
dets
LQ Newbie
 
Registered: Jul 2017
Location: South Africa
Distribution: Debian
Posts: 13

Original Poster
Rep: Reputation: Disabled
Hi Xeratul

I am a newbie to Linux and I do not what you mean by "Ismod" or what you have written below.

I have a Lenovo E545 Laptop with 64 bit and I have Debian 9 installed. But nevertheless, I think the drivers are for all Broadcom wireless network card. At least I couldn't find any other one for Broadcom and I do think the "broadcom-sta-dkms" works with BCM4311-, BCM4312-, BCM4313-, BCM4321-, BCM4322-, BCM43224-, BCM43225-, BCM43227-, and BCM43228, according to the https://packages.debian.org/wheezy/broadcom-sta-dkms

What needs to mention that you have to get the driver for your Ethernet also on a USB stick which is called "firmware-realtek_0.43_all.deb" by the point of installation. That installs itself. Otherwise you have no internet connection at all. That you can get from https://packages.debian.org/jessie/a...altek/download . That is also for ALL Ethernet drivers. At least it says so.

The only problem which I have, there stands in a page (i don't know which one) that sudo is not installed by default. I do think that must come in there (or not). I seriously don't know.

with regards
Dets
 
Old 07-31-2017, 02:17 PM   #11
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,620

Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by dets View Post
Hi Xeratul

I am a newbie to Linux and I do not what you mean by "Ismod" or what you have written below.

I have a Lenovo E545 Laptop with 64 bit and I have Debian 9 installed. But nevertheless, I think the drivers are for all Broadcom wireless network card. At least I couldn't find any other one for Broadcom and I do think the "broadcom-sta-dkms" works with BCM4311-, BCM4312-, BCM4313-, BCM4321-, BCM4322-, BCM43224-, BCM43225-, BCM43227-, and BCM43228, according to the https://packages.debian.org/wheezy/broadcom-sta-dkms

What needs to mention that you have to get the driver for your Ethernet also on a USB stick which is called "firmware-realtek_0.43_all.deb" by the point of installation. That installs itself. Otherwise you have no internet connection at all. That you can get from https://packages.debian.org/jessie/a...altek/download . That is also for ALL Ethernet drivers. At least it says so.

The only problem which I have, there stands in a page (i don't know which one) that sudo is not installed by default. I do think that must come in there (or not). I seriously don't know.

with regards
Dets


Thank you !
this is indeed the right package which allows to make it work.

https://packages.debian.org/jessie/a...altek/download


actually you may have done it by hand wiht placing the files, drivers, into /lib/firmware/rtlwifi
Sometimes it needs the drivers in it.
 
  


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
iptables not woking properly mitter1989 Linux - Newbie 3 09-10-2013 04:48 AM
Commands not woking mvanil Linux - Desktop 4 11-16-2011 04:24 AM
busybox installation not woking anshexp Linux - Kernel 0 08-27-2009 02:03 PM
Mouse is not woking on Redhat addiss Linux - General 1 01-10-2009 09:43 AM
Problem With LINUX Woking leonidg Linux - General 4 12-07-2004 03:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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