Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
en:c2_tips [2016/01/28 10:52] joy.cho [How to change HDMI output resolution] |
en:c2_tips [2016/08/03 14:41] joy.cho [How to change HDMI output resolution] |
||
---|---|---|---|
Line 8: | Line 8: | ||
</WRAP> | </WRAP> | ||
<WRAP center round box 60%> | <WRAP center round box 60%> | ||
- | Supported resolutions at this moment (2015-12-24) | + | Supported resolutions at this moment (2016-08-03) |
- 4K UHD (2160p) | - 4K UHD (2160p) | ||
+ | - 3440x1440 | ||
+ | - 2560x1600 | ||
+ | - 2560x1440 | ||
+ | - 2560x1080 | ||
- 1920x1200 (WUXGA) | - 1920x1200 (WUXGA) | ||
- 1920x1080 (1080p) | - 1920x1080 (1080p) | ||
Line 20: | Line 24: | ||
- 800x480 (WVGA, DVI supported for ODROID-VU7) | - 800x480 (WVGA, DVI supported for ODROID-VU7) | ||
- 640x480 (VGA) | - 640x480 (VGA) | ||
- | - 1440x900 | + | - 1680x1050 |
+ | - 1600x1200 (supported on Ubuntu only so far, it will be released for Android soon.) | ||
- 1600x900 | - 1600x900 | ||
+ | - 1440x900 | ||
- 1360x768 | - 1360x768 | ||
- | - 1024x600 | + | - 1024x600 (DVI supported for ODROID-VU7+) |
- 800x600 | - 800x600 | ||
Line 46: | Line 52: | ||
<code> | <code> | ||
odroidc2# print bootcmd | odroidc2# print bootcmd | ||
- | bootcmd=cfgload; setenv bootargs root=/dev/mmcblk0p3 rw init=/init rootwait console=ttyS0,115200 hdmimode=${hdmimode} | + | bootcmd=cfgload; setenv bootargs root=/dev/mmcblk0p2 rw init=/init rootwait console=ttyS0,115200 hdmimode=${hdmimode} |
hdmitx=${cecconfig} logo=osd1,loaded,${fb_addr},${hdmimode} androidboot.hardware=odroidc2 androidboot.serialno=${fbt_id#} | 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; | androidboot.selinux=disabled;showlogo ${hdmimode}; movi read dtb 0 0x1000000; movi read boot 0 0x20000000; | ||
Line 63: | Line 69: | ||
</code> | </code> | ||
=== Boot.ini === | === 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. | + | 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. |
+ | The example related to display is as following. | ||
- | <file ini boot.ini> | + | <code> |
+ | setenv hdmimode "720p60hz" | ||
- | ODROIDC2-UBOOT-CONFIG | + | # CEC Configuration |
- | + | ||
- | setenv dtbaddr 0x1000000 | + | |
- | setenv loadaddr 0x20000000 | + | |
- | + | ||
- | setenv hdmimode "720p60hz" | + | |
setenv cecconfig "cecf" | setenv cecconfig "cecf" | ||
- | setenv rootopt "root=/dev/mmcblk0p3 rw init=/init rootwait" | + | # HDMI/DVI Mode Configuration |
- | setenv consoleopt "console=ttyS0,115200" | + | # This will enforce the signal type of display |
- | setenv androidopt "androidboot.hardware=odroidc2 androidboot.serialno=${fbt_id#}" | + | # "hdmi" - For HDMI interface |
- | setenv logoopt "osd1,loaded,${fb_addr},${hdmimode}" | + | # "dvi" - For DVI interface |
- | setenv selinuxopt "androidboot.selinux=disabled" | + | setenv vout_mode "hdmi" |
- | setenv bootargs "${rootopt} ${consoleopt} hdmimode=${hdmimode} hdmitx=${cecconfig} logo=${logoopt} ${androidopt} ${selinuxopt}" | + | setenv bootargs "${rootopt} ${consoleopt} hdmimode=${hdmimode} hdmitx=${cecconfig} vout=${vout_mode} overscan_top=${top} overscan_left=${left} overscan_bottom=${bottom} overscan_right=${right} logo=${logoopt} ${androidopt} ${selinuxopt}" |
showlogo ${hdmimode} | showlogo ${hdmimode} | ||
- | movi read dtb 0 ${dtbaddr} | + | </code> |
- | movi read boot 0 ${loadaddr} | + | |
- | booti ${loadaddr} - ${dtbaddr} | + | |
- | + | ||
- | </file> | + | |
====== How to change U-boot configuration by BOOT.INI ====== | ====== 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. | + | In order to support easy boot loader setup, ODROID-C2 also support **boot.ini** 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. |
+ | |||
+ | You can download the file below and copy into your FAT partition. | ||
=== Android boot.ini example === | === Android boot.ini example === | ||
<file ini boot.ini> | <file ini boot.ini> | ||
- | |||
ODROIDC2-UBOOT-CONFIG | ODROIDC2-UBOOT-CONFIG | ||
Line 102: | Line 102: | ||
setenv loadaddr 0x20000000 | setenv loadaddr 0x20000000 | ||
+ | # Resolution Configuration | ||
+ | # 'hdmimode' must be one of below to configure display resolution within | ||
+ | # supported by your TV or monitor. | ||
+ | # Symbol | Resolution | ||
+ | # ----------------------+------------- | ||
+ | # "480p60hz" | 720x480 Progressive 60Hz | ||
+ | # "576p50hz" | 720x576 Progressive 50Hz | ||
+ | # "720p60hz" | 1280x720 Progressive 60Hz | ||
+ | # "720p50hz" | 1280x720 Progressive 50Hz | ||
+ | # "1080p60hz" | 1920x1080 Progressive 60Hz | ||
+ | # "1080p50hz" | 1920x1080 Progressive 50Hz | ||
+ | # "1080p30hz" | 1920x1080 Progressive 30Hz | ||
+ | # "1080p24hz" | 1920x1080 Progressive 24Hz | ||
+ | # "1080i60hz" | 1920x1080 Interlaced 60Hz | ||
+ | # "1080i50hz" | 1920x1080 Interlaced 50Hz | ||
+ | # "2160p60hz" | 3840x2160 Progressive 60Hz | ||
+ | # "2160p50hz" | 3840x2160 Progressive 50Hz | ||
+ | # "2160p30hz" | 3840x2160 Progressive 30Hz | ||
+ | # "2160p25hz" | 3840x2160 Progressive 25Hz | ||
+ | # "2160p24hz" | 3840x2160 Progressive 24Hz | ||
+ | # "2160p60hz420" | 3840x2160 Progressive 60Hz YCbCr 4:2:0 | ||
+ | # "2160p50hz420" | 3840x2160 Progressive 50Hz YCbCr 4:2:0 | ||
+ | # "640x480p60hz" | 640x480 Progressive 60Hz | ||
+ | # "800x480p60hz" | 800x480 Progressive 60Hz | ||
+ | # "800x600p60hz" | 800x600 Progressive 60Hz | ||
+ | # "1024x600p60hz" | 1024x600 Progressive 60Hz | ||
+ | # "1024x768p60hz" | 1024x768 Progressive 60Hz | ||
+ | # "1280x800p60hz" | 1280x800 Progressive 60Hz | ||
+ | # "1280x1024p60hz" | 1280x1024 Progressive 60Hz | ||
+ | # "1360x768p60hz" | 1360x768 Progressive 60Hz | ||
+ | # "1440x900p60hz" | 1440x900 Progressive 60Hz | ||
+ | # "1600x900p60hz" | 1600x900 Progressive 60Hz | ||
+ | # "1680x1050p60hz" | 1680x1050 Progressive 60Hz | ||
+ | # "1920x1200p60hz" | 1920x1200 Progressive 60Hz | ||
setenv hdmimode "720p60hz" | setenv hdmimode "720p60hz" | ||
- | setenv cecconfig "cecf" | ||
- | setenv rootopt "root=/dev/mmcblk0p3 rw init=/init rootwait" | + | setenv rootopt "root=/dev/mmcblk0p2 rw init=/init rootwait" |
setenv consoleopt "console=ttyS0,115200" | setenv consoleopt "console=ttyS0,115200" | ||
setenv androidopt "androidboot.hardware=odroidc2 androidboot.serialno=${fbt_id#}" | setenv androidopt "androidboot.hardware=odroidc2 androidboot.serialno=${fbt_id#}" | ||
Line 111: | Line 144: | ||
setenv selinuxopt "androidboot.selinux=disabled" | setenv selinuxopt "androidboot.selinux=disabled" | ||
- | setenv bootargs "${rootopt} ${consoleopt} hdmimode=${hdmimode} hdmitx=${cecconfig} logo=${logoopt} ${androidopt} ${selinuxopt}" | + | # HDMI/DVI Mode Configuration |
+ | # This will enforce the signal type of display | ||
+ | # "hdmi" - For HDMI interface | ||
+ | # "dvi" - For DVI interface | ||
+ | setenv vout_mode "hdmi" | ||
+ | |||
+ | # HPD enable/disable option | ||
+ | setenv disablehpd "false" | ||
+ | |||
+ | # Overscan offset configuration | ||
+ | # All offsets are zero and can be tuned by manual or ODROID Utility | ||
+ | setenv overscan_top "0" | ||
+ | setenv overscan_left "0" | ||
+ | setenv overscan_bottom "0" | ||
+ | setenv overscan_right "0" | ||
+ | |||
+ | setenv bootargs "${rootopt} ${consoleopt} hdmimode=${hdmimode} hdmitx=${cecconfig} vout=${vout_mode} disablehpd=${disablehpd} logo=${logoopt} ${androidopt} ${selinuxopt}" | ||
+ | save | ||
showlogo ${hdmimode} | showlogo ${hdmimode} | ||
Line 118: | Line 168: | ||
movi read boot 0 ${loadaddr} | movi read boot 0 ${loadaddr} | ||
booti ${loadaddr} - ${dtbaddr} | booti ${loadaddr} - ${dtbaddr} | ||
- | |||
</file> | </file> | ||
Line 128: | Line 177: | ||
===== U-boot commands ===== | ===== 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. | 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 ====== | ====== How to replace booting logo ====== | ||
- | **ODROID-C2** can shows booting logo to the display till target O/S is started. | + | **ODROID-C2** can show booting logo on 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**. | + | Please refer to the following wiki page. |
- | And default size is **1280x720**. You can display any other size of logo file, but it will be showen at the left-top corner. | + | |
- | ===== Using BOOT.INI ===== | + | http://odroid.com/dokuwiki/doku.php?id=en:c2_bootlogo |
- | 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. | + | |
- | <code> | + | |
- | showlogo ${hdmimode} | + | |
- | </code> | + | |
- | The command, showlogo is as following. | ||
- | <code> | ||
- | osd open | ||
- | osd clear | ||
- | vout output ${outputmode} | ||
- | hdmitx output ${outputmode} | ||
- | fatload mmc 0 ${bootlogo_addr} boot-logo.bmp.gz | ||
- | bmp display ${bootlogo_addr} | ||
- | </code> | ||
- | ===== Using FASTBOOT ===== | ||
- | The logo partition is internally assigned in **U-boot** itself, please refer [[http://odroid.com/dokuwiki/doku.php?id=en:c2_partition_table#android_partition_table|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. | ||
- | <code> | ||
- | odroidc2#fastboot | ||
- | </code> | ||
- | Next, run **fastboot** command from your desktop. | ||
- | <code> | ||
- | $ fastboot flash logo boot-logo.bmp.gz | ||
- | </code> |