Allwinner A13
Page 1 of 1

Author:  de Parcevaux [ November 5th, 2018, 18:22 ]
Post subject:  Allwinner A13

Does anybody has BCH parameters for Allwinner A13 nand flash controller ?
It's for Reread a STorex Ezee tablet nand flash (H27UCG8T2ATR-BC)
I have found the XOR key. But I can't found the ECC parameters

Author:  arvika [ November 7th, 2018, 1:37 ]
Post subject:  Re: Allwinner A13

Yes, here it is. Should be in DB, I sent it some time ago to developers. They do not add it?

A13_1078(ecc50b)_4.zip [512 Bytes]
Downloaded 253 times

Author:  malakai [ November 7th, 2018, 13:34 ]
Post subject:  Re: Allwinner A13

In unknown cases of ECC its worth to use codeword analysis tool. It's very easy and effective to use, Connect BCH element to physical image and as Payload you set assumed range of data area and eventually spare area if it exist, in Parity - range of ECC area (positions counted from 0). In this case it little more complicated because DA and Spare aren't in row. You can use offset to skip bytes between them (you have to shrink page size in codeword analyser settings as well). Polynomial is dec/hex representation of binary generation polynomial for parity bits e.g. 369d is binary 1 0111 0001 and polynomial for it is:

x^8 + x^6 + x^5+ x^4 + 1(x^0)

Degree is the value of highest power.

To choose correct degree for analyse add total length of payload and parity bytes for codeword ( in your case based on Michal's file it's 1028+50 = 1078 bytes and it's 8624 bits). 8624<16384 ( 2^14) so correct degree is 14.

You can also use predefined specific polynomial as well.
Result you receive will be in range 1-64 and it's ratio correctable codewords to tested codewrods (higher is better).

Author:  de Parcevaux [ November 27th, 2018, 2:49 ]
Post subject:  Re: Allwinner A13

Thanks, I will test.

Author:  de Parcevaux [ December 5th, 2018, 17:26 ]
Post subject:  Re: Allwinner A13

I don't find,
- data area 8192 bytes, only data (when uXored)
- spare area 640 bytes (with the last 48 at xFF)
With bitmap viewer no trace for header, LBN and LPN.
perhaps the A13 controller use tables at the beginning of the chip memory ?

File comment: Allwiner specifications about NFC
A13_User_Manual_v1.5_20150510.pdf [5.66 MiB]
Downloaded 229 times
File comment: data/spare area on unXored bitmap
Capture-Rusolut-1.PNG [ 283.49 KiB | Viewed 6875 times ]

Author:  malakai [ December 6th, 2018, 11:07 ]
Post subject:  Re: Allwinner A13

The BCH codeword from MichaƂ was for ECC area equal 50 bytes, the one you have is 70. Also Allwinner xor spare and ECC areas as well and from the point I see you applied it only for DA. Header, LBN and LPN are in first and second spare area.The correct page structure will be: DA 8192 (SA 4 ECC 70)*8.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group