替换开机 Logo

默认开机 Logo 在 U-Boot 阶段显示,图片直接编入 U-Boot,不依赖 Linux 根文件系统。

图片文件

uboot/drivers/video/u_boot_logo.bmp

当前图片格式为:

BMP,8-bit,200x200

替换图片时建议保持 8-bit BMP,尺寸不能超过当前屏幕分辨率。

使用 ImageMagick 转换示例:

sudo apt install imagemagick
convert logo.png -resize 200x200 -colors 256 BMP3:u_boot_logo.bmp
file u_boot_logo.bmp

确认格式后覆盖:

cp u_boot_logo.bmp ~/v3s-workspace/uboot/drivers/video/u_boot_logo.bmp

重新编译

NAND 版本:

cd ~/v3s-workspace/uboot
make distclean
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- \
    strongpi_v3s_nandflash_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j"$(nproc)"

更新启动介质

NAND 需要重新写入 SPL 和 U-Boot 主体:

xfel spinand splwrite 1024 0 u-boot-sunxi-with-spl.bin
xfel spinand write 0x20000 u-boot.img

TF 卡需要使用 TF 版 U-Boot 重新编译,并重新写入卡的 8KiB 偏移或重新生成整盘镜像。

Linux 启动后的 LVGL 界面不属于 U-Boot Logo。修改 LVGL 应用不会改变 U-Boot 阶段的图片。