From 5c28cd92b2cded0718d9b5a6795c184739503918 Mon Sep 17 00:00:00 2001 From: John Klug Date: Tue, 22 Feb 2022 10:28:58 -0600 Subject: Map device tree nand@0 to /dev/mtd0 --- recipes-kernel/linux/linux-at91-5.4.81/mts-dts/mtcdt.dts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/recipes-kernel/linux/linux-at91-5.4.81/mts-dts/mtcdt.dts b/recipes-kernel/linux/linux-at91-5.4.81/mts-dts/mtcdt.dts index b45d187..adbc505 100644 --- a/recipes-kernel/linux/linux-at91-5.4.81/mts-dts/mtcdt.dts +++ b/recipes-kernel/linux/linux-at91-5.4.81/mts-dts/mtcdt.dts @@ -369,6 +369,12 @@ cs-gpios = <&pioD 4 GPIO_ACTIVE_HIGH>; nand-ecc-strength=<4>; partitions { + /* Stanzas are order dependent, + * so we must delete at91bootstrap + * and uboot so nand@0 is first + * and enumerated as /dev/mtd0. */ + /delete-node/ at91bootstrap@0; + /delete-node/ uboot@40000; /delete-node/ ubootenvred@100000; /delete-node/ ubootenv@140000; /delete-node/ dtb@180000; @@ -379,12 +385,12 @@ reg = <0x0 0x10000000>; }; - at91bootstrap@0 { + at91bootstrapMT@0 { label = "at91bootstrap"; reg = <0x0 0x40000>; }; - uboot@40000 { + ubootMT@40000 { label = "u-Boot"; reg = <0x40000 0x80000>; }; -- cgit v1.2.3