LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   Wireless setup in RHES 5 (https://www.linuxquestions.org/questions/linux-wireless-networking-41/wireless-setup-in-rhes-5-a-640430/)

anon102 05-06-2008 11:04 PM

Wireless setup in RHES 5
 
Hi;

I'm new enough to Linux to be flustered by this, but familiar enough that I think I can follow any well-written instructions.

That said, here goes:

I'm attempting to configure my wireless after having installed RHEL 5 on my laptop. I've got ndiswrapper installed, I have the correct drivers for my device (the .inf and .sys files), and in theory I know the steps to get this done.

One problem I seem to be having, though, is that I can't blacklist the default drivers for my device, so the ndiswrapper version isn't being detected at all. Everywhere I look I'm told to just add the line
Code:

blacklist <driver>
to /etc/modprobe.d/blacklist, and then reboot.

After doing so, I should not be able to find my device in the network configuration menu at all - correct?

Yet, I do.

Any ideas?

Peacedog 05-07-2008 06:43 PM

Hi Ragnarok_Sunset, Welcome to lq. Try this instead edit /etc/modprobe.conf with the following.
Code:

alias <driver> off
Good luck. ;-)

anon102 05-08-2008 12:54 AM

I'm afraid that didn't work at all.

I've tried various things to no avail, including adding the following to modprobe.conf:

Code:

install ndiswrapper /sbin/modprobe --ignore-install ndiswrapper && {loadndiswrapper 14E4:4318 /etc/ndiswrapper/<device>.sys /etc/ndiswrapper/<device>.inf;}
I've also created the ifcfg-wlan0 file from scratch, setting various parameters as they ought to be for my system (particularly, ESSID, MODE, KEY are set correctly).

I'm at a loss. Strangely, at one point I did have the wireless "functioning" and detecting various access points, but I could not actually connect to the internet via any of these. I have no idea what I had done to at least get that far, since any attempt to retrace my steps has turned up nothing.

For the heck of it, here is the basic outline of what I'm doing:

1. I'm starting with a fresh install of RHEL5.

2. I'm running make install in the directory containing my ndiswrapper source (version 1.52).

3. I have the right drivers, and I use ndiswrapper -i to install them. Doing ndiswrapper -l shows they are installed, and that there are alternate drivers as well which I suspect are causing some of my problems.

4. I do ndiswrapper -m, which adds a line to /etc/mdoprobe.conf: alias wlan0 ndiswrapper.

5. dmesg | grep ndiswrapper shows no love. Lines indicating ndiswrapper is being loaded, but that's it - nothing about the mac address or anything one would expect, and grepping for wlan0 turns up nothing at all.

6. iwconfig shows eth1 (the default alias of my wireless card) is sort of half-assedly set up; my OS does detect my card, and knows what make it is, but the default drivers accomplish nothing. wlan0 does not show up in the list at all.

7. iwlist scan fails utterly.

8. As mentioned, I can't blacklist, alias off, or even rmmod or modprobe -r the default drivers. lsmod | grep <driver> always shows the default drivers are loaded.

I have no idea what else there is left to try. If there is other information that may help, do let me know and I'll try to provide it.

Peacedog 05-08-2008 05:26 AM

It would help to know the card and drivers in question. Post the output from the following please.
Code:

/sbin/lspci -v
/sbin/lsmod
/sbin/iwconfig
/sbin/iwlist scan

Good luck ;-)

anon102 05-12-2008 09:33 PM

Sorry to have let this fall to the wayside - I've got three jobs this Summer that I've had to do running around for lately!

Anyway, the outputs of the requested commands are as follows; they pretty much corroborate what I said in plain English before. What I believe to be the relevant entries in the outputs are in bold italics. I hope there's some information in here that can help someone diagnose what is going on!

Regarding lsmod, remember this is output after attempting to blacklist the bcm43xx module by editing /etc/modprobe.d/blacklist.

lspci -v:

00:00.0 Host bridge: ATI Technologies Inc RS480 Host Bridge (rev 01)
Subsystem: Hewlett-Packard Company Unknown device 309b
Flags: bus master, 66MHz, medium devsel, latency 64

00:01.0 PCI bridge: ATI Technologies Inc RS480 PCI Bridge (prog-if 00 [Normal decode])
Flags: bus master, 66MHz, medium devsel, latency 64
Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
I/O behind bridge: 00009000-00009fff
Memory behind bridge: c0100000-c01fffff
Prefetchable memory behind bridge: 00000000c8000000-00000000cff00000
Capabilities: [44] HyperTransport: MSI Mapping
Capabilities: [b0] #0d [0000]

00:04.0 PCI bridge: ATI Technologies Inc RS480 PCI Bridge (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=03, sec-latency=0
Capabilities: [50] Power Management version 3
Capabilities: [58] Express Root Port (Slot-) IRQ 0
Capabilities: [80] Message Signalled Interrupts: 64bit- Queue=0/0 Enable+
Capabilities: [b0] #0d [0000]
Capabilities: [b8] HyperTransport: MSI Mapping
Capabilities: [100] Advanced Error Reporting

00:13.0 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller (prog-if 10 [OHCI])
Subsystem: ATI Technologies Inc IXP SB400 USB Host Controller
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 217
Memory at c0000000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [d0] Message Signalled Interrupts: 64bit- Queue=0/0 Enable-

00:13.1 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller (prog-if 10 [OHCI])
Subsystem: ATI Technologies Inc IXP SB400 USB Host Controller
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 217
Memory at c0001000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [d0] Message Signalled Interrupts: 64bit- Queue=0/0 Enable-

00:13.2 USB Controller: ATI Technologies Inc IXP SB400 USB2 Host Controller (prog-if 20 [EHCI])
Subsystem: ATI Technologies Inc IXP SB400 USB2 Host Controller
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 217
Memory at c0002000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [dc] Power Management version 2
Capabilities: [d0] Message Signalled Interrupts: 64bit- Queue=0/0 Enable-

00:14.0 SMBus: ATI Technologies Inc IXP SB400 SMBus Controller (rev 11)
Subsystem: Hewlett-Packard Company Unknown device 309b
Flags: 66MHz, medium devsel
I/O ports at 8400 [size=16]
Memory at c0003000 (32-bit, non-prefetchable) [size=1K]
Capabilities: [b0] HyperTransport: MSI Mapping

00:14.1 IDE interface: ATI Technologies Inc Standard Dual Channel PCI IDE Controller ATI (prog-if 8a [Master SecP PriP])
Subsystem: Hewlett-Packard Company Unknown device 309b
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 209
I/O ports at <ignored>
I/O ports at <ignored>
I/O ports at <ignored>
I/O ports at <ignored>
I/O ports at 8410 [size=16]
Capabilities: [70] Message Signalled Interrupts: 64bit- Queue=0/0 Enable-

00:14.3 ISA bridge: ATI Technologies Inc IXP SB400 PCI-ISA Bridge
Flags: bus master, 66MHz, medium devsel, latency 0

00:14.4 PCI bridge: ATI Technologies Inc IXP SB400 PCI-PCI Bridge (prog-if 01 [Subtractive decode])
Flags: bus master, 66MHz, medium devsel, latency 64
Bus: primary=00, secondary=06, subordinate=08, sec-latency=64
I/O behind bridge: 0000a000-0000afff
Memory behind bridge: c0200000-c02fffff
Prefetchable memory behind bridge: 88000000-89ffffff

00:14.5 Multimedia audio controller: ATI Technologies Inc IXP SB400 AC'97 Audio Controller (rev 02)
Subsystem: Hewlett-Packard Company Unknown device 309b
Flags: bus master, 66MHz, slow devsel, latency 64, IRQ 201
Memory at c0003400 (32-bit, non-prefetchable) [size=256]
Capabilities: [40] Message Signalled Interrupts: 64bit- Queue=0/0 Enable-

00:14.6 Modem: ATI Technologies Inc ATI SB400 - AC'97 Modem Controller (rev 02) (prog-if 00 [Generic])
Subsystem: Hewlett-Packard Company Unknown device 309b
Flags: bus master, 66MHz, slow devsel, latency 64, IRQ 201
Memory at c0003800 (32-bit, non-prefetchable) [size=256]
Capabilities: [40] Message Signalled Interrupts: 64bit- Queue=0/0 Enable-

00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
Flags: fast devsel
Capabilities: [80] HyperTransport: Host or Secondary Interface

00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
Flags: fast devsel

00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
Flags: fast devsel

00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
Flags: fast devsel

01:05.0 VGA compatible controller: ATI Technologies Inc ATI Radeon XPRESS 200M 5955 (PCIE) (prog-if 00 [VGA])
Subsystem: Hewlett-Packard Company Unknown device 309b
Flags: bus master, 66MHz, medium devsel, latency 66, IRQ 7
Memory at c8000000 (32-bit, prefetchable) [size=128M]
I/O ports at 9000 [size=256]
Memory at c0100000 (32-bit, non-prefetchable) [size=64K]
[virtual] Expansion ROM at c0120000 [disabled] [size=128K]
Capabilities: [50] Power Management version 2

06:02.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)
Subsystem: Hewlett-Packard Company Unknown device 1355
Flags: bus master, fast devsel, latency 64, IRQ 233
Memory at c0204000 (32-bit, non-prefetchable) [size=8K]


06:04.0 CardBus bridge: Texas Instruments PCIxx21/x515 Cardbus Controller
Subsystem: Hewlett-Packard Company Unknown device 309b
Flags: bus master, medium devsel, latency 168, IRQ 177
Memory at c0208000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=06, secondary=07, subordinate=07, sec-latency=176
Memory window 0: 88000000-89fff000 (prefetchable)
Memory window 1: 8a000000-8bfff000
I/O window 0: 0000a400-0000a4ff
I/O window 1: 0000a800-0000a8ff
16-bit legacy interface ports at 0001

06:04.2 FireWire (IEEE 1394): Texas Instruments OHCI Compliant IEEE 1394 Host Controller (prog-if 10 [OHCI])
Subsystem: Hewlett-Packard Company Unknown device 309b
Flags: bus master, medium devsel, latency 64, IRQ 10
Memory at c0209000 (32-bit, non-prefetchable) [size=2K]
Memory at c0200000 (32-bit, non-prefetchable) [size=16K]
Capabilities: [44] Power Management version 2

06:04.3 Mass storage controller: Texas Instruments PCIxx21 Integrated FlashMedia Controller
Subsystem: Hewlett-Packard Company Unknown device 309b
Flags: bus master, medium devsel, latency 64, IRQ 10
Memory at c0206000 (32-bit, non-prefetchable) [size=8K]
Capabilities: [44] Power Management version 2

06:04.4 Class 0805: Texas Instruments PCI6411/6421/6611/6621/7411/7421/7611/7621 Secure Digital Controller
Subsystem: Hewlett-Packard Company Unknown device 309b
Flags: bus master, medium devsel, latency 64, IRQ 177
Memory at c020a000 (32-bit, non-prefetchable) [size=256]
Memory at c0209c00 (32-bit, non-prefetchable) [size=256]
Memory at c0209800 (32-bit, non-prefetchable) [size=256]
Capabilities: [80] Power Management version 2

06:06.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
Subsystem: Hewlett-Packard Company Unknown device 309b
Flags: bus master, medium devsel, latency 128, IRQ 225
I/O ports at a000 [size=256]
Memory at c020a400 (32-bit, non-prefetchable) [size=256]
Capabilities: [50] Power Management version 2



lsmod

Module Size Used by
sd_mod 22977 0
sg 35933 0
usb_storage 76577 0
scsi_mod 131021 3 sd_mod,sg,usb_storage
autofs4 23749 2
hidp 23105 2
rfcomm 42457 0
l2cap 29505 10 hidp,rfcomm
bluetooth 53925 5 hidp,rfcomm,l2cap
sunrpc 142973 1
ndiswrapper 170384 0
bcm43xx 412993 0
ieee80211softmac 33985 1 bcm43xx
ieee80211 33417 2 bcm43xx,ieee80211softmac
ieee80211_crypt 10049 1 ieee80211
ip_conntrack_ftp 11697 0
ip_conntrack_netbios_ns 6977 0
ipt_REJECT 9537 1
xt_state 6209 5
ip_conntrack 53153 3 ip_conntrack_ftp,ip_conntrack_netbios_ns,xt_state
nfnetlink 10713 1 ip_conntrack
iptable_filter 7105 1
ip_tables 17029 1 iptable_filter
ip6t_REJECT 9409 1
xt_tcpudp 7105 16
ip6table_filter 6849 1
ip6_tables 18181 1 ip6table_filter
x_tables 17349 6 ipt_REJECT,xt_state,ip_tables,ip6t_REJECT,xt_tcpudp,ip6_tables
cpufreq_ondemand 10573 1
video 19269 0
sbs 18533 0
i2c_ec 9025 1 sbs
button 10705 0
battery 13637 0
asus_acpi 19289 0
ac 9157 0
ipv6 251137 15 ip6t_REJECT
parport_pc 29157 0
lp 15849 0
parport 37513 2 parport_pc,lp
joydev 13185 0
i2c_piix4 12109 0
snd_atiixp 22613 1
snd_seq_dummy 7877 0
snd_seq_oss 32705 0
snd_seq_midi_event 11073 1 snd_seq_oss
snd_seq 49841 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 11853 3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss 42849 0
i2c_core 23745 2 i2c_ec,i2c_piix4
snd_mixer_oss 19137 1 snd_pcm_oss
k8_edac 17537 0
edac_mc 24977 1 k8_edac
snd_atiixp_modem 18889 0
snd_ac97_codec 87009 2 snd_atiixp,snd_atiixp_modem
snd_ac97_bus 6337 1 snd_ac97_codec
ide_cd 40033 0
cdrom 36705 1 ide_cd
snd_pcm 71621 4 snd_atiixp,snd_pcm_oss,snd_atiixp_modem,snd_ac97_codec
pcspkr 7105 0
snd_timer 24901 2 snd_seq,snd_pcm
snd 51909 12 snd_atiixp,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_atiixp_modem,snd_ac97_co dec,snd_pcm,snd_timer
8139too 28737 0
8139cp 26305 0
mii 9409 2 8139too,8139cp
serio_raw 10693 0
soundcore 13217 1 snd
snd_page_alloc 13641 3 snd_atiixp,snd_atiixp_modem,snd_pcm
sdhci 21337 0
mmc_core 27457 1 sdhci
dm_snapshot 20581 0
dm_zero 6209 0
dm_mirror 29713 0
dm_mod 56537 8 dm_snapshot,dm_zero,dm_mirror
ext3 123081 2
jbd 56553 1 ext3
ehci_hcd 32845 0
ohci_hcd 23261 0
uhci_hcd 25421 0


iwconfig

lo no wireless extensions.

eth0 no wireless extensions.

sit0 no wireless extensions.

eth1 IEEE 802.11b/g ESSID:off/any Nickname:"Broadcom 4318"
Mode:Managed Access Point: Invalid
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0



iwlist scan

lo Interface doesn't support scanning.

eth0 Interface doesn't support scanning.

sit0 Interface doesn't support scanning.

eth1 Interface doesn't support scanning : No such device

Peacedog 05-13-2008 05:56 AM

Reading from here, try this.
Code:

ndiswrapper -e driver_name
Are you certain the changes were saved to the appropriate files?
Code:

cat /etc/modprobe.d/blacklist
cat /etc/modprobe.conf

Good luck. ;-)

anon102 05-15-2008 03:33 PM

Well, a bit of success has been had. I write now from my root profile, where the wireless now connects to my local internet node with no troubles.

However, I have to set everything up manually when I log in, by doing

Code:

modprobe -r bcm43xx
modprobe -r ndiswrapper
modprobe ndiswrapper

after which things are fine.

Now, I imagine there's some kind of configuration file that I need to edit so that this is done automatically, both for root and for other accounts I set up (currently I can't access modprobe or ndiswrapper under what will be my primary work login).

If that's the case, which is it and how must I edit it?

EDIT: Also, yes, the /etc/modprobe.d/blacklist file retains the change I made, but it clearly does not actually blacklist the right module. Is there an entry to /etc/modprobe.conf I ought to be making as well?

Peacedog 05-15-2008 06:28 PM

What does lsmod look like after you modprobe -r bcm43xx and before you remove and reinsert the ndiswrapper module, then again after you reinsert the ndiswrapper module? Perhaps there are a couple of other modules that need to be blacklisted.
Good luck. ;-)


All times are GMT -5. The time now is 04:55 PM.