4418 HMI 更换logo 图片

逻辑说明:

HMI 的 kernel 没有提供源码,只是提供了镜像,如果客户需要更换自己的logo 的话, 可以使用提供的工具,将内核+logo 打包起来。

我觉得这里的打包的过程应该是参考了, 4418 build_android.sh 脚本中, 打包 boot.img 的过程。

1 下载HMI的 更换logo 的压缩包

放到 Ubuntu虚拟机中,虚拟机必须是搭建好环境的 ubuntu .

解压后的文件夹。

目录结构。

替换掉 logo.bmp 即可。

使用 ./build_boot.sh 进行 打包,生成 boot.img

2 使用命令,将 boot.img 解压出来。

情况: 1 客户发来 boot.img .2 我需要更换客户的 logo 图片。

所以需要知道如何解压。

安装工具

apt-get install android-tools-fsutils

使用

复制代码
simg2img boot.img boot_ext4.img

将boot.img , 变成 ext4 格式,原来的格式是data ,什么格式也不是。

然后 mount -t ext4 -o loop boot_ext4.img ./mnt 目录下,就可以提取出 被打包的文件了。

3 更换logo 之后,继续打包。

打包命令 ./build_boot.sh ,这是打包的工具包里提供的脚本。

相关推荐
chlk12319 小时前
Linux文件权限完全图解:读懂 ls -l 和 chmod 755 背后的秘密
linux·操作系统
舒一笑20 小时前
Ubuntu系统安装CodeX出现问题
linux·后端
改一下配置文件20 小时前
Ubuntu24.04安装NVIDIA驱动完整指南(含Secure Boot解决方案)
linux
碳基沙盒21 小时前
OpenClaw 多 Agent 配置实战指南
运维
深紫色的三北六号1 天前
Linux 服务器磁盘扩容与目录迁移:rsync + bind mount 实现服务无感迁移(无需修改配置)
linux·扩容·服务迁移
SudosuBash1 天前
[CS:APP 3e] 关于对 第 12 章 读/写者的一点思考和题解 (作业 12.19,12.20,12.21)
linux·并发·操作系统(os)
哈基咪怎么可能是AI2 天前
为什么我就想要「线性历史 + Signed Commits」GitHub 却把我当猴耍 🤬🎙️
linux·github
十日十行3 天前
Linux和window共享文件夹
linux
Sinclair3 天前
简单几步,安卓手机秒变服务器,安装 CMS 程序
android·服务器
木心月转码ing3 天前
WSL+Cpp开发环境配置
linux