wlan0 activate without NetworkManager

Hi guys!
I have two SD cards:

  1. Angstrom-TI-GNOME-image-eglibc-ipk-v2012.01-core-beagleboard-2012.01.11.img.gz

  2. manually compiled latest Angstrom console-rootfs

The hardware contains LSR Tiwi-R2 module (you can consider this as BBToys-Wifi). I found that when SD card with huge demo (SD 1) starts wl1271 is booted by the firmware. When SD 2 with the console version starts then wl1271 is only initialized but no firmware is loaded. Comparing two logs I found that the demo contains NetworkManager, but console version does not. Therefore I concluded that exactly NetworkManager loads the Wifi chip with necessary firmware.

The question: how can I load the firmware without NetworkManager or I indeed need to include it in the rootfs?

udev, should do that that on bootup..

clone this tree:
http://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git;a=tree

copy the ti-connectivity directory to /lib/firmware/

Then it should just load the firmware on the next boot..

Regards,

Hello Robert!

I have ti-connectivity directory and NetworkManager boots the firmware to wl1271. Console-image does not contain NetworkManager and no one boots wl1271.

I removed NetworkManager just for a test and now both of my SD cards behave the same: they do not boot the firmware. If I issue a command “ifup wlan0” then the firmware is booted, but I can’t change the connected SSID.

Seems that udev does not boot any firmware to wl1271

2012/2/17 Robert Nelson <robertcnelson@gmail.com>

Guys, I successfully brought up LSR module with fully custom hardware!

  1. ip link set wlan0 up
    [ 39.758850] wl1271: firmware booted (Rev 6.1.5.50.74)
    [ 39.771240] ADDRCONF(NETDEV_UP): wlan0: link is not ready

  2. iwlist wlan0 scan
    wlan0 Scan completed :
    Cell 01 - Address: 00:24:8C:95:95:2F
    Channel:1
    Frequency:2.412 GHz (Channel 1)
    Quality=15/70 Signal level=-95 dBm
    Encryption key:on
    ESSID:“qwerty203”
    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
    24 Mb/s; 36 Mb/s; 54 Mb/s
    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
    Mode:Master
    Extra:tsf=000000dea50f6bb0
    Extra: Last beacon: 1750ms ago
    IE: Unknown: 0009717765727479323033
    IE: Unknown: 010882848B962430486C
    IE: Unknown: 030101
    IE: Unknown: 2A0104
    IE: Unknown: 2F0104
    IE: IEEE 802.11i/WPA2 Version 1
    Group Cipher : CCMP
    Pairwise Ciphers (1) : CCMP
    Authentication Suites (1) : PSK
    IE: Unknown: 32040C121860
    IE: Unknown: DD090010180200F0000000
    Cell 02 - Address: 00:22:B0:90:73:E3
    ******** a lot of APs ****

  3. iwconfig wlan0 essid “TP-LINK_D4959E”
    root@beagleboard:~# [ 85.033386] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
    [ 85.040618] wl1271: Association completed.

  4. iwconfig wlan0
    wlan0 IEEE 802.11abgn ESSID:“TP-LINK_D4959E”
    Mode:Managed Frequency:2.452 GHz Access Point: B0:48:7A:D4:95:9E
    Bit Rate=11 Mb/s Tx-Power=20 dBm
    Retry long limit:7 RTS thr:off Fragment thr:off
    Encryption key:off
    Power Management:on
    Link Quality=32/70 Signal level=-78 dBm
    Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
    Tx excessive retries:0 Invalid misc:2 Missed beacon:0

  5. udhcpc -i wlan0
    udhcpc (v1.19.3) started
    Sending discover…
    Sending select for 192.168.0.105…
    Lease of 192.168.0.105 obtained, lease time 7200
    adding dns 192.168.0.1

  6. ping google.com
    root@beagleboard:~# ping google.com
    PING google.com (173.194.69.101): 56 data bytes
    64 bytes from 173.194.69.101: seq=0 ttl=45 time=41.901 ms
    64 bytes from 173.194.69.101: seq=1 ttl=46 time=56.547 ms
    64 bytes from 173.194.69.101: seq=2 ttl=41 time=80.504 ms
    ^C
    google.com ping statistics —
    3 packets transmitted, 3 packets received, 0% packet loss
    round-trip min/avg/max = 41.901/59.650/80.504 ms

2012/2/18 Maxim Podbereznyy <lisarden@gmail.com>

Hello Robert!

I have ti-connectivity directory and NetworkManager boots the firmware to wl1271. Console-image does not contain NetworkManager and no one boots wl1271.

The console-image uses connman and does not use NetworkManager.

I removed NetworkManager just for a test and now both of my SD cards behave the same: they do not boot the firmware. If I issue a command “ifup wlan0” then the firmware is booted, but I can’t change the connected SSID.

Do you have a wpa_supplicant process running? It may be that dbus is starting wpa_supplicant incorrectly.

You also need to setup your SSID in /etc/networking/interfaces file which should look something like this:

auto wlan0

iface wlan0 inet dhcp

ssid “Your SSID”

psk

Seems that udev does not boot any firmware to wl1271

2012/2/17 Robert Nelson <robertcnelson@gmail.com>

Hi John!

Thank you for the advice!