一、將LOGO圖片的大小調整到合適尺寸(480x272)
2. 使用GIMP2生成符合Linux要求的PPM圖片文件
啓動GIMP2打開經過ACDSEE調整的圖片-->
經過菜單 圖像模式索引設置圖形索引最大顏色數爲:224linux
3. 保存爲PPM格式
4. 同時保存爲ASCII數據格式
這樣,咱們就作好了一張滿屏的符合內核要求的啓動LOGO圖片ide
5. 添加到內核
在內核中添加一項咱們的圖片選項,將lcw_logo.ppm複製到driver/video/logo下,並重命名爲lcw_logo_clut224.ppm.spa
6. 修改driver/video/logo/目錄下的Makefile
在Makefile中添加:server
obj
-$(CONFIG_LCW_LOGO_CLUT224)
+=
lcw_logo_clut224.o
7. 修改driver/video/logo/目錄下的Kconfig
Kconfig中添加:blog
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. 從新編譯內核
@成鵬致遠get
(blogs:lcw.cnblogs.com)it
(email:wwwlllll@126.com)編譯
(qq:552158509)