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 [2023/03/23 04:35] xiong |
products:sbc:common:configurations:change-boot-logo [2024/12/18 02:25] (current) xiong [kernel logo] |
||
|---|---|---|---|
| Line 49: | Line 49: | ||
| ===== Android ===== | ===== Android ===== | ||
| + | |||
| + | Because RK merged the logo partition with the system partition into a single super partition after Android 10, there is no logo partition available to dynamically modify the boot logo. This means that a complete firmware build is required to achieve this operation. Now, we have added a new custom partition to facilitate the dynamic update of the logo. | ||
| + | |||
| + | |||
| + | ==== Logo Format ==== | ||
| <WRAP info > | <WRAP info > | ||
| *Where is original logo file | *Where is original logo file | ||
| - | Logo file is stored in the device/khadas/ | + | Logo file is stored in the kernel-6.1/logo.bmp directory in android code. |
| *BMP format, should be: | *BMP format, should be: | ||
| *16bit RGB565 BMP format | *16bit RGB565 BMP format | ||
| *Resolution <= 1080P (1920 * 1080) | *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: | + | ==== Kernel Logo ==== |
| - | ```shell | + | We use the adb command to push the prepared logo.bmp to the motherboard path /vendor/custom and then restart the device. |
| - | $ cp ~/ | + | |
| - | ``` | + | |
| - | + | ||
| - | 2) Build the logo: | + | |
| ```shell | ```shell | ||
| - | $ cd PATH_YOUR_PROJECT | + | $ adb root |
| - | $ source build/ | + | restarting adbd as root |
| - | $ lunch TARGET_LUNCH | + | |
| - | $ make logoimg | + | |
| - | ``` | + | |
| - | + | ||
| - | See this build log for reference: | + | |
| - | + | ||
| - | ```shell | + | |
| - | $ make logoimg | + | |
| - | + | ||
| - | ... | + | |
| - | generate out/target/product/kvim3/upgrade/logo.img | + | $ adb remount |
| - | gzip -c device/khadas/kvim3/ | + | AVB verification is disabled, disabling verity state may have no effect |
| - | dbg:item num 8 | + | Remounted |
| - | dbg:pack item [bootup] | + | Remounted |
| - | dbg:pack item [upgrade_upgrading] | + | Remounted |
| - | dbg:pack item [upgrade_fail] | + | Remounted |
| - | dbg:pack item [upgrade_unfocus] | + | Remounted |
| - | dbg:pack item [upgrade_error] | + | Remounted |
| - | dbg:pack item [upgrade_success] | + | Remounted |
| - | dbg:pack item [upgrade_logo] | + | Remounted |
| - | dbg:pack item [upgrade_bar] | + | Remount succeeded |
| - | Installed out/ | + | |
| - | #### make completed successfully (01:54 (mm:ss)) #### | + | $ adb push logo.bmp /vendor/custom |
| - | ``` | + | logo.bmp: 1 file pushed, 0 skipped. 655.0 MB/s (4147272 bytes in 0.006s) |
| - | + | ||
| - | ==== Burn the logo.img Separately ==== | + | |
| - | + | ||
| - | 1) Copy the new logo.img to a thumbdrive (U-disk): | + | |
| - | ```shell | + | |
| - | $ cp images/logo.img /media/ | + | |
| - | ``` | + | |
| - | 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 | + | |
| ``` | ``` | ||
| Line 122: | Line 93: | ||
| ==== Updage the logo by upgrate whole firmware ==== | ==== Updage the logo by upgrate whole firmware ==== | ||
| - | 1) replace | + | 1) replace |
| 2) build upgrate package | 2) build upgrate package | ||
| Line 128: | Line 99: | ||
| ```shell | ```shell | ||
| $ cd PATH_YOUR_PROJECT | $ cd PATH_YOUR_PROJECT | ||
| - | $ source build/ | + | $ source build/ |
| - | $ lunch TARGET_LUNCH | + | $ ./ |
| - | $ make installclean | + | |
| - | $ make otapackage | + | |
| ``` | ``` | ||
| 3) Burn upgrate package update.img to your device you can refer How To Upgrate ,restart then you can see the new boot logo | 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 | ||
| - | </ | ||