From: Mark G. Lewis (Lewis@erg.sri.com)
Date: Thu Apr 18 2002 - 13:48:14 EDT
Hello,
I can now confirm that there is a bug in the vfat write command, in the
latest bootldr version 2.18.38. The exact bug occurs with both a 32
Megabyte Compact Flash, and a 340 MB IBM microdrive.
I use the following command to try to copy (for cloning) the root
partition from the ipaq:
vfat write 0x00040000 /not74.jf2 0x00fc0000
The bootldr appears to complete writing the file to the CF or
Microdrive, which I have reformatted, filled up with files containing
all ascii 'X' characters, then reformated again, and finally written a
single 1 megabyte all 'X' file to make a directory entry for the bootldr
vfat commands.
When I subsequently do 'vfat ls' I get the expected results:
boot> vfat ls
not74.jf2
attr=00000020
first_cluster=00000002
n_bytes=00FC0000
But a subsequent 'vfat read' fails:
boot> vfat read 0xc2000000 not74.jf2
vfat_find_file_entry: fname='not74.jf2'
dirname=''
basename='NOT74.JF2'
bytes read=00000A00
I then put the CF or Microdrive into my winXP Pro desktop, and it
reports of file with the expected name and of the expected size,
16,515,072 bytes, or 0xFC0000 bytes.
When I try reading the file thus written from Compact Flash to WinXP, I
get the following message:
"Cannot copy not74.jf2: The file or directory is corrupted and
unreadable."
I had to reformat the card before I could read a file from it again, so
I suppose that the directory got messed up, but perhaps not the
individual file entry.
By the way, when I have created root image files while running familiar
linux on the ipaq, using dd from the mtdblocks, this has worked
perfectly - for cloning. But an all bootldr solution seems like a much
better method. So I hope this will be corrected.
Thank you
Mark Lewis
This archive was generated by hypermail 2.1.5 : Fri Jan 17 2003 - 17:47:04 EST