[U-Boot-Users] [PATCH] bug fixes for fat.h

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

In message F886CE4F008AD711819B00508BE3802E0616307B@dlee15.itg.ti.com you wrote:
This patch fixed two bugs found in fat.h. It is a diff with U-Boot-1.0.0 (10/29/2003).
- 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.
- data_begin in fsdata struct can be negative depending on the FAT system
layout. If it happens, wrong sectors are requested by fat code.
Thanks, added.
Best regards,
Wolfgang Denk
participants (2)
-
Wolfgang Denk
-
Zhang, Jian