[LEDE-DEV] Help needed: delete nand partitions defined in upstream dtsi

Alberto Bursi alberto.bursi at outlook.it
Mon Dec 26 16:26:21 PST 2016


I'm currently adding support to Zyxel NSA310, a Kirkwood-based NAS.

In the dtb I've set nand partitions like this (copied from my patch)

+&nand {
+	status = "okay";
+	chip-delay = <35>;
+
+	partition at 0 {
+		label = "uboot";
+		reg = <0x0000000 0x0100000>;
+		read-only;
+	};
+	partition at 100000 {
+		label = "uboot_env";
+		reg = <0x0100000 0x0080000>;
+	};
+	partition at 180000 {
+		label = "ubi";
+		reg = <0x180000 0x7e00000>;
+	};
+};

when testing it with ramdisk, I get these nand partitions in the boot log:

[    0.791892] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    0.798279] nand: Samsung NAND 128MiB 3,3V 8-bit
[    0.802939] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, 
OOB size: 64
[    0.810563] Scanning device for bad blocks
[    0.912527] 9 ofpart partitions found on MTD device orion_nand
[    0.918381] Creating 9 MTD partitions on "orion_nand":
[    0.923564] 0x000000000000-0x000000100000 : "uboot"
[    0.930026] 0x000000100000-0x000000180000 : "uboot_env"
[    0.936337] 0x000000180000-0x000007f80000 : "ubi"
[    0.942391] 0x000000200000-0x000000280000 : "info"
[    0.948252] 0x000000280000-0x000000c80000 : "etc"
[    0.954089] 0x000000c80000-0x000001680000 : "kernel_1"
[    0.960352] 0x000001680000-0x000004640000 : "rootfs1"
[    0.966605] 0x000004640000-0x000005040000 : "kernel_2"
[    0.972911] 0x000005040000-0x000008000000 : "rootfs2"

It is basically adding the other stock partitions after mine.

My dtb file is #importing a dtsi file, that (among other things) 
contains the stock nand partition setup.

Is there a way to delete nand partitions defined in an upstream 
#included file?

-Alberto


More information about the Lede-dev mailing list