Прошивка EMMC в модуле NMS-SM-RK3568

dev=/dev/mmcblk0
echo 'o n p 1 32768 +1G n p 2 2129920 +1G n p 3 4227072 +1500M a 1 w' | tr ' ' '\n' | fdisk -u ${dev}
fw=/tmp
dd if=${fw}/idblock.bin of=${dev} seek=64
dd if=${fw}/uboot.itb of=${dev} seek=16384
mkfs.ext4 /dev/mmcblk0p1
mount /dev/mmcblk0p1 /opt/
mkdir /mnt/sdcard
mount /dev/mmcblk1p1 /mnt/sdcard
cd /mnt/sdcard/
cp -ra Image extlinux logo.bmp rk-kernel.dtb rk3568-inmys-smarc-evm.dtb rootfs.cpio.gz /opt/
sync
cd /
umount /opt
umount /mnt/sdcard