From 73ec21cde2cde1fc27f66b08e8762cdc3c78b61a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20B=C3=B6hler?= Date: Thu, 23 Jan 2020 21:20:38 +0100 Subject: lantiq: add basic support for AVM FRITZ!Box 3390 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The FRITZ!Box 3390 actually contains two SoCs, one Lantiq with a 5GHz WiFi and one AR9342 with a 2.4GHz WiFi. Only the Lantiq has access to the flash memory, the Atheros runs fully from RAM. Specifications -------------- - Lantiq 500 MHz - 128MiB RAM - 128MiB NAND - 256k Flash - AR9580 5GHz WiFi - AR9342 560 MHz - 64MiB RAM - AR9328 2.4GHz WiFi Remarks ------- This commit only adds support for the Lantiq side of things and prepares the drivers for communication with the Atheros SoC. Thus, only 5GHz WiFi works by default, the 2.4GHz WiFi will be added via another target. Some kernel patches will be required to add support for the Atheros SoC. Installation ------------ Use the eva_ramboot.py script to boot the initramfs image. Then, transfer the sysupgrade image to the device and run sysupgrade to flash it to the NAND. Signed-off-by: Andreas Böhler Acked-by: Aleksander Jan Bajkowski A.Bajkowski@stud.elka.pw.edu.pl Signed-off-by: Joachim Cerny --- target/linux/lantiq/xrx200/base-files/etc/board.d/01_leds | 3 ++- target/linux/lantiq/xrx200/base-files/etc/board.d/02_network | 3 +++ .../lantiq/xrx200/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) (limited to 'target/linux/lantiq/xrx200/base-files/etc') diff --git a/target/linux/lantiq/xrx200/base-files/etc/board.d/01_leds b/target/linux/lantiq/xrx200/base-files/etc/board.d/01_leds index a011b6c584..bac3ed2b53 100644 --- a/target/linux/lantiq/xrx200/base-files/etc/board.d/01_leds +++ b/target/linux/lantiq/xrx200/base-files/etc/board.d/01_leds @@ -38,7 +38,8 @@ arcadyan,vgv7519-brn) ucidef_set_led_wlan "wifi" "wifi" "green:wireless" "phy0radio" ;; avm,fritz3370-rev2-hynix|\ -avm,fritz3370-rev2-micron) +avm,fritz3370-rev2-micron|\ +avm,fritz3390) ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x17" ;; bt,homehub-v5a) diff --git a/target/linux/lantiq/xrx200/base-files/etc/board.d/02_network b/target/linux/lantiq/xrx200/base-files/etc/board.d/02_network index 77d93d016b..476cc7eb8f 100644 --- a/target/linux/lantiq/xrx200/base-files/etc/board.d/02_network +++ b/target/linux/lantiq/xrx200/base-files/etc/board.d/02_network @@ -37,6 +37,7 @@ lantiq_setup_interfaces() ;; avm,fritz3370-rev2-hynix|\ avm,fritz3370-rev2-micron|\ + avm,fritz3390|\ avm,fritz7360sl|\ avm,fritz7360-v2|\ avm,fritz7362sl) @@ -86,6 +87,7 @@ lantiq_setup_dsl() arcadyan,vgv7510kw22-nor|\ avm,fritz3370-rev2-hynix|\ avm,fritz3370-rev2-micron|\ + avm,fritz3390|\ avm,fritz7360sl|\ avm,fritz7362sl|\ avm,fritz7412|\ @@ -135,6 +137,7 @@ lantiq_setup_macs() avm,fritz7360sl) wan_mac=$(macaddr_add "$(mtd_get_mac_binary urlader 0xa91)" 1) ;; + avm,fritz3390|\ avm,fritz7362sl) lan_mac=$(fritz_tffs -n maca -i $(find_mtd_part "tffs (1)")) wan_mac=$(fritz_tffs -n macdsl -i $(find_mtd_part "tffs (1)")) diff --git a/target/linux/lantiq/xrx200/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom b/target/linux/lantiq/xrx200/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom index ee8cc3879a..03664b3fd3 100644 --- a/target/linux/lantiq/xrx200/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom +++ b/target/linux/lantiq/xrx200/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom @@ -16,6 +16,9 @@ case "$FIRMWARE" in avm,fritz7362sl) caldata_extract_reverse "urlader" 0x1541 0x440 ;; + avm,fritz3390) + caldata_extract_reverse "urlader" 0x2546 0x440 + ;; avm,fritz7360sl|\ avm,fritz7360-v2) caldata_extract "urlader" 0x985 0x1000 -- cgit v1.2.3