Announcement
Collapse
No announcement yet.
Announcement
Collapse
No announcement yet.
I want Linux reboot to be a reboot to recovery
Collapse
X
-
Originally posted by R42owner View PostIf I have Linux booting from recovery and running on a SD card, is there a way to reboot to recovery when Linux reboots? Right now it reboots into Android and I have to reboot to recovery from there.
There is way to make it to reboot in recovery (you need specially crafted misc partition), but don't see much reasdon for it.
Try to extract misc partition from any of android upgrades, they boot in recovery first. If you can't, pm me, I will extract one for you
-
Here is what i see in android upgrade misc partition (one which boots in recovery at first boot):
00004000 62 6F 6F 74 2D 72 65 63 6F 76 65 72 79 00 00 00 boot-recovery...
00004010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00004020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00004030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00004040 72 65 63 6F 76 65 72 79 0A 2D 2D 77 69 70 65 5F recovery.--wipe_
00004050 61 6C 6C 00 00 00 00 00 00 00 00 00 00 00 00 00 all.............
I guess only string at 0x4000 is necessary, but you could experiment with it.
everything else in misc partition is 0.
Comment
-
Originally posted by mmm123 View PostAnd how will go back to android then?
There is way to make it to reboot in recovery (you need specially crafted misc partition), but don't see much reasdon for it.
Try to extract misc partition from any of android upgrades, they boot in recovery first. If you can't, pm me, I will extract one for you
Comment
-
Re: I want Linux reboot to be a reboot to recovery
Why don't use linuxium multiboot? If external sdcard with Linuxrootfs is present it boots in linux, if not, it boots android.
leolas.REMEMBER, YOUR FEEDBACK IS VERY IMPORTANT TO US.My devices:
Minix Neo X7; Minix Neo X8-H , Minix Neo Z64W & Z64 (Sponsored by Minix)
MK902 & MK902II(Sponsored by RKM)
Beelink M8B & Beelink R89 (Sponsored by Beelink)
Tronsmart VEGA S89H (Sponsored by Gearbest.com)
MELE-PCG03 (Sponsored by Gearbest.com) Discount Coupon:MPCG03
Ainol Intel Z3735 MiniPC(Sponsored by Gearbest.com)
Thanks to them I can try to support your devices http://freaktab.com/core/images/smilies/wink.png
Comment
-
Originally posted by leolas View PostWhy don't use linuxium multiboot? If external sdcard with Linuxrootfs is present it boots in linux, if not, it boots android.
leolas.
Comment
-
Originally posted by R42owner View PostI don't want the reboot to recovery to become the default boot. I want the Linux reboot to be reboot to recovery without changing the default boot. When powering on, the boot would be to Android in NAND so that I can shutdown to return to Android from Linux and reboot (reboot to recovery) to stay in Linux. Android already has this option in the reboot app but I'm getting the impression that the only way to make Linux reboot to recovery currently is to make it the default setting in the boot procedure.
If you want to reboot into linux - write misc partition as I mentioned before and it will reboot into linux. When you want to go back to android, set misc partition with zeros and next reboot will be in linux.
Still this is just a theory, I removed android from my device long ago, so I can't try if this works as expected.
Another solution could be to find source (or simply copy) reboot program from android custom roms. It has option "reboot recovery", I guess it will work in linux too.
Comment
-
Can I put Android on the SD card?
Originally posted by leolas View PostWhy don't use linuxium multiboot? If external sdcard with Linuxrootfs is present it boots in linux, if not, it boots android.
leolas.
Comment
-
Originally posted by R42owner View PostI think I want to reverse the location of OSes and put Linux in NAND and Android on the SD card. I haven't investigated the problems with cloning the Android fs on a SD card but I assume multiboot doesn't really care what is being booted. Are there obstacles to building an Android recovery that boots to the SD card?
So why you want to run android from sdcard and linux from nand? Sorry but it not make sense for me.
If we have a simple way to do something, (thanks to the great work of people like Alok, linuxium, etc...) why you want to complicate?
For me there is some options now:
You want only linux no android: You can ignore your sdcard and install linux in a external sdcard or install it in your nand and use then external sdcard like a extra storage.
You want linux and android: Install android in your nand and linux in your external sdcard, thanks to linuxium multiboot you can select easy the os or you can predefine with one boots.
You want only android: ok like the minipc was designed, no need of explanations in this option.
leolasREMEMBER, YOUR FEEDBACK IS VERY IMPORTANT TO US.My devices:
Minix Neo X7; Minix Neo X8-H , Minix Neo Z64W & Z64 (Sponsored by Minix)
MK902 & MK902II(Sponsored by RKM)
Beelink M8B & Beelink R89 (Sponsored by Beelink)
Tronsmart VEGA S89H (Sponsored by Gearbest.com)
MELE-PCG03 (Sponsored by Gearbest.com) Discount Coupon:MPCG03
Ainol Intel Z3735 MiniPC(Sponsored by Gearbest.com)
Thanks to them I can try to support your devices http://freaktab.com/core/images/smilies/wink.png
Comment
-
Originally posted by leolas View Postwell in that case you need to build your own kernel for android and give it the correct parameters to boot, change all partitions (user; userdata; cache; etc...) to sdcard. I never did it, but I think that maybe it can be possible, you will have a lot of problems to do it but maybe is possible, too much work for do it.
So why you want to run android from sdcard and linux from nand? Sorry but it not make sense for me.
If we have a simple way to do something, (thanks to the great work of people like Alok, linuxium, etc...) why you want to complicate?
For me there is some options now:
You want only linux no android: You can ignore your sdcard and install linux in a external sdcard or install it in your nand and use then external sdcard like a extra storage.
You want linux and android: Install android in your nand and linux in your external sdcard, thanks to linuxium multiboot you can select easy the os or you can predefine with one boots.
You want only android: ok like the minipc was designed, no need of explanations in this option.
leolas
Comment
-
Re: I want Linux reboot to be a reboot to recovery
Ahh, ok.
The easier way is to maintain android in nand, and install Linux in the sdcard, you use a kr42, right?
Omegamoon has a working config (I think) for mk888 (is clone of yours), and waser have config for your device, you only need that someone compile a working Linux kernel for your device, I will start soon to experiment with Linux in my QX1, if wasser have no time, I will try to make a working recovery image for the kr42 using waser or omegamoon configs.
leolas.REMEMBER, YOUR FEEDBACK IS VERY IMPORTANT TO US.My devices:
Minix Neo X7; Minix Neo X8-H , Minix Neo Z64W & Z64 (Sponsored by Minix)
MK902 & MK902II(Sponsored by RKM)
Beelink M8B & Beelink R89 (Sponsored by Beelink)
Tronsmart VEGA S89H (Sponsored by Gearbest.com)
MELE-PCG03 (Sponsored by Gearbest.com) Discount Coupon:MPCG03
Ainol Intel Z3735 MiniPC(Sponsored by Gearbest.com)
Thanks to them I can try to support your devices http://freaktab.com/core/images/smilies/wink.png
Comment
-
Originally posted by leolas View PostAhh, ok.
The easier way is to maintain android in nand, and install Linux in the sdcard, you use a kr42, right?
Omegamoon has a working config (I think) for mk888 (is clone of yours), and waser have config for your device, you only need that someone compile a working Linux kernel for your device, I will start soon to experiment with Linux in my QX1, if wasser have no time, I will try to make a working recovery image for the kr42 using waser or omegamoon configs.
leolas.
Comment
What's Going On
Collapse
There are currently 2070 users online. 0 members and 2070 guests.
Most users ever online was 63,956 at 18:56 on 20 March 2025.
Comment