[OpenWrt-Devel] Add support for AVM Fritzbox 7360 SL

Sebastian Ortwein kron at animeland.de
Sun May 8 11:49:49 EDT 2016


Am 08.05.2016 um 14:56 schrieb Martin Blumenstingl:
> On Sun, May 8, 2016 at 10:33 AM, Sebastian Ortwein <kron at animeland.de> wrote:
>> I get the eeprom from the ath9k driver working, but wifi will not showed.
>> First, I get a error message that from the ath9k driver that the eeprom
>> couldn't load. After PCI Bus is initialize the eeprom is loaded.
> That is "normal" - nothing to worry about here.
>
>> [    1.188886] found entry name -> annex=B
>> [    1.192650] found entry name -> maca=BC:05:43:D7:1E:7C
>> [    1.197738] found entry name -> macb=BC:05:43:D7:1E:7D
>> [    1.202875] found entry name -> macwlan=BC:05:43:D7:1E:7E
>> [    1.208269] found entry name -> macdsl=BC:05:43:D7:1E:7F
>> [    1.213632] found entry name -> macwlan2=BC:05:43:D7:1E:81
>> [    1.219063] found entry name -> wlan_key=4004584479108575
>> [    1.227509] ath9k,eeprom ath9k_eep: endian check enabled.
>> [    1.231483] ath9k,eeprom ath9k_eep: using random mac
>> [    1.236475] ath9k,eeprom ath9k_eep: loaded ath9k eeprom
>> [    1.246508] UBIFS error (pid: 1): cannot open "ubi0:rootfs", error -19
>> [    1.257496] VFS: Mounted root (squashfs filesystem) readonly on device
>> 31:3.
>> [    1.265035] Freeing unused kernel memory: 1224K (804fe000 - 80630000)
>> [    2.475280] init: Console is alive
>> .............
>>
>> As you can see OpenWrt will find the mac-adesses from all devices, how can I
>> asign it in the dts file?
> I think you can't (at least not with the current tffs driver). All it
> currently does is printing the mac addresses: [0]
> My fritz_tffs_read tool is userspace only. The only downside is that
> you currently cannot userspace tools to set the mac address in the
> ath9k calibration data. We would need a solution like Christian's
> OWL-loader, see [1] (or another TFFS kernel driver).
>
>> The wiki is right. I will upload some images to the openwrt Wiki when the
>> box is working.
>> But phy0 and phy1 works only somtimes. In my dts file I assigned the reset
>> GPIO's like in the FRITZ3370.dts file.
>> I have take GPIO config from the AVM GPL sources. Is there anything I forgot
>> orwrong in my new DTS file ?
> I think the GPIOs definition is in the wrong place - it has to be per
> PHY (thus you should put it into the mdio at 0 section below).
can I add it the following way ?
         mdio at 0 {
                 #address-cells = <1>;
                 #size-cells = <0>;
                 compatible = "lantiq,xrx200-mdio";
                 phy0: ethernet-phy at 0 {
                         reg = <0x0>;
                         compatible = "lantiq,phy11g", 
"ethernet-phy-ieee802.3-c22";
                         gpios = <&gpio 37 0>;
                 };
                 phy1: ethernet-phy at 1 {
                         reg = <0x1>;
                         compatible = "lantiq,phy11g", 
"ethernet-phy-ieee802.3-c22";
                         gpios = <&gpio 44 0>;
                 };
                 phy11: ethernet-phy at 11 {
                         reg = <0x11>;
                         compatible = "lantiq,phy11g", 
"ethernet-phy-ieee802.3-c22";
                 };
                 phy13: ethernet-phy at 13 {
                         reg = <0x13>;
                         compatible = "lantiq,phy11g", 
"ethernet-phy-ieee802.3-c22";
                 };
>
> I cannot see any ath9k messages in your kernel log - are you sure it's
> being installed (/lib/modules/*/ath9k.ko)?
> Your first patch lists kmod-ath9k, but if you added that after you
> generated your .config then you're probably still missing it.
> Please check "grep kmod-ath9k .config" and enable (set it to
> =y/built-in) it if it's missing.
I have not disable the ath9k driver. it is present and loaded.

root at OpenWrt:/# ls /lib/modules/*/ath9k.ko
/lib/modules/4.4.7/ath9k.ko


root at OpenWrt:/# lsmod
act_connmark            1712  0
act_mirred              2800  0
act_skbedit             1744  0
aead                    3649  0
ath                    21317  3 ath9k
ath9k                 101900  0
ath9k_common           20142  1 ath9k
ath9k_hw              348113  2 ath9k
atm                    37986  2 pppoatm
br2684                  6544  0
cfg80211              230563  4 ath9k

Sebastian
>
>
> Martin
>
>
> [0] https://github.com/openwrt/openwrt/blob/master/target/linux/lantiq/patches-4.4/0007-MIPS-lantiq-add-basic-tffs-driver.patch
> [1] https://lists.openwrt.org/pipermail/openwrt-devel/2016-April/040755.html
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list