Re: [U-Boot-Users] FW: USB SUPPORT get_vfatname

2008-04-30 Thread Adrian Filipi
On Fri, 25 Apr 2008, Adrian Filipi wrote: It looks like fat.c is not handling the case where the sectors/cluster is 1, and the rood directory spans multiple clusters. In my case I was getting garbage directoy info after the invalid fat error. The attached patch stops the code

Re: [U-Boot-Users] FW: USB SUPPORT get_vfatname

2008-04-27 Thread michael
Hi, I prepare a new versione of fat support to test in user space, with some modification of the function. So before to post a patch in u-boot mailing list, we can adjust the library. I send an archive that contains a first step in this direction Regards Michael [EMAIL PROTECTED] wrote:

Re: [U-Boot-Users] FW: USB SUPPORT get_vfatname

2008-04-27 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote: I prepare a new versione of fat support to test in user space, with some modification of the function. So before to post a patch in u-boot mailing list, we can adjust the library. I send an archive that contains a first step in this direction

Re: [U-Boot-Users] FW: USB SUPPORT get_vfatname

2008-04-27 Thread michael
Hi, Wolfgang Denk wrote: Please don;t do that. Please ALWAYS send proper patches, inlined, and plain text. Best regards, Wolfgang Denk You are right. I try to fix this problem. I don't send a patch but a user space version to help who want to fix fat32 problem on u-boot. I don't send

Re: [U-Boot-Users] FW: USB SUPPORT get_vfatname

2008-04-26 Thread michael
Hi, Time permitting, I will try to fix this remaining problem myself. Adrian, thanks for your insight into the problem and a potential solution. Sincerely, Ken Fuchs I think that is more simple to rewrite that code. It contains duplication and errors. I start to rewrite it in my spare

Re: [U-Boot-Users] FW: USB SUPPORT get_vfatname

2008-04-25 Thread michael
Hi, [EMAIL PROTECTED] wrote: Michael Trimarchi wrote: confirm that the problem is in fat.c file and I will try to fix. It has been confirmed that fatls does _not_ list all files on FAT32 filesystems. There are _no_ reports of fatls failing to list all files on FAT16 filesystems.

Re: [U-Boot-Users] FW: USB SUPPORT get_vfatname

2008-04-25 Thread Adrian Filipi
It looks like fat.c is not handling the case where the sectors/cluster is 1, and the rood directory spans multiple clusters. In my case I was getting garbage directoy info after the invalid fat error. The attached patch stops the code from rolling past the end of cluster. It looks

Re: [U-Boot-Users] FW: USB SUPPORT get_vfatname

2008-04-25 Thread Ken.Fuchs
:[EMAIL PROTECTED] Sent: Friday, April 25, 2008 10:45 To: Fuchs, Ken Cc: [EMAIL PROTECTED]; u-boot-users@lists.sourceforge.net Subject: Re: [U-Boot-Users] FW: USB SUPPORT get_vfatname Hi, [EMAIL PROTECTED] wrote: Michael Trimarchi wrote: confirm that the problem is in fat.c file

Re: [U-Boot-Users] FW: USB SUPPORT get_vfatname

2008-04-24 Thread michael
Hi, I try my fix and old version of u-boot system. The only different is the align of the buffer. The hardware that I have is tested with the 32Mb, 64Mb, 128Mb, 256Mb, and it works fine. I try the scripts without any problem... but the tests doesn't cover all the possibility. Can you send me a

Re: [U-Boot-Users] FW: USB SUPPORT get_vfatname

2008-04-24 Thread michael
Hi, just to know! What is the log if you define the USB_STOR_DEBUG in the usb_storage.c Can you send me the log? Regards Michael Adrian Filipi wrote: The patch didn't improve my first few test cases. CF and USB on an EP93xx board. I'm sending you an image off-list. Adrian

[U-Boot-Users] FW: USB SUPPORT get_vfatname

2008-04-23 Thread Ken.Fuchs
Michael, I copied all files in fs/fat from git repository u-boot-at91. Made trivial changes to compile it with my code base. Added your latest get_vfatname patch, but it had no effect on the issue. fatls still doesn't list filenames in some FAT32 filesystems, including the one built via the