Re: [U-Boot] Problems around fatwrite command from uboot

2013-03-04 Thread Mats Kärrman
2013/2/28 Damien HUANG damien...@hotmail.com After investigation, I believe the problem can be fixed at function set_cluster within file fat_write.c under directory /fs/fat (patch file was attached). Hi Damien, I found no trace of your patch in the mailing list (perhaps the attachment was

Re: [U-Boot] Problems around fatwrite command from uboot

2013-03-01 Thread Jean Louis
Date: Thu, 28 Feb 2013 12:21:53 +0100 Subject: Re: [U-Boot] Problems around fatwrite command from uboot To: damien...@hotmail.com CC: sc...@jumpnowtek.com; u-boot@lists.denx.de; s...@bcodeme.com Hi, I confirm that your patch correct my problem and the bug disappear. The question is : why

Re: [U-Boot] Problems around fatwrite command from uboot

2013-02-28 Thread Jean Louis
occur, so the above message being displayed. Cheers, Damien -- From: 1978...@gmail.com Date: Wed, 27 Feb 2013 09:02:42 +0100 Subject: Re: [U-Boot] Problems around fatwrite command from uboot To: damien...@hotmail.com Hi Damien, I have only patched as I say

Re: [U-Boot] Problems around fatwrite command from uboot

2013-02-25 Thread Jean Louis
Hi Lukasz, I test with an extended timeout and no effect. I already test multiples SD with very good quality SD Card with same problem (30-40 MB read / 10-20 MB write + SLC) ( just under the UHS-I SD cards ) The problem appears when FAT (or FAT entries) is inconsistent and despite a repair, the

[U-Boot] Problems around fatwrite command from uboot

2013-02-21 Thread Jean Louis
Hi, I use the last uboot from your git and boot with it on AM3517 EVM from SD card without NAND. I use this option in uboot config : #define CONFIG_FAT_WRITE 1 I use intensively fatload / fatwrite commands at the boot before kernel loading. Sometimes, in about 2% of cases of boot, the FAT

Re: [U-Boot] Problems around fatwrite command from uboot

2013-02-21 Thread Mats Kärrman
...@lists.denx.de] on behalf of Jean Louis [1978...@gmail.com] Sent: Thursday, February 21, 2013 12:33 PM To: u-boot@lists.denx.de Subject: [U-Boot] Problems around fatwrite command from uboot Hi, I use the last uboot from your git and boot with it on AM3517 EVM from SD card without NAND. I use this option

Re: [U-Boot] Problems around fatwrite command from uboot

2013-02-21 Thread Mats Kärrman
Jean Louis wrote: Many thanks for your great help, I change the code as you say by : ~line 659: if ((fat_val == 0xfff mydata-fatsize == 32) || (fat_val == 0x mydata-fatsize == 16)) break; ~line 904: if ((curclust =

Re: [U-Boot] Problems around fatwrite command from uboot

2013-02-21 Thread Jean Louis
] on behalf of Jean Louis [1978...@gmail.com] Sent: Thursday, February 21, 2013 12:33 PM To: u-boot@lists.denx.de Subject: [U-Boot] Problems around fatwrite command from uboot Hi, I use the last uboot from your git and boot with it on AM3517 EVM from SD card without NAND. I use this option

Re: [U-Boot] Problems around fatwrite command from uboot

2013-02-21 Thread Tom Rini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/21/2013 05:05 PM, Mats K¦rrman wrote: Jean Louis wrote: Many thanks for your great help, I change the code as you say by : ~line 659: if ((fat_val == 0xfff mydata-fatsize == 32) || (fat_val == 0x mydata-fatsize == 16))

Re: [U-Boot] Problems around fatwrite command from uboot

2013-02-21 Thread Jean Louis
Hi Mats and Tom, (sorry for precedent duplicate email) I currently test with the correction. I see that not help me to exit from the case I have described but I think that avoid or significantly reduce future problems with a sane card. I use mainly FAT32 (not FAT12). I think also that the

Re: [U-Boot] Problems around fatwrite command from uboot

2013-02-21 Thread Lukasz Majewski
Hi Jean, Hi, I use the last uboot from your git and boot with it on AM3517 EVM from SD card without NAND. I use this option in uboot config : #define CONFIG_FAT_WRITE 1 I use intensively fatload / fatwrite commands at the boot before kernel loading. Sometimes, in about 2% of cases