diff options
author | Mathias Kresin <dev@kresin.me> | 2015-10-03 13:57:54 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2016-11-29 21:40:16 +0100 |
commit | 0e34459e6b4d7b3753b27cf97f304f86e80155ca (patch) | |
tree | e0a0c8f9cb49bd87eb9cf18ce1228103e0cd92da /target/linux/lantiq/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom | |
parent | 860210c3731f97eec507fd1c8d4554fd80394edb (diff) | |
download | upstream-0e34459e6b4d7b3753b27cf97f304f86e80155ca.tar.gz upstream-0e34459e6b4d7b3753b27cf97f304f86e80155ca.tar.bz2 upstream-0e34459e6b4d7b3753b27cf97f304f86e80155ca.zip |
lantiq: use BT HomeHub 5 Type A OEM partition layout
This way the on nand bad block table is preserved and used. Add support
for nand OOB ECC checksums as well. It should fix all reported ubi
errors, which were all related to bad nand blocks and a purged on nand
bad block table.
The existing ubi partition will be reused, which eliminates the need
to touch the caldata during initial install. The BT u-boot has support
for loading a kernel from an ubi volume. It isn't necessary any longer
to replace the BT u-boot with a custom compiled one to use LEDE.
It is required to restore the BT Firmware and install LEDE from scratch
to switch to the new partition layout.
An image for restoring the BT firmware and installing LEDE is provided
at https://github.com/mkresin/lede/releases.
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/lantiq/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom')
-rw-r--r-- | target/linux/lantiq/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/lantiq/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom b/target/linux/lantiq/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom index 8185bf1949..2776275ea2 100644 --- a/target/linux/lantiq/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom +++ b/target/linux/lantiq/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom @@ -115,7 +115,8 @@ case "$FIRMWARE" in ath9k_patch_firmware_mac $(macaddr_add $(mtd_get_mac_ascii uboot-env ethaddr) +2) 268 1 258 ;; BTHOMEHUBV5A) - ath9k_eeprom_extract "caldata" 4096 + ath9k_ubi_eeprom_extract "caldata" 4096 + ath9k_patch_firmware_mac $(macaddr_add $(mtd_get_mac_binary_ubi caldata 4364) +2) 268 0 258 ;; DGN3500*) ath9k_eeprom_extract "calibration" 61440 |