Re: [U-Boot] fatwrite problem

2013-05-14 Thread Ruud Commandeur
yourself first? Regards, Ruud -Oorspronkelijk bericht- Van: Ruud Commandeur Verzonden: dinsdag 16 april 2013 11:33 Aan: 'Benoît Thébaudeau'; Tom Rini CC: u-boot@lists.denx.de; Mats K?rrman Onderwerp: RE: [U-Boot] fatwrite problem Hi Everyone, As far as I noticed, set_cluster can

Re: [U-Boot] fatwrite problem

2013-05-14 Thread Tom Rini
On Tue, May 14, 2013 at 05:13:44PM +0200, Ruud Commandeur wrote: Hi Tom, It has become a bit quiet on this thread, but I just made the changes as I suggested, including some other fixes. Here is what I did: Added a check for blkcnt 0 in mmc_write_blocks (drivers/mmc.c). By doing this

Re: [U-Boot] fatwrite problem

2013-04-16 Thread Ruud Commandeur
to your knowledge. Regards, Ruud -Oorspronkelijk bericht- Van: Benoît Thébaudeau [mailto:benoit.thebaud...@advansee.com] Verzonden: vrijdag 12 april 2013 23:18 Aan: Tom Rini CC: Ruud Commandeur; u-boot@lists.denx.de; Mats K?rrman Onderwerp: Re: [U-Boot] fatwrite problem Hi Tom

[U-Boot] fatwrite problem

2013-04-12 Thread Ruud Commandeur
Hi Everyone, Sinced a few days I noticed some problems writing the uimage to a FAT partition on my SD-card. At first I was afraid of some (physical) SD-card problems, but it appears to be related to he size of the uImage. With some further testing (and adding some debug printing), I could easily

Re: [U-Boot] fatwrite problem

2013-04-12 Thread Mats Kärrman
Hi Ruud, Ruud Commandeur wrote: Once the size of the set_cluster call equals 0, the mmc command is incomplete and times out. In the earlier reported problem, a patch is mentioned, but not available for dowload here. Also in the latest versions of the git repository I could not find a patch

Re: [U-Boot] fatwrite problem

2013-04-12 Thread Ruud Commandeur
Hi Mats, Thanks a lot, this seems to solve my problem. Nothing more actualy than adding a if(size) around the code block of set_sector( ). I could have thought of that myself, but was not sure if anything else should be done in this case... Regards, Ruud -Oorspronkelijk bericht-

Re: [U-Boot] fatwrite problem

2013-04-12 Thread Tom Rini
On Fri, Apr 12, 2013 at 05:06:35PM +0200, Ruud Commandeur wrote: Hi Mats, Thanks a lot, this seems to solve my problem. Nothing more actualy than adding a if(size) around the code block of set_sector( ). I could have thought of that myself, but was not sure if anything else should be done

Re: [U-Boot] fatwrite problem

2013-04-12 Thread Ruud Commandeur
: Tom Rini [mailto:tom.r...@gmail.com] Namens Tom Rini Verzonden: vrijdag 12 april 2013 17:13 Aan: Ruud Commandeur; Beno??t Th??baudeau CC: Mats K?rrman; u-boot@lists.denx.de Onderwerp: Re: [U-Boot] fatwrite problem On Fri, Apr 12, 2013 at 05:06:35PM +0200, Ruud Commandeur wrote: Hi Mats, Thanks

Re: [U-Boot] fatwrite problem

2013-04-12 Thread Tom Rini
On Fri, Apr 12, 2013 at 05:23:35PM +0200, Ruud Commandeur wrote: Hi Tom, Sorry if I mislead you, but my code change is quite the same as was posted by Damien. I would be more than happy to send what you ask for, but I don't think this will add much. And I will have to study a bit then how

Re: [U-Boot] fatwrite problem

2013-04-12 Thread Benoît Thébaudeau
Hi Tom, Ruud, Mats, On Friday, April 12, 2013 5:12:31 PM, Tom Rini wrote: On Fri, Apr 12, 2013 at 05:06:35PM +0200, Ruud Commandeur wrote: Hi Mats, Thanks a lot, this seems to solve my problem. Nothing more actualy than adding a if(size) around the code block of set_sector( ). I could

Re: [U-Boot] fatwrite problem

2013-04-12 Thread Tom Rini
On Fri, Apr 12, 2013 at 09:39:19PM +0200, Beno??t Th??baudeau wrote: Hi Tom, Ruud, Mats, On Friday, April 12, 2013 5:12:31 PM, Tom Rini wrote: On Fri, Apr 12, 2013 at 05:06:35PM +0200, Ruud Commandeur wrote: Hi Mats, Thanks a lot, this seems to solve my problem. Nothing more

Re: [U-Boot] fatwrite problem

2013-04-12 Thread Benoît Thébaudeau
Hi Tom, On Friday, April 12, 2013 10:42:34 PM, Tom Rini wrote: On Fri, Apr 12, 2013 at 09:39:19PM +0200, Beno??t Th??baudeau wrote: Hi Tom, Ruud, Mats, On Friday, April 12, 2013 5:12:31 PM, Tom Rini wrote: On Fri, Apr 12, 2013 at 05:06:35PM +0200, Ruud Commandeur wrote: Hi Mats,