嵌入式爱好者

更换bootlogo的算法

2023-5-20 14:32| 发布者: 金色田野的灿烂| 查看: 187| 评论: 0

类目: I.MX6系列产品  >  Linux     文档编号: 1004

kernel阶段的显示是一段数组,如果要提换内核阶段的bootlogo(小企鹅部分)的需要更换bootlogo的算法,否则对应的分辨率无法显示
修改如下:

iff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c
index f53fc155..bf784b34 100644 --- a/drivers/video/console/fbcon.c +++ b/drivers/video/console/fbcon.c @@ -580,7 +580,8 @@ static void fbcon_prepare_logo(struct vc_data *vc, struct fb_info *info, if (fb_get_color_depth(&info->var, &info->fix) == 1) erase &= ~0x400; logo_height = fb_prepare_logo(info, ops->rotate); - logo_lines = DIV_ROUND_UP(logo_height, vc->vc_font.height); + logo_lines=(logo_height)/vc->vc_font.height; + /*logo_lines = DIV_ROUND_UP(logo_height, vc->vc_font.height);*/ q = (unsigned short *) (vc->vc_origin + vc->vc_size_row * rows); step = logo_lines * cols;

已解决

未解决

只是看看

最新评论

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-11-22 16:39

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

返回顶部