This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:common:configurations:change-boot-logo [2022/07/06 06:25] frank Add ubuntu part |
products:sbc:common:configurations:change-boot-logo [2023/03/23 04:35] (current) xiong |
||
---|---|---|---|
Line 5: | Line 5: | ||
This document mainly introduces how to Change Boot Logo. The document is divided into two parts, the first part is for the Ubuntu platform, and the second part is for the Android platform. | This document mainly introduces how to Change Boot Logo. The document is divided into two parts, the first part is for the Ubuntu platform, and the second part is for the Android platform. | ||
- | ===== Ubuntu | + | ===== Linux ===== |
<WRAP info > | <WRAP info > | ||
Line 21: | Line 21: | ||
You can use Terminal to check the default logo image format: | You can use Terminal to check the default logo image format: | ||
- | ```sh | + | ```shell |
$ file / | $ file / | ||
/ | / | ||
``` | ``` | ||
- | You can replace the default logo with your own BMP image. | + | You can replace the default logo with your own **BMP** image. |
- | ==== Kernel Logo ==== | + | ==== Linux Kernel Logo ==== |
Use the netpbm tool to convert png images to ppm images. | Use the netpbm tool to convert png images to ppm images. | ||
- | ```sh | + | ```shell |
$ pngtopnm linux_logo.png > linux_logo.pnm | $ pngtopnm linux_logo.png > linux_logo.pnm | ||
$ pnmquant 224 linux_logo.pnm > linux_logo_clut224.pnm | $ pnmquant 224 linux_logo.pnm > linux_logo_clut224.pnm | ||
Line 45: | Line 45: | ||
The Ubuntu logo file is located at ''/ | The Ubuntu logo file is located at ''/ | ||
- | If you’ve [[/ | + | If you’ve [[/ |
===== Android ===== | ===== Android ===== | ||
+ | <WRAP info > | ||
+ | *Where is original logo file | ||
+ | Logo file is stored in the device/ | ||
+ | *BMP format, should be: | ||
+ | *16bit RGB565 BMP format | ||
+ | *Resolution <= 1080P (1920 * 1080) | ||
+ | *How To Change | ||
+ | |||
+ | Replace the bootup.bmp ,then rebuild the logo.img | ||
+ | </ | ||
+ | |||
+ | ==== Build Logo on Android ==== | ||
+ | |||
+ | 1) Update a new logo picture as you want: | ||
+ | |||
+ | ```shell | ||
+ | $ cp ~/ | ||
+ | ``` | ||
+ | |||
+ | 2) Build the logo: | ||
+ | |||
+ | ```shell | ||
+ | $ cd PATH_YOUR_PROJECT | ||
+ | $ source build/ | ||
+ | $ lunch TARGET_LUNCH | ||
+ | $ make logoimg | ||
+ | ``` | ||
+ | |||
+ | See this build log for reference: | ||
+ | |||
+ | ```shell | ||
+ | $ make logoimg | ||
+ | |||
+ | ... | ||
+ | |||
+ | generate out/ | ||
+ | gzip -c device/ | ||
+ | dbg:item num 8 | ||
+ | dbg:pack item [bootup] | ||
+ | dbg:pack item [upgrade_upgrading] | ||
+ | dbg:pack item [upgrade_fail] | ||
+ | dbg:pack item [upgrade_unfocus] | ||
+ | dbg:pack item [upgrade_error] | ||
+ | dbg:pack item [upgrade_success] | ||
+ | dbg:pack item [upgrade_logo] | ||
+ | dbg:pack item [upgrade_bar] | ||
+ | Installed out/ | ||
+ | |||
+ | #### make completed successfully (01:54 (mm:ss)) #### | ||
+ | ``` | ||
+ | |||
+ | ==== Burn the logo.img Separately ==== | ||
+ | |||
+ | 1) Copy the new logo.img to a thumbdrive (U-disk): | ||
+ | ```shell | ||
+ | $ cp images/ | ||
+ | ``` | ||
+ | 2) Insert the thumbdrive into your VIM3, then boot into U-Boot mode. | ||
+ | |||
+ | 3) Update logo partition as new logo.img: | ||
+ | ```shell | ||
+ | kvim3# usb_update logo logo.img | ||
+ | ``` | ||
+ | 4) Refresh to see the new logo: | ||
+ | ```shell | ||
+ | kvim3# run init_display | ||
+ | ``` | ||
+ | |||
+ | |||
+ | ==== Updage the logo by upgrate whole firmware ==== | ||
+ | |||
+ | 1) replace device/ | ||
+ | |||
+ | 2) build upgrate package | ||
+ | |||
+ | ```shell | ||
+ | $ cd PATH_YOUR_PROJECT | ||
+ | $ source build/ | ||
+ | $ lunch TARGET_LUNCH | ||
+ | $ make installclean -j8 | ||
+ | $ make otapackage -j8 | ||
+ | ``` | ||
+ | |||
+ | 3) Burn upgrate package update.img to your device you can refer How To Upgrate ,restart then you can see the new boot logo | ||
+ | |||
+ | <WRAP info > | ||
+ | *Replace PATH_YOUR_PROJECT to your project path | ||
+ | *Replace TARGET_LUNCH to your lunch select. | ||
+ | *For VIM3, it’s kvim3-userdebug. | ||
+ | *For VIM3L, it’s kvim3l-userdebug. | ||
+ | *TARGET should be kvim3 or kvim3l | ||
+ | </ |