This is an old revision of the document!


Tips for boot logo on ODROID-N2

The image format of ODROID-N2 logo file is as following.

Format

Image Format : 24-bit Windows BMP image or 24-bit Windows Gzipped BMP image (without meta-data)
Image Size : 1280 by 720
Color Depth : 24bpp Color
The file name should be 'boot-logo.bmp' or 'boot-logo.bmp.gz'

Here is the sample bmp file. boot-logo.bmp.gz

We recommend using GIMP or KolourPaint.
Here is an advanced option.

- Export as Windows BMP
- Compatibility Options : Do not write Color Space Information
- Advanced Options : 24 bits Color
- Name : "boot-logo.bmp"

Size Limitation

And please keep the size of your logo file must be under 2MB because the logo partition of Android is limited to 2MB. Gzip BMP format is supported, so if the size is over 2MB, you can use bmp.gz file.

$ gzip boot-logo.bmp 
$ ls 
boot-logo.bmp.gz

Auto scaling option

On ODROID-N2 uboot, image scaling for boot logo is supported,
so displayed boot logo will be fixed automatically for output mode as described in boot.ini.

For example, in case of using the mode “1024x600p60hz”, boot logo will be displayed as 1024×600 even though actual size of bmp file is 1280×720.

ODROID-N2 scans the existence of the following three parts sequentially.

  1. boot-logo.bmp in VFAT partition
  2. boot-logo.bmp.gz in VFAT partition
  3. logo data in Android LOGO partition

If you will use bmp data on logo partition, make sure there is NO boot-logo.bmp.gz file on your VFAT area,
because U-Boot checks very first if there are boot-logo.bmp/boot-logo.bmp.gz on VFAT area and then check logo partition.

Android

On Android, you can replace boot logo with your custom image.

There are two ways to change boot logo image.

  1. Add a image into VFAT partition.
  2. Rewrite image data into Android LOGO partition using fastboot.

1. VFAT

Copy the new boot-logo.bmp (or boot-logo.bmp.gz) to VFAT partition.

2. Android Logo Partition

If you want to replace logo data in logo partition, please follow this guide.

First, you must get into your U-Boot command line while pressing ENTER key when your ODROID-N2 is powered up.
And execute fastboot command from U-Boot and connect with your desktop using USB cable.

[ ODROID-N2 Target ]

odroidn2# fastboot

Next, run fastboot command from your desktop.
[ HOST PC ]

$ fastboot flash logo boot-logo.bmp.gz
or 
$ fastboot flash logo boot-logo.bmp

Ubuntu

With Ubunut, LOGO option is NOT included by default.
So, you need to add boot logo image into to boot partition.

You should add the commands to your boot.ini before bootcmd is executed.

Please check if there is 'showlogo' command in your boot.ini first. If not so, refer to the following.

Android

showlogo ${hdmimode}

Ubuntu

# Boot Arguments
if test "${display_autodetect}" = "true"; then usb pwren; hdmitx edid; fi
if test "${m}" = "custombuilt"; then setenv cmode "modeline=${modeline}"; fi
 
### You should add the following lines after **hdmitx edid** command.
showlogo ${m}
setenv logoopt "osd1,loaded,0x3f800000,${m}"
 
# Boot Arguments - Add logo args on the existing bootargs parameter
setenv bootargs "root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait ro ${condev} no_console_suspend hdmimode=${m} ${cmode} m_bpp=${m_bpp} vout=${vout} fsck.repair=yes net.ifnames=0 elevator=noop disablehpd=${hpd} max_freq=${max_freq} maxcpus=${maxcpus} monitor_onoff=${monitor_onoff} disableuhs=${disableuhs} mmc_removable=${mmc_removable} usbmulticam=${usbmulticam} ${hid_quirks} logo=${logoopt}"