rajkosto has quit [Read error: Connection reset by peer]
cnxsoft has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
cnxsoft1 has joined #linux-sunxi
cnxsoft has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
hlauer has joined #linux-sunxi
macromorgan is now known as Guest1380
macromorgan has joined #linux-sunxi
paulk1 has quit [Ping timeout: 480 seconds]
Guest1380 has quit [Read error: Connection reset by peer]
Turl_ has joined #linux-sunxi
Turl has quit [Ping timeout: 480 seconds]
paulk1 has joined #linux-sunxi
kuba2k2 has joined #linux-sunxi
<kuba2k2>
what is the relationship between NAND ECC strength (in bits) and ecc_bytes[] in spl_nand driver?
<kuba2k2>
my Micron NAND has minimal ECC params (from datasheet) as 24-bits per 1080 bytes of data, but the sunxi SPL driver chip detection changes stuff like ecc_bytes, ecc_size (sector size?), max_oobsize, page_size (this one is obvious)
<kuba2k2>
ecc_bytes[] ranges from 32 to 116, I don't quite see how is my 24-bit ECC related to anything from above
kuba2k2 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
kuba2k2 has joined #linux-sunxi
<kuba2k2>
The stock LiveSuit flasher shows (in the uart log) 8 sectors in a page, which gives 4096/8=512 bytes per sector. It also mentions BCH-32 , while SPL seems to detect correct config as 1024 bytes ECC size and 32 bytes ECC strength
<kuba2k2>
These settings don't allow reading any page though
kuba2k2 has quit [Ping timeout: 480 seconds]
kuba2k2 has joined #linux-sunxi
kuba2k2 has quit [Ping timeout: 480 seconds]
kuba2k2 has joined #linux-sunxi
kuba2k2 has quit []
cnxsoft has joined #linux-sunxi
cnxsoft1 has quit [Read error: Connection reset by peer]
BroderTuck has joined #linux-sunxi
<BroderTuck>
I suspect the LiveSuit program uses the Android NAND layout, and as far as i know the (mainline) Linux and the Android layouts for things like where the ECC bits and the bad block markers are stored are utterly incompatible between the two.
BroderTuck has quit []
JohnDoe_71Rus has quit []
kuba2k2 has joined #linux-sunxi
<kuba2k2>
okay, that makes sense. But if the sunxi u-boot uses hardware ECC (which I believe it does), doesn't the NAND controller handle ECC stuff by itself? In the source code I found that reading pages and checking ECC is more or less writing/reading a few registers
<kuba2k2>
I also tried writing to NAND using mainline u-boot itself; u-boot could read the image properly, but SPL still can't read even a single page. It detects ecc_bytes as 24 in that case
obbardc has joined #linux-sunxi
kuba2k2 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
JohnDoe_71Rus has joined #linux-sunxi
cnxsoft has quit [Remote host closed the connection]
paulk1 has quit [Ping timeout: 480 seconds]
vagrantc has joined #linux-sunxi
paulk1 has joined #linux-sunxi
hlauer has quit [Ping timeout: 480 seconds]
kuba2k2 has joined #linux-sunxi
JohnDoe_71Rus has quit []
kuba2k2 has quit []
kuba2k2 has joined #linux-sunxi
kuba2k2 has quit []
rajkosto has joined #linux-sunxi
rajkosto has quit []
adjtm has quit [Read error: Connection reset by peer]