修改linux内核启动logo

原文地址:http://blog.sina.com.cn/s/blog_afeaebf00101g9lx.html

修改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

你可能感兴趣的:(修改linux内核启动logo)