uboot中log处理
位图或logo和开机显示画面,是两个完全不同的东西。
logo显示uboot相关信息,如版本号等。
开机画面是用户下载到固定位置后uboot加载的。
1.开机画面
在uboot中使用splash screen可以实现u-boot启动后,在LCD上显示自定义图片。
#define CONFIG_SPLASH_SCREEN 1
#define CONFIG_EXTRA_ENV_SETTINGS \
"splashimage=10080000\0"
并且要定义splashimage变量以及splash变量所定义的地址存放bmp图片。
2. log图片
include/bmp_logo.h //定义logo相关属性及数据, 由工具制作而成。
12 #define BMP_LOGO_WIDTH 240
13 #define BMP_LOGO_HEIGHT 109
14 #define BMP_LOGO_COLORS 30
15 #define BMP_LOGO_OFFSET 16
3.实现过程
common/lcd.c
start_armboot() --> devices_init()/devices.c
-->drv_lcd_init()/ common/lcd.c
-->lcd_init() /common/lcd.c
-->lcd_clear()
-->lcd_logo()
--> lcd_display_bitmap(addr, 0, 0); //显示开机画面
--> bitmap_plot(0, 0); //显示logo
4.lcd相关数据结构,定义于include/lcd.h
typedef struct vidinfo {
162 u_long vl_col; /* Number of columns (i.e. 640) */
163 u_long vl_row; /* Number of rows (i.e. 480) */
164 u_long vl_clk; /* pixel clock in ps */
165
166 /* LCD configuration register */
167 u_long vl_sync; /* Horizontal / vertical sync */
168 u_long vl_bpix; /* Bits per pixel, 0 = 1, 1 = 2, 2 = 4, 3 = 8, 4 = 16 */
169 u_long vl_tft; /* 0 = passive, 1 = TFT */
170
171 /* Horizontal control register. */
172 u_long vl_hsync_len; /* Length of horizontal sync */
173 u_long vl_left_margin; /* Time from sync to picture */
174 u_long vl_right_margin; /* Time from picture to sync */
175
176 /* Vertical control register. */
177 u_long vl_vsync_len; /* Length of vertical sync */
178 u_long vl_upper_margin; /* Time from sync to picture */
179 u_long vl_lower_margin; /* Time from picture to sync */
180
181 u_long mmio; /* Memory mapped registers */
182 } vidinfo_t;
183
184 extern vidinfo_t panel_info;
typedef struct vidinfo {
162 u_long vl_col; /* Number of columns (i.e. 640) */
163 u_long vl_row; /* Number of rows (i.e. 480) */
164 u_long vl_clk; /* pixel clock in ps */
165
166 /* LCD configuration register */
167 u_long vl_sync; /* Horizontal / vertical sync */
168 u_long vl_bpix; /* Bits per pixel, 0 = 1, 1 = 2, 2 = 4, 3 = 8, 4 = 16 */
169 u_long vl_tft; /* 0 = passive, 1 = TFT */
170
171 /* Horizontal control register. */
172 u_long vl_hsync_len; /* Length of horizontal sync */
173 u_long vl_left_margin; /* Time from sync to picture */
174 u_long vl_right_margin; /* Time from picture to sync */
175
176 /* Vertical control register. */
177 u_long vl_vsync_len; /* Length of vertical sync */
178 u_long vl_upper_margin; /* Time from sync to picture */
179 u_long vl_lower_margin; /* Time from picture to sync */
180
181 u_long mmio; /* Memory mapped registers */
182 } vidinfo_t;
183
184 extern vidinfo_t panel_info;
该结构体示例化panel_info定义于board/atmel/at91sam9g10ek/sam9g10ek.c中:
297 vidinfo_t panel_info = {
298 vl_col: 320,
299 vl_row: 240,
300 vl_clk: 6400000,
301 vl_sync: ATMEL_LCDC_INVLINE_INVERTED |
302 ATMEL_LCDC_INVFRAME_INVERTED|
303 ATMEL_LCDC_INVCLK_INVERTED,
304 vl_bpix: 3,
305 vl_tft: 1,
306 vl_hsync_len: 1,
307 vl_left_margin: 70,
308 vl_right_margin:18,
309 vl_vsync_len: 1,
310 vl_upper_margin:13,
311 vl_lower_margin:9,
312 mmio: AT91SAM9261_LCDC_BASE,
313 };
uboot中log处理的更多相关文章
- uboot-tiny4412启动流程(下)----如何将自己的裸板测试程序加入uboot中启动测试
今天在工作上搞了一天高通的芯片uboot程序,目的是希望将一个裸板的程序移植到uboot中,并且开机让它运行.这个芯片是NXP4330,目前是高通的一个芯片,基于ARM-contexA9架构,那么就跟 ...
- uboot中添加FIQ中断及相关问题
本文主要说明了在uboot中添加FIQ中断时遇到的问题以及对应的解决办法. 首先交代一下项目的软硬件环境.硬件方面,使用s3c2440作为主控芯片,外接串口.网卡等设备.软件方面,主控芯片上电后运行u ...
- u-boot中nandflash初始化流程分析(转)
u-boot中nandflash初始化流程分析(转) 原文地址http://zhuairlunjj.blog.163.com/blog/static/80050945201092011249136/ ...
- (四)ubuntu学习前传—uboot中对Flash和DDR的管理
1.uboot阶段Flash的分区 (1)所谓分区,就是说对Flash进行分块管理.(2)PC机等产品中,因为大家都是在操作系统下使用硬盘的,整个硬盘由操作系统统一管理,操作系统会使用文件系统帮我们管 ...
- uboot中gd的定义和使用
近期在做uboot中nand启动相关的工作,遇到一个问题一直纠结着.如今最终明确了这个问题,想想还有好多兄弟在某个黑暗的角落里或者某台电脑前纠结着呢,所以赶紧写下来以供查阅. uboot versio ...
- u-boot中分区和内核MTD分区关系
一.u-boot中环境变量与uImage中MTD的分区关系 分区只是内核的概念,就是说A-B地址放内核,C-D地址放文件系统,(也就是规定哪个地址区间放内核或者文件系统)等等. 一般我们只需要分3-4 ...
- 关于Yaffs2在u-boot中的支持
开发板是一块2G的MLC的NandFlash,页大小8k+512,为其移植u-boot到yaffs2这了.以前在Mini2440上移植过2k+64的slc的NandFlash的Yaffs2支持,当然也 ...
- uboot中raise:Signal #8 caught的根本原因
在移植uboot时编译一切正常,但uboot启动中载入自己写的网卡驱动出现故障,一直在打印raise:Signal #8 caught google 百度了一番,也有非常多人遇到了这个问题,大家都说 ...
- 分析uboot中 make xxx_config过程
make xxx_config实质上就是调用了 首先看MKCONFIG: [注意]SRCTREE=源文件下的目录 之后的语句: @$(MKCONFIG) $(@:_config=) arm arm92 ...
随机推荐
- HDUOJ-------2844Coins
Coins Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submi ...
- JavaScript 设计模式之简介
一.设计模式概念解读 设计模式(Design pattern)是一套被反复使用.多数人知晓的.经过分类编目的.无数实战代码设计经验的总结.使用设计模式是为了让系统代码可重用.可扩展.可解耦.更容易被人 ...
- 数组插件----linq.js
优点 1.支持jQuery插件的方式.jquery.linq.min.js. 2.也可以像普通js方法一样使用.linq.min.js. 3.当然用习惯VS的童鞋肯定希望有个良好的智能感知,是的,它支 ...
- 【js】replace()
replace方法的语法是: stringObj.replace(rgExp, replaceText) 其中stringObj是字符串(string),reExp可以是正则表达式对象(RegExp) ...
- hdu 4961 Boring Sum(高效)
pid=4961" target="_blank" style="">题目链接:hdu 4961 Boring Sum 题目大意:给定ai数组; ...
- hibernate,动态更新,插入 dynamic-insert,dynamic-update 我有话要说 ---稍后整理
http://dreamzhong.iteye.com/blog/1207377 http://blog.csdn.net/hsuxu/article/details/8108326 @org.hib ...
- Latex中定义、定理、引理、证明 设置方法总结
Latex中定义.定理.引理.证明 设置方法总结 在LaTex中需要有关定理.公理.命题.引理.定义等时,常用如下命令 \newtheorem{定理环境名}{标题}[主计数器名] \newtheore ...
- 不能与abstruct共同修饰方法的关键字
一 抽象类:动态方法至少有一个是抽象方法. 其中abstruct关键字修饰的方法不能与哪些关键字共同修饰? 1private 因为private修饰的方法在子类中是隐藏的.不可见的.而abstruct ...
- laravel5的Bcrypt加密方式对系统保存密码
laravel5文档介绍 //对 A 密码使用Bcrypt 加密 $password = Hash::make('mima'); //你也可直接使用 bcrypt 的 function $passwo ...
- 把git上的larave项目通过SourceTree安装上再通过composer安装依赖库
1.项目地址克隆 https://gitee.com/fps2tao/laravel5.5-alitaobao.git 通过SourceTree工具下载到本地 2.在命令行方式打开项目地址安装依赖库( ...