On Fri, 25 Jan 2013 17:08:07 +0100, Rafał Miłecki wrote: > 2013/1/25 Felix Fietkau : >> On 2013-01-25 4:06 PM, Rafał Miłecki wrote: >>> 2013/1/25 Ernesto : >>>> Hi all, >>>> >>>> I have an ADB P.DGA4001N with board id: 963281TAN. >>>> >>>> I flashed >>>> http://downloads.openwrt.org/attitude_adjustment/12.09-rc1/brcm63xx/generic/openwrt-963281TAN-8M-flash-generic-squashfs-cfe.bin >>>> with success, but the router has no wifi: >>>> >>>> root@OpenWrt:/# uci show wireless >>>> wireless.radio0=wifi-device >>>> wireless.radio0.type=mac80211 >>>> wireless.radio0.channel=11 >>>> wireless.radio0.macaddr=00:00:00:00:00:00 >>>> wireless.radio0.hwmode=11g >>>> wireless.radio0.disabled=0 >>>> wireless.@wifi-iface[0]=wifi-iface >>>> wireless.@wifi-iface[0].device=radio0 >>>> wireless.@wifi-iface[0].network=lan >>>> wireless.@wifi-iface[0].mode=ap >>>> wireless.@wifi-iface[0].ssid=OpenWrt >>>> wireless.@wifi-iface[0].encryption=none >>>> >>>> root@OpenWrt:/# wifi >>>> Configuration file: /var/run/hostapd-phy0.conf >>>> Could not set interface wlan0 flags (UP): Cannot assign requested >>>> address >>>> nl80211: Could not set interface 'wlan0' UP >>>> nl80211: Failed to add interface wlan0 into bridge br-lan: Invalid >>>> argument >>>> nl80211 driver initialization failed. >>>> Failed to start hostapd for phy0 >>>> >>>> root@OpenWrt:/# cat /sys/class/ieee80211/phy0/macaddress >>>> 00:00:00:00:00:00 >>>> >>>> dmesg shows this: >>>> >>>> [ 12.648000] PCI: Enabling device 0000:01:00.0 (0000 -> 0002) >>>> [ 12.656000] bcma: bus0: Found chip with id 0xA8D9, rev 0x01 and >>>> package 0x0A >>>> [ 12.664000] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id >>>> 0x800, rev 0x22, class 0x0) >>>> [ 12.672000] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id >>>> 0x812, rev 0x17, class 0x0) >>>> [ 12.680000] bcma: bus0: Core 2 found: PCIe (manuf 0x4BF, id 0x820, >>>> rev 0x0F, class 0x0) >>>> [ 12.764000] bcma: bus0: Failed to get SPROM: -71 >>>> [ 12.768000] bcma: bus0: Bus registered >>>> [ 13.064000] b43-phy0: Broadcom 43225 WLAN found (core revision 23) >>>> [ 13.072000] b43-phy0: Found PHY: Analog 8, Type 4 (N), Revision 6 >>>> [ 13.076000] Broadcom 43xx driver loaded [ Features: PNL ] >>> >>> b43 noticed IEEE 802.11 core, detected PHY, didn't print any error. >>> Looks alright. Looks like a problem in OpenWRT's wifi management (viar >>> nl80211?). >> To me it looks like the problem is the bogus MAC address. >> "Could not set interface wlan0 flags (UP): Cannot assign requested address" > > Ahh. SPROM wasn't read, the MAC address is invalid then. Hauke posted > many nvram fixes that may fix SPROM reading issue.
On Sat, 26 Jan 2013 12:05:38 +0100, Álvaro Fernández Rojas <nolt...@gmail.com> wrote: > The problem is that on bcm63xx SPROM is loaded from a binary file, > not from NVRAM. > > This issue is known and patches have already been sent to OpenWrt. > http://patchwork.openwrt.org/patch/2553/ > http://patchwork.openwrt.org/patch/2554/ > > However this patches are a bit old, and aren't thread safe. > I will sent updated patches once bcm63xx is moved to DTS, since I > don't want to make it more difficult for Jonas and Florian. I've been struggling to apply the patches on trunk, without success. It seems things have changed substantially since those patches were written. However thanks to your advise (thanks to all), I've managed to get wifi up using macchanger, like this: iw phy0 interface add wlan0 type managed macchanger -m 22:ef:22:12:12:12 wlan0 ifconfig wlan0 up Up to now all I can say is that it is able to scan networks with iwlist sc. My question is: while we wait for the new patches, would it be possible to use macchanger (or something like that) at some specific line/s in the configuration scripts of the device in order to trick it into thinking that it has a valid MAC? Regards. _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel