You can create a custom boot logo for the ODROID-N2 by following the simple instructions below. The logo will appear in the first few seconds of booting while the operating system loads. The basic image format of the ODROID-N2 boot logo file is described in the next section.
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 File Name : 'boot-logo.bmp' or 'boot-logo.bmp.gz'The file name should be 'boot-logo.bmp' or 'boot-logo.bmp.gz'. A sample bmp file can be downloaded from https://wiki.odroid.com/_media/en/boot-logo.bmp.gz. We recommend using GIMP or KolourPaint.
GIMP - Export as Windows BMP - Compatibility Options : Do not write Color Space Information - Advanced Options : 24 bits Color - Name : "boot-logo.bmp"
KolourPaint - Save Image as - Filter : Windows BMP image - Convert to : 24-bit Color
Size Limitation
You must keep the size of your logo file 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 a bmp.gz file.
$ gzip boot-logo.bmp $ ls boot-logo.bmp.gz
Auto scaling option
On ODROID-N2 uboot, image scaling for a boot logo is supported, so that a displayed boot logo will be fixed automatically for output mode as described in boot.ini. For example, in case your using the “1024x600p60hz” mode, the boot logo will be displayed as 1024×600 even though the actual size of bmp file is 1280×720.
Replacing the boot logo
ODROID-N2 scans the existence of the following three parts in numerical order. boot-logo.bmp in VFAT partition boot-logo.bmp.gz in VFAT partition logo data in Android LOGO partition
Android
On Android, you can replace the boot logo with your own custom image. There are two methods to change the boot logo image: Add a image into VFAT partition. Rewrite image data into Android LOGO partition using fastboot.
Method 1. VFAT Copy the new boot-logo.bmp, or boot-logo.bmp.gz, to the VFAT partition.
Method 2. Android Logo Partition First, you must get into your U-Boot command line while pressing ENTER key when your ODROID-N2 is powered up. Execute the fastboot command from U-Boot and connect with your desktop using USB cable.
odroidn2# fastbootNext, run fastboot command from your desktop.
HOST PC
$ fastboot flash logo boot-logo.bmp.gzor
$ fastboot flash logo boot-logo.bmpIf you will use bmp data on the logo partition, make sure there is NO boot-logo.bmp.gz file in your VFAT area, because U-Boot first checks if there is a boot-logo.bmp/boot-logo.bmp.gz in the VFAT area and then checks the logo partition.
Ubuntu
With Ubuntu, a LOGO option is NOT included by default. So, you will need to add a boot logo image into the VFAT partition. A method using a LOGO partition is not available on Ubuntu.
Adding the showlogo command: 1080p60hz case
On U-Boot, the default logo display logic works with 1080p60hz display resolution. So you don't need to add or modify any related commands. Just make sure, however, that the boot logo file exists in the aforementioned locations.
Resolutions other than 1080p60hz
You should add the commands to your boot.ini before bootcmd is executed. Please check if there is a 'showlogo' command in your boot.ini first. If not so, refer to the following:
### Boot Arguments if test "${display_autodetect}" = "true"; then hdmitx edid; fi if test "${hdmimode}" = "custombuilt"; then setenv cmode "modeline=${modeline}"; fi ### Add showlogo with ${hdmimode} size hdmitx mode ${voutmode} showlogo ${hdmimode}
How to use the custom image with Native resolution
If you want to use a native resolution of the bmp image, like 1920×1080, 1024×600 (for VU7+) or 800×480 (for VU7), set arg[2]/arg[3] of the showlogo command as follows:
odroidn2 # help showlogo showlogo - Displaying BMP logo file to HDMI screen with the specified resolution Usage: showlogo [ ] resolution - screen resoltuion on HDMI screen '1080p60hz' will be used by default if missing bmp_width (optional) - width of logo bmp file '1280' will be used by default if missing bmp_height (optional) - height of logo bmp file '720' will be used by default if missingReplace the boot logo image with yours as described in the previous sections and then modify 'showlogo' command in boot.ini. Here are examples:
Logo image size of width 1920 and height 1080
If your monitor's resolution is 1920×1080 and you want to set a bmp file in 1920×1080, set command in boot.ini as follows:
setenv hdmimode "1080p60hz" showlogo ${hdmimode} 1920 1080
Logo image size of width 1024 and height 600
setenv hdmimode "1024x600p60hz" showlogo ${hdmimode} 1024 600
Logo image size of width 800 and height 480
setenv hdmimode "800x480p60hz" showlogo ${hdmimode} 800 480
Android Boot Animation
In case of Android, you can use the bootanimation.zip method to show your custom logo using animation. Please refer to this reference site: https://android.googlesource.com/platform/frameworks/base/+/master/cmds/bootanimation/FORMAT.md The system selects a boot animation zip file from the following locations.
/system/media/bootanimation.zip /oem/media/bootanimation.zipBefore the copy process, you need to change the root filesystem permission to r/w and copy your bootanimation.zip into /system/media/ folder.
console:/ $ su console:/ # mount -o rw,remount /system [ 173.674067@2] EXT4-fs (mmcblk0p11): re-mounted. Opts: block_validity,delalloc,barrier,user_xattr,acl,inode_readahead_blks=8Please make sure of the correct file permission for bootanimation.zip:
console:/ # chmod 755 /system/media/bootanimation.zip console:/ # ls -al /system/media/bootanimation.zip -rwxr-xr-x 1 root root 5030729 2019-03-27 00:41 /system/media/bootanimation.zipThis guide is available on the ODROID wiki at https://wiki.odroid.com/odroid-n2/application_note/bootlogo_n2.
Be the first to comment