This patch fixed two bugs found in fat.h. It is a diff with U-Boot-1.0.0 (10/29/2003).
1. The number of FAT12 entries in FAT12 buffer was calculated incorrectly. As a result, you are not able to read any big file using more 2048 FAT12 entries.
2. data_begin in fsdata struct can be negative depending on the FAT system layout. If it happens, wrong sectors are requested by fat code.
Best Regards,
Jian Zhang