Re: [linux-sunxi] Re: [RFC PATCH 0/9] mtd: nand: add sunxi NAND Flash Controller support

2014-01-29 Thread boris brezillon dev
On 29/01/2014 17:08, Michal Suchanek wrote: On 29 January 2014 16:43, boris brezillon dev wrote: Hello Michal, On 29/01/2014 16:11, Michal Suchanek wrote: On 13 January 2014 10:02, boris brezillon wrote: boot 0 part properties: - uses sequential ECC - uses 1024 bytes ECC blocks - boot0

Re: [linux-sunxi] Re: [RFC PATCH 0/9] mtd: nand: add sunxi NAND Flash Controller support

2014-01-29 Thread Michal Suchanek
On 29 January 2014 16:43, boris brezillon dev wrote: > Hello Michal, > > > On 29/01/2014 16:11, Michal Suchanek wrote: >> >> On 13 January 2014 10:02, boris brezillon wrote: >>> >>> >>> boot 0 part properties: >>> - uses sequential ECC >>> - uses 1024 bytes ECC blocks >>> - boot0 code is stored

Re: [linux-sunxi] Re: [RFC PATCH 0/9] mtd: nand: add sunxi NAND Flash Controller support

2014-01-29 Thread boris brezillon dev
Hello Michal, On 29/01/2014 16:11, Michal Suchanek wrote: On 13 January 2014 10:02, boris brezillon wrote: Hi Henrik, On 11/01/2014 22:11, Henrik Nordström wrote: thanks for pointing out your documents I'm trying to get the NAND driver with HW ECC (and HW RND) without using DMA at all I

Re: [linux-sunxi] Re: [RFC PATCH 0/9] mtd: nand: add sunxi NAND Flash Controller support

2014-01-29 Thread Michal Suchanek
On 13 January 2014 10:02, boris brezillon wrote: > Hi Henrik, > > > On 11/01/2014 22:11, Henrik Nordström wrote: >> >> thanks for pointing out your documents >> I'm trying to get the NAND driver with HW ECC (and HW RND) >> without using DMA at all >> >> I tried many things but did not quite get

Re: [linux-sunxi] Re: [RFC PATCH 0/9] mtd: nand: add sunxi NAND Flash Controller support

2014-01-29 Thread Michal Suchanek
On 13 January 2014 10:02, boris brezillon b.brezil...@overkiz.com wrote: Hi Henrik, On 11/01/2014 22:11, Henrik Nordström wrote: bbrezillon thanks for pointing out your documents bbrezillon I'm trying to get the NAND driver with HW ECC (and HW RND) without using DMA at all I tried many

Re: [linux-sunxi] Re: [RFC PATCH 0/9] mtd: nand: add sunxi NAND Flash Controller support

2014-01-29 Thread boris brezillon dev
Hello Michal, On 29/01/2014 16:11, Michal Suchanek wrote: On 13 January 2014 10:02, boris brezillon b.brezil...@overkiz.com wrote: Hi Henrik, On 11/01/2014 22:11, Henrik Nordström wrote: bbrezillon thanks for pointing out your documents bbrezillon I'm trying to get the NAND driver with HW

Re: [linux-sunxi] Re: [RFC PATCH 0/9] mtd: nand: add sunxi NAND Flash Controller support

2014-01-29 Thread Michal Suchanek
On 29 January 2014 16:43, boris brezillon dev b.brezillon@gmail.com wrote: Hello Michal, On 29/01/2014 16:11, Michal Suchanek wrote: On 13 January 2014 10:02, boris brezillon b.brezil...@overkiz.com wrote: boot 0 part properties: - uses sequential ECC - uses 1024 bytes ECC blocks -

Re: [linux-sunxi] Re: [RFC PATCH 0/9] mtd: nand: add sunxi NAND Flash Controller support

2014-01-29 Thread boris brezillon dev
On 29/01/2014 17:08, Michal Suchanek wrote: On 29 January 2014 16:43, boris brezillon dev b.brezillon@gmail.com wrote: Hello Michal, On 29/01/2014 16:11, Michal Suchanek wrote: On 13 January 2014 10:02, boris brezillon b.brezil...@overkiz.com wrote: boot 0 part properties: - uses

Re: [linux-sunxi] Re: [RFC PATCH 0/9] mtd: nand: add sunxi NAND Flash Controller support

2014-01-21 Thread Henrik Nordström
tis 2014-01-21 klockan 19:13 +0100 skrev Henrik Nordström: > > Are you sure ? > > This thread says that only the first 1024 bytes of data (+ 96 bytes of > > ECC) of each page are used: > > yes I am sure. There was no page access commands between the sectors, > only linear read of

Re: [linux-sunxi] Re: [RFC PATCH 0/9] mtd: nand: add sunxi NAND Flash Controller support

2014-01-21 Thread Henrik Nordström
lör 2014-01-18 klockan 05:46 -0800 skrev Boris BREZILLON: > Do you know which mode are used (X ECC strength / 512 or 1024 bytes ?) > and > when they are are selected (does it depend on the connected NAND > chip ?) ? It seems to blindly try some modes until something usable is found. Varying

Re: [linux-sunxi] Re: [RFC PATCH 0/9] mtd: nand: add sunxi NAND Flash Controller support

2014-01-21 Thread Henrik Nordström
lör 2014-01-18 klockan 05:46 -0800 skrev Boris BREZILLON: Do you know which mode are used (X ECC strength / 512 or 1024 bytes ?) and when they are are selected (does it depend on the connected NAND chip ?) ? It seems to blindly try some modes until something usable is found. Varying both

Re: [linux-sunxi] Re: [RFC PATCH 0/9] mtd: nand: add sunxi NAND Flash Controller support

2014-01-21 Thread Henrik Nordström
tis 2014-01-21 klockan 19:13 +0100 skrev Henrik Nordström: Are you sure ? This thread says that only the first 1024 bytes of data (+ 96 bytes of ECC) of each page are used: yes I am sure. There was no page access commands between the sectors, only linear read of data,ecc,data,ecc. Hmm..

Re: [linux-sunxi] Re: [RFC PATCH 0/9] mtd: nand: add sunxi NAND Flash Controller support

2014-01-13 Thread Henrik Nordström
mån 2014-01-13 klockan 10:02 +0100 skrev boris brezillon: > The most complicated part is the boot0 partition. Not really. It's only a little different (sequential ECC, static randomizer seed on every page). > Tell me if I'm wrong, but here's what I understood from your work (and > yuq's work

Re: [linux-sunxi] Re: [RFC PATCH 0/9] mtd: nand: add sunxi NAND Flash Controller support

2014-01-13 Thread boris brezillon
Hi Henrik, On 11/01/2014 22:11, Henrik Nordström wrote: thanks for pointing out your documents I'm trying to get the NAND driver with HW ECC (and HW RND) without using DMA at all I tried many things but did not quite get the ECC reading command to return meaningful resuts. But should work

Re: [linux-sunxi] Re: [RFC PATCH 0/9] mtd: nand: add sunxi NAND Flash Controller support

2014-01-13 Thread boris brezillon
Hi Henrik, On 11/01/2014 22:11, Henrik Nordström wrote: bbrezillon thanks for pointing out your documents bbrezillon I'm trying to get the NAND driver with HW ECC (and HW RND) without using DMA at all I tried many things but did not quite get the ECC reading command to return meaningful

Re: [linux-sunxi] Re: [RFC PATCH 0/9] mtd: nand: add sunxi NAND Flash Controller support

2014-01-13 Thread Henrik Nordström
mån 2014-01-13 klockan 10:02 +0100 skrev boris brezillon: The most complicated part is the boot0 partition. Not really. It's only a little different (sequential ECC, static randomizer seed on every page). Tell me if I'm wrong, but here's what I understood from your work (and yuq's work