Create bootable SD card for NanoPi2/NanoPi S2/NanoPi2 Fire/NanoPi M2/NanoPC T2/Smart4418
# git clone https://github.com/friendlyarm/sd-fuse_nanopi2.git
# cd sd-fuse_nanopi2
# sudo ./fusing.sh /dev/sde android
# git clone https://github.com/friendlyarm/sd-fuse_nanopi2.git
# cd sd-fuse_nanopi2
# wget https://112.124.9.243/dvdfiles/S5P4418/images-for-eflasher/android-lollipop-images.tgz
# tar xvzf android-lollipop-images.tgz
Now, Change something under the android directory, for example, replace the file you compiled, then build android bootable SD card:
# sudo ./fusing.sh /dev/sde android
or build an sd card image:
# sudo ./mkimage.sh android
# git clone https://github.com/friendlyarm/sd-fuse_nanopi2.git
# cd sd-fuse_nanopi2
# sudo ./mkimage.sh eflasher
# DEV=`losetup -f`
# losetup ${DEV} s5p4418-eflasher-sd8g-20170819.img
# partprobe ${DEV}
# sudo mkfs.vfat ${DEV}p1 -n FRIENDLYARM
# mkdir -p /mnt/fat
# mount -t vfat ${DEV}p1 /mnt/fat
# sudo wget -qO- https://112.124.9.243/dvdfiles/S5P4418/images-for-eflasher/core-qte-images.tgz | tar xvz -C /mnt/fat --strip-components=1
# umount /mnt/fat
# losetup -d ${DEV}