On Thu, Aug 09, 2018 at 11:09:03PM +0800, Han Pengfei wrote:
So, either the tar filesystem does not recognize the image (wrong address?
wrong verson of mkimage? file was not loaded in memory by u-boot as
expected?), or there is a bug in the code somewhere.
while after some tracing debug, I found this:
0x809941b8 Partition::_Mount check for file_system: TAR Filesystem
tarfs: open partition success
skip_gzip_header check magic failed buffer[0]=0xac, buffer[1]=0x8b
tarfs: inflating failed: bad data!
skip_gzip_header check magic failed buffer[0]=0xac, buffer[1]=0xd1
tarfs: inflating failed: bad data!
tarfs: _Inflate partition failed
it seems that the `skip_gzip_header()` checking the magic header failed,
the code as below:
// check magic and skip method
if (buffer[0] != 0x1f || buffer[1] != 0x8b) {
TRACE(("%s check magic failed buffer[0]=0x%02x,
buffer[1]=0x%02x\n", __func__, buffer[0], buffer[1]));
return false;
}