[PATCH v2] mtd: ofpart: support partitions of 4 GB and larger

David Woodhouse dwmw2 at infradead.org
Fri Apr 5 07:23:22 EDT 2013


On Thu, 2013-02-21 at 16:29 -0600, Aaron Sierra wrote:
> +       /* an 8 GB partition */
> +       partition at 0 {
> +               label = "filesystem #1";
> +               reg = <0x0 0x00000000 0x2 0x00000000>;
> +       };
> +
> +       /* a 4 GB partition */
> +       partition at 200000000 {
> +               label = "filesystem #2";
> +               reg = <0x2 0x00000000 0x1 0x00000000>;
> +       };
> +};

The comments here don't match the actual definitions. I fixed it to read
as follows:

flash at 2 {
	#address-cells = <2>;
	#size-cells = <2>;

	/* an 8 GB partition */
	partition at 0 {
		label = "filesystem #1";
		reg = <0x0 0x00000000 0x1 0xdcd65000>;
	};

	/* a 4 GB partition */
	partition at 200000000 {
		label = "filesystem #2";
		reg = <0x1 0xdcd65000 0x0 0xee6b2800>;
	};
};



-- 
dwmw2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6171 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20130405/55678b50/attachment-0001.bin>


More information about the linux-mtd mailing list