Skip to contentSkip to conversation

error while loading image with fatload.

U-Boot-Users Sharad P. Katti 2 participants 3 messages Feb 10, 2005 – Feb 11, 2005

lore
Share & tools
lore
#0 lore raw

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,

Signature · 3 lines
Sharad P.Katti

"GOD is real, unless declared as an int"
#1 lore raw
Quoted 2 lines · In message <[email protected]> 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?

...

Quoted 6 lines

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

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If you're not part of the solution, then you're part of the  precipi-
tate.
#2 lore raw

Hi,

Quoted 3 lines

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,

Quoted 4 lines

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,

Signature · 3 lines
Sharad P.Katti

"GOD is real, unless declared as an int"