参考原址:http://www.cnblogs.com/hellokitty2/p/7580414.html
一、确认系统会显示小企鹅:
make menuconfig:
-> Device Drivers
│ -> Graphics support
│ -> Support for frame buffer devices
│ -> (0) Default Window (0-4)
make后会显示一只小企鹅在左上角
二、新增一个开机图片:
1、在kernel/drivers/video/logo的Kconfig中添加配置文件:
#lqm added for xgd bootup logo.
config LOGO_XGDLINUX_CLUT224
bool "XGD 224-color Linux logo"
default y
#end added.
2、make menuconfig在
-> Device Drivers
│ -> Graphics support
│ -> Support for frame buffer devices
| ->Bootup logo
下面多出了XGD 224-color Linuxlogo,取消其他LOGO选项,选中XGD 224-color Linux logo,退出;
3、确保图片不超过LCD分辨率;
4、修改kernel/drivers/video/logo下的logo.c文件:
// lqm added for G300.
#ifdef CONFIG_LOGO_XGDLINUX_CLUT224
logo = &logo_xgdlinux_clut224;
#endif
// end added.
5、修改kernel/include/linux/linux_logo.h文件:
extern const struct linux_logo logo_xgdlinux_clut224;// lqm added for G300
6、修改kernel/drivers/video/logo下的makefile文件:
obj-$(CONFIG_LOGO_XGDLINUX_CLUT224) += logo_xgdlinux_clut224.o #lqm added
7、制作图片:
sudo apt-get install netpdm//安装netpdm
准备一张png图片:
pngtopnm bg.png > logo.pnm
pnmquant 224 logo.pnm > logo_xgd_clut224.pnm
pnmtoplainpnm logo_xgd_clut224.pnm > logo_xgdlinux_clut224.ppm
上述生成ppm图片国产名字不可重复否则会报错:EOF / read error reading magic number
8、重新make内核即可