嵌入式Linux开发,去掉内核kernel开机画面logo屏幕上的光标
发布日期:2021-05-10 06:26:32 浏览次数:4 分类:技术文章

本文共 766 字,大约阅读时间需要 2 分钟。

修改 kernel/drivers/video/console/fbcon.c 文件中的函数,将函数 fb_flashcursor 的内容全部注释掉,重新编译下载内核,重启开发板光标便去除了,如下:

static void fb_flashcursor(struct work_struct *work){/*	struct fb_info *info = container_of(work, struct fb_info, queue);	struct fbcon_ops *ops = info->fbcon_par;	struct vc_data *vc = NULL;	int c;	int mode;	console_lock();	if (ops && ops->currcon != -1)		vc = vc_cons[ops->currcon].d;	if (!vc || !CON_IS_VISIBLE(vc) || 	    registered_fb[con2fb_map[vc->vc_num]] != info ||	    vc->vc_deccm != 1) {		console_unlock();		return;	}	c = scr_readw((u16 *) vc->vc_pos);	mode = (!ops->cursor_flash || ops->cursor_state.enable) ?		CM_ERASE : CM_DRAW;	ops->cursor(vc, info, mode, softback_lines, get_color(vc, info, c, 1),		    get_color(vc, info, c, 0));	console_unlock();*/}

 

转载地址:https://blog.csdn.net/weixin_43782998/article/details/112287737 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:嵌入式Linux开发,去掉内核kernel开机画面logo屏幕上的打印信息
下一篇:嵌入式Linux开发,更换内核kernel开机画面LOGO—左上角小企鹅图标(分辨率为80*80)

发表评论

最新留言

表示我来过!
[***.240.166.169]2023年11月14日 19时27分35秒