* [U-Boot-Users] RE: Write buffer programming for AMD flash chips
@ 2005-04-26 8:43 Bastos Fernandez Alexandre
0 siblings, 0 replies; 2+ messages in thread
From: Bastos Fernandez Alexandre @ 2005-04-26 8:43 UTC (permalink / raw)
To: u-boot
Thomas,
What about the patch I have submitted some days ago?
I proposed there some changes for the same issue?
Have you considered/tested it against your Flash?
Best regards,
Alex Bastos
> -----Original Message-----
> Date: Tue, 26 Apr 2005 09:21:11 +0200
> From: =?iso-8859-1?Q?Thomas_Sch=E4fer?= <thomas.schaefer@kontron.com>
> To: <wd@denx.de>,
> <yuli@arabellasw.com>,
> <Brad.Kemp@Seranoa.com>
> Cc: <u-boot-users@lists.sourceforge.net>
> Subject: [U-Boot-Users] Write buffer programming for AMD flash chips
>
> This is a multi-part message in MIME format.
>
> ------_=_NextPart_001_01C54A30.86E79890
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> Sorry, wrong patch file, this is the right one...
>
> Best regards,
>
> Thomas Sch=E4fer
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot-Users] Re: Write buffer programming for AMD flash chips
[not found] <51DB8827D393D411BB69003048003F46018FE4E6@tvesntr>
@ 2005-04-29 7:55 ` Alex BASTOS
0 siblings, 0 replies; 2+ messages in thread
From: Alex BASTOS @ 2005-04-29 7:55 UTC (permalink / raw)
To: u-boot
Hi Thomas,
> I had a look at your patch and I believe that it does almost the same than
> mine. From a point of readability and extendability I would prefer it,
> whereas my patch would save some memory.
So on, IMHO memory saving may be preferable in this case.
However, maybe someone else in the list (Wolfgang?) has
anything to say.
If this is the way we decide to go, I can apply your patch and
make changes for 8 bit support.
> A missing part in your patch is checking whether data to be written are
> aligned with the flash chips write buffer. This is done with the following
> hunk for the write_buff function:
>
> buffered_size = (info->portwidth / info->chipwidth);
> buffered_size *= info->buffer_size;
> while (cnt >= info->portwidth) {
> - i = buffered_size > cnt ? cnt : buffered_size;
> + /* write buffer until next buffered_size aligned boundary */
> + i = buffered_size - (wp % buffered_size);
> + if (i>cnt)
> + i = cnt;
> if ((rc = flash_write_cfibuffer (info, wp, src, i)) != ERR_OK)
> return rc;
> i -= (i % info->portwidth);
>
> In our case, the lack of this code lead to errors when writing the
> environment to flash. The reason is that environment writing is done in 3
> steps and this results in not buffer-aligned write cycles. The code above
> calculates the correct buffer size (i) depending on the first address (wp) to
> be written
OK. I will change this.
Best Regards,
Alex
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-04-29 7:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-26 8:43 [U-Boot-Users] RE: Write buffer programming for AMD flash chips Bastos Fernandez Alexandre
[not found] <51DB8827D393D411BB69003048003F46018FE4E6@tvesntr>
2005-04-29 7:55 ` [U-Boot-Users] " Alex BASTOS
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox