linux内核怎么设置开机logo

2020-05-10 娱乐 82阅读
修改Linux内核启动logo
系统环境:ubuntu 10.04 +x86
$ sudoapt-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
$ mvlogo_linux_clut224.ppm{,-bk}
$ cp/home/loongson/Dowload/loongson224.ppm ./
$ mvloongson224.ppm logo_linux_clut224.ppm
$ rmlogo_linux_clut224.c
$ cd///
$ makemenuconfig //在内核里面选上logo 支持
DeviceDrivers --->
[*]Graphics support --->
[*]Bootup logo --->
[*] Standard black and whiteLinux logo
[*] Standard 16-color Linuxlogo
[*] Standard 224-color Linuxlogo
$make
声明:你问我答网所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系fangmu6661024@163.com