[问题]请问如何安装Intel 945G芯片组的驱动阿??··[解决]

CPU/显卡/打印机/USB设备等硬件问题
回复
头像
kongmen
帖子: 44
注册时间: 2007-06-25 16:44
来自: 广西柳州

[问题]请问如何安装Intel 945G芯片组的驱动阿??··[解决]

#1

帖子 kongmen » 2007-06-29 13:30

系统:Ubuntu 7.04 更新到最新版本(官方下载的版本)
硬件:Intel 945G芯片组

全部默认状态下,用系统自带的电影播放机无法播放rmvb格式的视频文件,提示下载插件后还是无法正常播放

到realplay官方下载了linux版本的播放器可以播放,但是画面卡。

是不是驱动的问题?(第一次安装Ubuntu,对linux了解比较少)

到了Intel官方linux下载中心,获知可以下载945G的驱动来增强3D功能,

但是研究了大半天还是装不成功,编译不过去,又错误。。

下面是安装向导的说明,
Intel Linux Graphics Driver Installation Guide
1. Introduction

In general, Intel graphics driver is well integrated in Linux distributions so users won't worry about the driver setup.

This guide is for those users who would like to build the latest driver from scratch. This will be useful when trying the upstream stuff and customize the graphics driver.
2. Getting source

To make the Intel graphics chipset work, below components are needed:

1, kernel module agpgart and drm;

The source of kernel modules is included in Linux kernel. If they have been built into kernel or built as kernel modules, you need not recompile them. Agpgart is only available from kernel source, but drm can be downloaded standalone.

2, libdrm;

Libdrm is included in drm source.

3, Xorg 2D driver: xf86-video-intel;

4, Mesa and 3D driver;

To get the detailed download address for above components, please refer http://intellinuxgraphics.org/download.html.
3. Building

We suppose you have downloaded all components under directory $DOWN_ROOT except kernel source.
3.1 Agpgart

To compile agpgart, you must recompile kernel.

Note: from kernel 2.6.20, agpgart can only build into kernel rather than building as modules.

When you execute "make menuconfig", you should:

-- Go to Device Driver -> Character devices

-- Go to /dev/agpgart (AGP Support)

-- Hit SPACE to build AGP support as Module

-- Enable Intel chipsets' support for AGP as Module
3.2 Drm and libdrm

To compile drm, simply enter source directory and execute make:

$ cd $DOWN_ROOT/drm/linux-core

$ make

Two binary modules will be generated: drm.ko and i915.ko. Then copy these two binary kernel modules to kernel lib directory:

$ cp *.ko /lib/module/$(uname -r)/kernel/driver/char/drm/

Build and install libdrm:

$ cd $DOWN_ROOT/drm

$ ./autogen.sh

Note: libdrm installs to /usr/local/lib by default. To install in /usr/lib run:

$ ./autogen.sh --prefix=/usr --exec-prefix=/

$ make

$ make install

libdrm.so will be installed to /usr/lib.
3.3 Xorg 2D driver

If you install xorg in another directory(refered as $XORG_DIR) instead of overriding the xorg shipped in your Linux distribution, you need set two macros at first:

$ export PKG_CONFIG_PATH=${XORG_DIR}/lib/pkgconfig:$PKG_CONFIG_PATH

$ export ACLOCAL="aclocal -I ${XORG_DIR}/share/aclocal"

Of coz, if you install xserver to another directory, you need compile all xorg modules. As for the detailed guide about xserver and xorg module compilation, please refer to Xorg Modular Developers' Guide.

The compilation of 2D driver is simple:

$ cd $DOWN_ROOT/xf86-video-intel

$ ./autogen.sh --prefix=${XORG_DIR}

$ make && make install

At last, 2D driver library file (intel_drv.so) will be installed to $XORG_DIR/lib/xorg/modules/drivers/.
3.4 Mesa and 3D driver

The 3D drivers are built from the Mesa source. Choose the right 'make' target depending on the hardware architecture you're compiling for. linux-dri is generic configuration file for all architectures on Linux.

You can edit configs/linux-dri file to customize the building. The first line defines some compiler optimization/debugging flags. You can simply use the default settings. The last line can be used to optimize the build by compiling only the drivers you need.

DRI_DIRS = <dri drivers>

The full set of current supported drivers is :

DRI_DIRS = i810 i915tex i915 mach64 mga r128 r200 radeon s3v savage sis tdfx trident unichrome r300

If you only need Intel driver, you can modify this line as:

DRI_DIRS = i915 i965

Note: You will need to update PKG_CONFIG_PATH if you installed libdrm in /usr/local/lib. For example, export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH.

Now you're ready to compile it:

$ make linux-dri

After compiling the Mesa tree, the 3D drivers can be found in mesa/lib/. You will need to copy the drivers to $XORG_DIR/lib/modules/dri/. In different OS distribution, the default directory may be different. You can also specify an environment variable LIBGL_DRIVES_PATH to override this default directory.

$ cp lib/*_dri.so $XORG_DIR/lib/modules/dri/

You need to install the mesa library and head files, by default they are /usr/local/lib and /usr/local/include. You can override this directory in command line when execute the installation script:

$ bin/installmesa $XORG_DIR
4. Configuration
4.1 Load kernel modules

If agpgart and drm are not compiled into kernel, when system boot up you need load these kernel modules: agpgart, intel-agp, drm and i915.

To automatically load kernel modules when system boot up, you can edit file /etc/modules to add modules' name (on Debian/Ubuntu); or edit file /etc/rc.local to add lines such as: modprobe agpgart.
4.2 Enable Intel driver

Make sure intel driver is used in Xorg configure file (usually is /etc/X11/xorg.conf):

Section "Device"

Identifier "name"

Driver "intel"

Entries...

...

EndSection

Note: The old name i810 has been deprecated now.
4.3 Enable DRI

DRI (Direct Rendering Infrastructure) is a framework for allowing direct access to graphics hardware under the X Window System in a safe and efficient manner. You need enable DRI in xorg.conf.

Firstly, make sure the GLX and DRI modules are being loaded:

Section "Module"

# ...

Load "glx"

Load "dri"

# ...

EndSection

Then, set the permissions for DRI appropriately. To allow anyone to use DRI, do:

Section "DRI"

Mode 0666

EndSection

After restart X server, you can check whether direct rendering is enabled by running glxinfo, the output of glxinfo should show:

direct rendering: Yes
5. Reference

[1] http://intellinuxgraphics.org - Intel Linux graphics website.

[2] http://dri.freedesktop.org/wiki/Building - Document about building and installing DRM and Mesa.

[3] http://wiki.x.org/wiki/ModularDevelopersGuide - Document about building and installing Xorg.
。。。 :roll:
上次由 kongmen 在 2007-06-30 0:52,总共编辑 1 次。
yjwork
帖子: 422
注册时间: 2006-10-24 11:46
系统: debian

#2

帖子 yjwork » 2007-06-29 14:36

realplay 卡安装 alsa-oss
修改文件 /usr/bin/realplay

if [ -n "$DEBUG" -a -x "$CATCHSEGV" ]; then
$CATCHSEGV $REALPLAYBIN ${1+"$@"}
else
while /bin/true; do
# Restart the player if exit code is 10
aoss $REALPLAYBIN "$@"
if [ $? -ne 10 ]; then
break
fi
done
fi

如上加入 aoss
头像
kongmen
帖子: 44
注册时间: 2007-06-25 16:44
来自: 广西柳州

#3

帖子 kongmen » 2007-06-29 16:02

谢谢你的帮助,
不过怎么安装那个alsa-oss 哦?

而且修改文件的那个目录也找不到。

谢谢,
我搜索过论坛,似乎找不到有用的信息,而且是参照了许多资料搞不定才上来询问的哦
头像
kongmen
帖子: 44
注册时间: 2007-06-25 16:44
来自: 广西柳州

#4

帖子 kongmen » 2007-06-29 20:37

谢谢各位,问题解决了,

使用了mplayer,并设置了相关内容可以播放了,谢谢各位!

原来还有好多资料呢,哈哈,我找不到的? :P :P
图片

linux菜鸟,多搜索,多交流。

通讯:Eva
翻译:星际译王
输入:Fcitx
音频:Audacious
视频:Mplayer
。。。。学习中
回复