|
我安装fc4的时候,安装程序就不认识显卡,就进入文本模式了,
我装好后用startx命令,结果出错
错误信息:
不存在文件或目录:/dev/hda0
via(0):找不到合适的模式
我的电脑显卡是:VIA 的K8M800芯片,显示器是三星788df,内核是2.6.11
我到下载了VIA的驱动结构是这样的:
/viafb.modes
/viafb-install
/fedoracore/4.0/viafb.ko
然后里面的readme.txt文件是这样的:
---------------------------------------------------------------------------
Building and loading viafb device driver for Linux kernel 2.6
---------------------------------------------------------------------------
Building fbcon console module.
Step 1: Change to folder /usr/src/linux-2.6.
# cd /usr/src/linux-2.6.
The linux-2.6 directory depend on your kernel version, so if your kernel version is
2.6.5-1.358, you should type "/usr/src/linux-2.6.5-1.358".
Step 2: Configuring the kernel module
# make menuconfig
Step 3: Select fbcon item to module.
-> Device Drivers->Graphics support->Console display driver support->
<M> Framebuffer Console support
Step 4: Save the current setting and quit.
Step 5: Make fbcon module. <--------编译出错
# make modules
Note that if no any error, this step will be produced "fbcon.ko" in
/usr/src/linux-2.6./drivers/video/console folder.
Step 6: Copy fbcon.ko to lib folder.
# cp /usr/src/linux-2.6./drivers/video/console/fbcon.ko \
/lib/modules/2.6./kernel/drivers/video
---------------------------------------------------------------------------
Building viafb as a module. (for Linux kernel 2.6)
Make sure you have the kernel sources in /usr/src/linux-2.6.
Change to the viafb directory, and then following below steps:
Step 1: change to folder /usr/src/linux-2.6.
# cd /usr/src/linux-2.6.
The linux-2.6 directory depend on your kernel version, so if your kernel version is
2.6.5-1.358, you should type "/usr/src/linux-2.6.5-1.358".
Step 2: copy viafb folder in current directory.
# cp -rf .../viafb ./
Step 3: change to viafb directory
# cd /viafb
Step 4: Clear all object file.
# make clean
Step 5: Make source code
# make
Note that if no any error, this step will be produced an object file "viafb.ko".
Step 6: Install viafb.ko framebuffer driver
# make install
---------------------------------------------------------------------------
Using the viafb module. (for Linux kernel 2.6)
If you want to modprobe viafb.ko into kernel and change the display mode in Linux kernel 2.6 and later versions,
you need a framebuffer device driver(viafb.ko) and a framebuffer console module(fbcon.ko).
Modprobing viafb will not change the display mode until you modprobe fbcon.
You can see the related steps below.
Step 1: Start viafb with default settings.
# modprobe viafb
Note that you can see the other options from "Using the viafb module. (for Linux kernel 2.4)" section.
Step 2: Modprope fbcon.
# modprobe fbcon
我应该怎么驱动我的显卡呢? |
|