Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    【FAQ】全志R11 Tina如何替换开机Logo?

    其它全志芯片讨论区
    r11 faq 技术支持 显示
    1
    1
    250
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • q1215200171
      budbool LV 8 last edited by q1215200171

      1. 准备工作

      准备一张bmp格式的图片,重命名为bootlogo.fex

      这里以R11平台为例

      把bootlogo.fex替换下面目录的文件

      tina/target/allwinner/banjo-R11_pref1/configs/bootlogo.fex
      

      再重新打包固件

      2. 注意事项

      开机logo的色彩空间要和sys_config.fex中fb0_format配置的一致

      比如fb0_format配置的是ARGB8888 32bit,logo的是RGB888 24bit,开机logo显示正常,但是运行MiniGUI等程序的时候会异常

      可以执行下面的命令看framebuffer的色深从32被改成24了

      cat /sys/class/graphics/fb0/bits_per_pixel
      

      再看一下图层信息

      cat sys/class/disp/disp/attr/sys
      

      fb0_format被改成RGB888 24bit的了

      再比如fb0_format配置的是RGB565 16bit,有些图片看信息是16bit的,但是不是RGB565,而是RGBA5551的,显示也会不正常

      如果不知道怎么转换图片的位深度,可以点击BMP图片格式转换

      1.png

      下面列出fb0_format配置对应的色彩空间格式

      //fb0_format	
      DISP_FORMAT_ARGB_8888 = 0x00, //MSB  A-R-G-B  LSB
      DISP_FORMAT_ABGR_8888 = 0x01,
      DISP_FORMAT_RGBA_8888 = 0x02,
      DISP_FORMAT_BGRA_8888 = 0x03,
      DISP_FORMAT_XRGB_8888 = 0x04,
      DISP_FORMAT_XBGR_8888 = 0x05,
      DISP_FORMAT_RGBX_8888 = 0x06,
      DISP_FORMAT_BGRX_8888 = 0x07,
      DISP_FORMAT_RGB_888 = 0x08,
      DISP_FORMAT_BGR_888 = 0x09,
      DISP_FORMAT_RGB_565 = 0x0a,
      DISP_FORMAT_BGR_565 = 0x0b,
      DISP_FORMAT_ARGB_4444 = 0x0c,
      DISP_FORMAT_ABGR_4444 = 0x0d,
      DISP_FORMAT_RGBA_4444 = 0x0e,
      DISP_FORMAT_BGRA_4444 = 0x0f,
      DISP_FORMAT_ARGB_1555 = 0x10,
      DISP_FORMAT_ABGR_1555 = 0x11,
      DISP_FORMAT_RGBA_5551 = 0x12,
      DISP_FORMAT_BGRA_5551 = 0x13,
      

      附件:FlameGraph.tar.xz

      1 Reply Last reply Reply Quote Share 0
      • 1 / 1
      • First post
        Last post

      Copyright © 2022 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

      行为准则 | 用户协议 | 隐私权政策