Gentoo-WiKi

본문 바로가기
사이트 내 전체검색


Gentoo Linux >> System Administration for Gentoo Linux
[목차]
제3장 System Administration

    5. I915 비디오카드에서 X윈도우 사용하기


1.  개요

  I915 비디오 카드를 사용하기 위해서는 두가지 패치를 해야 합니다.

        - AGP 패치 : I915 드라이버 사용을 위한 패치입니다.

        - DRI 패치 : Direct Rendering Infrastructure(DRI)을 사용하기 위한 패치입니다.


2.  X윈도우 설치하기

  DRI지원을 위해 make.conf파일을 아래와 같이 수정합니다.

# vi /etc/make.conf

INPUT_DEVICES="keyboard mouse synaptics"

VIDEO_CARDS="i810"

 

USE="dri"

  INPUT_DEVICES는 USB 키보드, 마우스 지원을 위해 넣은 부분입니다.

# emerge -av xorg-x11

  기본 설치는 6.x 버전이 설치되고, 7.0을 설치하기위해서는 별도 설정을 해야합니다.


3.  AGP 패치

  xorg-x11 패키지의 버전이 최근에 6.x에서 7.0으로 올라가면서 6.x에서 해야 하는 lnx_agp.c파일에 대한 패치는 하지 않아도 됩니다.

  7.0버전에서 X윈도우를 실행 중에 화면이 먹통이 되는 현상이 발생하는데, 이것을 처리하기 위해 xf86Bus.c 파일을 아래의 단계을 통해 패치해야 합니다.

# cd /usr/portage/x11-base/xorg-server/

# ebuild xorg-server-1.0.1-r4.ebuild unpack

# cd /var/tmp/portage/xorg-server-1.0.1-r4/work/xorg-server-1.0.1/hw/xfree86/common

# vi xf86Bus.c

생략...

validdatepci();  /* 삭제하거나 주석처리 합니다.*/

생략...


다음은 컴파일 및 설치 작업을 합니다.

# cd /usr/portage/x11-base/xorg-server/

# ebuild xorg-server-1.0.1-r4.ebuild compile

# ebuild xorg-server-1.0.1-r4.ebuild install

# ebuild xorg-server-1.0.1-r4.ebuild qmerge

위의 단계를 거치면 AGP 패치가 끝나고, 기본 X화면을 확인할 수 있습니다. GNOME, KDE, XFce4등을 설치하여 X화면을 보다 편하게 사용하시기 바랍니다.

4.  커널 컴파일


  다음은 DRI사용을 위한 패치작업을 하겠습니다. dri를 사용하기 위해서는 dri지원을 위한 드라이버 설치가 필요한데, 커널의 것을 사용할 수도 있고, Open Source에서 나온 드라이버를 사용할 수도 있습니다. 현재 7.0과 커널에서 지원하는 dri를 설치한 결과 충돌이 있어 Open Source에서 나온 드라이버를 사용하였습니다.


  커널 설정을 합니다.

# make menuconfig

Loadable module support  --->  

[*] Enable loadable module support

[*]   Module unloading

[*]     Forced module unloading

[ ]   Module versioning support (EXPERIMENTAL) 

[ ]   Source checksum for all modules

[*]   Automatic kernel module loading  


Device Drivers  --->  

Character devices  --->

<M> /dev/agpgart (AGP Support)

<M>   Intel 440LX/BX/GX, I8xx and E7x05 chipset support

< > Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)

  커널에서 지원하는 DRM은 선택하지 않아야 합니다. 외부에서 지원하는 DRI을 사용합니다.


# make && make modules modules_install


  boot파티션은 부팅후 unmount되므로 다시 마운트한 후에 install을 실행합니다.

# mount /boot

# make install


5.  DRI 패치


  아래 사이트에서 다운 받습니다. 비디오 카드에 맞는 최신 버전을 다운로드 합니다.

http://dri.freedesktop.org/snapshots

  압축을 풉니다.

# tar xvfj i915-20060305-linux.i386.tar.bz2

# cd i915-20060305-linux.i386

# ./install.sh

 

DIRECT RENDERING OPEN SOURCE PROJECT  -  DRIVER INSTALLATION SCRIPT

 

[ http://dri.freedesktop.org ]

 

=========================================================================

 

Welcome to the DRI Driver Installation Script

 

The package you downloaded is for the following driver:

 

Driver Name    : i915

Description    : Intel i915 Driver

Architecture   :

Build Date     : 20060305

Kernel Module  : i915

 

Optional Information

 

Driver Version      : 

Special Description : 

 

Press ENTER to continue or CTRL-C to exit. [엔터]

 

DIRECT RENDERING OPEN SOURCE PROJECT  -  DRIVER INSTALLATION SCRIPT

 

[ http://dri.freedesktop.org ]

 

=========================================================================

 

The script will need to copy the DRI Xorg driver modules to

your Xorg directories.

 

The script will use the following Xorg directories:

 

Xorg Dir         : /usr

Xorg Modules Dir : /usr/lib/xorg/modules

Xorg Library Dir : /usr/lib

 

If this is correct press ENTER, press C to change or CTRL-C to exit.[엔터]

  [엔터]키를 클릭하면 컴파일 단계를 거친후 설치작업이 이루어집니다.


# glxinfo

...

direct rendering : Yes

...

  X윈도우를 실행하고, glxinfo를 실행 할때 위와같은 메시지가 나온다면 DRI를 지원하게 된것입니다.

[목차]

개인정보취급방침 서비스이용약관 모바일 버전으로 보기 상단으로

TEL. 063-469-4551 FAX. 063-469-4560 전북 군산시 대학로 558
군산대학교 컴퓨터정보공학과

Copyright © www.leelab.co.kr. All rights reserved.