This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SK-AM62: How to repackage base image folder after extracting from tar.xz?

Part Number: SK-AM62

In AM62xx-evm SDK, there are 4 filesystem images, namely "base image", "default image", " boot-strap image", "thinlinux image".

After extracting the compressed folder, what is the appropriate way to recompress it back into it's tar.xz format to be able to flash into the SK-AM62 board?

Currently we have tried using the direct compression option on Linux, however the u-boot interface will state it is "Bad Linux ARM64 image magic!"

Our question is: What's the correct way to re-compress the image to be able to be used as filesystem again?

PS: The original "base image" file contents are not modified, however after direct re-compression the filesystem cannot be used after flashing into the board.

Thanks in advance,

Chris

  • Hi Chris,

    generally speaking I'd recommend making any changes to Yocto itself, and use that to generate a clean/new SD card image.

    Also from the error messages you show it seems like the path structure of the original image vs the updated archive is different. Can you do a 'tar -tvf ...' on both the original image, and the new tarball, to see if there are any differences in directory structure?

    Regards, Andreas