Skip to content

Commit 9541511

Browse files
committed
arm: dts: ni-vb: declare partitions in device tree
We've been sending NAND partition information from u-boot to the kernel via cmdline: mtdparts=xilinx_nand:128k(fsbl)ro,512k(u-boot)ro,40M(boot-config),-(root) Shipping versions of the bootloader have a bug that restricts the kernel cmdline to 256 bytes, so that space is at a premium. There exists a perfectly good mechanism for declaring partitions via the device tree instead-- by doing it this way we can free up 74 characters of cmdline space. Verified that /proc/mtd lists the same partitions on a VB-8034 before this change as it does after the change with the `mtdparts` variable removed from the cmdline. Signed-off-by: Brandon Streiff <brandon.streiff@ni.com> Acked-by: Gratian Crisan <gratian.crisan@ni.com>
1 parent 1e22025 commit 9541511

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

arch/arm/boot/dts/ni-vb.dtsi

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,28 @@
100100

101101
#address-cells = <1>;
102102
#size-cells = <1>;
103+
104+
partition@0 {
105+
label = "fsbl";
106+
reg = <0x0 0x20000>;
107+
read-only = <1>;
108+
};
109+
110+
partition@1 {
111+
label = "u-boot";
112+
reg = <0x20000 0x80000>;
113+
read-only = <1>;
114+
};
115+
116+
partition@2 {
117+
label = "boot-config";
118+
reg = <0xA0000 0x2800000>;
119+
};
120+
121+
partition@3 {
122+
label = "root";
123+
reg = <0x28A0000 0xD760000>;
124+
};
103125
};
104126

105127
swdt@f8005000 {

0 commit comments

Comments
 (0)