“MY-I.MX6 评估板 开发指导手册 系统LOGO”的版本间的差异

来自明远智睿的wiki
跳转至: 导航搜索
第1行: 第1行:
 +
<div>
 +
 
= '''u-boot LOGO修改(u-boot LOGO modification)''' =
 
= '''u-boot LOGO修改(u-boot LOGO modification)''' =
 
----
 
----
第64行: 第66行:
 
内核修改LOGO这方面的资料在网络上很常见,这里不再写入文档。<br>
 
内核修改LOGO这方面的资料在网络上很常见,这里不再写入文档。<br>
 
<span style="background:#CCCCCC">the guide for kernel modify LOGO is easily found in internet, so it is ignored here。</span><br>
 
<span style="background:#CCCCCC">the guide for kernel modify LOGO is easily found in internet, so it is ignored here。</span><br>
 +
</div>

2018年6月11日 (一) 15:12的版本

u-boot LOGO修改(u-boot LOGO modification)


下载工具(download tool)

  • 所在路径

pathname
2.1_系统_Linux-3.0.35 > 04_开发指导 > 01_系统LOGO
2.1_system_Linux-3.0.35 > 04_development instruction > 01_ system LOGO

  • 文件说明

file instruction
Bin2C.exe:用来把BMP位图转换成.c文件。
Bin2C.exe:to convert BMP to .c file。
myzr.bmp:示例图像文件(8位位图)。
myzr.bmp:sample image file(8 bit BMP)。
myzr.c:示例.c文件。
myzr.c:sample.c file。


准备 LOGO(prepare LOGO)

准备LOGO图像文件(prepare LOGO image file)

准备BMP格式(8位位宽)的图像文件。
prepare BMP format(8 bit)image file。

转换数据(data conversion)

使用Bin2C.exe将图像文件转换成C文件。
convert image file to C file with Bin2C.exe。

修改代码(modify code)

修改C文件(modify C file)

  • 修改变量名称与u-boot中代码一致,以保证数据被正确调用

modify variable name to be consistent with code in u-boot,to ensure data to be transfered correctly
编辑上面生成的c文件,修改为
compile the c file created above,modify
unsigned char acmyzr[] = {

const unsigned char myzr_bmp_logo[] = {

  • 添加数据大小的定义

add definition of data size
在“End of file”前一行插入
insert
in previous row of“End of file”

int myzr_bmp_logo_size = sizeof(myzr_bmp_logo);


替换C文件(replace C file)

将myzr.c 改名为 myzr_bmp_logo.c,并替换掉 u-boot 源码中的 board/myzr/common/myzr_bmp_logo.c
change myzr.c to be named as myzr_bmp_logo.c,then replace board/myzr/common/myzr_bmp_logo.c in u-boot source code with it

编译(compile)

参照《MY-IMX6 Linux-3.0.35 编译手册
refer to《MY-IMX6 Linux-3.0.35 compilation manual

测试(test)

更新系统到新的u-boot。
renew system to the new u-boot。
重新启动即可在评估板的液晶屏上看到需要的LOGO。
re-boot and LOGO needed will be shown on LCD screen of evaluation board。


内核修改LOGO(kernel modify LOGO)


内核修改LOGO这方面的资料在网络上很常见,这里不再写入文档。
the guide for kernel modify LOGO is easily found in internet, so it is ignored here。