Unpacking XIP files on Linux:
- Install xar from https://mackyle.github.io/xar/
- Install pbzx from https://github.com/NiklasRosenstein/pbzx
(use
gcc -llzma -lxar -I /usr/local/include pbzx.c -o pbzx
and copy the binary into your PATH) - use
xar -xf XIP_FILE -C /path/to/extract/to
- Change to the directory where you extracted the file.
- Use
pbzx -n Content | cpio -i
to extract the contents.
Hi, the following worked for me (inverted lib order while linking) :
sudo ldconfig # after installing xar gcc pbzx.c -o pbzx -llzma -lxar