How to: Linux Android OpenELEC triple boot (with boot menu)

Moderators: mdrjr, odroid

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby loboris » Sun May 31, 2015 7:56 pm

varma wrote:... and a little annoying white square at top left I have under linux and openelec
I installed latest stock lubunt 14.04 and latest openelec...

You can replace logo.img in your backup folder with the one you can download from Mega, then execute update_boot script to update boot section.
loboris
 
Posts: 161
Joined: Sat Jan 03, 2015 12:07 am
languages_spoken: english
ODROIDs: C1, XU4

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby areafo » Sun May 31, 2015 8:06 pm

Thank you for your fast feedback

Here is the solution

I fixed it, all i have to do is to gksudo pluma /etc/network/interfaces

There i have to change all eth0 to eth1
areafo
 
Posts: 3
Joined: Sun Apr 19, 2015 4:45 pm
languages_spoken: english
ODROIDs: C1

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby areafo » Sun May 31, 2015 8:29 pm

So next Problem :)

fs_resize is generating trouble. After fs_resize it is restarting to android, the boot menu is gone

How can I resize the linux partition=? gparted? Which of them I have to resize?

Thanks
areafo
 
Posts: 3
Joined: Sun Apr 19, 2015 4:45 pm
languages_spoken: english
ODROIDs: C1

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby loboris » Sun May 31, 2015 11:34 pm

areafo wrote:So next Problem :)

fs_resize is generating trouble. After fs_resize it is restarting to android, the boot menu is gone

How can I resize the linux partition=? gparted? Which of them I have to resize?

Thanks

You can use backup/restore/create scripts to copy the image to larger sd card. There are instructions in opening post (search for instalation on larger sd card).
About boot selection/problems see http://forum.odroid.com/viewtopic.php?f=112&t=8740#p89457
loboris
 
Posts: 161
Joined: Sat Jan 03, 2015 12:07 am
languages_spoken: english
ODROIDs: C1, XU4

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby varma » Mon Jun 01, 2015 7:35 pm

Update:

some small changes
you can now select default OS to boot and timeout to boot without key pressed. Edit bootsel.ini to set the options.
ini files are now external to script, so you can more easily adjust boot options to your needs


thank you very much! you've been really fast doing it
I'll try it ASAP!

You can replace logo.img in your backup folder with the one you can download from Mega, then execute update_boot script to update boot section.


thank you again!
I'll keep you updated
varma
 
Posts: 18
Joined: Fri Feb 27, 2015 3:56 pm
languages_spoken: english, italian
ODROIDs: ODROID C1

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby wrxtasy » Wed Jun 03, 2015 1:16 am

Finally !
Thanks to loboris and his constant tinkering with the scripts for Triple Boot, I now have this working flawlessly :)
These are the steps I used:

- Flashed this C1 HDMI fixed Android image to a SD card then
http://dn.odroid.com/S805/HDMI/selfinst ... DMI.img.xz
- sudo ./extract_android

- Extracted Ubuntu 14.04 LTS from this Official ODROID image,
http://dn.odroid.com/S805/Ubuntu/ubuntu ... 401.img.xz
- sudo ./extract_linux

- Flashed this HDMI fixed OpenElec 5.0.7 image to a SD card and..
https://doukki.net/lib/exe/fetch.php?me ... 7.0.img.gz
- sudo ./extract_openelec

- sudo ./create_tripleboot_sd
- sudo ./copy_to_sdcard

- replaced logo.img in the triple boot extract directory with the one from MEGA to fix the white square problem when using Ubuntu or OpenElec.
- sudo ./update_boot
- flashed the completed Tripleboot.img to a 16GB Sandisk SD card.

The Ubuntu 14.04 LTS release then required a Kernel Update, using the ODROID Utility to pull in the C1 HDMI fixed Kernel.
This Ubuntu image has Kodi Isengard Alpha2 that decodes 23.976fps (24p) HEVC (H265) video, reliably when using a refresh rate of 24Hz.
H264 video in Ubuntu appears to play perfectly 24p synced at 24Hz during brief testing with the new HDMI fixed Kernel.

For easy Triple Boot operation when using the C1 as a Media playback device I highly recommend the FLIRC usb IR receiver that can map a keyboard to any IR remote controls buttons. This works very well from the couch to select 1, 2 or 3 during boot.

Triple Boot has turned the little C1 beastie into an nice versatile media playback platform. THREE thumbs up ! :D
Last edited by wrxtasy on Tue Jun 09, 2015 10:12 pm, edited 1 time in total.
LibreELEC Krypton C1(+) HERE
LibreELEC Krypton C2 HERE
User avatar
wrxtasy
 
Posts: 1288
Joined: Wed May 13, 2015 1:59 pm
Location: Australia
languages_spoken: english
ODROIDs: C1, C1+, C2

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby varma » Mon Jun 08, 2015 11:59 pm

loboris wrote::!: Which OS is booted on power on/reboot is determined by the content of boot.ini file (in fat32, STORAGE partition)
  • To enter boot menu boot.ini = bootsel.ini
  • After you select to boot to linux, boot.ini = bootlinux.ini.
  • After Linux is started bootsel.ini is copyed to boot.ini again (in /etc/rc.local cp /media/android/bootsel.ini /media/android/boot.ini).
  • If that line is missing in rc.local, there will be no boot menu. (you can execute copy command in terminal, and place it to rc.local to correct this).
  • Same is true for Android and OpenELEC, onli bootandroid.ini and bootoelec.ini are used.


I broke someway the replace hack you made in Android. With Ubuntu and OpenELEC it works as expected
After loading Android it always reboots in Android without your choose menu.
I can manually replace the files every time with a good file manager (as total commander or ES File Explorer), but I'd like to fix it.
Where can I find the script? How does it work?

The only change I made from a working configuration is installing SuperSU and upgrading the binaries of SU as requested by SuperSU.

Thank you very much!

PS. with your suggestions I resolved the white square problem and set up the auto boot into OpenELEC! thanks again

EDIT: added more information
varma
 
Posts: 18
Joined: Fri Feb 27, 2015 3:56 pm
languages_spoken: english, italian
ODROIDs: ODROID C1

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby loboris » Tue Jun 09, 2015 8:35 am

varma wrote:...
I broke someway the replace hack you made in Android. With Ubuntu and OpenELEC it works as expected
After loading Android it always reboots in Android without your choose menu.
I can manually replace the files every time with a good file manager (as total commander or ES File Explorer), but I'd like to fix it.
Where can I find the script? How does it work?
...

You can backup your sd card with backup_from_sdcard script and then restore it with copy_to_sdcard script (not restore_to_sdcard !).
It will recreate init.d support and /etc/init.d/setboot in system partition which is responsible for boot switching.
All it does is
Code: Select all
/system/bin/cp /storage/sdcard0/bootsel.ini /storage/sdcard0/boot.ini
loboris
 
Posts: 161
Joined: Sat Jan 03, 2015 12:07 am
languages_spoken: english
ODROIDs: C1, XU4

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby iamisraeli » Sun Jun 21, 2015 4:58 pm

anyone can upload the image of latest version of triple boot os's
iamisraeli
 
Posts: 9
Joined: Fri May 15, 2015 5:29 am
languages_spoken: english russian hebrew
ODROIDs: C1

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby varma » Fri Jul 03, 2015 4:46 am

hi loboris

I have some more questions...

Is possible to run the upgrades in linux system? I mean Odroid Utility to update kernel and other softwares, and Ubuntu automatic updates too.
Should I then do this copy as you suggested?

" After upgrading linux kernel, don't forget to copy uImage, uInitrd and meson8b_odroidc.dtb to /media/android (FAT partition)"

Where should I find the new files?

An after that one more question...
Is possible to add LIRC support in the boot menu? How hard could it be to make it by my self?
varma
 
Posts: 18
Joined: Fri Feb 27, 2015 3:56 pm
languages_spoken: english, italian
ODROIDs: ODROID C1

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby loboris » Fri Jul 03, 2015 5:36 am

varma wrote:hi loboris
I have some more questions...

You don't have to use Odroid Utility, for update just run
Code: Select all
sudo apt-get update
sudo apt-get upgrade

If the kernel was upgrade there will be new uImage & uInitrd in /boot directory.

I don't think LIRC has anything to do with boot menu. If the kernel has support for LIRC, then you can use it. It is the same as if your run pore Linux installation.
If you mean to select boot option with IR, I don't see much use of it
loboris
 
Posts: 161
Joined: Sat Jan 03, 2015 12:07 am
languages_spoken: english
ODROIDs: C1, XU4

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby varma » Fri Jul 03, 2015 7:46 am

loboris wrote:I don't think LIRC has anything to do with boot menu. If the kernel has support for LIRC, then you can use it. It is the same as if your run pore Linux installation.
If you mean to select boot option with IR, I don't see much use of it


I mean exactly this use. :oops:
Android and OpenElec, when well set up, are completely usable with only a remote.
I configured an old PlayStation 2 remote that has a full number keypad, so I could use both OSes without even plugging a Keyboard, except at the boot when I should press a number...

loboris wrote:If the kernel was upgrade there will be new uImage & uInitrd in /boot directory


Thank you very much! :mrgreen:

PS. for all your hard work! :D
varma
 
Posts: 18
Joined: Fri Feb 27, 2015 3:56 pm
languages_spoken: english, italian
ODROIDs: ODROID C1

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby dreamcat4 » Fri Jul 10, 2015 9:16 pm

zalaare has now tagged OpenElec 5.0.7.0 -

https://github.com/zalaare/OpenELEC-Odroid/tree/5.0.7.0

Not sure what all the changes are. But some things might include:

[odroid] re-enable OpenVPN support
[opengles-mali] update Mali blobs for Odroid C1 (r5p0)
[odroid-c1] bump linux version 3.10.72+312f9be
dreamcat4
 
Posts: 47
Joined: Mon Jan 26, 2015 8:42 am
languages_spoken: english

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby luxmile » Fri Jul 10, 2015 10:30 pm

Tag this to my post list... Great work btw... :)
luxmile
 
Posts: 33
Joined: Wed Feb 25, 2015 10:52 am
languages_spoken: english

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby loboris » Sat Jul 11, 2015 12:35 am

dreamcat4 wrote:zalaare has now tagged OpenElec 5.0.7.0 -

https://github.com/zalaare/OpenELEC-Odroid/tree/5.0.7.0

Not sure what all the changes are. But some things might include:

[odroid] re-enable OpenVPN support
[opengles-mali] update Mali blobs for Odroid C1 (r5p0)
[odroid-c1] bump linux version 3.10.72+312f9be

You can upgrade OpenElec simply by coppying SYSTEM, INITRD & KERNEL files from OpenELEC upgrade package to STORAGE (FAT32) partition.
loboris
 
Posts: 161
Joined: Sat Jan 03, 2015 12:07 am
languages_spoken: english
ODROIDs: C1, XU4

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby dreamcat4 » Sat Jul 11, 2015 1:37 am

Ok, thanks Loboris!
dreamcat4
 
Posts: 47
Joined: Mon Jan 26, 2015 8:42 am
languages_spoken: english

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby Syllaris » Mon Jul 13, 2015 3:44 am

I'm having an hard time trying to build my own dual boot with android and linux.
Btw I'm getting stuck when I try to create the dual boot with the create_triple_boot script.
It says
ERROR reading /dev/sdb

Could you please help me to get it work ?
Syllaris
 
Posts: 6
Joined: Thu May 28, 2015 10:32 pm
languages_spoken: english, french, chinese, japanese
ODROIDs: Odroid C-1

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby janus2008 » Sat Jul 18, 2015 11:28 pm

I know it is the group for C1, but could this be working on the U3?
I tried without luck. Is it because of the diffrents between the two boards (uImage.sel, uInitrd.sel)? and if, any chance for an compilation to U3, or the source, so i can compile it my self?
Regards Jan
janus2008
 
Posts: 2
Joined: Sat Jul 18, 2015 11:09 pm
languages_spoken: Danish
ODROIDs: U3

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby loboris » Sat Jul 18, 2015 11:44 pm

janus2008 wrote:I know it is the group for C1, but could this be working on the U3?
I tried without luck. Is it because of the diffrents between the two boards (uImage.sel, uInitrd.sel)? and if, any chance for an compilation to U3, or the source, so i can compile it my self?
Regards Jan

I'm testing now the version for XU3/XU4, for now it works great. It will be ready next week.
I'll try to prepare also the "universal" version for most Odroid boards.
loboris
 
Posts: 161
Joined: Sat Jan 03, 2015 12:07 am
languages_spoken: english
ODROIDs: C1, XU4

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby janus2008 » Sun Jul 19, 2015 4:22 am

Sounds great, looking forward to try / use it in action.
Keep on the god work loboris
janus2008
 
Posts: 2
Joined: Sat Jul 18, 2015 11:09 pm
languages_spoken: Danish
ODROIDs: U3

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby mgarman » Tue Jul 21, 2015 11:44 am

Hi,

Can anyone help please on how to make Android the Default OS at 10sec. Cant find it in the ini file suggested above.

Thanks
mgarman
 
Posts: 2
Joined: Wed Jul 08, 2015 9:07 pm
languages_spoken: english
ODROIDs: Odroid-c1

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby loboris » Tue Jul 21, 2015 3:37 pm

mgarman wrote:Hi,

Can anyone help please on how to make Android the Default OS at 10sec. Cant find it in the ini file suggested above.

Thanks

You can set the option in bootsel.ini, then copy it to boot.ini
Code: Select all
# ======================================
# Default OS to boot, uncomment only one
# ======================================
#default_boot="linux"
default_boot="android"
#default_boot="openelec"

# ========================================
# Timeout to boot to default OS in seconds
# ========================================
boot_delay="10"

If you don't have these options ini file, please download newer scripts package.
If you have uInitrd.sel older than 05/31/2015 please download the newer version and replace the one on your sd card.
loboris
 
Posts: 161
Joined: Sat Jan 03, 2015 12:07 am
languages_spoken: english
ODROIDs: C1, XU4

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby mgarman » Tue Jul 21, 2015 3:52 pm

Thanks for the quick response. Also I had to change from eth0 to eth1 in interfaces to get Linux going. Not sure why I have no additional Network Interfaces or wireless on the C1.
Openelec does start but stops at the flash screen. I wonder if it's the same network issue. Any ideas?

Thanks for your help and great work.

Cheers
mgarman
 
Posts: 2
Joined: Wed Jul 08, 2015 9:07 pm
languages_spoken: english
ODROIDs: Odroid-c1

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby linuxator01 » Sun Jul 26, 2015 2:17 pm

Same issue here. First had to change the inferfaces file in linux to get network work and Openelec still freezes at the startup logo.
linuxator01
 
Posts: 5
Joined: Tue May 26, 2015 5:43 am
languages_spoken: english

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby bapuksz » Tue Jul 28, 2015 3:12 pm

linuxator01 wrote:Same issue here. First had to change the inferfaces file in linux to get network work and Openelec still freezes at the startup logo.


Hi just want to share my experience for this great work, for openelec issue, try to check bootoelec.ini, look at setenv bootrootfs "boot=LABEL=STORAGE disk=LABEL=oElec ro", and check the partition of your sdcard it contain oElec name.
bapuksz
 
Posts: 1
Joined: Tue Jul 28, 2015 3:03 pm
languages_spoken: english,bahasa
ODROIDs: Odroid C1

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby linuxator01 » Thu Jul 30, 2015 9:19 am

Yep bapuksz, thats been it. Setenv was ok but when i saw my extended partition in gparted there was

cache
bootsel
linux

So i renamed bootsel to oElec and everything worked! But that was Tuesday since then i'm just struggling with this whole project, many thanks for this great work but as i am struggling i couldn't find the joy. Now i don't want to tell what all problems occured, it was so much in 2days i atleast put my micro sd card atleast a 100 times in my laptop and back to the C1. But basically it was that as i have a 32gb card, 22Gb were unallocated and i wanted to fit it to my sd card. So i took the procedure described but create_tripleboot_sd kept saying ERROR!, whatever i did it couldn't create the extended partition that really sucked. So i ended up making the partitions with gparted myself and as then there was no u-boot, i modified the script so that it only added the u-boot section. And finally it got working!

Now that everything is working again, i want to come to my current problem, that i want to upgrade Openelec, by simply copying SYSTEM,KERNEL and INITRD from the upgrade package. But thats it then. When i do so Openelec freezes at the startup logo again!!! How is this possible?? I mean the partition is still called oElec ofcourse it was working just right now and i didn't change anything else. When i copy back those three files Openelec works. How could it be that the original three files work but the one from the upgrade package won't. That must mean that the scripts must have hardcoded something inside of the three files so it worked or the bootfiles have been adapted to the previous three files. Help please?
linuxator01
 
Posts: 5
Joined: Tue May 26, 2015 5:43 am
languages_spoken: english

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby loboris » Thu Jul 30, 2015 5:54 pm

:!: For OpenELEC upgrade please use the new script prepare_oelec_update (download from http://loboris.eu/prepare_oelec_update, make executable).
It extracts OpenELEC files and prepares INITRD for triple boot.

Usage:
Code: Select all
./prepare_oelec_update oelecupdate.tar [out_dir]

oelecupdate.tar is OpenELEC update archive
out_dir is output directoty, if not specified, directory OelecUPDATE is created in current directory.

After extraction, copy prepared files from out_dir to your STORAGE (fat) partition.
loboris
 
Posts: 161
Joined: Sat Jan 03, 2015 12:07 am
languages_spoken: english
ODROIDs: C1, XU4

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby linuxator01 » Fri Jul 31, 2015 6:20 am

Thanks loboris man, that works like a charm.
linuxator01
 
Posts: 5
Joined: Tue May 26, 2015 5:43 am
languages_spoken: english

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby dreamcat4 » Fri Jul 31, 2015 6:34 am

Hey loboris. Will you ever be buying the new xu4 ? It would be great to see that in distant future (an xu4 multi-boot)... Well I guess that would be same as xu3. Perhaps there was some mention about the xu3 previously? Cannot remember.
dreamcat4
 
Posts: 47
Joined: Mon Jan 26, 2015 8:42 am
languages_spoken: english

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby loboris » Fri Jul 31, 2015 6:44 am

dreamcat4 wrote:Hey loboris. Will you ever be buying the new xu4 ? It would be great to see that in distant future (an xu4 multi-boot)... Well I guess that would be same as xu3. Perhaps there was some mention about the xu3 previously? Cannot remember.

I have XU4. Multi boot is already working on it. I'm just fixing some problems so that it can be installed both on sd and emmc cards.
I'll upload the scripts very soon.
loboris
 
Posts: 161
Joined: Sat Jan 03, 2015 12:07 am
languages_spoken: english
ODROIDs: C1, XU4

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby linuxator01 » Sat Aug 01, 2015 9:29 am

One more problem :D

I was using Android when i accidentaly turned on its Wifi it then crashed. So now if i start Android it just keeps loading permanently. Now there's no way other than to reinstall it. That's why i wanted you to ask what i have to bear in mind for upgrading as this was a bug in this version and has been fixed in 4.4.2 (v1.6). I had done a backup with your backup-script earlier when my android was working but Openelec wasn't so I now copied from that Backup Folder the files for the userdata partition and system partition, i thought it now should be working, but it still keeps loading, could it be that it's been fixed now but something just need to be prepared like openelec needed to be?

Take your time with this one, OpenElec was more important.
linuxator01
 
Posts: 5
Joined: Tue May 26, 2015 5:43 am
languages_spoken: english

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby loboris » Thu Aug 06, 2015 11:47 pm

linuxator01 wrote:One more problem :D

I was using Android when i accidentaly turned on its Wifi it then crashed. So now if i start Android it just keeps loading permanently. Now there's no way other than to reinstall it. That's why i wanted you to ask what i have to bear in mind for upgrading as this was a bug in this version and has been fixed in 4.4.2 (v1.6). I had done a backup with your backup-script earlier when my android was working but Openelec wasn't so I now copied from that Backup Folder the files for the userdata partition and system partition, i thought it now should be working, but it still keeps loading, could it be that it's been fixed now but something just need to be prepared like openelec needed to be?

Take your time with this one, OpenElec was more important.

For restoring always use restore_to_sdcard script.
You can set skip_OpenELEC and skip_linux to yes in params to restore only Android.
loboris
 
Posts: 161
Joined: Sat Jan 03, 2015 12:07 am
languages_spoken: english
ODROIDs: C1, XU4

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby loboris » Thu Aug 06, 2015 11:50 pm

:!:
If anyone is interested in multiboot on Odroid XU3/XU4, it is now ready.
See http://http://forum.odroid.com/viewtopic.php?f=95&t=15403
loboris
 
Posts: 161
Joined: Sat Jan 03, 2015 12:07 am
languages_spoken: english
ODROIDs: C1, XU4

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby ulricthered » Sun Aug 16, 2015 1:26 am

Hi, great piece of work, many thanks! Just an observation from other posts to get my Ethernet working in ubuntu I had to change wlan0 to wlan1 in the interfaces file.
ulricthered
 
Posts: 3
Joined: Sun Aug 16, 2015 1:13 am
languages_spoken: english
ODROIDs: C1+

Re: How to: Linux & Android dual boot

Unread postby beedis » Wed Aug 19, 2015 9:18 pm

loboris wrote::!: I've uploaded the Android & Ubuntu-trusty dual boot image for 16GB card, created with my script.
Android & Ubuntu are Hardkernel's images with some small changes.
First boot is to Android, to boot to Ubuntu, rename boot.ini.bak to boot.ini and reboot (use QuickReboot).

Download from:
image: https://mega.co.nz/#!BNR3iAjI!JO9k_GsIJ5vGaW2eEwkG2tH9lli1moAr0VBJR0dk_Pk
md5sum: https://mega.co.nz/#!EBBmhb7D!TOFRpqbrudRxkmzGSTK3-WuSXbj3JlHurIhKheOmSn4

Please delete console=ttyS0,115200n8 from setenv bootargs in boot.ini.bak before booting, or replace with the following:

Code: Select all
ODROIDC-UBOOT-CONFIG

# Possible screen resolutions
# Uncomment only a single Line! The line with setenv written.
# At least one mode must be selected.

# setenv m "vga"             # 640x480
# setenv m "480p"            # 720x480
# setenv m "576p"            # 720x576
# setenv m "800x480p60hz"    # 800x480
# setenv m "800x600p60hz"    # 800x600
# setenv m "1024x600p60hz"   # 1024x600
# setenv m "1024x768p60hz"   # 1024x768
# setenv m "1360x768p60hz"    # 1360x768
# setenv m "1366x768p60hz"   # 1366x768
# setenv m "1440x900p60hz"   # 1440x900
# setenv m "1600x900p60hz"   # 1600x900
# setenv m "1680x1050p60hz"   # 1680x1050
# setenv m "720p"            # 720p 1280x720
# setenv m "800p"            # 1280x800
# setenv m "sxga"            # 1280x1024
setenv m "1080p"           # 1080P 1920x1080
# setenv m "1920x1200"       # 1920x1200

# HDMI DVI Mode Configuration
setenv vout_mode "hdmi"
# setenv vout_mode "dvi"

# HDMI BPP Mode
setenv m_bpp "32"
# setenv m_bpp "24"
# setenv m_bpp "16"

# UHS Card Configuration
# Uncomment the line below to __DISABLE__ UHS-1 MicroSD support
# This might break boot for some brand models of cards.
# setenv disableuhs "disableuhs"


# Disable VPU (Video decoding engine, Saves RAM!!!)
# 0 = disabled
# 1 = enabled
setenv vpu "1"

# Disable HDMI Output (Again, saves ram!)
# 0 = disabled
# 1 = enabled
setenv hdmioutput "1"

# Default Console Device Setting
# setenv condev "console=ttyS0,115200n8"        # on serial port
setenv condev "console=tty0"                    # on display (HDMI)
# setenv condev "console=ttyS0,115200n8 console=tty0"   # on both

# Boot Arguments
setenv bootargs "root=/dev/mmcblk0p6 rootwait ro \${condev} no_console_suspend vdaccfg=0xa000 logo=osd1,loaded,0x7900000,720p,full dmfc=3 cvbsmode=576cvbs hdmimode=\${m} m_bpp=\${m_bpp} vout=\${vout_mode} \${disableuhs}"

# Booting
fatload mmc 0:1 0x21000000 uImage
fatload mmc 0:1 0x22000000 uInitrd
fatload mmc 0:1 0x21800000 meson8b_odroidc.dtb
fdt addr 21800000

if test "${vpu}" = "0"; then fdt rm /mesonstream; fdt rm /vdec; fdt rm /ppmgr; fi

if test "${hdmioutput}" = "0"; then fdt rm /mesonfb; fi

bootm 0x21000000 0x22000000 0x21800000

It is full 16GB image, so it will take some time to unpack and copy to sd card.


Hi loboris, your files regarding dual boot image are no longer available, could you please upload them again?
Thanks and have a nice day!
beedis
 
Posts: 2
Joined: Wed Aug 19, 2015 8:52 pm
languages_spoken: english
ODROIDs: ODROID C1

Re: How to: Linux & Android dual boot

Unread postby loboris » Wed Aug 19, 2015 10:12 pm

beedis wrote:Hi loboris, your files regarding dual boot image are no longer available, could you please upload them again?
Thanks and have a nice day!

The link to the full multiboot image (on Mega) is on the bottom of the 1st post. If you are on Linux, you can build one using the scripts.
https://mega.co.nz/#F!A99jXBJZ!ZbWNk_-cRNOMj7ZOCSdauA
loboris
 
Posts: 161
Joined: Sat Jan 03, 2015 12:07 am
languages_spoken: english
ODROIDs: C1, XU4

Re: How to: Linux & Android dual boot

Unread postby beedis » Thu Aug 20, 2015 4:00 pm

loboris wrote:
beedis wrote:Hi loboris, your files regarding dual boot image are no longer available, could you please upload them again?
Thanks and have a nice day!

The link to the full multiboot image (on Mega) is on the bottom of the 1st post. If you are on Linux, you can build one using the scripts.
https://mega.co.nz/#F!A99jXBJZ!ZbWNk_-cRNOMj7ZOCSdauA


Hi loboris and thanks for quick reply. I know your script, but unfortunately I am not on Linux.
Hence I would appreciate your image.
Thanks and have a nice day.
beedis
 
Posts: 2
Joined: Wed Aug 19, 2015 8:52 pm
languages_spoken: english
ODROIDs: ODROID C1

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby emmdee » Sun Sep 13, 2015 1:11 pm

loboris wrote::!: Which OS is booted on power on/reboot is determined by the content of boot.ini file (in fat32, STORAGE partition)
  • To enter boot menu boot.ini = bootsel.ini
  • After you select to boot to linux, boot.ini = bootlinux.ini.
  • After Linux is started bootsel.ini is copyed to boot.ini again (in /etc/rc.local cp /media/android/bootsel.ini /media/android/boot.ini).
  • If that line is missing in rc.local, there will be no boot menu. (you can execute copy command in terminal, and place it to rc.local to correct this).
  • Same is true for Android and OpenELEC, onli bootandroid.ini and bootoelec.ini are used.



Started just now to create triple-boot image. Worked perfect until I installed Gapps and some other Apps, incl. Super SU and Busybox (own Pro Licence) on Android. After that it only boots into Android, no boot selection available anymore. Hardkernel screen flashes twice directly into Android. Any advise?
emmdee
 
Posts: 8
Joined: Fri Aug 14, 2015 9:38 am
languages_spoken: english
ODROIDs: c1, u3

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby emmdee » Mon Sep 14, 2015 5:23 am

loboris wrote::!: Which OS is booted on power on/reboot is determined by the content of boot.ini file (in fat32, STORAGE partition)
  • To enter boot menu boot.ini = bootsel.ini
  • After you select to boot to linux, boot.ini = bootlinux.ini.
  • After Linux is started bootsel.ini is copyed to boot.ini again (in /etc/rc.local cp /media/android/bootsel.ini /media/android/boot.ini).
  • If that line is missing in rc.local, there will be no boot menu. (you can execute copy command in terminal, and place it to rc.local to correct this).
  • Same is true for Android and OpenELEC, onli bootandroid.ini and bootoelec.ini are used.



Hallo Loboris,
I am a late starter with the Triple-Boot setup. Installed it with your script on a 16GB sdcard and it worked great. After I did update and upgrade on the vivid-mate installation I booted into Android and installed Gapps and some of my Apps incl. SuperSU and Busybox (own the Pro license) and did a reboot. My C1 starts directly into Android since than. The Hardkenel screen flashes twice, but no boot options anymore available. Any advise?
emmdee
 
Posts: 8
Joined: Fri Aug 14, 2015 9:38 am
languages_spoken: english
ODROIDs: c1, u3

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby loboris » Mon Sep 14, 2015 5:51 am

emmdee wrote:Hallo Loboris,
I am a late starter with the Triple-Boot setup. Installed it with your script on a 16GB sdcard and it worked great. After I did update and upgrade on the vivid-mate installation I booted into Android and installed Gapps and some of my Apps incl. SuperSU and Busybox (own the Pro license) and did a reboot. My C1 starts directly into Android since than. The Hardkenel screen flashes twice, but no boot options anymore available. Any advise?

I don't know what exactly happened.
You can try to manually copy bootsel.ini to boot.ini, boot menu should appear on next boot.
If you don't get boot menu after next reboot (after booting to Android), you can try to backup your sd card with backup_from_sdcard script and then recreate it with crate_tripleboot_sd script.
All files related with dual/tripple boot will be recreated on android partition and triple boot should work again.
Be careful to set the right source and destination in params.sh
loboris
 
Posts: 161
Joined: Sat Jan 03, 2015 12:07 am
languages_spoken: english
ODROIDs: C1, XU4

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby varma » Sun Sep 20, 2015 12:38 am

I solved this problem installing a init.d app from the store that re-enabled the initialization script
than you have to check there is the line that renames the boot.ini file in the right way
you could find something about it in one answer loboris gave me previously
varma
 
Posts: 18
Joined: Fri Feb 27, 2015 3:56 pm
languages_spoken: english, italian
ODROIDs: ODROID C1

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby greyv » Wed Sep 30, 2015 8:32 am

i am haveing issues extracting the openelec imagge. running the script fails with "platform_init not found". the files are created but when the create_tripleboot is run it says somethings not right and wants to format all the partitions. any help is appreciated. thx
greyv
 
Posts: 3
Joined: Mon Sep 28, 2015 11:06 am
languages_spoken: english

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby dugii » Wed Sep 30, 2015 8:53 pm

Hi guys,

few questions regarding triple boot:
- can we do it on eMMC memory as well (I would assume so providing you'll keep folder structure the same??)
- what would be the recommended card size not to restrict yourself with user data capability
- when using eMMC can you expand your user data space with SD card?

Reason why I'm asking is because I want to order C1+ but not sure which way to go SD card or eMMC and mulitiboot is one thing that I'm looking for.
Cheers
dugii
 
Posts: 6
Joined: Wed Sep 30, 2015 8:44 pm
languages_spoken: english, polish
ODROIDs: C1+ with HIFi shield

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby greyv » Tue Oct 06, 2015 6:21 am

think i found the problem with the extract_openelec script the part

Code: Select all
if [ ! -f platform_init ]; then
    echo "platform_init not found."
    exit 1
fi


should probably be the same as the update script which is

Code: Select all
if [ ! -f platform_init ]; then
    echo "#!/bin/sh" > platform_init
    chmod +x platform_init
fi


i got that part to work making those changes. but something is still wrong with the boot process. it only boots android and never executes the boot.ini scripts.

tried it on three different machines. lol. i have the c+. maybe a difference in the boot process?
greyv
 
Posts: 3
Joined: Mon Sep 28, 2015 11:06 am
languages_spoken: english

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby Jacki » Wed Oct 07, 2015 9:06 pm

Hi guys,

I try to create a triple boot sd card with Linux, KitKat_PocketRocket(burn to a usb key) and Openeclec, but i have some problems.

I have no errors to extrating Android except expr:
***********************************************
* Extracting structure of android SD Card *
* and copying partitions data to directories *
***********************************************
Analyzing sd card ...
expr: erreur de syntaxe

expr: erreur de syntaxe
SDCard size: blocks, M
------------------------------------------------
first block last block size
storage part: 7389184 11583487 2048 M
system part: 49152 2146303 1024 M
userdata part: 2146304 6340607 2048 M
cache part: 6340608 7389183 512 M
------------------------------------------------

WARNING: Android files in odroid_triple_boot WILL BE UPDATED !, Continue (y/N)? y
Extracting android u-boot sections, 49152, 24M ...

Copying system partition ...
File system size: 433M

Copying userdata partition ...
File system size: 841M

Copying cache partition ...
File system size: 252M

Copying storage partition ...
File system size: 411M

=====================================================================
Android SDCard structure saved, filesystems extracted to directories.
=====================================================================

I have modified the script params.sh to fit a 32g sd card like this
# === example: 32GB card ===
storage_size=6144 # Android STORAGE partition (FAT32)
system_size=1024 # Android system partition (ext4)
userdata_size=4096 # Android userdata partition (ext4)
cache_size=512 # Android cache partition (ext4)
oelec_size=2048 # OpenELEC user data partition or SWAP partition

But when try the copu-to_sdcard script, I've got this errors

************************************************************
Copy directories to sdcard/image and prepare for triple boot
************************************************************


Analyzing sd card ...
expr: erreur de syntaxe

expr: erreur de syntaxe
SDCard size: blocks, M
------------------------------------------------
first block last block size
storage part: 49152 12632063 6144 M
system part: 12632064 14729215 1024 M
userdata part: 14729216 23117823 4096 M
cache part: 23117824 65535999 20712 M
------------------------------------------------

Bad SDCard partition structure 2!

Analyzing filesystems ...
----------------------------
system 432M OK
userdata 840M OK
cache 251M OK
storage 410M OK
./copy_to_sdcard: ligne 128 : [: 1339444 : opérateur unaire attendu
linux 1210M OK
----------------------------
.
WARNING: Partitions on SD card /dev/sdd WILL BE UPDATED !, Continue (y/N)? y.

Copying system partition ...
wait...
*Corecting fstab.odroidc ...

*Checking for the presence of sysinit in /system/bin...
sysinit not found, creating file...
Setting correct permissions and ownership for sysinit...

*Checking for the presence of install-recovery.sh...
install-recovery.sh is used for superuser, using install-recovery-2.sh instead...
*Setting the correct permissions and ownership for install-recovery.sh...
Also for install-recovery-2.sh if it exists...

mount: wrong fs type, bad option, bad superblock on /dev/sdd3,
missing codepage or helper program, or other error

In some cases useful info is found in syslog - try
dmesg | tail or so.
ERROR mounting /dev/sdd3

Can someone help me ?
Jacki
 
Posts: 8
Joined: Sun Sep 27, 2015 4:32 pm
languages_spoken: french
ODROIDs: ODROID C1+

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby loboris » Wed Oct 07, 2015 9:16 pm

You must prepare sd card with create_tripleboot_sd script.
loboris
 
Posts: 161
Joined: Sat Jan 03, 2015 12:07 am
languages_spoken: english
ODROIDs: C1, XU4

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby Jacki » Wed Oct 07, 2015 10:39 pm

Thank you, I have do this before copy_to_sdcard, here the result:

****************************
Create triple boot sd card
****************************

WARNING: SD card /dev/sdd WILL BE ERASED !, Continue (y/N)? y
Erasing sd card /dev/sdd ...
Creating new filesystem on /dev/sdd ...
New filesystem created on SD card.

Creating storage partition on /dev/sdd...

Creating system partition on /dev/sdd...

Creating userdata partition on /dev/sdd...

Creating extended partition on /dev/sdd...

Creating cache partition on /dev/sdd...

Creating OpenELEC partition on /dev/sdd...

Creating linux partition on /dev/sdd...

Disque /dev/sdd : 31,3 GiB, 33554432000 octets, 65536000 secteurs
Unités : sectors of 1 * 512 = 512 octets
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xda0c5091

Device Boot Start End Sectors Size Id Type
/dev/sdd1 49152 12632063 12582912 6G c W95 FAT32 (LBA)
/dev/sdd2 12632064 14729215 2097152 1G 83 Linux
/dev/sdd3 14729216 23117823 8388608 4G 83 Linux
/dev/sdd4 23117824 65535999 42418176 20,2G 5 Extended
/dev/sdd5 23119872 24168447 1048576 512M 83 Linux
/dev/sdd6 24170496 28364799 4194304 2G 83 Linux
/dev/sdd7 28366848 65535999 37169152 17,7G 83 Linux


Formating partitions ...
storage partition formated.
system partition formated.
userdata partition formated.
cache partition formated.
OpenElec partition formated.
linux partition formated.

Saving android boot section ...

==================================================================
Triple sd card prepared on /dev/sdd.
==================================================================

No errors from create_trible_boot
Jacki
 
Posts: 8
Joined: Sun Sep 27, 2015 4:32 pm
languages_spoken: french
ODROIDs: ODROID C1+

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby Jacki » Fri Oct 09, 2015 4:54 am

can someone help me? I have burn the odroid-triple_boot.img from loboris, but I want create my own and I can't
I have pourchased a 32g sd card for a triple boot
Jacki
 
Posts: 8
Joined: Sun Sep 27, 2015 4:32 pm
languages_spoken: french
ODROIDs: ODROID C1+

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby Jacki » Sat Oct 10, 2015 12:24 am

Hi guys I have news on my problems.
I make the triple boot with de default parameters for 16g sd card in the params.sh and it works, but I would like to make a best partitionning for my 32g sd card.

For example :

Andoid = 14g in total
Linux = 16g
and openelec 2g

How can I change the params.sh for this to work ?
Jacki
 
Posts: 8
Joined: Sun Sep 27, 2015 4:32 pm
languages_spoken: french
ODROIDs: ODROID C1+

Re: How to: Linux Android OpenELEC triple boot (with boot me

Unread postby loboris » Sat Oct 10, 2015 12:50 am

Just change the partition sizes in params.sh, for example:
storage_size=14000
oelec_size=2048
loboris
 
Posts: 161
Joined: Sat Jan 03, 2015 12:07 am
languages_spoken: english
ODROIDs: C1, XU4

PreviousNext

Return to Ubuntu

Who is online

Users browsing this forum: Igor_Kh and 1 guest