Create bootable SD card for NanoPi-R2S/NanoPi-NEO3
Unplug all usb devices:
ls -1 /dev > ~/before.txt
plug it in, then
ls -1 /dev > ~/after.txt
diff ~/before.txt ~/after.txt
git clone https://github.com/friendlyarm/sd-fuse_rk3328.git
cd sd-fuse_rk3328
sudo ./fusing.sh /dev/sdX friendlycore-lite-focal-arm64
You can build the following OS: friendlycore-lite-focal-arm64, friendlywrt.
Because the android system has to run on the emmc, so you need to make eflasher img to install Android.
Notes:
fusing.sh will check the local directory for a directory with the same name as OS, if it does not exist fusing.sh will go to download it from network.
So you can download from the netdisk in advance, on netdisk, the images files are stored in a directory called images-for-eflasher, for example:
cd sd-fuse_rk3328
tar xvzf ../images-for-eflasher/friendlycore-lite-focal-arm64-images.tgz
sudo ./fusing.sh /dev/sdX friendlycore-lite-focal-arm64
First, download and unpack:
git clone https://github.com/friendlyarm/sd-fuse_rk3328.git
cd sd-fuse_rk3328
wget http://112.124.9.243/dvdfiles/RK3328/images-for-eflasher/friendlycore-lite-focal-arm64-images.tgz
tar xvzf friendlycore-lite-focal-arm64-images.tgz
Now, Change something under the friendlycore-lite-focal-arm64 directory, for example, replace the file you compiled, then build friendlycore-lite-focal-arm64 bootable SD card:
sudo ./fusing.sh /dev/sdX friendlycore-lite-focal-arm64
or build an sd card image:
./mk-sd-image.sh friendlycore-lite-focal-arm64
The following file will be generated:
out/rk3328-sd-friendlycore-bionic-4.4-arm64-yyyymmdd.img
You can use dd to burn this file into an sd card:
dd if=out/rk3328-sd-friendlycore-bionic-4.4-arm64-20181112.img of=/dev/sdX bs=1M