zoukankan      html  css  js  c++  java
  • linux 启动logo

    1:准备png图片;

    2:安装netpbm

    apt-get install netpbm

    3:制作 ppm图片

    保存一个png图片logo.png,按如下方式操作:

    #pngtopnm logo.png > linuxlogo.pnm

    # pnmquant 224 linuxlogo.pnm > linuxlogo224.pnm

    # pnmtoplainpnm linuxlogo224.pnm > logo_linux_clut224.ppm

    将logo_linux_clut224.ppm 拷贝至drivers/video/logo/目录下

    4:配置内核

    Device Drivers ->

    Graphics Support ->

    [*] Support for frame buffer devices

    [*] VESA VGA graphics support

    Console display driver support ->

    [*] Video mode selection support

    [*] Framebuffer Console support

    [*]Select compiled-in fonts

    [*]VGA 8x16 font

    Logo configuration->

    [*]Bootup logo

    5:修改内核代码

    修改drivers/video/fbmem.c : 471-474行

    image.dx = 0;

    image.dy = y;

    image.width = logo->width;

    image.height = logo->height;

    //image.dx = 0;

    //image.dy = y;

    image.width = logo->width;

    image.height = logo->height;

    image.dx=(info->var.xres - image.width)/2;

    image.dy=(info->var.yres - image.height)/2;

    修改drivers/video/console/fbcon.c, 在582行

    logo_height = fb_prepare_logo(info, ops->rotate);

    后面加入

    logo_height += (info->var.yres - logo_height)/2;

    重新编译内核即可;

    http://hi.baidu.com/steven926/blog/item/4724adfcdbd6163b5d6008b5.html

  • 相关阅读:
    站点设计
    站点规划
    自动登录百度网盘
    windows下配置Python虚拟环境
    拖拽效果
    jQuery 基础
    js操作BOM
    js操作DOM
    selenium+js自动连接Magic_WiFi
    弹框
  • 原文地址:https://www.cnblogs.com/cute/p/2491381.html
Copyright © 2011-2022 走看看