LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1703|回复: 6

求助:威盛k8M800显卡芯片驱动

[复制链接]
发表于 2005-10-18 09:19:24 | 显示全部楼层 |阅读模式
我装的是fc4 kernel 2.6.11-13669
装的时候就说不能识别显卡,进入文本模式
我用startx就说不存在路径/dev/hda0
应该是我的显卡没驱动
我已经下到官方的驱动了
但我太菜鸟,我不知道怎么装
我把readme.txt贴出来
还有驱动程序文件目录
/readme.txt
/viafb.modes
/viafb-install
/FedoraCore/4.0/pentium/viafb.ko
---------------------------------------------------------------------------

               VIA Integration Graphic Chip Console Framebuffer Driver
      Copyright 2005 VIA Technologies, Inc. All Rights Reserved.

---------------------------------------------------------------------------
Platform

The console framebuffer driver is for Graphics chips of
VIA UniChrome Family (CLE266, KM400, KN400, K8M800, K8N800, PM800, PN800, CN400, P4M800Pro/CE, VN800, CN700).

---------------------------------------------------------------------------
Driver features

    Device: CRT, TV
    Support Mode: CRT:  640x480(60,75,85,100,120Hz), 720x480(60Hz),
                        720x576(60Hz), 800x600(60,75,85,100,120Hz),
                        848x480(60Hz), 856x480(60Hz), 1024x512(60Hz),
                        1024x768(60,75,85,100Hz), 1152x864(75Hz),
                        1280x768(60Hz), 1280x960(60Hz), 1280x1024(60,75,85Hz),
                        1440x1050(60Hz), 1600x1200(60,75Hz),
                        1280x720(60Hz), 1920x1080(60Hz), 1400x1050(60Hz), 800x480(60Hz)
                  TV:   VT1622, VT1622A, VT1623 (640x480, 800x600, 1024x768, 720x480, 720x576, 848x480)
                        VT1625  (640x480, 800x600, 1024x768, 720x480, 720x576, 1280x720(HDTV), 1920x1080(HDTV))

    color depth : 8 bpp, 16 bpp, 32 bpp
    TV encoder : VIA VT1622, VT1622A, VT1623, VT1625
    TV output : VT1622 (Composite, S-Video, Composite+S-Video, YCBCR)
                VT1622A ,VT1623 (Composite, S-Video, Composite+S-Video, RGB, YCBCR, SDTV_RGB, SDTV_YPBPR)
                VT1625 (Composite, S-Video, Composite+S-Video, RGB, YCBCR , SDTV_RGB, SDTV_YPBPR, HDTV_RGB_720P, HDTV_YPBPR_720P, HDTV_RGB_1080I, HDTV_YPBPR_1080I)
    TV type : NTSC,PAL
    Support TV overscan display
    Support 2D hardware accelerator for kernel 2.6.

---------------------------------------------------------------------------
Building viafb as a module. (for Linux kernel 2.4)
    Make sure you have the kernel sources in /usr/src/linux-2.4.
    Change to the viafb directory, and then following below steps:
    Step 1: change to folder /usr/src/linux-2.4.
            # cd /usr/src/linux-2.4.
              The linux-2.4 directory depend on your kernel version, so if your kernel version is
              2.4.18-3, you should type "/usr/src/linux-2.4.18-3".
    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.o".
    Step 6: Install viafb.o framebuffer driver
            # make install

---------------------------------------------------------------------------
Using the viafb module. (for Linux kernel 2.4)

    Start viafb with default settings,
        #modprobe viafb

    Start viafb with with user options,
        #modprobe viafb mode=800x600 bpp=16 refresh=60 TV_ON=1 tv_system=1 tv_level=1
        tv_out_signal=4 mode1=1024x768 bpp1=16 refresh1=60 SAMM_ON=1

        mode :
            640x480    (default)
            720x480
            800x600
            1024x768
            ......

        bpp :
            8, 16, 32  (default : 32)

        refresh :
            60, 75, 85, 100, 120 (default : 60)
            
        CRT_ON:
            0 : CRT disable
            1 : CRT enable  (default)     

        TV_ON :
            0 : TV disable  (default)
            1 : TV enable
        
        tv_system :
            0 : none
            1 : NTSC  (default)
            2 : PAL

        tv_level :
            VT1622, VT1622A, VT1623
                0 : underscan (default)
                1 : fitscan (close to fit Industry TV Screen)
                2 : overscan
            Other TV Encoders
                0 : underscan (default)
                1 : overscan
               
        tv_out_signal:
            1: Composite
            2: S-Video
            3: Composite+S-Video (default)
            4: RGB
            5: YCBCR (or component)
            6: RGB+Composite
            7: YCBCR+Composite
            8. SDTV_RGB   (480P, 576P)
            9. SDTV_YPBPR (480P, 576P)
           10. HDTV_RGB   (720P)
           11. HDTV_YPBPR (720P)
           12. HDTV_RGB   (1080I)
           13. HDTV_YPBPR (1080I)
           
        tv_dedotcrawl:
            0: Disable DeDotCrawl Function (default)
            1: Enable DeFotCrawl Function
               Note that the DeDotCrawl work under NTSC and composite outputting condition, other
               conditions don't support this function.
               
        tv_ffilter:  To set TV Flicker Filter level
            0 ~ 2  : VT1622, VT1622A, VT1623
            0 ~ 3  : VT1625

        tv_brightness:
            0 ~ 255   : To set TV output brightness
            
        tv_contrast:
            0 ~ 255   : To set TV output contrast
            
        tv_saturation:
            0 ~ 65535 : To set TV output saturation
            
        tv_tint:
            0 ~ 2047  : To set TV output tint
            Note:  Different TV encoder have different default values of TV color features
            including brightness, contrast, saturation, and tint.            
        
        DVI_ON:
            0 : DVI disable
            1 : DVI enable  (default)     

        LCD_ON :
            0 : LCD disable (default)
            1 : LCD enable
            
        lcd_dsp_method:
            0 : expandsion  (default)   
            1 : centering
        
        lcd_panel_id:
            0 : Resolution: 640x480,   Channel: single, Dithering: Enable
            1 : Resolution: 800x600,   Channel: single, Dithering: Enable
            2 : Resolution: 1024x768,  Channel: single, Dithering: Enable   (default)   
            3 : Resolution: 1280x768,  Channel: single, Dithering: Enable
            4 : Resolution: 1280x1024, Channel: dual,   Dithering: Enable
            5 : Resolution: 1400x1050, Channel: dual,   Dithering: Enable
            6 : Resolution: 1600x1200, Channel: dual,   Dithering: Enable            
            9 : Resolution: 1024x768,  Channel: dual,   Dithering: Enable
            10: Resolution: 1024x768,  Channel: single, Dithering: Disable
            11: Resolution: 1024x768,  Channel: dual,   Dithering: Disable
            12: Resolution: 1280x768,  Channel: single, Dithering: Disable
            13: Resolution: 1280x1024, Channel: dual,   Dithering: Disable
            14: Resolution: 1400x1050, Channel: dual,   Dithering: Disable
            15: Resolution: 1600x1200, Channel: dual,   Dithering: Disable

        accel: (only for kernel 2.6)
            0 : No 2D Hardware Acceleration  (default)
            1 : 2D Hardware Acceleration

        SAMM_ON:
            0 : SAMM_ON disable (default)
            1 : SAMM_ON enable

        mode1 secondary display device)
            640x480    (default)
            720x480
            800x600
            1024x768
            ......
       
        bpp1 secondary display device)
            8, 16, 32  (default : 32)

        refresh1 secondary display device)
            60, 75, 85, 100, 120 (default : 60)

        active_dev:
            This option is used to specify active devices. (CRT, TV, DVI, LCD, CRT+TV, CRT+LCD, CRT+DVI,...)
            In SAMM case, the previous of active_dev is primary device, and the following is secondary device.
            For example:
            To enable one device, such as TV only, we should use:
                modprobe viafb active_dev=TV ...

            To enable two devices, such as CRT+TV:
                For simultaneous case, we can use:
                    modprobe viafb active_dev=CRT+TV ...
                    OR
                    modprobe viafb active_dev=TV+CRT ...
                    
                For SAMM case:
                    If CRT is primary and TV is secondary, we should use:
                        modprobe viafb active_dev=CRT+TV SAMM_ON=1 ...
                    If TV is primary and CRT is secondary, we should use:
                        modprobe viafb active_dev=TV+CRT SAMM_ON=1 ...
                    
    Note :
        1. If TV is enabled, the refresh rate will be bound to TV type (NTSC:60Hz, PAL:50Hz).
        2. CRT may not display properly for simultaneous CRT & TV display at
           the "640x480" PAL mode with TV overscan enabled.
        3. When SAMM is enable, mode and mode1,bpp and bpp1,refresh and refresh1 can  
be different.

---------------------------------------------------------------------------
Configure viafb options with "fbset" tool

    "fbset" is an inbox utility of Linux.

    1. Inquire current viafb information, type,
           # fbset -i

    2. Set various resolutions and refresh rates,
           # fbset <resolution-vertical_sync>
       example,
           # fbset "1024x768-75"

       Check the file "/etc/fb.modes" to find display modes available.

    3. Set the color depth,
           # fbset -depth <value>
       example,
           # fbset -depth 16

---------------------------------------------------------------------------
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
 楼主| 发表于 2005-10-18 09:41:01 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2005-10-18 09:45:54 | 显示全部楼层
http://www.epiawiki.org/wiki/tiki-index.php
http://sourceforge.net/projects/viaexp/
楼主加油,如果要真能把驱动装上这个芯片还是很爽的
回复 支持 反对

使用道具 举报

发表于 2005-11-24 23:30:40 | 显示全部楼层
我的fc4能识别,但是最高只有60hz
回复 支持 反对

使用道具 举报

发表于 2005-11-25 17:55:21 | 显示全部楼层
俺是菜鸟,我也是只有60HZ,分辨率最高为800*600,怎样改为1024*768,大虾们帮帮忙阿
回复 支持 反对

使用道具 举报

发表于 2005-11-30 11:11:42 | 显示全部楼层
以下是VIA的技术支持给我的回复:
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

但是:我的FC4.0下的 /usr/src的目录下根本就没有任何文件。
回复 支持 反对

使用道具 举报

发表于 2006-8-28 17:49:46 | 显示全部楼层
VIA的技术支持给你的回复是对的,我已经编译出来了。你照着Readme.txt里面的后半部分做好了,就是对于2.6.*内核的说明,要重编译内核模块的。

但是我这里又碰到一个问题,modprobe的时候,花屏了。可能是我的显卡芯片型号搞错了。

顺便问一个问题,我的是MSI K8MM-V的主板,VIA/S3G UnichromeII的显卡,我以为是K8M800,结果像上面说的那样,是花屏,知道的朋友告诉我一下,这款主板对就的VIA芯片究竟是什么型号?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表