Hi, 

I have a small project where I used a 32 Mbyte flash in a TP-Link MR-11U
running OpenWrt AA. The device is based on the AR9331 chip. The kernel
disables the SPI interface of the AR9331, so the flash is no longer
memory mapped. 

To compensate for this, I added a function in "ar9003_eeprom.c" for
restoring the ar9300_eeprom struct from an mtd partition named 'art'.
The struct is at offset 0x1000 in that partition. That seems to work,
because the driver now loads with no complaints, and all fields of the
struct match the expected values read from flash. 

The function gets called instead of
"ar9003_hw_eeprom_restore_from_flash()" 

However, radio refuses to be enabled and 'ifconfig -a' shows a MAC of
'ff:ff:ff:ff:ff:ff'. 

I found one item with similar properties on this mailing list that
suggests that "rx_chainmask" is set wrong
(http://www.mail-archive.com/ath9k-devel@lists.ath9k.org/msg06354.html
[1]), but its a different SoC and my old flash chip (containing stock
openWRT with AA) was capable of using the WiFi with the correct MAC
address. So I am assuming this would not apply to my issue? 

Some help in the right direction for fixing this would be highly
appreciated, I'm not an expert on the artheros drivers ... 

W/regards, 

Gerrit 

 

Links:
------
[1]
http://www.mail-archive.com/ath9k-devel@lists.ath9k.org/msg06354.html
_______________________________________________
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Reply via email to