aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2022-01-15 11:15:15 +0100
committerDavid Bauer <mail@david-bauer.net>2022-01-15 11:27:53 +0100
commit7f7705923a8299323057e78ccae4473b5bb05807 (patch)
treede8893b3bcb88a0e4899addefed273ede4455239 /target/linux/lantiq
parent9e15dea36e977cfe9c31a08e32143c3280272fdc (diff)
downloadupstream-7f7705923a8299323057e78ccae4473b5bb05807.tar.gz
upstream-7f7705923a8299323057e78ccae4473b5bb05807.tar.bz2
upstream-7f7705923a8299323057e78ccae4473b5bb05807.zip
lantiq: add additional caldata offsets
It was reported the AVM FritzBox 7430 has different offsets for the caldata depending on the device. Whether this is due to custom bad-block handling or up to the installed bootloader-version is unknown. Try both known caldata offsets like it is already done for the ipq40xx NAND based models. Use the same approach for the FritzBox 7412. While it is currently unknown, whether it is affected, applying the same logic has no downsides. Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target/linux/lantiq')
-rw-r--r--target/linux/lantiq/xrx200/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom5
1 files changed, 2 insertions, 3 deletions
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 07463a8061..e4683af960 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
@@ -23,10 +23,9 @@ case "$FIRMWARE" in
avm,fritz7360-v2)
caldata_extract "urlader" 0x985 0x1000
;;
- avm,fritz7412)
- /usr/bin/fritz_cal_extract -i 1 -s 0x1e000 -e 0x207 -l 4096 -o /lib/firmware/$FIRMWARE $(find_mtd_chardev "urlader")
- ;;
+ avm,fritz7412|\
avm,fritz7430)
+ /usr/bin/fritz_cal_extract -i 1 -s 0x1e000 -e 0x207 -l 4096 -o /lib/firmware/$FIRMWARE $(find_mtd_chardev "urlader") || \
/usr/bin/fritz_cal_extract -i 1 -s 0x1e800 -e 0x207 -l 4096 -o /lib/firmware/$FIRMWARE $(find_mtd_chardev "urlader")
;;
bt,homehub-v5a)