SliTaz SliTaz Forum

You are not logged in.

#1 2012-04-16 04:54:28

jerm1027
Member
Registered: 2012-04-15
Posts: 4

Help with network configuration?

I'm trying to connect to the internet through WiFi. I have an Acer Aspire One AO722 with a Broadcom BCM4313 WLAN controller. I assumed the BCM4313 used the B43 module so I ran the following commands (as instructed in WiFi Easy guide)

[c]tazpkg get-install get-wifi-firmware[/c]

[c]get-b43-firmware[/c]

[c]root@slitaz:/home/jeremy# /etc/init.d/network.sh restart
Stopping all interfaces
ifconfig: SIOCGIFFLAGS: No such device
Killing all daemons
killall: udhcpc: no process killed
wlan0     No such device

wlan0 is not a wifi interface, changing it.
Configuring ...lo        no wireless extensions.

dummy0    no wireless extensions.

eth0      no wireless extensions.

                                                                     [ OK ]
iwconfig: unknown command "any"
Starting udhcpc client on: ...
udhcpc: SIOCGIFINDEX: No such device[/c]
So clearly, this endeavor didn't work. What's even more interesting is now my Ethernet won't work. So, how would go about getting both my ethernet and wifi working?

Offline

#2 2012-04-16 11:29:50

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Help with network configuration?

My research indicates BCM4313 chipset requires either BRCM80211/BRCMSMAC or broadcom-wl driver.

BRCM80211/BRCMSMAC :

http://linuxwireless.org/en/users/Drivers/brcm80211

http://wiki.debian.org/brcm80211#fnref-cf8bf260afa6b2b249341f2c60ab7fa204f4479a

Slitaz has 2.6.37 kernel where driver is called BRCM80211

root@slitaz:/home/tux# zcat /proc/config.gz | grep -i brcm

# CONFIG_BRCM80211 is not set

Slitaz does not have pre-compiled BRCM80211 driver for BCM4313

You would have to download kernel source and compile BRCM80211 kernel module.

broadcom-wl :

tazpkg -gi broadcom-wl

Doesn't require firmware, unload conflicting modules:

modprobe -r b44 b43 b43legacy ssb

modprobe wl

If your ethernet adapter requires ssb/b44 you have to load/unload the modules manually depending on which adapter you want to use.

Reactivate ethernet:

leafpad /etc/network.conf

# Set default interface.

INTERFACE="eth0"

/etc/init.d/network.sh restart

Offline

#3 2012-04-16 13:08:06

jerm1027
Member
Registered: 2012-04-15
Posts: 4

Re: Help with network configuration?

This is all new territory for me. I unloaded the modules, but I'm not sure how to locate and load modules, and tazpkg is giving me bad address errors because neither my ethernet nor my Wifi is working with SliTaz right now.

My network cards:

[c]root@slitaz:/home/jeremy# lspci | grep -i net
06:00.0 Ethernet controller: Atheros Communications AR8152 v2.0 Fast Ethernet (rev c1)
07:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01)[/c]
Here is what I have loaded:

[c]root@slitaz:/home/jeremy# lsmod
Module                  Size  Used by    Not tainted
video                   9783  0
button                  3602  0
output                  1144  1 video
atl1c                  22796  0
snd_hda_codec_hdmi     16401  1
snd_hda_intel          15886  1
snd_hda_codec          45027  2 snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep               3808  1 snd_hda_codec
snd_pcm                43737  2 snd_hda_intel,snd_hda_codec
snd_timer              12515  1 snd_pcm
snd                    33394  8 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
soundcore               3357  1 snd
snd_page_alloc          4853  2 snd_hda_intel,snd_pcm[/c]
I would like to point out that my ethernet was briefly working before I started trying to get the wireless to work.

Offline

#4 2012-04-16 13:58:14

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Help with network configuration?

Your ethernet chipset is not broadcom, conflicting modules is not an issue.

Slitaz network script supports one (1) network adapter.

Ethernet(eth0) is the default,in most cases you need to install firmware from the internet before wireless will work.

When you try to use wireless(wlan0) a script changes the default to wireless and disables ethernet.

If wireless fails or you want to switch to ethernet the script will not do it for you.

You always have to manually switch from wireless to ethernet.

Reactivate ethernet so you can connect to internet and download/install broadcom-wl

All commands are done in terminal as root user.

This is how you Reactivate ethernet:

[c]leafpad /etc/network.conf[/c]

# Set default interface.

Change:

INTERFACE="wlan0"

to

INTERFACE="eth0"

File/Save/Quit

[c]/etc/init.d/network.sh restart[/c]

Install and load wl

[c]tazpkg -gi broadcom-wl ; modprobe wl[/c]

Applications/System Tools/Wifi configuration

The wireless router you want to connect to must broadcast an ESSID name.

The routers name will appear in the Wifi network list after a few seconds if your wireless adapter is working.

If Encryption is none dbl-click connects

If Encryption is WPA dbl-click opens Wifi connection box with WPA Password:

Enter the password click OK button to connect.

Offline

#5 2012-04-23 02:06:01

baggins
Member
Registered: 2012-03-26
Posts: 6

Re: Help with network configuration?

Mojo you're a hero.

I run a eepc 1015pex it has atheros ethernet and broadcom 4313 wifi  --I got neither-- and an old dell that I got b43 working on, both from a frugal USB install.

I'd been looking in the repo for broadcom wl and failed to find it (nor brcmsmac) and was heading toward making wl from the source at broadcom (D/L but got no further) when I did a final check in the forums.

Followed your advice here "tazpkg -gi broadcom-wl" on the dell -saved- then transferred the USB key to the eeepc, unloaded SSB and b44 (think it loads that in error anyhow -isn't it for ethernet?)

I was about to reset the network when I realised, heck I'm online already!!!

Here I am saying thankyou off the eeepc.

Thank-you

smile

Offline

#6 2012-04-23 07:32:55

jerm1027
Member
Registered: 2012-04-15
Posts: 4

Re: Help with network configuration?

So, I got the ethernet to work again, but still no WiFi. Not sure what I'm doing wrong here.

Something I found interesting though, is when I initially set the default interface to "eth0" and ran the restart script, I still got no such device errors. I went back into the network.conf file and set

# Wifi connection.

# Enable/disable wireless connection at boot time.

WIFI="no" //was previously set to "yes"

and then ran the restart script with the eth0 and viola: Ethernet is working again. However, everything after to get the wireless working didn't work. I installed broadcom-wl and loaded it with modprobe and went into the WiFi configuration program. Didn't scan or give me any indication of any activity. I clicked "Start WiFi" and it just closes the program. Again, no sign of activity. So I took another stab with the network.conf file, but whatever I tried didn't work. I set the default interface to "wlan0" and ran the restart script and this is what I got.

[c]Stopping all interfaces
ifconfig: SIOCGIFFLAGS: No such device
ifconfig: SIOCGIFFLAGS: No such device
Killing all daemons
wlan0     No such device

ifconfig: SIOCGIFFLAGS: No such device
Starting udhcpc client on: wlan0...
udhcpc: SIOCGIFINDEX: No such device[/c]
My ethernet was still working. So I went and turned on WiFi in the network.conf file And still no WiFi.

[c]Stopping all interfaces
ifconfig: SIOCGIFFLAGS: No such device
ifconfig: SIOCGIFFLAGS: No such device
Killing all daemons
killall: udhcpc: no process killed
wlan0     No such device

ifconfig: SIOCGIFFLAGS: No such device
ifconfig: SIOCGIFFLAGS: No such device
wlan0 is not a wifi interface, changing it.
Configuring ...lo        no wireless extensions.

dummy0    no wireless extensions.

eth0      no wireless extensions.

                                                                     [ OK ]
Starting udhcpc client on: ...
udhcpc: SIOCGIFINDEX: No such device[/c]
The first time I tried this, it broke my ethernet again, but I can't seem to replicate it.

Again, here is what's loaded:

[c]root@slitaz:/home/jeremy# lsmod
Module                  Size  Used by    Tainted: P
wl                   1937352  0
lib80211                2676  1 wl
video                   9783  0
button                  3602  0
output                  1144  1 video
atl1c                  22796  0
snd_hda_codec_hdmi     16401  1
snd_hda_intel          15886  1
snd_hda_codec          45027  2 snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep               3808  1 snd_hda_codec
snd_pcm                43737  2 snd_hda_intel,snd_hda_codec
snd_timer              12515  1 snd_pcm
snd                    33394  8 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
soundcore               3357  1 snd
snd_page_alloc          4853  2 snd_hda_intel,snd_pcm[/c]

Offline

#7 2012-04-23 17:50:34

baggins
Member
Registered: 2012-03-26
Posts: 6

Re: Help with network configuration?

Hi Jeremy,

on mine the wifi is on eth2

maybe an oddity of wl

type "iwconfig" on it's own in terminal, it should tell you your wireless extensions

Offline

#8 2012-04-23 19:59:33

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Help with network configuration?

Thanks for the assistance baggins,

Four ways in SliTaz to see network interface names:

[1]Applications/System Tools/Configure Networking

Connections tab/Interface column

[2] Open web browser

Go to this address: http://tazpanel:82/network.cgi

These commands in terminal:

[3] ls /sys/class/net

[4] cat /proc/net/dev

Outputs network interfaces alias names in Inter-face column seen by the kernel.

Ignore dummy0 and lo

Offline

#9 2012-04-24 06:40:39

jerm1027
Member
Registered: 2012-04-15
Posts: 4

Re: Help with network configuration?

Here is my iwconfig output

[c]root@slitaz:/home/jeremy# iwconfig
lo        no wireless extensions.

dummy0    no wireless extensions.

eth0      no wireless extensions.[/c]
The /sys/class/net gave me a read error stating it was a directory, so I used ls instead.

[c]jeremy@slitaz:~$ ls /sys/class/net
dummy0  eth0    lo[/c]
clearly I have a problem here. sad

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.56 MiB (Peak: 1.77 MiB) ]