Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
odroid-n2:application_note:bootlogo_n2 [2019/03/21 10:34]
joy.cho [Logo Image Format]
odroid-n2:application_note:bootlogo_n2 [2020/03/31 18:05] (current)
tobetter
Line 1: Line 1:
-========= Tips for boot logo on ODROID-N2 ​======= +========= Tips to use custom ​boot logo ======= 
- +<note important>​ 
-===== Logo Image Format ===== +The instruction on this page is only available for ODROID-C4/​N2 
-The basic image format ​of ODROID-N2 ​logo file is as following.+</​note>​ 
 +<WRAP info round> 
 +Using the display auto detection option, the broken logo display can be shown with the latest version.\\ 
 +Please use manual display mode by setting **setenv display_autodetect "​false"​** of boot.ini. 
 +</​WRAP>​ 
 +===== Boot Logo Image Format ===== 
 +The basic image format ​for a boot logo file is as follows.
  
 === Format === === Format ===
Line 12: Line 18:
 </​code>​ </​code>​
  
-Here is the sample ​bmp file.+Here is the sample ​BMP file.
 {{:​en:​boot-logo.bmp.gz|}} {{:​en:​boot-logo.bmp.gz|}}
  
-We recommend using GIMP or KolourPaint.\\ +We recommend using GIMP or %%KolourPaint%% for boot logo creation.\\ 
-Here is an advanced ​option.+Here are the advanced ​options for each of the recommended programs. 
 + 
 +**[ GIMP ]**
 <​code>​ <​code>​
 - Export as Windows BMP - Export as Windows BMP
Line 22: Line 30:
 - Advanced Options : 24 bits Color - Advanced Options : 24 bits Color
 - Name : "​boot-logo.bmp"​ - Name : "​boot-logo.bmp"​
 +</​code>​
 +
 +**[ %%KolourPaint%% ]**
 +<​code>​
 +- Save Image as 
 +- Filter : Windows BMP image
 +- Convert to : 24-bit Color
 </​code>​ </​code>​
  
 === Size Limitation === === 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.+It is important to note that, **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 BMP format is supported, so if the size is over 2MB, you can use bmp.gz file.
 <code bash> <code bash>
Line 34: Line 49:
  
 === Auto scaling option === === Auto scaling option ===
-On ODROID-N2 uboot, **image scaling for boot logo** is supported,​\\+On the bootloader <U-Boot>, **image scaling for boot logo** is supported,​\\
 so displayed boot logo will be fixed automatically for output mode as described in boot.ini.\\ 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 1024x600 even though actual size of bmp file is 1280x720.+For example, in case of using the mode "​1024x600p60hz", ​the boot logo will be displayed as 1024x600 even though ​the actual size of the bmp file is 1280x720.
 ===== How to replace boot logo with your custom image ===== ===== How to replace boot logo with your custom image =====
-ODROID-N2 scans the existence of the following three parts in numerical order.\\+Your ODROID ​board will scan the existence of the following three parts in numerical order.\\
   - boot-logo.bmp in VFAT partition   - boot-logo.bmp in VFAT partition
   - boot-logo.bmp.gz in VFAT partition   - boot-logo.bmp.gz in VFAT partition
Line 46: Line 61:
  
 ==== Android ==== ==== Android ====
-On Android, you can replace boot logo with your custom image.+In Android, you can replace ​the boot logo with your custom image.
  
-There are two ways to change boot logo image.+There are two ways to change ​the boot logo image.
   - Add a image into VFAT partition.   - Add a image into VFAT partition.
   - Rewrite image data into Android LOGO partition using fastboot.   - Rewrite image data into Android LOGO partition using fastboot.
Line 56: Line 71:
  
 === 2. Android Logo Partition === === 2. Android Logo Partition ===
-If you want to replace logo data in logo partition, please follow this guide.\\+If you want to replace ​the logo data in the 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.\\ +First, you must get into your U-Boot command line while pressing ​the **ENTER** key when your ODROID ​board is powered up.\\ 
-And execute **fastboot** command from U-Boot and connect with your desktop using USB cable.+And execute **fastboot** command from U-Boot and connect ​it with your desktop using USB cable.
  
-**[ ODROID-N2 Target ​]**+**[ On ODROID ]**
 <code bash target> <code bash target>
-odroidn2# fastboot+# fastboot
 </​code>​ </​code>​
  
Line 75: Line 90:
  
 <WRAP round important>​ <WRAP round important>​
-If you will use bmp data on logo partition, make sure there is **NO boot-logo.bmp.gz file on your VFAT area**, \\ +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 at first if there are boot-logo.bmp/​boot-logo.bmp.gz ​on VFAT area and then check logo partition.+because U-Boot first checks ​if there is a boot-logo.bmp/​boot-logo.bmp.gz ​file in the VFAT area and then checks the logo partition.
 </​WRAP>​ </​WRAP>​
  
 ==== Ubuntu ==== ==== Ubuntu ====
 With Ubunut, LOGO option is NOT included by default.\\ With Ubunut, LOGO option is NOT included by default.\\
-So, you need to add a boot logo image into **VFAT** partition.+So, you need to add a boot logo image into **VFAT** partition.\\ 
 +The way using LOGO partition is not available on Ubuntu.
 ===== How to add showlogo command in boot.ini ===== ===== How to add showlogo command in boot.ini =====
  
Line 105: Line 121:
 </​code>​ </​code>​
  
 +===== How to use the custom image with Native resolution =====
  
 +If you want to use a native resolution of bmp image like 1920x1080, 1024x600 (for VU7+) or 800x480 (for VU7),\\
 +please set the arg[2]/​arg[3] of **showlogo** command as following.
 +
 +<code bash target>
 +# help showlogo
 +showlogo - Displaying BMP logo file to HDMI screen with the specified resolution
 +
 +Usage:
 +showlogo <​resolution>​ [<​bmp_width>​ <​bmp_height>​]
 +        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 missing
 +</​code>​
 +
 +Replace boot logo image with yours as described in previous sections\\
 +and then modify '​showlogo'​ command in boot.ini.\\
 +
 +Here are examples.
 +
 +=== 1. Logo image size of width 1920 and height 1080  ===
 +If your monitor'​s resolution is 1920x1080 and you want to set a bmp file in 1920x1080,​\\
 +set command in boot.ini as following.
 +
 +<code ini>
 +setenv hdmimode "​1080p60hz"​
 +showlogo ${hdmimode} 1920 1080
 +</​code>​
 +
 +=== 2. Logo image size of width 1024 and height 600  ===
 +<code ini>
 +setenv hdmimode "​1024x600p60hz"​
 +showlogo ${hdmimode} 1024 600
 +</​code>​
 +
 +=== 3. Logo image size of width 800 and height 480  ===
 +<code ini>
 +setenv hdmimode "​800x480p60hz"​
 +showlogo ${hdmimode} 800 480
 +</​code>​
 +
 +===== Android Boot Animation =====
 +In case of Android, you can use **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.
 +<​code>​
 +/​system/​media/​bootanimation.zip
 +/​oem/​media/​bootanimation.zip
 +</​code>​
 +
 +Before copy process, you need to change root filesystem permission as r/w.\\
 +And copy your bootanimation.zip into /​system/​media/​ folder.
 +<code bash target>
 +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=8
 +</​code>​
 +
 +Please make sure file permission of bootanimation.zip.
 +<code bash target>
 +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.zip
 +</​code>​