diff options
author | Mathias Kresin <dev@kresin.me> | 2016-12-30 11:53:21 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2017-06-24 22:36:38 +0200 |
commit | e7cd6f5d66b827e31cfa7e7bc019ac1b86aac770 (patch) | |
tree | 2266d211229d5045d0ea8d4e998164641272a5b7 /target/linux/ar71xx/base-files/etc/hotplug.d | |
parent | 0605b15be405ddaf9499e02f4b5a59ba406d2ccd (diff) | |
download | upstream-e7cd6f5d66b827e31cfa7e7bc019ac1b86aac770.tar.gz upstream-e7cd6f5d66b827e31cfa7e7bc019ac1b86aac770.tar.bz2 upstream-e7cd6f5d66b827e31cfa7e7bc019ac1b86aac770.zip |
ar71xx: add AVM FRITZ!WLAN Repeater 300E support
Specifications:
* SoC: AR7242 (Virian 400MHz)
* RAM: 64 MB DDR (W9751G6JB-25)
* Flash: 16MB SPI flash (S25FL129PIF)
* WiFi: AR9382 (2.4/5GHz) + 2x SE2595L
* LAN: 1x1000M (PEF7071V)
To install LEDE via EVA bootloader, a FTP connection need to be
established to 192.168.178.1 within the first seconds after power on:
ftp> quote USER adam2
ftp> quote PASS adam2
ftp> binary
ftp> debug
ftp> passive
ftp> quote MEDIA FLSH
ftp> put lede-ar71xx-generic-fritz300e-squashfs-sysupgrade.bin mtd1
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ar71xx/base-files/etc/hotplug.d')
-rw-r--r-- | target/linux/ar71xx/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom index 4db1b148a2..b4d7817569 100644 --- a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom +++ b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom @@ -40,6 +40,24 @@ ath9k_ubi_eeprom_extract() { ath9k_eeprom_die "failed to extract from $ubi" } +ath9k_eeprom_extract_reverse() { + local part=$1 + local offset=$2 + local count=$3 + local mtd + local reversed + local caldata + + mtd=$(find_mtd_chardev "$part") + reversed=$(hexdump -v -s $offset -n $count -e '/1 "%02x "' $mtd) + + for byte in $reversed; do + caldata="\x${byte}${caldata}" + done + + printf "%b" "$caldata" > /lib/firmware/$FIRMWARE +} + ath9k_patch_firmware_mac() { local mac=$1 @@ -99,6 +117,9 @@ case "$FIRMWARE" in ath9k_eeprom_extract "art" 20480 2048 ath9k_patch_firmware_mac $(macaddr_add $(mtd_get_mac_binary art 0) +2) ;; + fritz300e) + ath9k_eeprom_extract_reverse "urloader" 5441 1088 + ;; mr18) . /lib/upgrade/nand.sh |