2009-10-25 12:50:43     WiFi Integration Question

Document created by Aaronwu Employee on Aug 19, 2013
Version 1Show Document
  • View in full screen mode

2009-10-25 12:50:43     WiFi Integration Question

David Kasper (UNITED STATES)

Message: 81690   

 

I am using 2009R1 branch and trying to integrate a Marvell 8686 SDIO card with the BF548 EZ-KIT.  I am able to see my router but ping is unsuccessful.  For simplicity the router's security is disabled.  My command sequence and detailed output is below.  The steps are consistent with the tutorial; please let me know if I missed a step.

 

 

 

Thanks,

 

David Kasper

 

 

 

1. Load Driver

 

    root:/> modprobe libertas

 

    root:/> modprobe libertas_sdio helper_name=sd8686_helper.bin fw_name=sd8686.bin

 

libertas_sdio: Libertas SDIO driver

 

libertas_sdio: Copyright Pierre Ossman

 

libertas_sdio mmc0:0001:1: firmware: requesting sd8686_helper.bin

 

libertas_sdio mmc0:0001:1: firmware: requesting sd8686.bin

 

libertas: 00:19:88:05:11:7c, fw 9.70.3p24, cap 0x00000303

 

libertas: PREP_CMD: command 0x00a3 failed: 2

 

libertas: PREP_CMD: command 0x00a3 failed: 2

 

libertas: eth1: Marvell WLAN 802.11 adapter

 

 

 

2. Scan for Access Points

 

root:/> ifconfig eth1 up

 

root:/> iwlist eth1 scan

 

eth1      Scan completed :

 

          Cell 01 - Address: 00:12:17:D1:A2:A6

 

                    ESSID:"linksys"

 

                    Mode:Managed

 

                    Frequency:2.437 GHz (Channel 6)

 

                    Quality=43/100  Signal level=-88 dBm  Noise level=-96 dBm

 

                    Encryption key:off

 

                    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; 6 Mb/s; 9 Mb/s

 

                              12 Mb/s; 48 Mb/s

 

          Cell 02 - Address: 00:11:50:63:D8:FF

 

                    ESSID:"belkin99g"

 

                    Mode:Managed

 

                    Frequency:2.462 GHz (Channel 11)

 

                    Quality=97/100  Signal level=-52 dBm  Noise level=-96 dBm

 

                    Encryption key:off

 

                    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; 6 Mb/s; 9 Mb/s

 

                              12 Mb/s; 48 Mb/s

 

          Cell 03 - Address: 00:30:BD:93:DE:4D

 

                    ESSID:"Berkshire"

 

                    Mode:Managed

 

                    Frequency:2.462 GHz (Channel 11)

 

                    Quality=41/100  Signal level=-89 dBm  Noise level=-96 dBm

 

                    Encryption key:on

 

                    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; 6 Mb/s; 9 Mb/s

 

                              12 Mb/s; 48 Mb/s

 

 

 

3. Configure Wireless Settings

 

root:/> iwconfig eth1 channel 11 (must be set first or ESSID clears)

 

root:/> iwconfig eth1 essid belkin99g

 

root:/> iwconfig

 

lo        no wireless extensions.

 

 

 

eth0      no wireless extensions.

 

 

 

eth1      IEEE 802.11b/g  ESSID:"belkin99g"

 

          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:11:50:63:D8:FF

 

          Bit Rate:1 Mb/s   Tx-Power=13 dBm

 

          Retry short limit:8   RTS thr=2347 B   Fragment thr=2346 B

 

          Encryption key:off

 

          Power Management:off

 

          Link Quality=97/100  Signal level=-45 dBm  Noise level=-92 dBm

 

          Rx invalid nwid:0  Rx invalid crypt:2771  Rx invalid frag:0

 

          Tx excessive retries:112  Invalid misc:28560   Missed beacon:0

 

 

 

4. Check Logs (No new info after module load)

 

Jan  1 06:25:42 blackfin user.info kernel: eth0: SMSC911x/921x identified at 0x24000000, IRQ: 175

 

Jan  1 06:25:42 blackfin user.info kernel: eth0: link down

 

Jan  1 06:25:44 blackfin user.info kernel: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1

 

Jan  1 06:26:15 blackfin user.info kernel: libertas_sdio: Libertas SDIO driver

 

Jan  1 06:26:15 blackfin user.info kernel: libertas_sdio: Copyright Pierre Ossman

 

Jan  1 06:26:15 blackfin user.info kernel: libertas_sdio mmc0:0001:1: firmware: requesting sd8686_helper.bin

 

Jan  1 06:26:15 blackfin user.info kernel: libertas_sdio mmc0:0001:1: firmware: requesting sd8686.bin

 

Jan  1 06:26:16 blackfin user.info kernel: libertas: 00:19:88:05:11:7c, fw 9.70.3p24, cap 0x00000303

 

Jan  1 06:26:16 blackfin user.info kernel: libertas: PREP_CMD: command 0x00a3 failed: 2

 

Jan  1 06:26:16 blackfin user.info kernel: libertas: PREP_CMD: command 0x00a3 failed: 2

 

Jan  1 06:26:16 blackfin user.info kernel: libertas: eth1: Marvell WLAN 802.11 adapter

 

Jan  1 06:27:17 blackfin user.info kernel: eth0: link down

 

 

 

5. Check Interrupts (INTN  SDH Status IRQ increments)

 

root:/> cat /proc/interrupts

 

  6:     297243      CORE  Blackfin CoreTimer

 

  9:          0      INTN  PPI ERROR

 

10:          0      INTN  SPORT err

 

14:          1      INTN  rtc-bfin

 

16:          0      INTN  SPORT RX Data

 

17:          0      INTN  SPORT TX Data

 

48:          2      INTN  BFIN_UART_RX

 

49:        901      INTN  BFIN_UART_TX

 

52:          0      INTN  i2c-bfin-twi

 

53:          0      INTN  i2c-bfin-twi

 

68:          3      INTN  pata-bf54x

 

74:        829      INTN  bfin-sdhDMA

 

76:          0      INTN  bf54x-keys

 

79:     101261      INTN  SDH Status IRQ

 

82:          1      INTN  musb_hdrc.0

 

85:          0      INTN  musb_hdrc.0

 

123:          0      GPIO  ad7877

 

175:         18      GPIO  smsc911x

 

NMI:          0      CORE  Non Maskable Interrupt

 

Err:          0

 

root:/>

 

root:/>

 

 

 

 

 

6. DHCPD (No effect, also no dhcpd.conf file exists in /etc)

 

root:/> dhcpcd&

 

 

 

7. Force Static IP

 

root:/> ifconfig eth1 192.168.2.50 up

 

 

 

8. Check Routes

 

root:/> route

 

Kernel IP routing table

 

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

 

192.168.2.0     *               255.255.255.0   U     0      0        0 eth0

 

192.168.2.0     *               255.255.255.0   U     0      0        0 eth1

 

root:/> route add default gw 192.168.2.1

 

route: SIOCADDRT: File exists

 

root:/> route

 

Kernel IP routing table

 

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

 

192.168.2.0     *               255.255.255.0   U     0      0        0 eth0

 

192.168.2.0     *               255.255.255.0   U     0      0        0 eth1

 

^Croot:/>

 

 

 

9. Ping (Fails)

 

root:/> iwconfig

 

lo        no wireless extensions.

 

 

 

eth0      no wireless extensions.

 

 

 

eth1      IEEE 802.11b/g  ESSID:"belkin99g"

 

          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:11:50:63:D8:FF

 

          Bit Rate:1 Mb/s   Tx-Power=13 dBm

 

          Retry short limit:8   RTS thr=2347 B   Fragment thr=2346 B

 

          Encryption key:off

 

          Power Management:off

 

          Link Quality=93/100  Signal level=-49 dBm  Noise level=-92 dBm

 

          Rx invalid nwid:0  Rx invalid crypt:2771  Rx invalid frag:0

 

          Tx excessive retries:137  Invalid misc:34935   Missed beacon:0

 

 

 

root:/>

 

root:/> ping 192.168.2.1

 

PING 192.168.2.1 (192.168.2.1): 56 data bytes

 

^C

 

--- 192.168.2.1 ping statistics ---

 

33 packets transmitted, 0 packets received, 100% packet loss

 

 

 

QuoteReplyEditDelete

 

 

2009-11-07 11:35:39     Re: WiFi Integration Question

David Kasper (UNITED STATES)

Message: 82181   

 

The problem is now fixed.  Note that I had duplicate entries in my routing table for eth0 and eth1.  Even though the cable for eth0 was disconnected the driver doesn't try routing the packet to eth1.  I brought eth0 down to remove it from the table and it worked right away.

 

- David Kasper

Attachments

    Outcomes