Re: [U-Boot] Fix fsl_elbc_nand driver

2015-05-21 Thread Andrei Yakimov
is working. Perhaps we do not need extra read_param(), and use only NAND_CMD_RNDOUT to get next block inside page loop. Andrei On Wed, 2015-05-20 at 21:27 -0500, Scott Wood wrote: > On Wed, 2015-05-20 at 18:55 -0700, Andrei Yakimov wrote: > > On Wed, 2015-05-20 at 20:37 -0500, Scott W

Re: [U-Boot] Fix fsl_elbc_nand driver

2015-05-21 Thread Andrei Yakimov
On Wed, 2015-05-20 at 21:46 -0500, Scott Wood wrote: > On Wed, 2015-05-20 at 19:42 -0700, Andrei Yakimov wrote: > > For now lets stick with 1536 in u-boot. > > I will send a patch. > > At least it will not loosing flash over time > > as nand ages. > > > > I

Re: [U-Boot] Fix fsl_elbc_nand driver

2015-05-21 Thread Andrei Yakimov
On Wed, 2015-05-20 at 22:11 -0500, Scott Wood wrote: > On Wed, 2015-05-20 at 20:03 -0700, Andrei Yakimov wrote: > > On Wed, 2015-05-20 at 21:46 -0500, Scott Wood wrote: > > > On Wed, 2015-05-20 at 19:42 -0700, Andrei Yakimov wrote: > > > > For now lets stick with

Re: [U-Boot] Fix fsl_elbc_nand driver

2015-05-21 Thread Andrei Yakimov
On Wed, 2015-05-20 at 20:37 -0500, Scott Wood wrote: > On Wed, 2015-05-20 at 18:27 -0700, Andrei Yakimov wrote: > > I will make a patch with 1536. > > > > Where should I send linux patch? > > They have bunch of mail lists for different subsystems. > > Andrei >

Re: [U-Boot] Fix fsl_elbc_nand driver

2015-05-21 Thread Andrei Yakimov
I will make a patch with 1536. Where should I send linux patch? They have bunch of mail lists for different subsystems. Andrei On Wed, 2015-05-20 at 17:25 -0500, Scott Wood wrote: > On Tue, 2015-05-19 at 16:42 -0700, Andrei Yakimov wrote: > > On Tue, 2015-05-19 at 17:38 -0500, Scott W

Re: [U-Boot] Fix fsl_elbc_nand driver

2015-05-19 Thread Andrei Yakimov
On Tue, 2015-05-19 at 17:38 -0500, Scott Wood wrote: > On Tue, 2015-05-19 at 15:29 -0700, Andrei Yakimov wrote: > > I did not compiling latest, I still in 2011.9 and 2.6.38. > > I have go over latest kernel and can see they using > > NAND_CMD_PARAM with sub command

[U-Boot] Fix fsl_elbc_nand driver

2015-05-18 Thread Andrei Yakimov
This is my best try. I have test it with my old u-boot, but not with master. Do not have a bench for it. This is not very important patch. I do not find any other ONFI user in u-boot. Andrei >From d76b4ae8e866affa15dd9da860574d0600969d57 Mon Sep 17 00:00:00 2001 From: Andrei Yakimov Date:

Re: [U-Boot] fsl_elbc_nand bug

2015-05-18 Thread Andrei Yakimov
exist. I will update only fsl_elbc_nand driver. This is least invasive patch. Should I get just master for generation of this patch? Andrei. On Mon, 2015-05-18 at 16:17 -0500, Scott Wood wrote: > On Fri, 2015-05-15 at 14:48 -0700, Andrei Yakimov wrote: > > Hi, > > I just

[U-Boot] fsl_elbc_nand bug

2015-05-15 Thread Andrei Yakimov
Hi, I just found, if NAND ONFI parameter page first copy is bad, u-boot will never read extra copes: fsl_elbc_nand.c: 342 out_be32(&lbc->fbcr, 256); 343 ctrl->read_bytes = 256; this code cause "read beyond buffer" error message: nand_base.c: chip->cmd