During the experiments, to enable multi-boot on firmware version dualOS, I found an interesting behavior of VIM. If you record to external media version Armbian (something on the media was part of ROOTFS). To connect this device to VIM and run Android mode āReboot to Ubuntuā. When you start to be launched version of the ārootfsā external media. Kernel will be taken from the internal memory, and the whole rootfs from external. For example, you can record the latest version Armbian to external media and when you start you will get a āhybridā system, kernel the old and the new root system. This way I am launched version Armbian Ubuntu Mate and performed from the backup to a compressed full backup of the internal content eMMX (command as root ādd_backup_xā).
Hello,
Iām very new to this forum an to the khadas VIM (Iāve the pro version);
Iāve installed the dual OS to my emmc;
iām happy enough with both the android and the ubuntu.
But can someone please tell if it is possible to upgrade only the ubuntu āpartitionā now that an updated img has been published ?
All the instruction Iāve found seem to only deal with single OS contexts wher fully replacing the emmc content with the ubuntu img is the norm.
Hi, Ravelo:
I think itās possible to archive this, but I also need some research. And following are the thinking: 1) Upack the new released Ubuntu ROM and get boot.img and rootfs.img 2) Boot into U-Boot mode 3) Follow U-Boot usage guidance to upgrade the boot.img and rootfs.img manually.
Hi Gouwa.
There is an option to automate the update process. Alternatively, if you have enabled multiboot. Multiboot is in fact the autostart script with the specified name. The contents of a script can be very different. Including procedure updates. Creates a script to record the desired image (boot.img rootfs.img u-boot.img android-system.img etc). Creates an image with this script and a set of archives. The user downloads the image. Write to the media. VIM connects to and enables it. The script overwrites all the machine itself (the dd command with the necessary parameters communication file archive=section for updates).
By the way, you can make universal image (to run from external media SD or USB) minimum system and script (s905_autoscript) , which will automatically connect to an external server on Your side. Checks specific files , downloads, verifies the checksum and if everything is correct the automatic updates section in the internal memory (eMMC). The user that does not need to be done in manual (will not be problems and mistakes from wrong user actions). You can add validation of the model and the size of the internal memory.
Okay, since I spent a bunch of time trying to understand this and asking my self how/why this was the case, for those of you who happen to choose to use the Dual Boot image listed here and you end up with a Ubuntu rootfs volume that is only 4GB in size, it is because for some reason at first boot either the script didnāt run or doesnāt exist to perform the needed resize2fs on the rootfs volume. In my case I ended up with only a 4GB /dev/rootfs volume, though when running fdisk -l /dev/rootfs showed it was 8GB in size. I was perplexed because it seems you can not make/edit partitions on the eMMc like you would a normal disk, so I was stuck asking my self, how do I resize the partition on this thing?
So after thinking about this, while it would still be nice to know how you can manually make changes to the partition table, the answer was, at least in my case, it had failed to run āresize2fs /dev/rootfsā on my volume after/on first boot. Running this will enlarge the volume to take up the full 8GB and allow you full access to the 8GB promised. (Side note: in the topic it mentions 6GB for Android and 10Gb for Ubuntu, this is in GB instead of GiB, so in reality you end up with 6GiB Android and 8GiB Ubuntu for a total of 14.6GiB or 16GB).
Also, @Gouwa if you can point me to how you can make manual partition table changes on the eMMc it would be appriciated.
Hi, Iām very new to khada and have managed to get android working with the VimPro_DualOS_Marshmallow_Ubuntu-16.04_170124 image although Iāve not managed to boot into Ubuntu.
When I press and hold the power button I donāt get the options listed in the screenshot. Just Power off and Reboot. Equally pressing the function button while turning on boots into Android and not Ubuntu.
Have I missed anything or or there another way? Thanks in advance.
The VIM canāt boot ubuntu when you press the function button.
You need to boot into android system and long press power button. Then you can reboot to ubuntu
Yes, it is very unfriendy
The better method is that always boot to what you selected, until you change it and then always boot that.
what do you think about this?
We will add support for that in next release DualOS.