Skip to content

Instantly share code, notes, and snippets.

@imrickysu
Created November 5, 2015 02:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imrickysu/5880a0b41ae595076af2 to your computer and use it in GitHub Desktop.
Save imrickysu/5880a0b41ae595076af2 to your computer and use it in GitHub Desktop.
pack sdsoc rootfs. Tested on 2015.2.
# refer to http://www.wiki.xilinx.com/Build+and+Modify+a+Rootfs
sh -c 'cd tmp_mnt/ && sudo find . | sudo cpio -H newc -o' | gzip -9 > new_initramfs.cpio.gz
mkimage -A arm -T ramdisk -C gzip -d new_initramfs.cpio.gz new_uramdisk.image.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment