If you need to change the size of partitions, you need to change their description in the dtb file (change the description in the dts file and collect a new variant with the dtc utility). However, if you use the new option, you must manually move all the data from the old partitions to the new ones.
limit of 4 GB to be the DualOS firmware. This does not apply to Armbian. Flash to eMMC memory the firmware with one Android and then install to eMMC Armbian and you will get more than 12GB for Armbian system.
Here are the steps:
sudo dd if =. / Armbian_5.37_S9xxx_Ubuntu_xenial_3.14.29_server_20171226.img of = / dev / sda bs = 4M
sudo dd if = Uboot / VIM_Uboot_Nougat_171028 / u-boot.bin.sd.bin of = / dev / sda bs = 1 count = 444 && sync
sudo dd if = Uboot / VIM_Uboot_Nougat_171028 / u-boot.bin.sd.bin of = / dev / sda bs = 512 skip = 1 seek = 1 & & sync
I eject the sd card and reinstall it to check that I have two partitions (BOOT, ROOTFS).
cp /BOOT/dtg/kvim.dtb /BOOT/dtg.img
I install the card in a VIM to set up Armbian,
apt-get update apt-get upgrade apt-get install kbd
I stop Armbian and I eject the SD card.
I install the SD card, in the VIMPro which is already under Android.
I go to the settings, “Updates & Backup”
I select alm_autoscript
I am launching the update