系统环境:ubuntu 10.04 +x86
$ sudo apt-get install netpbm
$ pngtopnm loongson.png > loongson.pnm
说明:用来转换的图片必须为 png 格式,否则会有如下提示:
pngtopnm: input file not a PNG file
$ pnmquant 224 loongson.pnm > loongson224.pnm
pnmcolormap: making histogram...
pnmcolormap: 5854 colors found
pnmcolormap: choosing 224 colors...
pnmremap: 222 colors found in colormap
注意:此处 pnmquant 必须输出到另一个不同名的文件,否则会出现如下错误提示
eg:$ pnmquant 224 loongson.pnm > loongson.pnm
pnmcolormap: EOF / read error reading magic number
pnmcolormap failed, rc=256
$ pnmtoplainpnm loongson224.pnm > loongson224.ppm
然后用转换好的 loongson224.ppm 替换 kernel
/drivers/video/logo/logo_linux_clut224.ppm(最好先做好备份)
,然后删除同一目
录下的 logo_linux_clut224.c 文件,重新编译内核即可
$ cd /home/work/kenrel/linux26_3210/drivers/video/logo
$ mv logo_linux_clut224.ppm{,-bk}
$ cp /home/loongson/Dowload/loongson224.ppm ./
$ mv loongson224.ppm logo_linux_clut224.ppm
$ rm logo_linux_clut224.c
$ cd ../../../
$ make menuconfig //在内核里面选上logo 支持
Device Drivers --->
[*] Graphics support --->
[*] Bootup logo --->
[*] Standard black and white Linux logo
[*] Standard 16-color Linux logo
[*] Standard 224-color Linux logo
$ make
阅读(1552) | 评论(0) | 转发(1) |