LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-11-2009, 03:08 AM   #16
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Original Poster
Rep: Reputation: 55

i reinstalled the slackware since i didnt find anything in /lib/module/2.6.27.7-smp/kernel/
Quote:
Originally Posted by GrapefruiTgirl View Post
I'm not sure what exactly are the packages at the link I'll give you, but it seems Broadcom has actually released Linux drivers for that device.

Have a look here: http://www.broadcom.com/support/802.11/linux_sta.php
and here: http://jomcode.com/fadhil/?p=59

Though you may wish to do a little more searching, as there's probably a Slack-package around somewhere too.

Sasha
done as shown and the wireless is up.. now want it to be enabled during boot.. should i add line to /etc/rc.d/rc.modules?? i cant find any other modules enabled there.. also help me configure the wifi and auto find the network..

again thanks to all who helped me sort the driver problem

mobin
 
Old 09-11-2009, 06:38 AM   #17
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Original Poster
Rep: Reputation: 55
i cant connect to lan through wireless in slackware.. i have a wireless(802.11g) enabled utstarcom router.i have enabled dhcp.this is how my wireless look in ubuntu
Code:
root@mobinSkariya:/home/mobin# iwconfig 
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      IEEE 802.11bg  ESSID:"UTStarcom"  Nickname:""
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:1B:DA:2F:4C:94   
          Bit Rate=54 Mb/s   Tx-Power:32 dBm   
          Retry min limit:7   RTS thr:off   Fragment thr:off
          Power Managementmode:All packets received
          Link Quality=5/5  Signal level=-21 dBm  Noise level=-87 dBm
          Rx invalid nwid:0  Rx invalid crypt:1  Rx invalid frag:0
          Tx excessive retries:33  Invalid misc:0   Missed beacon:0

pan0      no wireless extensions.
root@mobinSkariya:/home/mobin# ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:23:ae:05:6c:f9  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:16 

eth1      Link encap:Ethernet  HWaddr 00:23:4e:85:a8:56  
          inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::223:4eff:fe85:a856/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2014 errors:0 dropped:0 overruns:0 frame:7
          TX packets:2299 errors:24 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1351984 (1.3 MB)  TX bytes:462106 (462.1 KB)
          Interrupt:17 Base address:0xc000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:24 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1552 (1.5 KB)  TX bytes:1552 (1.5 KB)
what should i do to setup my wireless lan??
 
Old 09-11-2009, 11:25 AM   #18
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Quote:
Originally Posted by mobin
done as shown and the wireless is up..
now want it to be enabled during boot.. should i add line to /etc/rc.d/rc.modules??
i cant find any other modules enabled there..
also help me configure the wifi and auto find the network..
Quote:
Originally Posted by mobin
i cant connect to lan through wireless in slackware..
i have a wireless(802.11g) enabled utstarcom router.i have enabled dhcp.
Ok, looking good so far. But I'm not sure if the two quotes above are conflicting. Can you, or can't you, connect and use the wireless connection?

Either way, here's where I'd go next:

Quote:
Originally Posted by mobin
now want it to be enabled during boot..
OK, first, let's assume you took Onebuck's advice above, and blacklisted any other existing BCM drivers that may exist on your machine.

Second: For the sake of this conversation, I am not dealing with any wireless encryption that may be involved here. I don't know personally whether the broadcom driver fully supports encryption on Linux -- I presume it does, because the driver is from Broadcom itself, but let's work on getting you connected first, then THEN you can deal with enabling encryption.

So, next step: Making the device enable automatically at boot, so:

1) create a file inside /etc/modprobe.d and call it "broadcom" or "wireless" or something like this, so that you know what it's used for.
2) inside that file, you'll put two lines, like so:
Code:
alias eth1 <modulename>
options <modulename> blah blah blah
..and now, save the file, and delete any automatically created backups of that file.
Explanation of the above code:
The first line tells the kernel that when it finds eth1 it should modprobe your new BCM driver that you just built. To know exactly what <drivername> should be, you can use the lsmod command, and note the exact name of the broadcom kernel module.

The second line, is optional; it is where you can put any OPTIONS that you would like the kernel to give to the module, when inserting it. I don't know what options you might want to use, or if any are necessary at all. To identify any possible options that the module accepts, use the command:

shell# modinfo -P <modulename>

again putting the name of the module instead of <modulename>

That will show you the "optional parameters" that the module accepts. If there are none, then don't worry about this. If there ARE some, then do a bit of Googling, or check the Broadcom website, to learn what the parameters do, and if you need them or not.
------------------------------------------------------

Ok, so now, the module should automatically be inserted during boot.
The next step is to configure the network connection in the file called /etc/rc.d/rc.inet1.conf because that is the file that configures networking in Slackware.

I currently don't use a wireless device on Slackware, so i am hesitant to provide you ideas as to what exactly to put there. Hopefully someone else more familiar, will step in here and provide an example of what you want to have there. Also, note that by default, the rc.inet1.conf file contains a detailed example of a wireless configuration, which you can probably adjust and tailor to your needs, by uncommenting the lines you want, and editing them appropriately.

Best of success! If you need further help, we're around here somewhere

Sasha

Last edited by GrapefruiTgirl; 09-11-2009 at 12:38 PM. Reason: fixed typos of the bold items
 
Old 09-11-2009, 11:57 AM   #19
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Original Poster
Rep: Reputation: 55
Quote:
But I'm not sure if the two quotes above are conflicting. Can you, or can't you, connect and use the wireless connection?
i meant appropriate wireless modules were successfully loaded(also wireless LED in my laptop started glowing) and no connection to lan through wireless.. i think its clear now.
Code:
bash-3.1# ls -l /lib/modules/2.6.27.7-smp/kernel/net/wireless/
total 1381
-rw-r--r-- 1 root root   33899 2008-11-21 09:51 cfg80211.ko
-rw-r--r-- 1 root root 1373179 2009-09-11 07:45 wl.ko
bash-3.1#
so i assume there is no need to blacklist other bcm drivers.and about encryption i have turned off all encryption for now..

edit:also i enabled the modules automatically load at boot time earlier as shown in my post #16..so should i follow the instructions above?? if it has got advantages i will surely follow..
Code:
bash-3.1# lsmod |grep wl
wl                   1276872  0 
ieee80211_crypt         8580  2 ieee80211_crypt_tkip,wl
bash-3.1#

Last edited by mobinskariya; 09-11-2009 at 12:07 PM.
 
Old 09-11-2009, 12:37 PM   #20
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Correct sorry -- I hadn't realized you did indeed get the module to modprobe during boot, using the modprobe.conf method. There's not really a need to go ahead with the file in /modprobe.d, though it (I believe) helps ensure that the correct module will always be associated with eth1 (there's the main advantage that I am aware of). If it's working as-is, then you can bypass that step for the time being, or until someone else can state absolutely that it's a very good idea to have that file. It can't hurt, anyways, making the file..

So further: there's no need to blacklist anything because you aren't having any troubles requiring you to do so, and you have no other bcm modules to worry about.

Finally, you do still want to look at rc.inet1.conf (which I typo'd above, and will correct shortly) -- because that is the network configuration file. It's in there where you tell the system to use DHCP or not, as well as put your encryption keys and other such information.

Nice going so far

Sasha
 
Old 09-11-2009, 01:04 PM   #21
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Original Poster
Rep: Reputation: 55
this is how my rc.inet1.conf looks
Code:
# Config information for eth0:
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]="yes"
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

# Default gateway IP address:
GATEWAY=""

# Change this to "yes" for debugging output to stdout.  Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"

## Example config information for wlan0.  Uncomment the lines you need and fill
## in your info.  (You may not need all of these for your wireless network)
#IFNAME[4]="wlan0"
#IPADDR[4]=""
#NETMASK[4]=""
#USE_DHCP[4]="yes"
#DHCP_HOSTNAME[4]="icculus-wireless"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
#WLAN_ESSID[4]=BARRIER05
#WLAN_MODE[4]=Managed
##WLAN_RATE[4]="54M auto"
##WLAN_CHANNEL[4]="auto"
##WLAN_KEY[4]="D5AD1F04ACF048EC2D0B1C80C7"
##WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"
#WLAN_WPA[4]="wpa_supplicant"
#WLAN_WPADRIVER[4]="ndiswrapper"

## Some examples of additional network parameters that you can use.
## Config information for wlan0:
#IFNAME[4]="wlan0"              # Use a different interface name nstead of
                                # the default 'eth4'
#HWADDR[4]="00:01:23:45:67:89"  # Overrule the card's hardware MAC address
#MTU[4]=""                      # The default MTU is 1500, but you might need
                                # 1360 when you use NAT'ed IPSec traffic.
#DHCP_KEEPRESOLV[4]="yes"       # If you dont want /etc/resolv.conf overwritten
#DHCP_KEEPNTP[4]="yes"          # If you don't want ntp.conf overwritten
#DHCP_KEEPGW[4]="yes"           # If you don't want the DHCP server to change
                                # your default gateway
#DHCP_IPADDR[4]=""              # Request a specific IP address from the DHCP
                                # server
#WLAN_ESSID[4]=DARKSTAR         # Here, you can override _any_ parameter
                                # defined in rc.wireless.conf, by prepending
                                # 'WLAN_' to the parameter's name. Useful for
                                # those with multiple wireless interfaces.
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=thekey"
                                # Some drivers require a private ioctl to be
                                # set through the iwpriv command. If more than
                                # one is required, you can place them in the
                                # IWPRIV parameter (separated with the pipe (|)
                                # character, see the example).
USE_DHCP[0]="yes"
what information am i supposed to add.??
 
Old 09-11-2009, 11:20 PM   #22
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Original Poster
Rep: Reputation: 55
Thumbs up

this problem is over.. now i am connected to wireless network and using it for browsing internet. most of my question might seem stupid to most of you(i feel it myself after finding the solution).i think i need to develop some systematic way of solving problem in linux.also i think it needs a bit of experience and i have got only two years of experience with linux(that too without any proper training).

this is what i have done..

at first there was no wireless connection
Code:
bash-3.1# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      IEEE 802.11bg  ESSID:""  Nickname:""
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated   
          Bit Rate:54 Mb/s   Tx-Power:off   
          Retry min limit:7   RTS thr:off   Fragment thr:off
          Power Managementmode:All packets received
          Link Quality=5/5  Signal level=0 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
later
Code:
bash-3.1# iwconfig essid any
iwconfig: unknown command "any"
bash-3.1# iwconfig eth1 essid any
bash-3.1# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      IEEE 802.11bg  ESSID:"UTStarcom"  Nickname:""
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:1B:DA:2F:4C:94   
          Bit Rate=54 Mb/s   Tx-Power:32 dBm   
          Retry min limit:7   RTS thr:off   Fragment thr:off
          Power Managementmode:All packets received
          Link Quality=5/5  Signal level=-22 dBm  Noise level=-65 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

bash-3.1# dhcpcd eth1
Broadcasting DHCP_DISCOVER
broadcastAddr option is missing in DHCP server response. Assuming 192.168.1.255
dhcpIPaddrLeaseTime=86400 in DHCP server response.
dhcpT1value is missing in DHCP server response. Assuming 43200 sec
dhcpT2value is missing in DHCP server response. Assuming 75600 sec
DHCP_OFFER received from  (192.168.1.1)
Broadcasting DHCP_REQUEST for 192.168.1.3
dhcpIPaddrLeaseTime=86400 in DHCP server response.
dhcpT1value is missing in DHCP server response. Assuming 43200 sec
dhcpT2value is missing in DHCP server response. Assuming 75600 sec
DHCP_ACK received from  (192.168.1.1)
Broadcasting ARPOP_REQUEST for 192.168.1.3
bash-3.1#
i am really happy right now to mark this thread solved.i must thank all of you for helping me solve the problem especially Sasha

i will be back again with more stupid questions

thanks

mobin

Last edited by mobinskariya; 09-11-2009 at 11:23 PM.
 
Old 09-12-2009, 12:12 AM   #23
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Quote:
Originally Posted by mobinskariya View Post
this problem is over.. now i am connected to wireless network and using it for browsing internet. most of my question might seem stupid to most of you(i feel it myself after finding the solution).i think i need to develop some systematic way of solving problem in linux.also i think it needs a bit of experience and i have got only two years of experience with linux(that too without any proper training).

this is what i have done..

at first there was no wireless connection
Code:
bash-3.1# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      IEEE 802.11bg  ESSID:""  Nickname:""
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated   
          Bit Rate:54 Mb/s   Tx-Power:off   
          Retry min limit:7   RTS thr:off   Fragment thr:off
          Power Managementmode:All packets received
          Link Quality=5/5  Signal level=0 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
later
Code:
bash-3.1# iwconfig essid any
iwconfig: unknown command "any"
bash-3.1# iwconfig eth1 essid any
bash-3.1# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      IEEE 802.11bg  ESSID:"UTStarcom"  Nickname:""
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:1B:DA:2F:4C:94   
          Bit Rate=54 Mb/s   Tx-Power:32 dBm   
          Retry min limit:7   RTS thr:off   Fragment thr:off
          Power Managementmode:All packets received
          Link Quality=5/5  Signal level=-22 dBm  Noise level=-65 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

bash-3.1# dhcpcd eth1
Broadcasting DHCP_DISCOVER
broadcastAddr option is missing in DHCP server response. Assuming 192.168.1.255
dhcpIPaddrLeaseTime=86400 in DHCP server response.
dhcpT1value is missing in DHCP server response. Assuming 43200 sec
dhcpT2value is missing in DHCP server response. Assuming 75600 sec
DHCP_OFFER received from  (192.168.1.1)
Broadcasting DHCP_REQUEST for 192.168.1.3
dhcpIPaddrLeaseTime=86400 in DHCP server response.
dhcpT1value is missing in DHCP server response. Assuming 43200 sec
dhcpT2value is missing in DHCP server response. Assuming 75600 sec
DHCP_ACK received from  (192.168.1.1)
Broadcasting ARPOP_REQUEST for 192.168.1.3
bash-3.1#
i am really happy right now to mark this thread solved.i must thank all of you for helping me solve the problem especially Sasha

i will be back again with more stupid questions

thanks

mobin
WooHoo!! Gotta like it when a plan comes together!

I am happy that it now works! And yes, sometimes it helps to go about things systematically (well, probably most times it's a good idea) but with stuff we really are new to, it can be hard to figure out that very thing. I am less than 3 years new to linux as well

And as someone around here claims: The only stupid question, is the one unasked

Cheers, & happy browsing!

Sasha
 
  


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
Wireless in slackware kalnaren Linux - Hardware 3 09-13-2006 10:35 AM
Wireless card..Wireless router.. Slackware 10.2 ..Problems with Internet Connection. Storm Bringer Linux - Wireless Networking 4 03-23-2006 06:25 AM
wireless in slackware netman86 Linux - Hardware 9 11-11-2004 04:12 PM
Wireless on Slackware 10 hayesben Slackware 11 10-15-2004 09:14 AM

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

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