public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] fatwrite problem
@ 2013-04-12 12:46 Ruud Commandeur
  2013-04-12 14:11 ` Mats Kärrman
  0 siblings, 1 reply; 24+ messages in thread
From: Ruud Commandeur @ 2013-04-12 12:46 UTC (permalink / raw)
  To: u-boot

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 reproduce the problem:

//4K file, result OK
fatwrite mmc 0:1 42000000 testfile 1000
writing testfile
set_cluster; clustnum: 5, startsect: 176, size 2048
set_cluster; clustnum: 6, startsect: 180, size 2048
set_cluster; clustnum: -6, startsect: 132, size 2048
4096 bytes written

//512 bytes file, timeout error, file not written
fatwrite mmc 0:1 42000000 testfile 200
writing testfile
set_cluster; clustnum: 5, startsect: 176, size 0
MMC0: Bus busy timeout!
MMC0: Bus busy timeout!
MMC0: Bus busy timeout!
MMC0: Bus busy timeout!
MMC0: Bus busy timeout!
MMC0: Bus busy timeout!
set_cluster; clustnum: 5, startsect: 176, size 512
MMC0: Bus busy timeout!
MMC0: Bus busy timeout!
MMC0: Bus busy timeout!
set_cluster; clustnum: -6, startsect: 132, size 2048
MMC0: Bus busy timeout!
512 bytes written

It seems to be related to he problem reported here:

http://www.mail-archive.com/u-boot at lists.denx.de/msg107212.html

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 for this
problem. Can anyone tell me if there is a fix for this problem?

Regards,

Ruud

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2015-10-12 15:15 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-12 12:46 [U-Boot] fatwrite problem Ruud Commandeur
2013-04-12 14:11 ` Mats Kärrman
2013-04-12 15:06   ` Ruud Commandeur
2013-04-12 15:12     ` Tom Rini
2013-04-12 15:23       ` Ruud Commandeur
2013-04-12 15:43         ` Tom Rini
2013-04-12 19:39       ` Benoît Thébaudeau
2013-04-12 20:42         ` Tom Rini
2013-04-12 21:17           ` Benoît Thébaudeau
2013-04-16  9:32             ` Ruud Commandeur
2013-05-14 15:13             ` Ruud Commandeur
2013-05-14 15:31               ` Tom Rini
2015-09-28 13:45         ` [U-Boot] [PATCH 1/5] fs/fat/fat_write: Fix buffer alignments Benoît Thébaudeau
2015-09-28 13:45           ` [U-Boot] [PATCH 2/5] fs/fat/fat_write: Merge calls to set_cluster() Benoît Thébaudeau
2015-10-12 15:15             ` [U-Boot] [U-Boot, " Tom Rini
2015-09-28 13:45           ` [U-Boot] [PATCH 3/5] fs/fat/fat_write: Fix curclust/newclust mix-up Benoît Thébaudeau
2015-10-12 15:15             ` [U-Boot] [U-Boot, " Tom Rini
2015-09-28 13:45           ` [U-Boot] [PATCH 4/5] fs/fat/fat_write: Factor out duplicate code Benoît Thébaudeau
2015-10-12 15:15             ` [U-Boot] [U-Boot, " Tom Rini
2015-09-28 13:45           ` [U-Boot] [PATCH 5/5] fs/fat/fat_write: Fix management of empty files Benoît Thébaudeau
2015-10-12 15:15             ` [U-Boot] [U-Boot, " Tom Rini
2015-09-28 15:22           ` [U-Boot] [PATCH 1/5] fs/fat/fat_write: Fix buffer alignments Tom Rini
2015-10-07 19:48             ` Benoît Thébaudeau
2015-10-12 15:15           ` [U-Boot] [U-Boot,1/5] " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox