内核界面 小光标

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

内核界面 小光标

Jump to solution
1,151 Views
强王
Contributor IV

在内核启动过程中,还没有进入文件系统

屏幕左上角上有个小光标,这个该怎么取消

kernel:3.10.53

Labels (1)
Tags (1)
0 Kudos
1 Solution
974 Views
强王
Contributor IV

已找到解决办法

两种方法

1:在内核的当前目录进入到drivers/video/console/fbcon.c文件,

static void fb_flashcursor(void *private)

static void fbcon_cursor(struct vc_data *vc, int mode)

用空函数替代

(已测试)

2、另一种禁止光标的方法:

drivers/video/console/Makefile

#obj-$(CONFIG_FRAMEBUFFER_CONSOLE) += fbcon.o bitblit.o font.o softcursor.o

obj-$(CONFIG_FRAMEBUFFER_CONSOLE) += fbcon.o bitblit.o font.o

编译遇到一个soft_cursor没有定义的问题问题,注释代码:

drivers/video/console/bitblit.c

//      if (err)

//              soft_cursor(info, &cursor);

View solution in original post

0 Kudos
4 Replies
975 Views
强王
Contributor IV

已找到解决办法

两种方法

1:在内核的当前目录进入到drivers/video/console/fbcon.c文件,

static void fb_flashcursor(void *private)

static void fbcon_cursor(struct vc_data *vc, int mode)

用空函数替代

(已测试)

2、另一种禁止光标的方法:

drivers/video/console/Makefile

#obj-$(CONFIG_FRAMEBUFFER_CONSOLE) += fbcon.o bitblit.o font.o softcursor.o

obj-$(CONFIG_FRAMEBUFFER_CONSOLE) += fbcon.o bitblit.o font.o

编译遇到一个soft_cursor没有定义的问题问题,注释代码:

drivers/video/console/bitblit.c

//      if (err)

//              soft_cursor(info, &cursor);

0 Kudos
974 Views
BiyongSUN
NXP Employee
NXP Employee

without modify the code, you can try

echo 0 > /sys/class/graphics/fbcon/cursor_blink

To take it effect at the system bootup, please add to the sysctl configuration file.

Or add  echo 0 > /sys/class/graphics/fbcon/cursor_blink  to the system initialize script  ex:  /etc/init.d/local.rc

0 Kudos
974 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi Qiang,

     这可能是由于你在U-BOOT参数中这样设置:console=tty0,。。。。的原因,内核把LCD(或者你当前的显示屏)作为终端了。你可以改成你的调试串口为console, 比如console=ttymxc0,115200。

     不过,即使不去消除这个光标也没什么影响,毕竟这是linux显示的光标。

freescale tic team

Weidong

0 Kudos
974 Views
强王
Contributor IV

HI Weidong

     我也奇怪了,参数一直是console=ttymxc0,115200,但它还有个小光标

0 Kudos