Skip to content

Instantly share code, notes, and snippets.

@rogeliodh
Created January 20, 2017 22:31
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rogeliodh/2134fc19152e36ba7ffd34b3136d3635 to your computer and use it in GitHub Desktop.
Save rogeliodh/2134fc19152e36ba7ffd34b3136d3635 to your computer and use it in GitHub Desktop.
script to unpack Fiio's X1ii firmware files
#!/bin/sh
set -e
mkdir -p myfw
tar zxvf X1II.fw -C myfw
# unyaffs2 from yaffs2utils is not working
#sudo ./unyaffs2 myfw/fifo_rootfs.yaffs2 myfw/fifo_rootfs
# Use unyaffs from ubuntu's unyaffs package (apt-get install unyaffs)
sudo unyaffs myfw/fifo_rootfs.yaffs2 myfw/fifo_rootfs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment