1、将LOGO图片的大小调整到合适尺寸(480x272)

 

2. 使用GIMP2生成符合Linux要求的PPM图片文件


    启动GIMP2打开通过ACDSEE调整的图片-->
    通过菜单 图像模式索引设置图形索引最大颜色数为:224

 

3. 保存为PPM格式


 4. 同时保存为ASCII数据格式

 

    这样,我们就做好了一张满屏的符合内核要求的启动LOGO图片

 

5. 添加到内核

    在内核中添加一项我们的图片选项,将lcw_logo.ppm复制到driver/video/logo下,并重命名为lcw_logo_clut224.ppm.

 

6. 修改driver/video/logo/目录下的Makefile


    在Makefile中添加:

    

obj-$(CONFIG_LCW_LOGO_CLUT224)     += lcw_logo_clut224.o

 

7. 修改driver/video/logo/目录下的Kconfig

    Kconfig中添加:

config LCW_LOGO_CLUT224        
bool "224-color lcw Linux logo"        
epends on LOGO        
default n

 

8. 修改driver/video/logo/目录下的logo.c文件

//注意这个选项添加的>>8的条件语句中:
#ifdef CONFIG_LCW_LOGO_CLUT224  
            /*lcw Linux Logo*/
            logo= &lcw_logo_clut224;
#endif

 

9. 修改include/linux/linux_logo.h文件

    在其中添加如下行代码:

extern const struct linux_logo lcw_logo_clut224;

 

10. 重新配置内核

Device serverGraphics support  --->
   [*] Bootup logo  --->
       [ ]   Standard black and white Linux logo
       [ ]   Standard 16-color Linux log o
       [ ]   Standard 224-color Linux logo
       [*]   224-color farsight Linux logo

 

11. 重新编译内核

 

  @成鹏致远

(blogs:lcw.cnblogs.com

(emailwwwlllll@126.com)

(qq552158509





相关文章:

  • 2021-04-25
  • 2021-11-28
  • 2021-12-03
  • 2021-08-20
  • 2021-06-29
  • 2021-05-26
  • 2022-12-23
猜你喜欢
  • 2021-10-24
  • 2021-12-14
  • 2021-10-11
  • 2021-04-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案