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/dts/BTHOMEHUBV5A.dts | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'target/linux/lantiq/dts') diff --git a/target/linux/lantiq/dts/BTHOMEHUBV5A.dts b/target/linux/lantiq/dts/BTHOMEHUBV5A.dts index e1b3e7131d..df55456f0c 100644 --- a/target/linux/lantiq/dts/BTHOMEHUBV5A.dts +++ b/target/linux/lantiq/dts/BTHOMEHUBV5A.dts @@ -33,6 +33,9 @@ reg = <0x1 0x0 0x2000000>; #address-cells = <1>; #size-cells = <1>; + nand-on-flash-bbt; + nand-ecc-strength = <3>; + nand-ecc-step-size = <256>; partitions { compatible = "fixed-partitions"; @@ -41,26 +44,25 @@ partition@0 { label = "u-boot"; - reg = <0x0 0x40000>; + reg = <0x0 0xa0000>; read-only; }; - partition@40000 { + partition@a0000 { label = "uboot-env"; - reg = <0x40000 0x40000>; - }; - caldata: partition@80000 { - label = "caldata"; - reg = <0x80000 0x20000>; + reg = <0xa0000 0x20000>; read-only; }; - partition@a0000 { - label = "kernel"; - reg = <0xa0000 0x200000>; + partition@c0000 { + label = "unused"; + reg = <0xc0000 0x40000>; }; - partition@2a0000 { + partition@100000 { label = "ubi"; - reg = <0x2a0000 0x7d60000>; + reg = <0x100000 0x7e80000>; }; + /* + * last 512 KiB are for the bad block table, not writable + */ }; }; }; @@ -216,7 +218,6 @@ #address-cells = <1>; #size-cells = <0>; reg = <0>; - mtd-mac-address = <&caldata 0x110c>; lantiq,switch; ethernet@0 { @@ -250,8 +251,6 @@ #address-cells = <1>; #size-cells = <0>; reg = <1>; - mtd-mac-address = <&caldata 0x110c>; - mtd-mac-address-increment = <4>; lantiq,wan; ethernet@5 { -- cgit v1.2.3