Help needed in installing S3 video driver

Hi,

I’ve just successfully installed OpenSuse 11.2. And proceeding to install the graphics driver provided by S3Graphics. I followed the instructions given religiously but hit a roadblock during installation.

It just says “Install s3g.ko failed.” and I’m clueless on how to proceed.

Can anyone help? Thanks in advance.


Installing/Uninstalling S3G Linux driver built on Xorg 7.5
Cannot find pre-build S3G kernel driver for kernel 2.6.31.5-0.1-desktop
Found S3G S3 Graphics Chrome440/430 on your system.
Backup /usr/lib64/libGL.so* sucessfully.
Backup /usr/lib64/xorg/modules/extensions/libglx.so sucessfully.
cp: cannot stat /etc/X11/xorg.conf': No such file or directory Backup /etc/X11/xorg.conf sucessfully. Install s3g_drv.so sucessfully. Install libglx.so sucessfully. Install libGL.so.1.2 sucessfully. Install s3g_dri.so sucessfully. Install libva.so.0.28.0 sucessfully Install s3g_drv_video.so sucessfully. Install libvdpau.so.1 sucessfully. Install S3DApp.cfg sucessfully. mv: cannot stat /etc/X11/xorg.conf’: No such file or directory
Install 32bit compatible libGL.so.1.2 sucessfully.
Install 32bit compatible s3g_dri.so sucessfully.
Begin building kernel modules
.o
.ko
.depend
.
.flags
.
.d
.
.cmd
*.mod.c
linux
.tmp_versions
~
Module.

rm -f linux
ln -s . linux
make -C /lib/modules/2.6.31.5-0.1-desktop/source SUBDIRS=pwd S3GSRCDIR=pwd modules
make[1]: Entering directory `/usr/src/linux-2.6.31.5-0.1’

WARNING: Symbol version dump /usr/src/linux-2.6.31.5-0.1/Module.symvers
is missing; modules will have no dependencies and modversions.

CC [M] /home/cllow/Download/S3G-InstallPkg-x86_64/s3gdrm/s3g/…/common/s3g_bufs.o
In file included from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /home/cllow/Download/S3G-InstallPkg-x86_64/s3gdrm/s3g/…/common/s3g_kedrv.h:9,
from /home/cllow/Download/S3G-InstallPkg-x86_64/s3gdrm/s3g/s3gkeapi.h:3,
from /home/cllow/Download/S3G-InstallPkg-x86_64/s3gdrm/s3g/…/common/s3g_bufs.c:2:
include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or directory
include/linux/mmzone.h:251:5: warning: “MAX_NR_ZONES” is not defined
include/linux/mmzone.h:253:7: warning: “MAX_NR_ZONES” is not defined
include/linux/mmzone.h:255:7: warning: “MAX_NR_ZONES” is not defined
In file included from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /home/cllow/Download/S3G-InstallPkg-x86_64/s3gdrm/s3g/…/common/s3g_kedrv.h:9,
from /home/cllow/Download/S3G-InstallPkg-x86_64/s3gdrm/s3g/s3gkeapi.h:3,
from /home/cllow/Download/S3G-InstallPkg-x86_64/s3gdrm/s3g/…/common/s3g_bufs.c:2:
include/linux/mmzone.h:288: error: ‘MAX_NR_ZONES’ undeclared here (not in a function)
In file included from include/asm/pci.h:4,
from include/linux/pci.h:1129,
from /home/cllow/Download/S3G-InstallPkg-x86_64/s3gdrm/s3g/…/common/s3g_kedrv.h:18,
from /home/cllow/Download/S3G-InstallPkg-x86_64/s3gdrm/s3g/s3gkeapi.h:3,
from /home/cllow/Download/S3G-InstallPkg-x86_64/s3gdrm/s3g/…/common/s3g_bufs.c:2:
include/linux/mm.h:465:63: warning: “NR_PAGEFLAGS” is not defined
include/linux/mm.h:513:62: warning: “NR_PAGEFLAGS” is not defined
make[2]: *** [/home/cllow/Download/S3G-InstallPkg-x86_64/s3gdrm/s3g/…/common/s3g_bufs.o] Error 1
make[1]: *** [module/home/cllow/Download/S3G-InstallPkg-x86_64/s3gdrm/s3g] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.31.5-0.1’
make: *** [modules] Error 2
End building kernel modules
Install s3g.ko failed.
*

Run sax2 from a su terminal to create a xorg.conf

And do you have these installed
make, gcc, kernel-source

Hi caf4926, thanks for replying.

make, gcc, kernel-source have all been installed.

As advised, I’ve run Sax2 and successfully created xorg.conf.

However, still gettting the same error when running install.

What instructions are you following?

Hi caf4926, below are the instructions.


Chapter 1. Prepare your System



1.1 UNINSTALL OTHER VENDOR’S DISPLAY DRIVER

If driver for another vendor’s display card is installed on your Linux system, you
must uninstall it before installing S3 Graphics Linux driver. Otherwise the installed
S3G Linux driver may not work correctly.


1.2 PREPARING YOUR SYSTEM

S3G Linux driver includes a kernel driver module “s3g.ko”; therefore, you need
to make sure your Linux kernel is set up to support module loading firstly.

The S3 Graphics kernel module has a kernel interface layer that must be
compiled specifically for each kernel. S3 Graphics Linux driver package includes
the source code for this kernel interface layer, as well as precompiled kernel modules
for some of the popular Linux distributions.

If the pre-compiled kernel module for your system is not included in the install
package then you need the kernel header files and the necessary kernel source
code installed for the compilation to work. On most Linux distributions, this means
that you will need to locate and install the kernel development package.

To show which kernel is currently running on your Linux, run

$uname -r

1.3 OpenSUSE 11 SETUP

Since OpenSuSE 11 doesn’t include kernel config files that are needed for S3G kernel
module compilation, you need to generate the config files with the following commands:

#cd /usr/src/linux
#make mrproper
#make cloneconfig
#make modules_prepare
#make clean 

1.4 Vesa Frame Buffer driver

Please make sure not boot Linux with other vendor’s frame buffer driver, it conflicts with
s3g frame buffer driver, you can edit /boot/grub/menu.lst and remove “vga=XXX” from kernel
boot parameters.


Chapter 2. Install Driver Libraries



2.1 UNCOMPRESS DRIVER PACKAGE

The S3 Graphics Chrome4xx_5XX Linux driver set is packaged as a single
compressed tar file named:

's3g-Chrome4xx_5xx-($version)-($machine[i386/x86_64]).tar.bz2'

You may place it anywhere on your system. To uncompress the driver package:

$tar xjf s3g-Chrome4xx_5xx-($version)-($machine[i386/x86_64]).tar.bz2

A directory named “S3G-InstallPkg-($machine[i386/x86_64])” will be created and it contains all the
driver libraries and install scripts.


2.2 RUN THE INSTALL SCRIPT

After you have uncompressed the driver package, change to the directory containing
the driver files. Run the “install.sh” script as ‘root’:

# cd S3G-InstallPkg-($machine[i386/x86_64])
# ./install.sh

You may also supply “–uninstall” option to the “install.sh” script

#./install.sh --uninstall

to un-install S3 Graphics Linux driver libraries and restore the original libraries.