[meta-ti] Using 1GB Nand with AM335x

Ankur Tyagi ankur.tyagi85 at gmail.com
Tue Sep 1 20:42:42 PDT 2015


Hi,

I have following queries regarding usage of 1GB Nand (MT29F8G16ABACAWP)
with AM335x

- what is the meaning of cells in "reg" property of gpmc nand child node ?
Information here is not clear
http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/mtd/gpmc-nand.txt?v=3.14

- what should be the value of property "gpmc,device-width" if
"nand-bus-width= <16>" ? I think it should be "2"


Please confirm whether below is correct for 1GB 16-bit bus-width nand

&gpmc {
	status = "okay";
	pinctrl-names = "default", "sleep";
	pinctrl-0 = <&nandflash_pins_default>;
	pinctrl-1 = <&nandflash_pins_sleep>;
	ranges = <0 0 0x08000000 0x40000000>;	/* CS0: NAND */
	nand at 0,0 {
		reg = <0 0 0>; /* CS0, offset 0 */
		ti,nand-ecc-opt = "bch16";
		ti,elm-id = <&elm>;
		nand-bus-width = <16>;
		gpmc,device-width = <2>;
		#address-cells = <1>;
		#size-cells = <1>;
		partition at 0 {
			label = "NAND.SPL";
			reg = <0x00000000 0x000040000>;
		};
		partition at 1 {
			label = "NAND.SPL.backup1";
			reg = <0x00040000 0x00040000>;
		};
		partition at 2 {
			label = "NAND.SPL.backup2";
			reg = <0x00080000 0x00040000>;
		};
		partition at 3 {
			label = "NAND.SPL.backup3";
			reg = <0x000c0000 0x00040000>;
		};
		partition at 4 {
			label = "NAND.u-boot-spl-os";
			reg = <0x00100000 0x00080000>;
		};
		partition at 5 {
			label = "NAND.u-boot";
			reg = <0x00180000 0x00200000>;
		};
		partition at 6 {
			label = "NAND.u-boot-env";
			reg = <0x00380000 0x00040000>;
		};
		partition at 7 {
			label = "NAND.u-boot-env.backup1";
			reg = <0x003c0000 0x00040000>;
		};
		partition at 8 {
			label = "NAND.kernel";
			reg = <0x00400000 0x00600000>;
		};
		partition at 9 {
			label = "NAND.file-system";
			reg = <0x00A00000 0x1F600000>;
		};
	}
}


Please also confirm the following arguments for UBIFS :

mkfs.ubifs -r </path/rootfs> -o </path/rootfs.ubifs> -F –m 4096 –e
253952 –c 1918
ubinize -o </path/rootfs.ubi> -m 4096 -p 256KiB -s 1024 -O 4096 ubinize.cfg
ubiformat /dev/mtd9 -f rootfs.ubi -s 1024 -O 4096


Thanks

Ankur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-ti/attachments/20150902/313d0f74/attachment.html>


More information about the meta-ti mailing list