linux系统修改启动logo的步骤
2015-10-13 16:26
495 查看
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;
重新编译内核即可;
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;
重新编译内核即可;
相关文章推荐
- centos解压命令大全
- Centos配置国内yum源
- linux应用编程笔记(8)多进程程序设计
- Linux命令(1)
- linux sed命令详解
- 登录rabbitmq的图形化界面(CentOS)
- linux中的列编辑
- windows、linux双系统安装手册
- 性能测试培训:帮你定位 Linux 性能问题的 18 个命令以及工具
- [原创]在Windows和Linux中搭建PostgreSQL源码调试环境
- centos7 初始化
- ls命令详解
- rmdir命令详解
- Linux文件属性
- pwd命令详解
- cd命令详解
- mkdir命令详解
- Centos7安装mysql缺乏yum源怎么安装
- 《王保明老师----Linux开发学习笔记》------讲08:进程 -----多进程下的文件描述符
- 每天一个linux命令(1):wget命令