Hi.
I'm using am3352 at custom board consist of Two piece of 1G Nand (Micron MT29F8G08ABACA)
Before I'm solve Two piece of 256 Nand .. For Avinash's advice
i'M Change Nand Flash 1G
Configurate of CS0 , CS1
CS0 is exactly cognition , But CS1 is different
blow log print
omap2-nand driver initializing
[ 0.923113] omap_nand_probe 0
[ 0.926462] ONFI flash detected
[ 0.929877] ONFI param page 0 valid -- code - driver/mtd/nand/nand_base.c 's function nand_flash_detect_onfi is crc check clean
[ 0.933509] ONFI out param page 0 valid
[ 0.937513] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron MT29F8G08ABACAWP) - exactly cognition
[ 0.946096] Creating 6 MTD partitions on "omap2-nand.0":
[ 0.951668] 0x000000000000-0x000000040000 : "SPL"
[ 0.958049] 0x000000040000-0x000000080000 : "SPL.backup1"
[ 0.964968] 0x000000080000-0x000000280000 : "U-Boot"
[ 0.971755] 0x000000280000-0x0000002c0000 : "U-Boot Env"
[ 0.978527] 0x0000002c0000-0x0000007c0000 : "Kernel"
[ 0.986019] 0x0000007c0000-0x000040000000 : "rootfs"
[ 1.207803] omap_nand_probe 1
[ 1.211190] ONFI flash detected
[ 1.214624] ONFI out param page 3 valid -- code - driver/mtd/nand/nand_base.c 's function nand_flash_detect_onfi is crc check fail try 3th and return
[ 1.218682] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron NAND 1GiB 3,3V 8-bit) - but different
[ 1.227628] Creating 1 MTD partitions on "omap2-nand.1":
[ 1.233201] 0x000000000000-0x000040000000 : "data"
For result , mtd is generate mtd0 ~ mtd 6
mtd 6 is ubi format and mtdinfo perform
But mtdinfo different
root@am335x-evm:~# mtdinfo /dev/mtd5
mtd5
Name: rootfs
Type: nand
Eraseblock size: 262144 bytes, 256.0 KiB
Amount of eraseblocks: 4065 (1065615360 bytes, 1016.2 MiB)
Minimum input/output unit size: 4096 bytes
Sub-page size: 4096 bytes
OOB size: 224 bytes
Character device major/minor: 90:10
Bad blocks are allowed: true
Device is writable: true
root@am335x-evm:~# mtdinfo /dev/mtd6
mtd6
Name: data
Type: nand
Eraseblock size: 262144 bytes, 256.0 KiB
Amount of eraseblocks: 4096 (1073741824 bytes, 1024.0 MiB)
Minimum input/output unit size: 4096 bytes
Sub-page size: 4096 bytes
OOB size: 128 bytes
Character device major/minor: 90:12
Bad blocks are allowed: true
Device is writable: true
and mtd5 is UBI FS mount success But mtd6 is UBI FS mount fail
Problem is that CS1 is UBI FS mount fail
Attach is ubiattach print log
root@am335x-evm:~# ubiattach /dev/ubi_ctrl -m 6 -O 4096
[ 1120.091616] UBI: attaching mtd6 to ubi0
[ 1120.095641] UBI: physical eraseblock size: 262144 bytes (256 KiB)
[ 1120.102258] UBI: logical eraseblock size: 253952 bytes
[ 1120.107884] UBI: smallest flash I/O unit: 4096
[ 1120.112797] UBI: VID header offset: 4096 (aligned 4096)
[ 1120.119066] UBI: data offset: 8192
[ 1123.513707] UBI: max. sequence number: 0
[ 1123.518365] UBI error: ubi_read_volume_table: the layout volume was not found
[ 1123.527034] UBI error: ubi_attach_mtd_dev: failed to attach by scanning, error -22
ubiattach: error!: cannot attach mtd6
error 22 (Invalid argument)
root@am335x-evm:~# ubiattach /dev/ubi_ctrl -m 5 -O 4096
[ 1129.993520] UBI: attaching mtd5 to ubi0
[ 1129.997546] UBI: physical eraseblock size: 262144 bytes (256 KiB)
[ 1130.004157] UBI: logical eraseblock size: 253952 bytes
[ 1130.009809] UBI: smallest flash I/O unit: 4096
[ 1130.014711] UBI: VID header offset: 4096 (aligned 4096)
[ 1130.020979] UBI: data offset: 8192
[ 1138.141698] UBI: max. sequence number: 14
[ 1138.172150] UBI: attached mtd5 to ubi0
[ 1138.176077] UBI: MTD device name: "rootfs"
[ 1138.181406] UBI: MTD device size: 1016 MiB
[ 1138.186670] UBI: number of good PEBs: 4065
[ 1138.191582] UBI: number of bad PEBs: 0
[ 1138.196211] UBI: number of corrupted PEBs: 0
[ 1138.200849] UBI: max. allowed volumes: 128
[ 1138.205659] UBI: wear-leveling threshold: 4096
[ 1138.210568] UBI: number of internal volumes: 1
[ 1138.215197] UBI: number of user volumes: 1
[ 1138.219835] UBI: available PEBs: 0
[ 1138.224464] UBI: total number of reserved PEBs: 4065
[ 1138.229645] UBI: number of PEBs reserved for bad PEB handling: 40
[ 1138.235996] UBI: max/mean erase counter: 2/0
[ 1138.240452] UBI: image sequence number: 2092540833
[ 1138.245866] UBI: background thread "ubi_bgt0d" started, PID 1224
UBI device number 0, total 4065 LEBs (1032314880 bytes, 984.5 MiB), available 0 LEBs (0 bytes), LEB size 253952 bytes (248.0 KiB)
i'M Guess For reason is mtd cognition
My Question is so long ... sorry..
it 's wrong .
Thank you
Kind Regards,