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/dts | |
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/dts')
-rw-r--r-- | target/linux/lantiq/dts/BTHOMEHUBV5A.dts | 29 |
1 files changed, 14 insertions, 15 deletions
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 { |