[meta-ti] Using 1GB Nand with AM335x

Denys Dmytriyenko denys at ti.com
Thu Sep 3 09:24:50 PDT 2015


No reason to send this to multiple lists, as neither of them is the correct 
list for these types of questions.

Please use http://e2e.ti.com forums instead. Thanks.

-- 
Denys


On Wed, Sep 02, 2015 at 03:42:42PM +1200, Ankur Tyagi wrote:
> 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

> -- 
> _______________________________________________
> meta-ti mailing list
> meta-ti at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti



More information about the meta-ti mailing list