We're no longer updating This wiki!!

This is an old revision of the document!


Tips for ODROID-C2

This page introduce you an useful tips to use ODROID-C2.


How to change HDMI output resolution

ODROID-C2 can support various resolution on HDMI output, you can select one of supported resolutions for your display (LCD monitor or TV).

Please make sure the resolution you select can be supported by your display before you start. Otherwise you would be hard to recover the resolution again.

Supported resolutions at this moment (2015-12-24)

  1. 4K UHD (2160p)
  2. 1920×1200 (WUXGA)
  3. 1920×1080 (1080p)
  4. 1280×720 (720p)
  5. 720×480 (480p)
  6. 720×576 (576p)
  7. 1280×800 (800p for ODROID-VU)
  8. 1280×1024 (SXGA)
  9. 1024×768 (XGA)
  10. 800×480 (WVGA, DVI supported for ODROID-VU7)
  11. 640×480 (VGA)
  12. 1600×900
  13. 1440×900
  14. 1360×768
  15. 1024×600
  16. 800×600

Android

We provide you a simple but useful application, ODROID Utility. This helps you to change the resolution by menu as below and you can select one of them for your display. Once you select one, click the button Apply and Reboot. Then your ODROID-C2 will restart with new resolution.

Linux / Ubuntu

Coming soon…

Lowlevel Change

This section introduce you to change the resolution by manual, this would be helpful if you are failure to change the resolution and not able to sett the face of ODROID-C2.

The fact what initiate the resolution is from U-boot and the environment key is hdmimode. Probably your U-boot would have the one like this by default.

odroidc#print hdmimode
hdmimode=720p60hz

This will be passed to Linux kernel by bootargs just before Linux kernel is started. Here is the default value of bootcmd which starts Linux kernel. As you see, hdmimode is passing as boot argument.

odroidc2# print bootcmd
bootcmd=cfgload; setenv bootargs root=/dev/mmcblk0p3 rw init=/init rootwait console=ttyS0,115200 hdmimode=${hdmimode}
hdmitx=${cecconfig} logo=osd1,loaded,${fb_addr},${hdmimode} androidboot.hardware=odroidc2 androidboot.serialno=${fbt_id#}
androidboot.selinux=disabled;showlogo ${hdmimode}; movi read dtb 0 0x1000000; movi read boot 0 0x20000000;
booti 0x20000000 - 0x1000000

How to change the value of hdmimode

There are three ways to change hdmimode to change the resolution, you can replace 1080p60hz with the other resolution you wish to change for your display. And only the way with adjusting hdmimode arg value in boot.ini is available for ODROID-C2 so far, the other ways are in progress.

U-boot

Currently, 720p60hz mode is fixed on U-Boot stage after power-on and reset. But you can change hdmimode temporarily using 'showlogo' command.

showlogo 1080p60hz

Boot.ini

You can boot with boot.ini without changing U-boot environment values permanently. If boot.ini is existed in FAT partition ODROID-C2 does boot with it first, unless boot with default setting stored in U-boot environment. You can download the file below and copy into your FAT partition.

boot.ini
ODROIDC2-UBOOT-CONFIG
 
setenv dtbaddr 0x1000000
setenv loadaddr 0x20000000
 
setenv hdmimode "720p60hz"
setenv cecconfig "cecf"
 
setenv rootopt "root=/dev/mmcblk0p3 rw init=/init rootwait"
setenv consoleopt "console=ttyS0,115200"
setenv androidopt "androidboot.hardware=odroidc2 androidboot.serialno=${fbt_id#}"
setenv logoopt "osd1,loaded,${fb_addr},${hdmimode}"
setenv selinuxopt "androidboot.selinux=disabled"
 
setenv bootargs "${rootopt} ${consoleopt} hdmimode=${hdmimode} hdmitx=${cecconfig} logo=${logoopt} ${androidopt} ${selinuxopt}"
 
showlogo ${hdmimode}
 
movi read dtb 0 ${dtbaddr}
movi read boot 0 ${loadaddr}
booti ${loadaddr} - ${dtbaddr}

How to change U-boot configuration by BOOT.INI


In order to support easy boot loader setup, ODROID-C2 also support boot.ini as well as previous ODROID boards. So you can easily list up the commands what you want to executed in U-boot rather than the default. Here is the example to boot Ubuntu.

Android boot.ini example

boot.ini
ODROIDC2-UBOOT-CONFIG
 
setenv dtbaddr 0x1000000
setenv loadaddr 0x20000000
 
setenv hdmimode "720p60hz"
setenv cecconfig "cecf"
 
setenv rootopt "root=/dev/mmcblk0p3 rw init=/init rootwait"
setenv consoleopt "console=ttyS0,115200"
setenv androidopt "androidboot.hardware=odroidc2 androidboot.serialno=${fbt_id#}"
setenv logoopt "osd1,loaded,${fb_addr},${hdmimode}"
setenv selinuxopt "androidboot.selinux=disabled"
 
setenv bootargs "${rootopt} ${consoleopt} hdmimode=${hdmimode} hdmitx=${cecconfig} logo=${logoopt} ${androidopt} ${selinuxopt}"
 
showlogo ${hdmimode}
 
movi read dtb 0 ${dtbaddr}
movi read boot 0 ${loadaddr}
booti ${loadaddr} - ${dtbaddr}

Linux boot.ini example

(in progress)

Board Identifier

This is the keyword to identify the correct BOOT.INI as per board. For ODROID-C2, any BOOT.INI must contain ODROIDC2-UBOOT-CONFIG and other commands must be below this.

U-boot commands

You can describe multiple commands of U-boot from the next line of ODROIDC2-UBOOT-CONFIG. The commands are only restricted within the commands enabled by the running U-boot.

How to replace booting logo

ODROID-C2 can shows booting logo to the display till target O/S is started.

LOGO file format

Currently, we support 24-bit Windows BMP image and 24-bit Windows Gzipped BMP image. And default size is 1280×720. You can display any other size of logo file, but it will be showen at the left-top corner.

Using BOOT.INI

You can add the commands to your boot.ini before bootcmd is executed. Note that you can replace the logo file name boot-logo.bmp or boot-logo.bmp.gz with yours and it must be in FAT (BOOT) partition.

showlogo ${hdmimode}

The command, showlogo is as following.

osd open
osd clear
vout output ${outputmode}
hdmitx output ${outputmode}
fatload mmc 0 ${bootlogo_addr} boot-logo.bmp.gz
bmp display ${bootlogo_addr}

Using FASTBOOT

The logo partition is internally assigned in U-boot itself, please refer this for detail. This works just for Android Users.

Firstly, you must get into your U-boot command line while pressing any key when your ODROID-C2 is powered up. And execute fastboot command from U-boot and connect with your desktop using USB cable.

odroidc2#fastboot

Next, run fastboot command from your desktop.

$ fastboot flash logo boot-logo.bmp.gz
en/c2_tips.1453947820.txt.gz · Last modified: 2016/01/28 10:53 by joy.cho
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0