ramips: define remapping-range for DAP-X1860
authorDavid Bauer <mail@david-bauer.net>
Thu, 30 Mar 2023 01:51:08 +0000 (03:51 +0200)
committerDavid Bauer <mail@david-bauer.net>
Mon, 3 Apr 2023 01:14:58 +0000 (03:14 +0200)
Prevent the BBT translation layer from remapping the UBI used for
storing rootfs.

Explicitly define the number of blocks reserved for remapping.

Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/ramips/dts/mt7621_dlink_dap-x1860-a1.dts

index edc1c6544c05b7adb945be1e2305787ad6268561..1aa3f7c91b7da89cc07d4faa0eadfe824a2cdb57 100644 (file)
        status = "okay";
 
        mediatek,nmbm;
+       /* rsvd = Remapping Range / NAND Erase-Size */
+       /* rsvd = 0x800000 / 0x20000 */
+       mediatek,bmt-max-reserved-blocks = <64>;
+       /* Remapping should include raw-nand we operate upon without UBI layer. */
+       /* This includes (at least) the kernel which has to be loaded by U-Boot.*/
+       mediatek,bmt-remap-range =
+               <0x0 0x980000>;
 
        partitions {
                compatible = "fixed-partitions";