Last update: Jan 19. 2017.


Download prepared images from: https://drive.google.com/folderview?id= ... sp=sharing
GitHub: https://github.com/loboris/Odroid_Multiboot
Multiboot installer contains several components:
- Boot menu for selecting from available OS's
- Backup tool for backup operating system(s) from multiboot card or original Odroid card
- Universal installer which can install android, linux, OpenELEC or any combination (multiboot) from USB drive.
- Linux shell with many usefull programs/utilities
- Android update utility
- boot menu for selecting operating system or Multiboot tools
- automaticaly detects installed operating systems on all inserted cards (EMMC and/or SD card)
- mimimal changes to original OS images, only fstab is adjusted for multiboot
- on Odroid C2 both EMMC and SDcard can be inserted and the OS can be booted from EMMC or SDcard
- on Odroid XU3/XU4 any os on EMMC or SDCard can be booted, regardles of boot switch position
- interactive installer
- user can set desired partition sizes and installation destination (SD or EMMC)
- it is possible install to SD Card and to EMMC
- uses standard Android update.zip (XU4) or daily___.tar.gz (C2), Linux image files and OpenElec upgrade tar files as sources
- backup created with Backup tool can be used as source
- installation sources must be placed on the USB drive partition
- installation source partition can be formated as ext4, fat32, ntfs or btrfs
- supports multi boot installation (Android, Linux, OpenELEC/LibreElec)
- tested with latest Android, Linux and OpenELEC versions for XU3/XU4 & C2
- backup multiboot SDCard or EMMC (all installed operating systems) to USB drive
- backup original Odroid SDCard or EMMC (Android or Linux) to USB drive
- backup on USB drive can be used as source for Installer
- use prepared multiboot installer images, in multiinstaller_C1|C2|XU.img.zip, unzip to some empty directory
- run
Code: Select all
sudo dd if=multiinstaller_C1|C2|XU.img of=/dev/sdX bs=1MB oflag=direct
- or build the installer sdcard/image running
Code: Select all
sudo ./prepare_selfinst <destination_card>|<destination_image_name> c1|c2|xu4
- if the image file is created, you can write the image to SDCard using dd command.
- or build the installer sdcard/image running
- copy your installation sources (Android update image update.zip, Linux .img, OpenELEC .tar file) to the first partition of your USB drive
- rename the Linux installation image to linux.img!
- rename the OpenELEC installation tar to oelec.tar !
- rename the Android installation archive to update.tar.gz or update.zip !
- on Odroid UX4/XU3 set the boot switch to boot from SDCard
- connect you USB drive to Odroid, insert SDCard and power on
- select Install from menu
- follow the instructions to select desired partition sizes and installation destination (SDCard or EMMC)
- select desired Android resolution in multiboot/boot.ini.android, Hardkernel utility does not work
- add #DESCRIPTION my_os_description line to multiboot/boot.ini.[android|linux|oelec] files to describe your OS in boot menu
- There are some problems when installing from USB drive fat partition, it will be fixed.
- Android update must be executed from the boot menu, not in Hardkernel's way
- openElec/LibreElec update is not implemented, but it can be easily done manualy, it is just needed to copy SYSTEM, KERNEL, and meson64_odroidc2.dtb->meson64_odroidc2.dtb.oelec from openElec tar. openElec update will be added to boot menu later
- openElec partition is always empty after installation, it is used by openElec to store configuration, plugins and user data
- 2nd Linux installation is possible only if openElec is not installed
- userdata is the boot partition (where the multiboot directory and ini files are placed, and it is mounted in Android as sdcard and i Linux as /media/boot
- reserved partition is the name for openelec partition when openelec is not installed and is left unformated during the install, but can be used later in Linux (for swap or data partition)
- Partition structure of the multiboot card is fixed, all the partition are always created, if not used the size is set to 8Mb (but can be changed in menu)
- Install multiboot Linux kernel option is used only on C2, if used, included kernel is used which can boot from btrfs partition and can also be used if the kernel from install img does not work
- at the moment, installation card is always erased and partitioned when installing, later I will add the option to install to the existing multiboot partitions if detected, so that already installed OS's will be preserved

You can create bootable universal installer SDCard, or simply analize the install scripts to learn more about Odroid boot process, initramfs, etc.

https://www.paypal.com/cgi-bin/webscr?c ... E5RV6MVM2U
.


