LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 12-30-2018, 12:28 PM   #1
luvbodhi
LQ Newbie
 
Registered: Dec 2018
Posts: 28

Rep: Reputation: Disabled
USB NICs supported by Linux ISOs


I have a notebook with NO RJ45 port and my wireless NIC is not supported by my distro - bodhi-5.0.0-64. One way around this is a USB NIC which is supported by the OS but I have not found a list of USB NICs supported by bodhi-5.0.0-64.

I have a Linksys AE2500 USB NIC I used on a Windows desktop but it is not recognized. lsusb does show that it is connected and a Windows 10 notebook was able to install a driver for it so it seems functional.

Anyone know where I can find a list of USB NIC hardware supported by linux distros?

I'm hoping that as bodhi is based upon a specific distro maybe that distro will have such a list.

Not for sure if this is useful but I found a command for listing "drivers" with usb in their names:

find /lib/modules/`uname -r` -name "*usb*"

I think it produces the drivers built into the ISO but not for sure. It produces a list of .ko files and several are in this path:

/lib/modules/4.15.0-20-generic/kernel/drivers/net/

I'm just not for sure how to identify the NIC hardware using these "drivers". Here is a list of the ./net section:

/lib/modules/4.15.0-20-generic/kernel/drivers/net/can/usb
/lib/modules/4.15.0-20-generic/kernel/drivers/net/can/usb/mcba_usb.ko
/lib/modules/4.15.0-20-generic/kernel/drivers/net/can/usb/esd_usb2.ko
/lib/modules/4.15.0-20-generic/kernel/drivers/net/can/usb/gs_usb.ko
/lib/modules/4.15.0-20-generic/kernel/drivers/net/can/usb/kvaser_usb.ko
/lib/modules/4.15.0-20-generic/kernel/drivers/net/can/usb/ems_usb.ko
/lib/modules/4.15.0-20-generic/kernel/drivers/net/can/usb/usb_8dev.ko
/lib/modules/4.15.0-20-generic/kernel/drivers/net/can/usb/peak_usb
/lib/modules/4.15.0-20-generic/kernel/drivers/net/can/usb/peak_usb/peak_usb.ko
/lib/modules/4.15.0-20-generic/kernel/drivers/net/ieee802154/atusb.ko
/lib/modules/4.15.0-20-generic/kernel/drivers/net/wireless/ralink/rt2x00/rt2800usb.ko
/lib/modules/4.15.0-20-generic/kernel/drivers/net/wireless/ralink/rt2x00/rt2x00usb.ko
/lib/modules/4.15.0-20-generic/kernel/drivers/net/wireless/ralink/rt2x00/rt2500usb.ko
/lib/modules/4.15.0-20-generic/kernel/drivers/net/wireless/ralink/rt2x00/rt73usb.ko
/lib/modules/4.15.0-20-generic/kernel/drivers/net/wireless/rsi/rsi_usb.ko
/lib/modules/4.15.0-20-generic/kernel/drivers/net/wireless/intersil/p54/p54usb.ko
/lib/modules/4.15.0-20-generic/kernel/drivers/net/wireless/intersil/orinoco/orinoco_usb.ko
/lib/modules/4.15.0-20-generic/kernel/drivers/net/wireless/marvell/libertas_tf/libertas_tf_usb.ko
/lib/modules/4.15.0-20-generic/kernel/drivers/net/wireless/marvell/libertas/usb8xxx.ko
/lib/modules/4.15.0-20-generic/kernel/drivers/net/wireless/marvell/mwifiex/mwifiex_usb.ko
/lib/modules/4.15.0-20-generic/kernel/drivers/net/wireless/atmel/at76c50x-usb.ko
/lib/modules/4.15.0-20-generic/kernel/drivers/net/wireless/realtek/rtlwifi/rtl_usb.ko
/lib/modules/4.15.0-20-generic/kernel/drivers/net/wireless/ath/ath6kl/ath6kl_usb.ko
/lib/modules/4.15.0-20-generic/kernel/drivers/net/wireless/ath/ath10k/ath10k_usb.ko
/lib/modules/4.15.0-20-generic/kernel/drivers/net/wimax/i2400m/i2400m-usb.ko
/lib/modules/4.15.0-20-generic/kernel/drivers/net/usb
/lib/modules/4.15.0-20-generic/kernel/drivers/net/usb/plusb.ko
/lib/modules/4.15.0-20-generic/kernel/drivers/net/usb/usbnet.k
 
Old 12-30-2018, 01:46 PM   #2
jeremy31
Member
 
Registered: Dec 2018
Distribution: Linux Mint 20.3 Ubuntu 20.04
Posts: 32

Rep: Reputation: Disabled
TP Link TL-WN722N version 1 is plug and play. It is 150 MBps and 2.4GHz only and it uses the ath9k_htc kernel module. Do not buy any ath10k USB device as the module isn't working yet

What is the internal device?
 
1 members found this post helpful.
Old 12-30-2018, 03:34 PM   #3
luvbodhi
LQ Newbie
 
Registered: Dec 2018
Posts: 28

Original Poster
Rep: Reputation: Disabled
Thank Jeremy,

The internal NIC is BCM43142. Looks like I found a way to get it to work. If I transfer via flash drive bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu4_amd64.deb and lots of potential dependencies I can get it to install. Once bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu4_amd64.deb is installed the internal NIC is recognized. It seems it needs dkms, cpp, gcc, and lots of libs.

Is there a way to recursively download bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu4_amd64.deb and all of its dependencies?

This is one method I found (based upon https://stackoverflow.com/questions/...bian-package):

apt-cache depends --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances --no-pre-depends bcmwl-kernel-source | grep "^\w" | sort -u
mkdir bcmwl-kernel-source
cd bcmwl-kernel-source
apt-get download $(apt-cache depends --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances --no-pre-depends bcmwl-kernel-source | grep "^\w" | sort -u)
dpkg-scanpackages . | gzip -9c > Packages.gz
echo "deb file:/home/user/bcmwl-kernel-source ./" | sudo tee -a /etc/apt/sources.list
less /etc/apt/sources.list
sudo apt-get update

The problem with the apt-cache approach is it lists EVERY package (there is no way to specify all the packages already installed on your system - same as apt-rdepends) but since this method adds the packages to your apt-get sources I'm guessing it works. The link also references apt-rdepends which has a nice output though it was not installed on Bodhi whereas apt-cache was.

In my case the source packages for bcmwl-kernel-source, dkms, cpp, gcc, and the libs was the /var/cache/apt/archives folder from a bodhi-5.0.0-64 virtual machine on which I installed bcmwl-kernel-source. With the packages on the notebook I did a sudo dpkg -i *.deb on them until bcmwl compiled.

Here is the full list of items I installed and bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu4_amd64.deb was able to install (I think this install order will work - I reinstalled Bodhi and these packages several times trying to remove unnecessary packages):

gcc-7-base_7.3.0-27ubuntu1~18.04_amd64.deb
cpp-7_7.3.0-27ubuntu1~18.04_amd64.deb
gcc-8-base_8.2.0-1ubuntu2~18.04_amd64.deb
libgcc1_1%3a8.2.0-1ubuntu2~18.04_amd64.deb
libcc1-0_8.2.0-1ubuntu2~18.04_amd64.deb
libitm1_8.2.0-1ubuntu2~18.04_amd64.deb
libatomic1_8.2.0-1ubuntu2~18.04_amd64.deb
libasan4_7.3.0-27ubuntu1~18.04_amd64.deb
liblsan0_8.2.0-1ubuntu2~18.04_amd64.deb
libtsan0_8.2.0-1ubuntu2~18.04_amd64.deb
libubsan0_7.3.0-27ubuntu1~18.04_amd64.deb
libcilkrts5_7.3.0-27ubuntu1~18.04_amd64.deb
libmpx2_8.2.0-1ubuntu2~18.04_amd64.deb
libquadmath0_8.2.0-1ubuntu2~18.04_amd64.deb
libgcc-7-dev_7.3.0-27ubuntu1~18.04_amd64.deb
gcc-7_7.3.0-27ubuntu1~18.04_amd64.deb
cpp_4%3a7.3.0-3ubuntu2.1_amd64.deb
gcc_4%3a7.3.0-3ubuntu2.1_amd64.deb
dkms_2.3-3ubuntu9.2_all.deb
linux-libc-dev_4.15.0-43.46_amd64.deb
libc-dev-bin_2.27-3ubuntu1_amd64.deb
libc6-dev_2.27-3ubuntu1_amd64.deb
bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu4_amd64.deb

Last edited by luvbodhi; 12-30-2018 at 06:22 PM.
 
Old 12-31-2018, 05:33 AM   #4
jeremy31
Member
 
Registered: Dec 2018
Distribution: Linux Mint 20.3 Ubuntu 20.04
Posts: 32

Rep: Reputation: Disabled
What kernel are you using?
 
Old 12-31-2018, 11:27 AM   #5
luvbodhi
LQ Newbie
 
Registered: Dec 2018
Posts: 28

Original Poster
Rep: Reputation: Disabled
The distro is the current Bodhi release - bodhi-5.0.0-64 (https://www.bodhilinux.com/download/).

I'm a Windows person but I found this command which I think provides the Linux kernel version:

$ uname -or
4.15.0-20-generic GNU/Linux

Last edited by luvbodhi; 12-31-2018 at 11:31 AM.
 
Old 12-31-2018, 01:48 PM   #6
jeremy31
Member
 
Registered: Dec 2018
Distribution: Linux Mint 20.3 Ubuntu 20.04
Posts: 32

Rep: Reputation: Disabled
Try
Code:
uname -a
 
Old 12-31-2018, 01:57 PM   #7
luvbodhi
LQ Newbie
 
Registered: Dec 2018
Posts: 28

Original Poster
Rep: Reputation: Disabled
Here you go.

$ uname -a
Linux alpha 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
 
Old 12-31-2018, 03:00 PM   #8
jeremy31
Member
 
Registered: Dec 2018
Distribution: Linux Mint 20.3 Ubuntu 20.04
Posts: 32

Rep: Reputation: Disabled
Do you still have the install media? You could boot that and see if there is a driver manager that has Broadcom Proprietary listed, install that and then go to /lib/modules/4.15.0-20-generic/updates
Copy the wl.ko
Open the file manager as root and mount your install directory and go to /lib/modules/4.15.0-20-generic/ right click, create new folder, name it updates, paste the wl.ko in and reboot into the install. Then in terminal do
Code:
sudo depmod -a
Reboot, check to see if Secure Boot is disabled in BIOS, then boot into bodhi, if it works do
Code:
sudo apt install dkms build-essential bcmwl-kernel-source
 
Old 12-31-2018, 03:58 PM   #9
luvbodhi
LQ Newbie
 
Registered: Dec 2018
Posts: 28

Original Poster
Rep: Reputation: Disabled
Very interesting.

I mounted the Bodhi ISO but did not find a /lib folder.

Interestingly though I did find under /dists/pool:

b43-fwcutter_1%3a019-3_amd64.deb
bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu4_amd64.deb
dkms_2.3-3ubuntu9.2_all.deb

I booted the ISO in VirtualBox and did find a /lib/modules/4.15.0-20-generic folder but there was no updates folder under it.

$ pwd
/lib/modules/4.15.0-20-generic

$ ls
build modules.alias.bin modules.dep.bin modules.symbols
initrd modules.builtin modules.devname modules.symbols.bin
kernel modules.builtin.bin modules.order vdso
modules.alias modules.dep modules.softdep1

I tried searching for wl.ko under /lib/modules/4.15.0-20-generic but did not find it.

$ find . -name "wl.ko"
/lib/modules/4.15.0-20-generic$

This find syntax was able to find over 5000 .ko files however.

$ find . -name "*.ko" | wc -l
5161
 
Old 12-31-2018, 04:48 PM   #10
jeremy31
Member
 
Registered: Dec 2018
Distribution: Linux Mint 20.3 Ubuntu 20.04
Posts: 32

Rep: Reputation: Disabled
Read my instructions again, it started with boot to the ISO, then see if there is a driver manager, install broadcom proprietary, then check folder for wl.ko
 
Old 12-31-2018, 05:28 PM   #11
luvbodhi
LQ Newbie
 
Registered: Dec 2018
Posts: 28

Original Poster
Rep: Reputation: Disabled
Yep. I did that. Start reading above (12-31-18, 04:58 PM):

dkms_2.3-3ubuntu9.2_all.deb - about 7 lines down - "I booted the ISO in VirtualBox..."

Last edited by luvbodhi; 01-08-2019 at 05:26 PM.
 
  


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
I have 3 nics on squid and need a script to switch nics teky68 Linux - Newbie 2 12-15-2012 03:48 PM
need to boot 5 isos with menu from completely ro sd/usb config oldandnew Linux - General 4 10-04-2011 06:06 PM
LXer: Ubuntu ISOs To Finally Double As USB Images LXer Syndicated Linux News 0 06-16-2011 05:31 AM
Internet Explorer supported website (not supported by FF) itz2000 Linux - General 17 03-24-2006 08:28 PM
Intel D845GLLY + Multiple Intel Pro 100 NICs + kernel 2.6.x = NICs don't work egable Linux - Hardware 0 02-04-2005 02:30 PM

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

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