[U-Boot-Users] [PATCH] FAT32 access on USB memory sticks

Joachim Jaeger jjaeger at fsforth.de
Fri Nov 18 17:26:58 CET 2005


Hi,

I have had following problem with ARM9 CPUs NS9360, NS9750, S3C2410 and
S3C2440:

Using fatload command with 2GB USB memory stick lead to data abort and
reset of CPU.

The reason herefor is, that the access to the variable fatbuf produces
an alignment error, if FAT32 is used.

Attached patch moves the variable fatbuf to top of the structure, where
it is defined, so that accesses to this variable are always aligned.

CHANGELOG:
  Fix access via fatload command on FAT32 formatted partitions
  Patch by Joachim Jaeger, 18 Nov 2005

Signed-off-by: Joachim Jaeger <joachim_jaeger at digi.com>


Best regards
Joachim Jaeger

-- 
FS FORTH-SYSTEME GmbH
A Digi International Company
Kueferstr. 8, D-79206 Breisach
Phone: +49 (7667) 908-0, FAX +49 (7667) 908-200
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fat32.patch
Url: http://lists.denx.de/pipermail/u-boot/attachments/20051118/9164f75c/attachment.txt 


More information about the U-Boot mailing list