Table of Contents

CoreELEC for Odroid

These instructions explain how to install, and boot, CoreELEC on supported Odroid SBCs from µSD Card, by using a Windows PC. The instructions can easily be modified for other Operating Systems.


Supported devices

There are 2 methods of installation: external media (SD Card, USB Flash Drive,…), or eMMC. Both methods are covered in this document.


Requirements

Image writing software

Application Function Linux Mac Windows
balenaEtcher Bootable Media Creator X X X
UNetbootin Bootable Media Creator X X X
USBImager Bootable Media Creator X X X
DDRescue / DDRescue-GUI Disk Utility X
Disk Utility Disk Utility X
Rufus Bootable Media Creator X

Install to μSD Card

These instructions can also be used for a USB Flash Drive.

SBC Edition SoC Image
Odroid N2 2G/4G S922X CoreELEC-Amlogic-ng.arm-xxxx-Odroid_N2.img.gz
Odroid N2+ 2G/4G S922X CoreELEC-Amlogic-ng.arm-xxxx-Odroid_N2.img.gz
Odroid C4 4G S905X3 CoreELEC-Amlogic-ng.arm-xxxx-Odroid_C4.img.gz
Odroid HC4 4G S905X3 CoreELEC-Amlogic-ng.arm-xxxx-Odroid_HC4.img.gz

Once the image is transfered to μSD Card, the device is Ready To Boot (RTB), meaning no Device Tree Blob (DTB) needs to be copied.


Boot from μSD Card

Odroid N2, N2+, C4 & HC4

NOTE (N2, N2+ only): when booting from USB, the switch has to be set to SPI. Select the CoreELEC menu entry to boot.


Boot from eMMC Module

Never add or remove the eMMC module, or toggle the boot select switch, while the device is powered on. Doing so may cause irreversible hardware damage.

eMMC Module Compatibility

Hardkernel eMMC Module compatibility reference chart


Odroid N2, N2+

  1. SPI/MMC Boot Select Switch
  2. eMMC Module connector
  3. μSD Card slot
  4. OTG port

There are 3 options listed to install CoreELEC onto the N2/N2+ eMMC Module.

Option Type Notes
A eMMC Module Writer Bundle module writer with other purchase to save on shipping
B μSD Card & SSH Requires a functional LAN
C USB OTG Requires a more elaborate setup

The Odroid N2 has a Boot Select Switch (1). When the switch is set to SPI, the CPU will fetch the Petitboot bootloader from SPI flash memory. When the switch is set to MMC, the bootloader from the eMMC module, USB Flash Drive, or μSD Card will be fetched by the CPU. The CPU will fetch from μSD Card if the eMMC module is detached or lacking a bootloader.

Petitboot

This information only pertains to eMMC migration options B & C, and to devices dual-boot betweeb CoreELEC and another OS.

Petitboot (PB) version 2022-03-17 or better is required for use with CoreELEC.

This is also the first edition including support for compressed Amlogic Multi-DTB.

Please refer to the Hardkernel User Support Forums for help with Petitboot.

Corrupted Petitboot Flash

Occasionally Petitboot can become corrupted. In such situations, prior to re-flashing Petitboot, it is recommended to clear the dedicated PB flash module.

flash_eraseall /dev/mtd0
flash_eraseall /dev/mtd1
flash_eraseall /dev/mtd2

OS Booting

There are 3 ways to boot CoreELEC on Odroid N2(+)

1. Direct booting

Used with: μSD Card, eMMC module.

2. Booting via Petitboot

Used with: USB Flash Drive, USB HDD/SSD.

NOTE: it can take up to 30 seconds for an SSD drive to show up.

3. Set autoboot

Option A: eMMC Module Writer

Option B: μSD Card & SSH

Once CoreELEC has booted:

installtoemmc

Once the installation script is finished:

Option C: USB OTG

Enabling USB OTG allows the Odroid N2(+) SBC to be used as a Memory Card Reader

This feature is enabled from the Petitboot shell

Requirements

Preparation

Petitboot menu

To share the eMMC module as USB Storage enter this command in the PB shell:

ums /dev/mmcblk0

Once the image is successfully written, turn off USB Mass Storage mode (ums). The eMMC module will safely unmount.

ums

NOTE: The USB OTG method can also be used to install CoreELEC onto USB or SD card.

Path substitutes

Device Command
eMMC module ums /dev/mmcblk0
μSD Card ums /dev/mmcblk1
USB Storage Device ums /dev/sda
ums /dev/sdb

Blank display

This random behavior can occur when using older versions of Petitboot in combination with certain television sets.

Scenarios

New installation

Existing installation

Solution: Petitboot update

Perform a Petitboot firmware update.

NOTE: Petitboot can also be updated by running pb-update in the Petitboot shell.


Odroid C4

An eMMC Module Writer is required to write a bootable eMMC module


Odroid HC4

HC4 Petitboot Firmware Images


Device Support

For support unrelated to CoreELEC, please refer to the Hardkernel User Support Forums.