Created
January 20, 2017 22:32
-
-
Save rogeliodh/b9585bab3153aa031cc0030f4d7b8c38 to your computer and use it in GitHub Desktop.
script to repack Fiio's X1ii firmware files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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