Hold on a second, take a step back.
Most things are possible. BUT - the most important issues in my mind are:
- WHAT are you trying to achieve?
My point is your eMMC is most likely already formatted and partitioned in a reasonably optimum way. Unless you are an expert you are likely to make things worse or even stop your VIM2 working.
So - what do you have? Probably very similar to me (I have a VIM2 running the Khadas Ubuntu 16.04 image that I have upgraded to 17.10, running Openbox for a X window system). On my machine running the df command in a terminal window gives
$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 1.3G 0 1.3G 0% /dev
tmpfs 300M 17M 284M 6% /run
> /dev/rootfs 58G 25G 31G 45% /
tmpfs 1.5G 32M 1.5G 3% /dev/shm
tmpfs 5.0M 8.0K 5.0M 1% /run/lock
tmpfs 1.5G 0 1.5G 0% /sys/fs/cgroup
/dev/mmcblk1p1 118G 86G 26G 78% /home/sdcard
tmpfs 300M 16K 300M 1% /run/user/1000
The line I have made bold shows I have a partition called /dev/rootfs mounted as my root (/) partition. It is 58Gb big of which 25Gb is used. In fact this is the majority of my eMMC, and all the required partitioning and formatting was effectively done when I first flashed the image. (It also shows I have a 128Gb sdcard, effectively 118Gb, mounted as /home/sdcard).
Now you will struggle to format your root partition while you are running linux from it. If you really want to I would recommend you boot an operating system from an sdcard and then format the eMMC. But my second question is WHY? This is all done magically for you when you flash a Khadas or Balbes150 image and they know a lot better than me.
For your interest: as in my first reply if you open a terminal and type dmesg | grep “mmcblk” you will see how your eMMC is partitioned - in my case it is known as mmcblk0 and it has several partitions which are needed to get an Amlogic CPU to boot linux:
…boot0, boot1 & pmb are super special.
the rest are called mmcblk0p01/02/03/04/05/06 and their purpose is similar to their name. But I certainly do not have large amounts of unused eMMC that I can format and use.
And I doubt you do either.