From 0e34459e6b4d7b3753b27cf97f304f86e80155ca Mon Sep 17 00:00:00 2001 From: Mathias Kresin Date: Sat, 3 Oct 2015 13:57:54 +0200 Subject: 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 --- target/linux/lantiq/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'target/linux/lantiq/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom') 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 -- cgit v1.2.3