#17679: Raspberry Pi and WiPi not working
--------------------------+----------------------------------
  Reporter:  mikebrady@…  |      Owner:  developers
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  Chaos Calmer (trunk)
 Component:  base system  |    Version:  Trunk
Resolution:               |   Keywords:
--------------------------+----------------------------------

Comment (by mikebrady@…):

 So, I redid the experiment and it seems to confirm the breakage at r41441.
 Maybe I'm doing something stupid – it wouldn't be the first time... I
 believe it shows that the breakage occurs between r41440 and r41441 on a
 standard build of OpenWrt for a Raspberry Pi (Model B FWIW) adding what I
 think is the minimum to the build to be  able to drive the RT5370 and
 associate with a WPA Personal network. This post is a bit long, BTW:

 Get trunk and go back to r41440:

 {{{
 git clone git://git.openwrt.org/openwrt.git rpi
 cd rpi

 # go back to r41440
 git checkout  0f766540674b26a82d14310da237aa86e777109b

 ./scripts/feeds update -a
 make menuconfig

 #Target System > Broadcom BCM2708/BCM2835
 #Kernel modules > Wireless Drivers > kmod-rt2800-usb
 #Network > wpa-supplicant
 }}}

 Here is the diffconfig:
 {{{
 mike@ubuntu:~/openwrt/rpi$ ./scripts/diffconfig.sh
 CONFIG_TARGET_brcm2708=y
 CONFIG_TARGET_brcm2708_RaspberryPi=y
 CONFIG_TARGET_BOARD="brcm2708"
 CONFIG_DRIVER_11N_SUPPORT=y
 CONFIG_PACKAGE_MAC80211_DEBUGFS=y
 CONFIG_PACKAGE_MAC80211_MESH=y
 CONFIG_PACKAGE_hostapd-common=y
 CONFIG_PACKAGE_iw=y
 CONFIG_PACKAGE_kmod-cfg80211=y
 CONFIG_PACKAGE_kmod-crypto-aes=y
 CONFIG_PACKAGE_kmod-crypto-arc4=y
 CONFIG_PACKAGE_kmod-crypto-core=y
 CONFIG_PACKAGE_kmod-lib-crc-itu-t=y
 CONFIG_PACKAGE_kmod-mac80211=y
 CONFIG_PACKAGE_kmod-rt2800-lib=y
 CONFIG_PACKAGE_kmod-rt2800-usb=y
 CONFIG_PACKAGE_kmod-rt2x00-lib=y
 CONFIG_PACKAGE_kmod-rt2x00-usb=y
 CONFIG_PACKAGE_wpa-supplicant=y
 CONFIG_WPA_SUPPLICANT_INTERNAL=y
 mike@ubuntu:~/openwrt/rpi$
 }}}
 Build and install.

 Edit the wireless configuration so that it looks like this:
 {{{
 root@OpenWrt:/# cat /etc/config/wireless
 config wifi-device  radio0
         option type     mac80211
         option channel  11
         option hwmode   11g
         option path     'platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0'
         option htmode   HT20

 config wifi-iface
         option device   radio0
         option network  wlan
         option mode     sta
         option ssid     '<<My Network>>'
         option encryption       psk2+aes
         option key '<<My Password>>'
 }}}

 Reload the wifi configuration:

 {{{
 wifi reload
 }}}
 At this point, the RA5370 associates with the network (a little blue LED
 lights up). Running ifconfig:
 {{{
 root@OpenWrt:/# ifconfig
 eth0      Link encap:Ethernet  HWaddr B8:27:EB:FF:9F:74
           inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
           inet6 addr: fe80::ba27:ebff:feff:9f74/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:466 errors:0 dropped:0 overruns:0 frame:0
           TX packets:297 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:34980 (34.1 KiB)  TX bytes:37977 (37.0 KiB)

 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:65536  Metric:1
           RX packets:1440 errors:0 dropped:0 overruns:0 frame:0
           TX packets:1440 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:97920 (95.6 KiB)  TX bytes:97920 (95.6 KiB)

 wlan0     Link encap:Ethernet  HWaddr 00:0F:13:38:07:D4
           inet6 addr: fe80::20f:13ff:fe38:7d4/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:76 errors:0 dropped:0 overruns:0 frame:0
           TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:25078 (24.4 KiB)  TX bytes:869 (869.0 B)
 }}}

 After editing /etc/config/network to read:

 {{{
 # Copyright (C) 2006 OpenWrt.org

 config interface loopback
         option ifname   lo
         option proto    static
         option ipaddr   127.0.0.1
         option netmask  255.0.0.0

 config interface lan
         option ifname   eth0
         option proto    static
         option ipaddr   192.168.1.1
         option netmask  255.255.255.0

 config interface wlan
         option ifname   wlan0
         option proto    dhcp
 }}}
 ifconfig reads as follows:
 {{{
 root@OpenWrt:/# ifconfig
 eth0      Link encap:Ethernet  HWaddr B8:27:EB:FF:9F:74
           inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
           inet6 addr: fe80::ba27:ebff:feff:9f74/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:1067 errors:0 dropped:0 overruns:0 frame:0
           TX packets:599 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:82349 (80.4 KiB)  TX bytes:70788 (69.1 KiB)

 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:65536  Metric:1
           RX packets:2910 errors:0 dropped:0 overruns:0 frame:0
           TX packets:2910 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:198832 (194.1 KiB)  TX bytes:198832 (194.1 KiB)

 wlan0     Link encap:Ethernet  HWaddr 00:0F:13:38:07:D4
           inet addr:192.168.2.13  Bcast:192.168.2.255  Mask:255.255.255.0
           inet6 addr: fe80::20f:13ff:fe38:7d4/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:135 errors:0 dropped:0 overruns:0 frame:0
           TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:37238 (36.3 KiB)  TX bytes:5335 (5.2 KiB)

 root@OpenWrt:/#
 }}}

 So, IMHO, everything is in order.

 Now,moving to r41441...

 {{{
 git checkout master
 git checkout bfbbb266bb4b37eae02d565b8a66fac28344c3a4
 make clean
 make menuconfig
 }}}

 Here is the diffconfig, which is the same as before, I think:

 {{{
 mike@ubuntu:~/openwrt/rpi$ ./scripts/diffconfig.sh
 CONFIG_TARGET_brcm2708=y
 CONFIG_TARGET_brcm2708_RaspberryPi=y
 CONFIG_TARGET_BOARD="brcm2708"
 CONFIG_DRIVER_11N_SUPPORT=y
 CONFIG_PACKAGE_MAC80211_DEBUGFS=y
 CONFIG_PACKAGE_MAC80211_MESH=y
 CONFIG_PACKAGE_hostapd-common=y
 CONFIG_PACKAGE_iw=y
 CONFIG_PACKAGE_kmod-cfg80211=y
 CONFIG_PACKAGE_kmod-crypto-aes=y
 CONFIG_PACKAGE_kmod-crypto-arc4=y
 CONFIG_PACKAGE_kmod-crypto-core=y
 CONFIG_PACKAGE_kmod-lib-crc-itu-t=y
 CONFIG_PACKAGE_kmod-mac80211=y
 CONFIG_PACKAGE_kmod-rt2800-lib=y
 CONFIG_PACKAGE_kmod-rt2800-usb=y
 CONFIG_PACKAGE_kmod-rt2x00-lib=y
 CONFIG_PACKAGE_kmod-rt2x00-usb=y
 CONFIG_PACKAGE_wpa-supplicant=y
 CONFIG_WPA_SUPPLICANT_INTERNAL=y
 mike@ubuntu:~/openwrt/rpi$
 }}}

 Using the same /etc/config/wireless, when the wifi configuration is
 loaded:

 {{{
 wifi reload
  <<nothing seems to happen >>
 }}}

 Sure enough, ifconfig reads:

 {{{
 root@OpenWrt:/# ifconfig -a
 eth0      Link encap:Ethernet  HWaddr B8:27:EB:FF:9F:74
           inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
           inet6 addr: fe80::ba27:ebff:feff:9f74/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:582 errors:0 dropped:0 overruns:0 frame:0
           TX packets:361 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:41478 (40.5 KiB)  TX bytes:47585 (46.4 KiB)

 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:65536  Metric:1
           RX packets:1440 errors:0 dropped:0 overruns:0 frame:0
           TX packets:1440 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:97920 (95.6 KiB)  TX bytes:97920 (95.6 KiB)
 }}}

 In conclusion, this is completely repeatable. To answer a previous
 question, if I build an up-to-date trunk (as of last night – can't
 remember the rev number) but revert r41441 and r41442, the RA5370 works as
 expected.

--
Ticket URL: <https://dev.openwrt.org/ticket/17679#comment:6>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to