Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 14 lines (11 sloc) 493 Bytes
#!/bin/sh
SNAPPY_IMAGE=uc16-roseapple-pi-`date +%Y%m%d`-0.img
sudo /snap/bin/ubuntu-image -d -c stable \
--extra-snaps alsa-utils \
--image-size 3800M roseapple.model
#sudo dd conv=notrunc if=./gadget/bootloader.bin of=${SNAPPY_IMAGE} seek=2097664 oflag=seek_bytes
#sudo dd conv=notrunc if=./gadget/u-boot.bin of=${SNAPPY_IMAGE} seek=3145728 oflag=seek_bytes
if [ -f roseapple-pi.img ]; then
sudo mv roseapple-pi.img ${SNAPPY_IMAGE}
sudo pxz -0 uc16-roseapple-pi-`date +%Y%m%d`-0.img
fi