duos sd version enable bootlogo partition

regardless of whether the logo is enabled in u-boot
This commit is contained in:
carbon
2024-05-27 01:03:50 +08:00
parent d41e90e48a
commit cfad8f8dc6
3 changed files with 2 additions and 4 deletions

View File

@ -198,7 +198,7 @@ function copy_tools
command rm -rf "$OUTPUT_DIR"/tools
command mkdir -p "$OUTPUT_DIR"/tools/
command cp -rf "$TOOLS_PATH"/"${CHIP_ARCH,,}"/usb_dl/ "$OUTPUT_DIR"/tools/
if [ "$ENABLE_BOOTLOGO" -eq 1 ];then
if [[ "$ENABLE_BOOTLOGO" -eq 1 ]] || [[ ${BOARD} == "milkv_duos_sd" ]];then
python3 "$IMGTOOL_PATH"/raw2cimg.py "$BOOTLOGO_PATH" "$OUTPUT_DIR" "$FLASH_PARTITION_XML"
fi
command cp --remove-destination "$FLASH_PARTITION_XML" "$OUTPUT_DIR"/

View File

@ -573,7 +573,7 @@ function cvi_setup_env()
BOOTLOGO_PATH="${TOP_DIR}/device/${MV_BOARD}/${MV_BOOTLOGO}"
else
ENABLE_BOOTLOGO=0
BOOTLOGO_PATH=""
BOOTLOGO_PATH="$COMMON_TOOLS_PATH"/bootlogo/logo.jpg
fi
}

View File

@ -26,12 +26,10 @@ image milkv-duos-sd.img {
image = "boot.vfat"
}
/*
partition logo {
image = "logo.jpg"
size = 2M
}
*/
partition rootfs {
partition-type = 0x83