修改linux內(nèi)核啟動(dòng)logo
系統(tǒng)環(huán)境:ubuntu 10.04 +x86
本文引用地址:http://www.ex-cimer.com/article/201610/305947.htm$ sudo apt-get install netpbm
$ pngtopnm loongson.png > loongson.pnm
說明:用來轉(zhuǎn)換的圖片必須為 png 格式,否則會(huì)有如下提示:
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 必須輸出到另一個(gè)不同名的文件,否則會(huì)出現(xiàn)如下錯(cuò)誤提示
eg:$ pnmquant 224 loongson.pnm > loongson.pnm
pnmcolormap: EOF / read error reading magic number
pnmcolormap failed, rc=256
$ pnmtoplainpnm loongson224.pnm > loongson224.ppm
然后用轉(zhuǎn)換好的 loongson224.ppm 替換 kernel
/drivers/video/logo/logo_linux_clut224.ppm(最好先做好備份)
,然后刪除同一目
錄下的 logo_linux_clut224.c 文件,重新編譯內(nèi)核即可
$ 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 //在內(nèi)核里面選上logo 支持
Device Drivers --->
[*] Graphics support --->
[*] Bootup logo --->
[*] Standard black and white Linux logo
[*] Standard 16-color Linux logo
[*] Standard 224-color Linux logo
$ make
評(píng)論