Re: [U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN

2009-04-24 Thread Jean-Christophe PLAGNIOL-VILLARD
On 10:21 Fri 24 Apr , Scott Wood wrote: > On Fri, Apr 24, 2009 at 02:57:52PM +0900, Kyungmin Park wrote: > > Actually, I don't like the CONFIG_SYS_MONITOR_LEN approaches, now you > > are consider the bad block at 1. > > But we can also consider the bad block 2, if there two consecutive 2 > > ba

Re: [U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN

2009-04-24 Thread Scott Wood
On Fri, Apr 24, 2009 at 02:57:52PM +0900, Kyungmin Park wrote: > Actually, I don't like the CONFIG_SYS_MONITOR_LEN approaches, now you > are consider the bad block at 1. > But we can also consider the bad block 2, if there two consecutive 2 > bad block at block 1, 2, we should define the CONFIG_SYS

Re: [U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN

2009-04-23 Thread Kyungmin Park
Hi, On Fri, Apr 24, 2009 at 2:28 PM, AYYANARPONNUSAMY GANGHEYAMOORTHY wrote: > Hi  Scott, > On  Apr 24, 2009 07:39 (GMT+09:00) Scott Wood wrote > >>>apgmoorthy wrote: >>> This is done by the Post : [U-Boot] [PATCH 2/2] Fix OneNAND ipl to read >>> CONFIG_SYS_MONITOR_LEN >>> >>> What do you feel a

Re: [U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN

2009-04-23 Thread Amit Kumar Sharma
Hi Kyungmin, - Original Message - From: "Scott Wood" To: "apgmoorthy" Cc: ; Sent: Friday, April 24, 2009 4:09 AM Subject: Re: [U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN > apgmoorthy wrote: >> Hi Scott, >> >> On T

Re: [U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN

2009-04-23 Thread Scott Wood
apgmoorthy wrote: > Hi Scott, > > On Tuesday, March 31, 2009 4:04 AM Scott Wood Wrote : > >>> Note that there are a couple of board files (apollon and nmdk8815) that use >>> the OneNAND loader >>> that do not define CONFIG_SYS_MONITOR_LEN. I've added the maintainers to >>> the Cc: list. > >

Re: [U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN

2009-04-12 Thread apgmoorthy
Hi Scott, On Tuesday, March 31, 2009 4:04 AM Scott Wood Wrote : >>Note that there are a couple of board files (apollon and nmdk8815) that use >>the OneNAND loader >>that do not define CONFIG_SYS_MONITOR_LEN. I've added the maintainers to the >>Cc: list. CONFIG_SYS_MONITOR_LEN is not define

Re: [U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN

2009-04-01 Thread Scott Wood
Amit Kumar Sharma wrote: > From Alessandro mail it is claear CONFIG_SYS_MONITOR_LEN > only used by apollon > that can be changed by Apollon users independently. we will > check othe rissue of white space and release patch. No need; I've already fixed the whitespace and applied the patch (as not

Re: [U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN

2009-03-31 Thread Amit Kumar Sharma
Hi Scott, - Original Message - From: "Scott Wood" To: "Alessandro Rubini" Cc: ; Sent: Tuesday, March 31, 2009 9:43 PM Subject: Re: [U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN > Alessandro Rubini wrote: >> Hello. >> >&g

Re: [U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN

2009-03-31 Thread Alessandro Rubini
Hello. > Note that there are a couple of board files (apollon and nmdk8815) that > use the OneNAND loader that do not define CONFIG_SYS_MONITOR_LEN. I've > added the maintainers to the Cc: list. Sorry for the delay. In the nomadik board the OneNAND driver is not yet present, a few init lines

Re: [U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN

2009-03-31 Thread Scott Wood
Alessandro Rubini wrote: > Hello. > >> Note that there are a couple of board files (apollon and nmdk8815) that >> use the OneNAND loader that do not define CONFIG_SYS_MONITOR_LEN. I've >> added the maintainers to the Cc: list. > > Sorry for the delay. > > In the nomadik board the OneNAND driv

Re: [U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN

2009-03-30 Thread Amit Kumar Sharma
ay, March 31, 2009 4:03 AM Subject: Re: [U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN > apgmoorthy wrote: >> Currently OneNAND initial program loader (ipl) reads only >> block 0 ie 128KB. >> However, u-boot image for apollon board is 195KB making

Re: [U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN

2009-03-30 Thread Scott Wood
U-Boot image size. > > Signed-off-by: Rohit Hagargundgi > Signed-off-by: Gangheyamoorthy Applied to u-boot-nand-flash, with the below whitespace errors fixed: Applying RE: [U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN .dotest/pat

Re: [U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN

2009-03-27 Thread apgmoorthy
Currently OneNAND initial program loader (ipl) reads only block 0 ie 128KB. However, u-boot image for apollon board is 195KB making the board unbootable with OneNAND. Fix ipl to read CONFIG_SYS_MONITOR_LEN. CONFIG_SYS_MONITOR_LEN macro holds the U-Boot image size. Signed-off-by: Rohit Hagargundg

Re: [U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN

2009-03-25 Thread apgmoorthy
Hi Scott, On Tuesday, March 24, 2009 2:55 AM , Scott Wood wrote >> Please do find the updated patch below. >It's easier if updated patches are sent separately from the reply (both to >avoid getting lost, >and to avoid having to manually strip discussion from the changelog). >> Signed-off-by:

Re: [U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN

2009-03-24 Thread Amit Kumar Sharma
Hi Wolfgang, - Original Message - From: "Wolfgang Denk" To: "Scott Wood" Cc: ; "apgmoorthy" Sent: Tuesday, March 24, 2009 4:16 AM Subject: Re: [U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN > Dear Scott, > > In message <

Re: [U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN

2009-03-23 Thread Wolfgang Denk
Dear Scott, In message <49c80b99.5010...@freescale.com> you wrote: > > >>> + if (page < 2 && (onenand_readw(ONENAND_SPARERAM) != 0x)) > >>> + return 1; > >> Unnecessary parens. > > > > Where? I find them pretty useful. > > Around the second comparison. Why "if (a < b && (c != d))" a

Re: [U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN

2009-03-23 Thread Scott Wood
Wolfgang Denk wrote: > Dear Scott Wood, > > In message <20090323212514.ga30...@ld0162-tx32.am.freescale.net> you wrote: >>> + /* Check for invalid block mark */ >>> + if (page < 2 && (onenand_readw(ONENAND_SPARERAM) != 0x)) >>> + return 1; >> Unnecessary parens. > > Where? I fin

Re: [U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN

2009-03-23 Thread Wolfgang Denk
Dear Scott Wood, In message <20090323212514.ga30...@ld0162-tx32.am.freescale.net> you wrote: > > > + /* Check for invalid block mark */ > > + if (page < 2 && (onenand_readw(ONENAND_SPARERAM) != 0x)) > > + return 1; > > Unnecessary parens. Where? I find them pretty useful. Pleas

Re: [U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN

2009-03-23 Thread Scott Wood
On Mon, Mar 23, 2009 at 02:32:20PM +0530, apgmoorthy wrote: > >nblocks = (CONFIG_SYS_MONITOR_LEN + pagesize - 1) >> pageshift; > >- Right , But the above line dosent give the nblocks , > used erasesize and erase_shift. D'oh, right. > Please do find the updated patch below. It's

Re: [U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN

2009-03-23 Thread apgmoorthy
Hi Scott, >> +if (page < 2 && (onenand_readw(THIS_ONENAND(ONENAND_SPARERAM)) != >> 0x)) >Line length. - Corrected. >> int pagesize = ONENAND_PAGE_SIZE; >> +int nblocks = CONFIG_SYS_MONITOR_LEN / ONENAND_BLOCK_SIZE; >Shouldn't nblocks be rounded up? >>

Re: [U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN

2009-03-09 Thread Scott Wood
On Mon, Mar 09, 2009 at 07:45:40PM +0530, Rohit Hagargundgi wrote: > + /* Check for invalid block mark*/ > + if (page < 2 && (onenand_readw(THIS_ONENAND(ONENAND_SPARERAM)) != > 0x)) > + return 1; Line length. > - int page, offset = 0; > + int block = 0, page = ONE

[U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN

2009-03-09 Thread Rohit Hagargundgi
Currently OneNAND initial program loader (ipl) reads only block 0 ie 128KB. However, u-boot image for apollon board is 195KB making the board unbootable with OneNAND. Fix ipl to read CONFIG_SYS_MONITOR_LEN. CONFIG_SYS_MONITOR_LEN macro holds the U-Boot image size. Signed-off-by: Rohit Hagargundgi