[U-Boot-Users] error while loading image with fatload.

Hi,
We are using u-boot-1.1.1, and trying to load the uImage from the FAT partition,
The board has a 20GB harddisk, and we have created 3 partitions in that, using fdisk, and the 3rd partition is of type FAT, we have copied the uImage and the Ramdisk image on the FAT partition, and while trying to load the uImage from the same, we are getting the following error, the fat partition type is showing as c (win95 FAT(LBA))
$ fatload ide 0:3 0xa0100000 uimage reading uimage FAT32, fatlength: 8568 Rootdir begins at sector: 17168, offset: 862000, size: 32 Data begins at: 17104 Cluster size: 32 Rootvfatname: |bcm | RootMismatch: |au|bcm | Rootvfatname: |uimage| RootName: uimage~1, start: 0x3, size: 0xc4d60 Filesize: 806240 bytes Reading: 806240 bytes gc - clustnum: 3, startsect: 17200 curclust: 0xfff0004 Invalid FAT entry Size: 806240, got: 16384
We are able to list the contents using the fatls command, what could be the reason for the above error..?
regards,

In message eae046ff05021008561c64efed@mail.gmail.com you wrote:
We are using u-boot-1.1.1, and trying to load the uImage from the FAT partition,
Did you try a more recent version of U-Boot?
...
curclust: 0xfff0004 Invalid FAT entry Size: 806240, got: 16384
We are able to list the contents using the fatls command, what could be the reason for the above error..?
Ummm - maybe an invalid FAT entry?
Are you absolutely sure your FAT filesytem does not contain any inconsistencies? Can you read the file under an OS?
Best regards,
Wolfgang Denk

Hi,
Did you try a more recent version of U-Boot?
We have tried the source for the fat from recent version of U-Boot, but then the same thing is happenning,
Are you absolutely sure your FAT filesytem does not contain any inconsistencies? Can you read the file under an OS?
We are able to read & write to the FAT partition under linux and QNX, as earlier, we are getting the same error message indicating for an Invalid FAT entry, after executing the fatload command.
We first formatted the harddisk in windows, and tried to load, after failure, then formatted the harddisk in linux (using mkdosfs, in the host machine)
Should we use the e2fsprogs utilities compiled for ARM, instead of host machine's utilities...?
Any hints so as to avoid this error..
regards,
participants (2)
-
Sharad P. Katti
-
Wolfgang Denk