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 Jacki » Sat Oct 10, 2015 1:37 am

Sorry it's dont work :cry:

I have the same error : Bad SDcard partition structure 2!
It seems that works only with the default value in params.sh.
When I change the parameters it's not 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 Jacki » Sun Oct 11, 2015 12:12 am

Hi,

After burn the sdcard with the default value for 16g in params.sh. I got no errors, but when I boot linux from boot menu, it won't boot with this message "ALERT! /dev/disk/by-label/linux does not exists. Dropping to a shell!"

Only linux won't boot, Android and Openlec boot normally.
I have an another problem, I have a white square permanentely on the left top of the screen and cec does not works with Openlec even if I activate it.

I think of giving up the triple boot, to many problems, it not works for me :cry:
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 » Sun Oct 11, 2015 3:45 am

Hi
After a hard work I have finally managed to make the cec Openelec walk. :D

However it stays 2 problems, the white square on top left of the screen and linux who won't boot :cry:
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 » Tue Oct 13, 2015 5:05 pm

Hi

No one to 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 » Tue Oct 13, 2015 5:20 pm

Jacki wrote:Hi

No one to help me ? :(

Sorry for not answering. I haven't used this script for some time, I'll check it in couple of days and reply.
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 pepsican » Thu Oct 22, 2015 10:24 pm

Hi

Just got an Odroid C1+ and although I have plenty of experience with databases and Windows, my Linux knowledge is basic. Would this approach work for a eMMC card with Lubuntu, Volumio and OpenElec? The reason I ask is because there is no Android here and Volumio is based on Archlinux. So perhaps there are booting problems to be expected?
pepsican
 
Posts: 29
Joined: Sun Oct 18, 2015 8:59 pm
languages_spoken: english
ODROIDs: C1+

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

Unread postby n1ght28 » Sun Dec 06, 2015 1:17 am

Hey guys,

Trying to get the pre-prepared image going but having some problems

When i flash the image I can boot into Android from the boot menu but if I try Linux i get the error message from the pic
https://goo.gl/photos/Mn8BRi4ZXb9VuEQ46

This then breaks all the installs with no boot menu showing after a hard reset just straight to this screen.

What i did to flash the image is format my eMMC 8gb module with gparted to ext4
Then i copied the imahe to the eMMC using the command
Code: Select all
sudo dd of=/dev/sdX if=odroid-tripleboot.img bs=1M


Then slapped it in the c1+ and powered on,

What you guys think?
Where am i going wrong?
Any help appreciated.
n1ght28
 
Posts: 3
Joined: Sun Nov 15, 2015 4:44 am
languages_spoken: english
ODROIDs: C1+

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

Unread postby pepsican » Sun Dec 06, 2015 11:13 pm

From the error you can deduce that your partitions are not correctly formatted. Because of that, at least one of them fails to mount. You need to reformat and check the scripts that they set the correct sectors for the partitions.

Also, the full command as per the Odroid Wiki needs to include conv=fsync, followed on a separate line by sync or sudo sync.
pepsican
 
Posts: 29
Joined: Sun Oct 18, 2015 8:59 pm
languages_spoken: english
ODROIDs: C1+

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

Unread postby n1ght28 » Mon Dec 07, 2015 8:02 pm

Thanks for the advice!

Reformatted the eMMC

Tried
Code: Select all
sudo dd of=/dev/sdX if=odroid-tripleboot.img bs=1M conc=fsync

Then

sync

sudo sync


But unfortunately same result


If I'm flashing the pre-prepared image do i need to run any of the scripts?
n1ght28
 
Posts: 3
Joined: Sun Nov 15, 2015 4:44 am
languages_spoken: english
ODROIDs: C1+

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

Unread postby pepsican » Tue Dec 08, 2015 3:45 am

If you followed the steps in the original post, you would have used the scripts, yes. But you need to adjust the scripts to your specific situation, regarding your eMMC size, how you want to divide between the different OSes, etc.
pepsican
 
Posts: 29
Joined: Sun Oct 18, 2015 8:59 pm
languages_spoken: english
ODROIDs: C1+

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

Unread postby pj601 » Sun Dec 20, 2015 8:39 am

Hi, I'm interested in creating a dual boot disk image with openelec and lakka. Is there any way I can modify the scripts to accomplish that?
pj601
 
Posts: 1
Joined: Sun Dec 20, 2015 8:22 am
languages_spoken: english
ODROIDs: C1+, XU4

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

Unread postby patdut » Sat Jan 23, 2016 4:42 am

@loboris

First, thank you for the img 15.04 for the C1. It works quite fine.
I say it because on my C1 the network is not recognized and not started.
I installed the mate version with desktop. Is there something I missed ?

Thanks by advance for your answer.

Patrick from France.
patdut
 
Posts: 13
Joined: Wed Jul 08, 2015 9:57 pm
languages_spoken: french
ODROIDs: odroid-c1

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

Unread postby mad_ady » Thu Mar 10, 2016 11:24 pm

Hello loboris,

I'm trying to set up tripleboot on a C2 to run Android and Linux. I was able to extract linux from a working C2 install, but I can't extract a working Android:

Code: Select all
adrianp@frost:~/temp/odroid/c2/tripleboot$ sudo ./extract_android

Thu Mar 10 16:20:02 EET 2016
***********************************************
* Extracting structure of android SD Card     *
* and copying partitions data to directories  *
***********************************************


Analyzing sd card ...

  SDCard size: 30535680 blocks, 14910 M
------------------------------------------------
               first block  last block      size
 storage part:     3211264     3473407     128 M
  system part:     1114112     3211263    1024 M
userdata part:       65536     1114111     512 M
   cache part:     3473408    30535679   13214 M
------------------------------------------------


Bad SDCard partition structure (start) !
adrianp@frost:~/temp/odroid/c2/tripleboot$ sudo fdisk -l /dev/sdc
Disk /dev/sdc: 14.6 GiB, 15634268160 bytes, 30535680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot   Start      End  Sectors  Size Id Type
/dev/sdc1       3211264  3473407   262144  128M  c W95 FAT32 (LBA)
/dev/sdc2       1114112  3211263  2097152    1G 83 Linux
/dev/sdc3         65536  1114111  1048576  512M 83 Linux
/dev/sdc4       3473408 30535679 27062272 12.9G 83 Linux

Partition table entries are not in disk order.



Is this because the partitions are not in disk order? This is Odroid's official android image for C2 by the way.
Thanks!


Edit: I see the checks are done with 49152:

Code: Select all
        if [ ! "${system_start}" = "49152" ]; then
                echo "Bad SDCard partition structure (start) !"
                exit 1
        fi
else
        if [ ! "${storage_start}" = "49152" ]; then
                echo "Bad SDCard partition structure (start)!"
                exit 1
        fi



I commented the exit calls and ran it again (the u-boot section seems off):
Code: Select all
adrianp@frost:~/temp/odroid/c2/tripleboot$ sudo ./extract_android

Thu Mar 10 16:29:58 EET 2016
***********************************************
* Extracting structure of android SD Card     *
* and copying partitions data to directories  *
***********************************************


Analyzing sd card ...

  SDCard size: 30535680 blocks, 14910 M
------------------------------------------------
               first block  last block      size
 storage part:     3211264     3473407     128 M
  system part:     1114112     3211263    1024 M
userdata part:       65536     1114111     512 M
   cache part:     3473408    30535679   13214 M
------------------------------------------------


Bad SDCard partition structure (start) !

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

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

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

Copying cache partition ...
File system size: 3.1G

Copying storage partition ...
File system size: 208K

=====================================================================
Android SDCard structure saved, filesystems extracted to directories.
=====================================================================
adrianp@frost:~/temp/odroid/c2/tripleboot$ ls -lh odroid_triple_boot/
total 25M
-rw-r--r--  1 root    root     32K Mar 10 16:30 bl1.img
-rw-r--r--  1 root    root    8.0M Mar 10 16:30 boot.img
drwxrwx--x 23 adrianp adrianp 4.0K Mar  8 15:51 cache
-rw-r--r--  1 root    root     64K Mar 10 16:30 dtb.img
drwxr-xr-x  2 root    root    4.0K Jan  1  1970 lin_fat
drwxr-xr-x 22 root    root    4.0K Jan  1  1970 linux
-rw-r--r--  1 root    root    6.0M Mar 10 16:30 logo.img
-rw-r--r--  1 root    root    8.0M Mar 10 16:30 recovery.img
-rw-r--r--  1 root    root    1.5M Mar 10 16:30 reserved.img
drwxr-xr-x  5 root    root    4.0K Jan  1  1970 storage
drwxr-xr-x 19 root    root    4.0K Jan  1  1970 system
-rw-r--r--  1 root    root     32K Mar 10 16:30 u-boot-env.img
-rw-r--r--  1 root    root    480K Mar 10 16:30 u-boot.img
drwxrwx---  5 adrianp    2001 4.0K Mar  8 15:29 userdata

User avatar
mad_ady
 
Posts: 4465
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

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

Unread postby mad_ady » Thu Mar 10, 2016 11:50 pm

It fails to copy the linux kernel and dtb for the C2:

Code: Select all
adrianp@frost:~/temp/odroid/c2/tripleboot$ sudo ./create_tripleboot_sd

Thu Mar 10 16:43:24 EET 2016
****************************
Create triple boot sd card 
****************************


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

Creating storage partition on /dev/sdc...

Creating system partition on /dev/sdc...

Creating userdata partition on /dev/sdc...

Creating extended partition on /dev/sdc...

Creating cache partition on /dev/sdc...

Creating swap partition on /dev/sdc...

Creating linux partition on /dev/sdc...
Disk /dev/sdc: 14.6 GiB, 15634268160 bytes, 30535680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x807debfb

Device     Boot    Start      End  Sectors  Size Id Type
/dev/sdc1          49152  6340607  6291456    3G  c W95 FAT32 (LBA)
/dev/sdc2        6340608  8437759  2097152    1G 83 Linux
/dev/sdc3        8437760 13451263  5013504  2.4G 83 Linux
/dev/sdc4       13451264 30535679 17084416  8.2G  5 Extended
/dev/sdc5       13453312 14501887  1048576  512M 83 Linux
/dev/sdc6       14503936 14708735   204800  100M 83 Linux
/dev/sdc7       14710784 30535679 15824896  7.6G 83 Linux

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

Saving android boot section ...

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

adrianp@frost:~/temp/odroid/c2/tripleboot$ sudo ./copy_to_sdcard

Thu Mar 10 16:46:21 EET 2016
************************************************************
Copy directories to sdcard/image and prepare for triple boot
************************************************************


Analyzing sd card ...

  SDCard size: 30535680 blocks, 14910 M
------------------------------------------------
               first block  last block      size
 storage part:       49152     6340607    3072 M
  system part:     6340608     8437759    1024 M
userdata part:     8437760    13451263    2448 M
   cache part:    13453312    14501887     512 M
    swap part:    14503936    14708735     100 M
   linux part:    14710784    30535679    7727 M
------------------------------------------------


Analyzing filesystems ...
----------------------------
    system    514M        OK
  userdata    263M        OK
     cache   3169M too small
   storage      0M        OK
     linux   2573M        OK
----------------------------
.
WARNING: Partitions on SD card /dev/sdc WILL BE UPDATED !, Continue (y/N)?  y.

Copying system partition ...
wait...
./copy_to_sdcard: line 194: _mnt/etc/init.d/setboot: No such file or directory
./copy_to_sdcard: line 195: _mnt/etc/init.d/setboot: No such file or directory
./copy_to_sdcard: line 196: _mnt/etc/init.d/setboot: No such file or directory
./copy_to_sdcard: line 197: _mnt/etc/init.d/setboot: No such file or directory
./copy_to_sdcard: line 198: _mnt/etc/init.d/setboot: No such file or directory
chmod: cannot access '_mnt/etc/init.d/setboot': No such file or directory

 *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 not found, creating it...
./copy_to_sdcard: line 280: _mnt/etc/install-recovery.sh: No such file or directory
./copy_to_sdcard: line 281: _mnt/etc/install-recovery.sh: No such file or directory
./copy_to_sdcard: line 282: _mnt/etc/install-recovery.sh: No such file or directory
./copy_to_sdcard: line 283: _mnt/etc/install-recovery.sh: No such file or directory
./copy_to_sdcard: line 284: _mnt/etc/install-recovery.sh: No such file or directory
 *Setting the correct permissions and ownership for install-recovery.sh...
  Also for install-recovery-2.sh if it exists...
chmod: cannot access '_mnt/etc/install-recovery.sh': No such file or directory
chown: cannot access '_mnt/etc/install-recovery.sh': No such file or directory

Copying userdata partition ...
wait...


Copying storage partition ...
wait...
 *Copying linux boot files (kernel, initramfs, dtb) ...
 *Linux boot files copied from odroid_triple_boot/lin_fat.
  WARNING: uImage not found !
  WARNING: meson8b_odroidc.dtb not found !
 *Creating "bootandroid.ini"
 *Creating "bootlinux.ini"
 *Creating "bootsel.ini"

Copying Linux partition ...
wait...
 *Creating "fstab"
 *Corecting rc.local for tripleboot ...

=====================================
File systems saved to sdcard.
SD Card id now ready for triple boot.
=====================================



Edit: I've added the kernel and dtb manually, but the board fails to boot or display anything. Red light is on. Most likely something is broken in the bootloader/boot parameters.
User avatar
mad_ady
 
Posts: 4465
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

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

Unread postby warfeiner » Tue Oct 25, 2016 11:44 pm

Hi!
Can someone please help me. Is it even possible to make this work with U3?

Because my board boots right to the android. There is no boot menu or anything.
Any solution would be appreciated. Thank you!
warfeiner
 
Posts: 3
Joined: Tue Oct 25, 2016 11:40 pm
languages_spoken: english
ODROIDs: Odroid-U3

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

Unread postby mad_ady » Wed Oct 26, 2016 12:45 am

This thread should help you the most: viewtopic.php?t=16369
User avatar
mad_ady
 
Posts: 4465
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

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

Unread postby loboris » Wed Oct 26, 2016 2:16 am

This week I'll finish the new version of Multiboot installer with many new functions and improvements and C2 support :!:
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 mad_ady » Wed Oct 26, 2016 3:35 am

Hooray!
User avatar
mad_ady
 
Posts: 4465
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

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

Unread postby odroid » Wed Oct 26, 2016 3:29 pm

Great news!
Android + Linux + LibreElec must be fantastic. :twisted:
User avatar
odroid
Site Admin
 
Posts: 28610
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

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

Unread postby Reclaimer » Wed Nov 02, 2016 3:49 am

Hi, ni day.

Congratulations, very nice tuto but have a question.

With this can install triple boot by:

ubuntu mate (or another distro) + android + retro arch?
Reclaimer
 
Posts: 1
Joined: Wed Nov 02, 2016 2:05 am
languages_spoken: Spanish, english
ODROIDs: Orange Pi PC

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

Unread postby ryk » Tue Dec 20, 2016 8:53 am

Any news on Multiboot installer and C2 support?
ryk
 
Posts: 6
Joined: Sun May 08, 2016 6:18 am
languages_spoken: english, greek
ODROIDs: C2

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

Unread postby loboris » Tue Dec 20, 2016 6:11 pm

ryk wrote:Any news on Multiboot installer and C2 support?

The new Multiboot installer is finished, I'm just doing some final testing, will be published soon.
  • completely rewritten
  • works the same on Odroid C1, C2, XU3/XU4
  • new way to switch the operating system, switching is done in ini file/u-boot, almost no changes to original OS installation needed
  • supports Android, OpenElec and Linux
  • automatically detects all Android, Linux and OpenElec installations on SD card & eMMC Card
  • both SDCard & eMMC can be inserted, boot to any OS on any card is possible
  • automatically detects installation sources on multiple USB drive partitions
  • installation USB drive partition can be formated as FAT32, ntfs, ext4 or btrfs
  • included option to backup the original Android/Linux installation to USB and then use it as source for multiboot installation
  • included options for Backup & Restore Multiboot installation to/from USB drive
  • included mini Bash shell with many useful utilities, including nano editor, Midnight Commander file manager, ...
  • ...
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 ryk » Thu Dec 22, 2016 8:25 am

loboris wrote:
ryk wrote:Any news on Multiboot installer and C2 support?

The new Multiboot installer is finished, I'm just doing some final testing, will be published soon.
  • completely rewritten
  • works the same on Odroid C1, C2, XU3/XU4
  • new way to switch the operating system, switching is done in ini file/u-boot, almost no changes to original OS installation needed
  • supports Android, OpenElec and Linux
  • automatically detects all Android, Linux and OpenElec installations on SD card & eMMC Card
  • both SDCard & eMMC can be inserted, boot to any OS on any card is possible
  • automatically detects installation sources on multiple USB drive partitions
  • installation USB drive partition can be formated as FAT32, ntfs, ext4 or btrfs
  • included option to backup the original Android/Linux installation to USB and then use it as source for multiboot installation
  • included options for Backup & Restore Multiboot installation to/from USB drive
  • included mini Bash shell with many useful utilities, including nano editor, Midnight Commander file manager, ...
  • ...


Awesome!!! :o
ryk
 
Posts: 6
Joined: Sun May 08, 2016 6:18 am
languages_spoken: english, greek
ODROIDs: C2

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

Unread postby rooted » Thu Dec 22, 2016 10:32 am

That is awesome
User avatar
rooted
 
Posts: 5474
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

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

Unread postby linuxest » Thu Dec 22, 2016 10:55 am

Great news for my Christmas! :mrgreen:
linuxest
 
Posts: 43
Joined: Tue Nov 08, 2016 6:35 pm
languages_spoken: english
ODROIDs: 1 x HC1 and 2 x C2s with HiFi-Shield 2
And some RPi3 boards

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

Unread postby ryk » Wed Jan 11, 2017 8:04 am

Ready?
ryk
 
Posts: 6
Joined: Sun May 08, 2016 6:18 am
languages_spoken: english, greek
ODROIDs: C2

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

Unread postby odroid » Wed Jan 11, 2017 1:51 pm

ryk wrote:Ready?

Refer this thread.
viewtopic.php?f=98&t=16369&p=175127#p173896
User avatar
odroid
Site Admin
 
Posts: 28610
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Previous

Return to Ubuntu

Who is online

Users browsing this forum: No registered users and 2 guests