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; |
|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )
GMT+8, 2024-11-22 16:39
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.