Tiny Core Extensions > TCE 3.x

ndiswrapper

<< < (3/4) > >>

Juanito:
Hmm, I get:
--- Code: ---$ lspci -nv
...
0c:00.0 Network controller [0280]: Broadcom Corporation BCM4312 802.11b/g [14e4:4315] (rev 01)
        Subsystem: Dell Wireless 1395 WLAN Mini-Card
$ sudo ndiswrapper -i /tmp/driver/bcmwl6.inf
installing bcmwl6 ...
$ sudo ndiswrapper -l
bcmwl6 : driver installed
$ sudo ndiswrapper -m
modprobe: invalid option -- 'c'
BusyBox v1.17.0.git (2010-06-26 11:03:26 UTC) multi-call binary.
... yada, yada

adding "alias wlan0 ndiswrapper" to /etc/modprobe.conf ...
$ sudo modprobe ndiswrapper
$ dmesg
...
Disabling lock debugging due to kernel taint
ndiswrapper version 1.56 loaded (smp=yes, preempt=no)
usbcore: registered new interface driver ndiswrapper [but pci...]

[add full modprobe]
$ sudo ndiswrapper -l
bcmwl6 : driver installed
        device (14E4:4315) present (alternate driver: ssb)

--- End code ---
..but still no wireless device created.

To get this far, I edited wireless-2.6.33.3-tinycore.tcz to remove b43, which loads automatically - I wonder if I need to remove ssb too...

ref: http://forums.gentoo.org/viewtopic-t-827657-start-0.html

--- Quote ---Disable the b43 AND ssb modules in your kernel. They clash with both ndiswrapper and the broadcom-sta driver and you should be fine.
--- End quote ---

A couple more things to try yet, but I wonder if our kernel is too recent for ndiswrapper?

http://sourceforge.net/projects/ndiswrapper/forums/forum/323168/topic/3567976

..although our kernel config seems have the required settings

Juanito:
updated extension uploaded.

..making some progress now:

1. edit wireless-2.6.33.3-tinycore.tcz and remove b43 [if you have hardware using this]
2. remaster microcore/tinycore and remove ssb module
3. overwrite busybox modprobe with full fat version [just in case..]


--- Code: ---$ sudo modprobe mac80211
$ sudo modprobe lib80211_crypt_wep
$ sudo ndiswrapper -i /tmp/driver/bcmwl5.inf
$ sudo ndiswrapper -l
bcmwl6 : driver installed
$ sudo ndiswrapper -m
adding "alias wlan0 ndiswrapper" to /etc/modprobe.conf ...
$ sudo modprobe ndiswrapper
$ dmesg
...
cfg80211: Using static regulatory domain info
cfg80211: Regulatory domain: 00
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
    (2457000 KHz - 2482000 KHz @ 20000 KHz), (600 mBi, 2000 mBm)
    (2474000 KHz - 2494000 KHz @ 20000 KHz), (600 mBi, 2000 mBm)
    (5170000 KHz - 5250000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
    (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
cfg80211: Calling CRDA to update world regulatory domain
lib80211: common routines for IEEE802.11 drivers
lib80211_crypt: registered algorithm 'NULL'
lib80211_crypt: registered algorithm 'WEP'
Disabling lock debugging due to kernel taint
ndiswrapper version 1.56 loaded (smp=yes, preempt=no)
ndiswrapper: driver bcmwl5 (Broadcom,09/20/2007, 4.170.25.12) loaded
ndiswrapper 0000:0c:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
ndiswrapper 0000:0c:00.0: setting latency timer to 64
ndiswrapper: using IRQ 17
wlan0: ethernet device 00:24:2b:60:07:5a using NDIS driver: bcmwl5, version: 0x4aa190c, NDIS version: 0x501, vendor: 'NDIS Network Adapter', 14E4:4315.5.conf
wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK
usbcore: registered new interface driver ndiswrapper

--- End code ---

I must emphasise that I did not have a wifi network to join, so I couldn't do the final test, but it looks like it's going to work.

I should be able to fully test tomorrow.

curaga:
Blacklisting ssb and b43 should be enough, though it might need to be in an extension or gz to be loaded before the wireless extension.

Juanito:
I was thinking about that too - let me be sure ndiswrapper works first, then I'll play around with blacklisting

Juanito:
It works  :)

1. Make a blacklist file containing at least the module ssb, and create a cpio/gz out of it to load as an overlay at boot, eg:
--- Code: ---$ cat /etc/modprobe.d/blacklist
blacklist ssb
blacklist b43
--- End code ---

2. busybox modprobe seems to work fine despite the error message, so:
--- Code: ---$ sudo ndiswrapper -i /tmp/driver/bcmwl5.inf
$ sudo ndiswrapper -l
bcmwl5 : driver installed
$ sudo ndiswrapper -m
modprobe: invalid option -- 'c'
BusyBox v1.17.0.git (2010-06-26 11:03:26 UTC) multi-call binary.

Usage: modprobe [-alrqvsb] MODULE [symbol=value]...

Options:
        -a      Load multiple MODULEs
        -l      List (MODULE is a pattern)
        -r      Remove MODULE (stacks) or do autoclean
        -q      Quiet
        -v      Verbose
        -s      Log to syslog
        -b      Apply blacklist to module names too

adding "alias wlan0 ndiswrapper" to /etc/modprobe.conf ...

$ sudo iwconfig wlan0 essid "essid"
$ sudo iwconfig wlan0 key restricted 12:34:56:78:9A:BC:DE:F1:23:45:67:89:AB
$ sudo udhcpc -b -i wlan0
udhcpc (v1.17.0.git) started
Sending discover...
Sending select for 192.168.1.103...
Lease of 192.168.1.103 obtained, lease time 600
deleting routers
route: SIOCDELRT: No such process
adding dns 213.42.20.20
adding dns 195.229.241.222
$ sudo ping -c2 www.tinycorelinux.com
PING www.tinycorelinux.com (69.89.31.92): 56 data bytes
64 bytes from 69.89.31.92: seq=0 ttl=51 time=302.567 ms
64 bytes from 69.89.31.92: seq=1 ttl=51 time=304.675 ms

--- www.tinycorelinux.com ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 302.567/303.621/304.675 ms
--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version