2011/03/15

Logo
安裝工具 (pngtopnm,pnmquant,pnmtoplainpnm)
# sudo get-apt install netpbm

a.========================================
# pngtopnm linuxlogo.png > linuxlogo.pnm
# pnmquant 224 linuxlogo.pnm > linuxlogo224.pnm
# pnmtoplainpnm linuxlogo224.pnm > linuxlogo224.ppm
b.==========================================
# bmptoppm linuxlogo.bmp > linuxlogo.ppm
# ppmquant 224 linuxlogo.ppm > linuxlogo.ppm 
# pnmnoraw linuxlogo.ppm > linuxlogo224.ppm  //ascii


 如何將開機logo中的游標去除

drivers/video/console/fbcon.c文件
將static void fb_flashcursor(void *private)製成空函數如下
     static void fb_flashcursor(void *private)
     {
     #if 0 //modify by yejj for clear cursor of lcdc
     struct fb_info *info = private;
     struct fbcon_ops *ops = info->fbcon_par;
     struct display *p;
     struct vc_data *vc = NULL;
     int c;
     int mode;
     .
     .
     .
     get_color(vc, info, c, 0));
     release_console_sem();
     #endif
     }
同樣的方法將函數static void fbcon_cursor(struct vc_data *vc, int mode)用空函數替換


另一種禁止光標的方法:
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
//ABING
//      if (err)
//              soft_cursor(info, &cursor);

沒有留言: