Hugo

フレームバッファコンソール おさらい!

2007年12月14日 17:45:43


Kernelが2.6.23になってフレームバッファの取扱いが変わったみたい。そこでもう一度フレームバッファのおさらいをします。2.6.22まではvesafb-tngのドライバを使っていたんだけどuvesafbに変更になったのがポイントみたいです。

※まずは現在の状態
 利用中のカーネルは(linux-2.6.22-gentoo-r8)これ!
 今回使うのは(linux-2.6.23-gentoo-r3)これ
※まずカーネルのコンフィグレーション
gentooez9 ~ # cd /usr/src
gentooez9 src # rm linux
gentooez9 src # ln -s /usr/src/linux-2.6.23-gentoo-r3 linux
gentooez9 src # cd linux
gentooez9 linux # cp ../linux-2.6.22-gentoo-r8/.config ./
gentooez9 linux # make menuconfig

変更点はこのへんです。
Device Drivers -> Graphics support ->と移って
VESA VGA graphics supportの*をはずしUserspace VESA VGA graphics support (NEW) に*をつけます。

またその下のConsole display driver support ->に移って
Framebuffer Console supportが*になってることを確認してSupport for the Framebuffer Console Decorations (NEW)に*をつける。


つぎにDevice Drivers -> Input device support ->へ移って
Event interfaceに*をつける。(これはなぜかわからない?)




※でカーネルのビルド
menuconfigはセーブして終了する。

gentooez9 linux # mount /dev/hda1 /boot
gentooez9 linux # genkernel --menuconfig --splash=gentoo --bootloader=grub kernel
* Gentoo Linux Genkernel; Version 3.4.9_pre6
* Running with options: --menuconfig --splash=gentoo --bootloader=grub kerne l

* Linux Kernel 2.6.23-gentoo-r3 for x86...

genketnelのオプションは微妙!

※klibcのインストール
 v86d splashutilsをインストールするために必要みたい
gentooez9 linux # emerge klibc
インストールの最初で現在/usr/src/linuxでリンクされているカーネルを見に行くから最初にカーネルのコンフィグレーションとビルドが必要なのでしょうか?

※v86d splashutilsのインストール
 これは新しいフレームバッファドライバ(uvesafb)が利用するんだと!
gentooez9 linux # emerge -av v86d splashutils
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild N ] media-gfx/fbgrab-1.0 12 kB
[ebuild N ] sys-apps/v86d-0.1.3 USE="-debug" 66 kB
[ebuild N ] media-gfx/splashutils-1.5.2.1 USE="gpm png truetype -hardened -mng" 1,443 kB
[blocks B ] media-gfx/splashutils (is blocking media-gfx/bootsplash-0.6.1-r7)

Total: 3 packages (3 new, 1 block), Size of downloads: 1,521 kB

!!! Error: The above package list contains packages which cannot be installed
!!! at the same time on the same system.

For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked
 私の場合この2つだけではなく、media-gfx/fbgrabもインストールされるみたい。それにmedia-gfx/bootsplash-0.6.1-r7がブロックしてmedia-gfx/splashutilsがインストールできないよ!だって。
 そこで
gentooez9 linux # emerge -C media-gfx/bootsplash
 してもう一回
gentooez9 linux # emerge -av v86d splashutils
* Messages for package sys-apps/v86d-0.1.3:

* If you wish to place v86d into an initramfs image, you might want to use
* '/usr/share/v86d/initramfs' in your kernel's CONFIG_INITRAMFS_SOURCE.

* Messages for package media-gfx/splashutils-1.5.2.1:

* It is required that you add 'console=tty1' to your kernel
* command line parameters.
*
* After these modifications, the relevant part of the kernel command
* line might look like:
* splash=silent,fadein,theme:emergence console=tty1
*
* The sample Gentoo themes (emergence, gentoo) have been removed from the
* core splashutils package. To get some themes you might want to emerge:
* media-gfx/splash-themes-livecd
* media-gfx/splash-themes-gentoo
* Please note that the 'fbsplash' kernel patch has now been renamed to
* 'fbcondecor'. Accordingly, the old 'splash' initscript is now called
* 'fbcondecor'. Make sure you update your system. See:
* http://dev.gentoo.org/~spock/projects/fbcondecor/#history
* for further info about the name changes.
*
* Also note that splash_util has now been split into splash_util, fbsplashd
* and fbcondecor_ctl.
* GNU info directory index is up-to-date.
 最後のメッセージはこんな感じ!

※x86dのカーネル組み込み
gentooez9 linux # genkernel --menuconfig --splash=gentoo --bootloader=grub kernel
 General setup -> から Initial RAM filesystem and RAM disk (initramfs/initrd) suppor*であることを確認し、Initramfs source file(s)を設定する。ないようは

 /usr/share/v86d/initramfsこれ!
 そのままkernel再構築

※fbcondecorをbootのlanlevelに登録
gentooez9 linux # rc-update add fbcondecor boot

※splashテーマの登録
 テーマは2種類あるみたい。splash-themes-livecdとsplash-themes-gentooですがこんかいはlivecdでやってみる。もしかしてgentooだとあのなつかしい牛がでてくるのかな?
gentooez9 linux # emerge -av splash-themes-livecd

※RAMディスクイメージの作成
 ここでは自分の環境にあわせて解像度を決定しましょう。
gentooez9 linux # splash_geninitramfs livecd-2007.0 -r 1024x768 -g /boot/initrd-splash.gz -v

※grubの修正
title=Gentoo Linux (2.6.23-gentoo-r3)
root (hd0,0)
kernel (hd0,0)/boot/kernel-genkernel-x86-2.6.23-gentoo-r3 gentoo=nodevfs real_root=/dev/hdb1 video=uvesafb:mtrr:3,ywrap,1024x768-24 splash=silent,theme:livecd-2007.0 console=tty1
initrd (hd0,0)/boot/initrd-splash.gz

 こんな感じかな

※再起動
でこんな!gentooのロゴが輝いてるね!起動中のアイコンの動きなんかもなかなか可愛い!

コメント

コメントはありません

コメント送信

このアイテムは閲覧専用です。コメントの投稿、投票はできません。