Skip to content

Instantly share code, notes, and snippets.

@rogeliodh
Created January 20, 2017 22:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rogeliodh/b9585bab3153aa031cc0030f4d7b8c38 to your computer and use it in GitHub Desktop.
Save rogeliodh/b9585bab3153aa031cc0030f4d7b8c38 to your computer and use it in GitHub Desktop.
script to repack Fiio's X1ii firmware files
#!/bin/sh
set -e
cd myfw
# mkyaffs2 from mkyaffs2 0.2.9_20120815
sudo ../mkyaffs2 fifo_rootfs fifo_rootfs.yaffs2
echo -n `md5sum fifo_rootfs.yaffs2 | cut -c1-32` > fifo_rootfs.yaffs2.md5
tar zcvf ../X1II.repacked.fw fifo_uimage fifo_uimage.md5 fifo_uimageesmt fifo_uimageesmt.md5 fifo_rootfs.yaffs2 fifo_rootfs.yaffs2.md5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment