A10 NAND, Wrong erase block size

This forum is for supported devices using an ARMv7 Allwinner SoC.

A10 NAND, Wrong erase block size

Postby NermaN » Thu May 21, 2020 12:35 pm

I'm trying to get NAND working on Cubieboard. I patched corresponding DTS and nand reading now working

But it seems to detect NAND chip erase block size wrong, it uses 1GiB instead 1MiB size.

$this->bbcode_second_pass_code('', ' cat /proc/mtd
dev: size erasesize name
mtd0: 00200000 40000000 "boot0"
mtd1: 00200000 40000000 "boot0-rescue"
mtd2: ffc00000 40000000 "main"
')

$this->bbcode_second_pass_code('', '
3.121983] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xd7
[ 3.130285] nand: Samsung NAND 4GiB 3,3V 8-bit
[ 3.134879] nand: 4096 MiB, MLC, erase size: 1024 KiB, page size: 8192, OOB size: 640
[ 3.142926] mmcblk0: p1
[ 3.147686] Bad block table found at page 524160, version 0x01
[ 3.154564] Bad block table found at page 524032, version 0x01
[ 3.160847] nand_read_bbt: bad block at 0x000006500000
[ 3.166037] nand_read_bbt: bad block at 0x000006600000
[ 3.171221] nand_read_bbt: bad block at 0x000007700000
....
[ 5.263243] 3 fixed-partitions partitions found on MTD device 1c03000.nand-controller
[ 5.271102] Creating 3 MTD partitions on "1c03000.nand-controller":
[ 5.277391] 0x000000000000-0x000000200000 : "boot0"
[ 5.282286] mtd: partition "boot0" doesn't end on an erase/write block -- force read-only
[ 5.299133] 0x000000200000-0x000000400000 : "boot0-rescue"
[ 5.304708] mtd: partition "boot0-rescue" doesn't start on an erase/write block boundary -- force read-only
[ 5.323078] 0x000000400000-0x000100000000 : "main"
[ 5.327952] mtd: partition "main" doesn't start on an erase/write block boundary -- force read-only
[

')
NermaN
 
Posts: 2
Joined: Thu May 21, 2020 12:30 pm

Re: A10 NAND, Wrong erase block size

Postby NermaN » Thu May 21, 2020 12:36 pm

It shows correct erase block in this line:
[ 3.134879] nand: 4096 MiB, MLC, erase size: 1024 KiB, page size: 8192, OOB size: 640

But practically everywhere else i can check it uses wrong size.
NermaN
 
Posts: 2
Joined: Thu May 21, 2020 12:30 pm


Return to Allwinner

Who is online

Users browsing this forum: No registered users and 3 guests

cron