Title: New Boot Partition for Dual-Boot [Print This Page] Author: dewet Time: 3/5/2016 11:17 Title: New Boot Partition for Dual-Boot Android support the following boot modes:
1. reboot loader
2. reboot recovery
It means that we can also switch the system when dual booting in a diffent way.
Ubuntu booting can be installed in a new independent partition named ramfs instead of the Recovery partition.
So here I describe how to add ramfs boot mode for Ubuntu.
Please add all the patches manually as the locations will differ in every SDK.
Now you can flash the linux-boot.img image to ramfs partition instead of Recovery partition and still keep the Android Recovery or flash TWRP Recovery to it while still dual-booting
Will also need to add ramfs partition info to the first screen of AndroidTool v2.35
I hope Firefly Team will implement this into their next dual-boot firmware to have an extra partition for dual-booting.
Author: busybee Time: 3/7/2016 14:58
Wow, that's a triple booting
We currently have a solution of extracting Android recovery image flashed in "backup" partition and booting it, when the Linux initrd in "recovery" partition checks that no special flag is resident in "misc" partition.
Your solution is more complete. We'll evaluate it. Author: busybee Time: 3/7/2016 15:02
And what're the commands of switch OS between Android and Linux?Author: dewet Time: 3/8/2016 01:40 Last edited by dewet In 3/8/2016 01:43 Editor
From Android - reboot ramfs
From Linux - reboot android
No special scripts are needed to change misc.img to boot to another partition.
As easy as that.
Can also put into a script if needed then it will look like eg. reboot.sh script for Android:
#!/bin/sh
Reboot --ramfs $@
Then something like that can also be put on Firefly power menu to boot to Linux.
If turned off from Linux and device turned on again will automatically boot to Android again since misc.img is empty. But can change the misc.img also if needed to have extra string instead of 'recovery' maybe then 'ramfs' or something so it automatically boots to Linux like Firefly is currently doing to make it permanent if needed.
When Marshmallow firmware is released for Firefly then people can also install TWRP recovery and flash Xposed framework that don't currently work on Lollipop firmware then 2 partitions - recovery, and ramfs will be needed for users.
Welcome Firefly Open Source Community (https://bbs.t-firefly.com/)