当前位置:操作系统 > Unix/Linux >>

GentooFramebuffer,Bootsplash&Grubsplash指南

内容简介:用CD-RW和用软盘一样,往已挂载的CD-ROM上拖放就行。

  1. 内核补丁

  


  下面是对部分内核的 bootsplash 补丁下载地址:

  本文系统平台参数:代码 1.1Gentoo 1.4 RC4kernel 2.4.20-r8Simsung 753 DFX 1024x768@75HzNvidia GF2 MX400 64M

  2. 方案目标

  
  • 高分辨率的 Framebuffer
  • 高分辨率的 Bootsplash
  • 自定义 Framebuffer 字体
  • 自定义 Bootsplash 主题
  • 给你的 Framebuffer 和 Bootsplash 截图
  • 在 Framebuffer 下使用多媒体工具和图形化的浏览器
  • 自定义 Grub splash 图像
  • 扩展 Framebuffer 和 bootsplash 到所有12个虚拟终端
  • 让虚拟终端支持中文
  • 自定义登录问候画面


  3. 开始工作

  

  


  获取必须的 bootsplash 程序

  更新 portage 树代码 3.1# emerge sync

  编译安装media-gfx/bootsplash (字符界面下的 Framebuffer 背景图像)。由于bootsplash默认情况下是mask的,所以我们要:代码 3.2# ACCEPT_KEYWORDS="~x86" emerge bootsplash

  覆盖你原来的bootsplash配置文件:代码 3.3# etc-update

  编译内核以支持 Framebuffer & Bootsplash

  首先检查/usr/src/linux是否指向你当前内核源代码目录代码 3.4# ls -l /usr/src/

  一些版本的内核如gentoo-sources, gaming-sources和xfs-sources已经内置了 Framebuffer 支持,如果你的内核没有支持,请检查并如下打上补丁。代码 3.5# ebuild /var/db/pkg/media-gfx/bootsplash-0.6-r2/bootsplash-0.6-r2.ebuild config

  开始配置内核代码 3.6# cd /usr/src/linux# make menuconfig

  把以下各项编译进内核.不要编译成模块,也不要开启 nvidia 或 ATI 选项(我们只要有vesa就可以了).代码 3.7Code maturity level options

  --->[*] Prompt for development and/or incomplete code/driversProcessor type and features

  --->[*] MTRR (Memory Type Range Register) supportBlock Devices ->[*] Loopback device support[*] RAM disk support(4096)

  Default RAM disk size[*] Initial RAM disk (initrd) supportConsole Drivers ->[*] VGA text console[*] Video mode selection supportConsole Drivers -> Frame-buffer support ->[*] Support for frame buffer devices[*] VESA VGA graphics console[*] Use splash screen instead of boot logo


  开始编译内核,并复制新内核到/boot你最好先备份现有内核),完成后先不要重新启动,也不要卸载/boot分区。代码 3.8make dep && make clean bzImage modules modules_installmount /bootcp /boot/vmlinuz-2.4.20-r8 /boot/vmlinuz-2.4.20-r8.bakcp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.4.20-r8-fb

  如果你在编译内核过程中出现错误,或者丢失了一些配置选项,请按照下面步骤重新编译。
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,