                  How to build Linux X11 driver 

                                   By Monica

RHEL4 32bit
1.Get a source code package from internet Version X11R6.8.1-src.tar.bz2
2.Extract this package(tar jxvf X11R6.8.1-src.tar.bz2)
3.cd "xc\programs\Xserver\hw\xfree86\drivers\siliconmotion"
replace the source code which get from svn://172.17.9.38/Graphic/Lynx/Linux/X11 Driver 
4.change the working directory to "xc" ;type "make World"
5.cd "xc\programs\Xserver\hw\xfree86\drivers\siliconmotion" Then modify the file 
  a.Makefile(delete "-ansi");
  b.smi.h
    #ifdef XORG_VERSION_CURRENT
     //#include "xorg-server.h"
     #include"xorgVersion.h"
     #endif
6.Type "make" under "xc\programs\Xserver\hw\xfree86\drivers\siliconmotion"
7.when finished ,new binary driver siliconmotion_drv.so created

RHEL4 64bit
1.Get a source code package from internet Version X11R6.8.2-src.tar.bz2
2.Extract this package(tar jxvf X11R6.8.2-src.tar.bz2)
3.cd "xc\programs\Xserver\hw\xfree86\drivers\siliconmotion"
replace the source code which get from svn://172.17.9.38/Graphic/Lynx/Linux/X11 Driver 
4.change the working directory to "xc" ;type "make World"
5.cd "xc\programs\Xserver\hw\xfree86\drivers\siliconmotion" Then modify the file 
  a.Makefile(delete "-ansi");
  b.smi.h
    #ifdef XORG_VERSION_CURRENT
     //#include "xorg-server.h"
     #include"xorgVersion.h"
     #endif
6.Type "make" under "xc\programs\Xserver\hw\xfree86\drivers\siliconmotion"
7.when finished ,new binary driver siliconmotion_drv.so created

RHEL5 32bit
1.Download xf86-video-siliconmotion-X11R7-1.4.1.tar.bz2 from web and unpack it to a place 
Using ¡°tar jxvf xf86-video-siliconmotion-X11R7-1.4.1.tar.bz2¡±,you will get a directory ~/xf86-vido-siliconmotion
2.Update the files under the directory ~/xf86-vido-siliconmotion/src with those code from svn. 
3.Change the working directory to ~/xf86-vido-siliconmotion and type ¡°./configure ; make¡±
4.when finished ,new binary driver siliconmotion_drv.so created

RHEL5 64bit
1.Download xf86-video-siliconmotion-X11R7-1.4.1.tar.bz2 from web and unpack it to a place 
Using ¡°tar jxvf xf86-video-siliconmotion-X11R7-1.4.1.tar.bz2¡±,you will get a directory ~/xf86-vido-siliconmotion
2.Update the files under the directory ~/xf86-vido-siliconmotion/src with those code from svn. 
3.Change the working directory to ~/xf86-vido-siliconmotion and type ¡°./configure ; make¡±
4.when finished ,new binary driver siliconmotion_drv.so created

Fedora6 32bit
1.Download  the rpm xorg-x11-server-sdk-1.1.1-48.12.el5.i386.rpm from web and
  Install it by typing  ¡°rpm šCivh xorg-x11-server-sdk-1.1.1-48.12.el5.i386.rpm¡±
2.Download xf86-video-siliconmotion-X11R7-1.4.1.tar.bz2 from web and unpack it to a place 
Using ¡°tar jxvf xf86-video-siliconmotion-X11R7-1.4.1.tar.bz2¡±,you will get a directory ~/xf86-vido-siliconmotion
3.Update the files under the directory ~/xf86-vido-siliconmotion/src with those code from svn. 
4.Change the working directory to ~/xf86-vido-siliconmotion and type ¡°./configure ; make¡±
5.when finished ,new binary driver siliconmotion_drv.so created

Fedora6 64bit
1.Download  the rpm xorg-x11-server-sdk-1.1.1-48.12.el5.i386.rpm from web and
  Install it by typing  ¡°rpm šCivh xorg-x11-server-sdk-1.1.1-48.12.el5.i386.rpm¡±
2.Download xf86-video-siliconmotion-X11R7-1.4.1.tar.bz2 from web and unpack it to a place 
Using ¡°tar jxvf xf86-video-siliconmotion-X11R7-1.4.1.tar.bz2¡±,you will get a directory ~/xf86-vido-siliconmotion
3.Update the files under the directory ~/xf86-vido-siliconmotion/src with those code from svn. 
4.Change the working directory to ~/xf86-vido-siliconmotion and type ¡°./configure ; make¡±
5.when finished ,new binary driver siliconmotion_drv.so created

Fedora7 32bit
1.Download  the rpm xorg-x11-server-sdk-1.3.0.0-9.fc7.i386.rpm from web and
  Install it by typing  ¡°rpm šCivh xorg-x11-server-sdk-1.3.0.0-9.fc7.i386.rpm¡±
2.Download xf86-video-siliconmotion-X11R7-1.4.1.tar.bz2 from web and unpack it to a place 
Using ¡°tar jxvf xf86-video-siliconmotion-X11R7-1.4.1.tar.bz2¡±,you will get a directory ~/xf86-vido-siliconmotion
3.Update the files under the directory ~/xf86-vido-siliconmotion/src with those code from svn. 
4.Change the working directory to ~/xf86-vido-siliconmotion and type ¡°./configure ; make¡±
5.when finished ,new binary driver siliconmotion_drv.so created

Fedora7 32bit
1.Download  the rpm xorg-x11-server-sdk-1.3.0.0-9.fc7.x86_64.rpm from web and
  Install it by typing  ¡°rpm šCivh xorg-x11-server-sdk-1.3.0.0-9.fc7.x86_64.rpm¡±
2.Download xf86-video-siliconmotion-X11R7-1.4.1.tar.bz2 from web and unpack it to a place 
Using ¡°tar jxvf xf86-video-siliconmotion-X11R7-1.4.1.tar.bz2¡±,you will get a directory ~/xf86-vido-siliconmotion
3.Update the files under the directory ~/xf86-vido-siliconmotion/src with those code from svn. 
4.Change the working directory to ~/xf86-vido-siliconmotion and type ¡°./configure ; make¡±
5.when finished ,new binary driver siliconmotion_drv.so created

SELS9 32bit
1.Download the rpm XFree86-4.3.99.902-43.50.3.src.rpm from web and install it then you can get the source code
package from /usr/src/packages/SOURCES/Xorg-2004-03-18.tar.bz2,
2.Extract this package(tar jxvf Xorg-2004-03-18.tar.bz2)
3.cd "xc\programs\Xserver\hw\xfree86\drivers\siliconmotion"
replace the source code which get from svn://172.17.9.38/Graphic/Lynx/Linux/X11 Driver 
4.change the working directory to "xc" ;type "make World"
5.cd "xc\programs\Xserver\hw\xfree86\drivers\siliconmotion" Then modify the file 
  a.Makefile(delete "-ansi");
  b.smi.h
    #ifdef XORG_VERSION_CURRENT
     //#include "xorg-server.h"
     #include"xorgVersion.h"
     #endif
6.Type "make" under "xc\programs\Xserver\hw\xfree86\drivers\siliconmotion"
7.when finished ,new binary driver siliconmotion_drv.so created

SELS9 64bit
1.Download the rpm XFree86-4.3.99.902-43.50.3.src.rpm from web and install it then you can get the source code
package from /usr/src/packages/SOURCES/Xorg-2004-03-18.tar.bz2,
2.Extract this package(tar jxvf Xorg-2004-03-18.tar.bz2)
3.cd "xc\programs\Xserver\hw\xfree86\drivers\siliconmotion"
replace the source code which get from svn://172.17.9.38/Graphic/Lynx/Linux/X11 Driver 
4.change the working directory to "xc" ;type "make World"
5.cd "xc\programs\Xserver\hw\xfree86\drivers\siliconmotion" Then modify the file 
  a.Makefile(delete "-ansi");
  b.smi.h
    #ifdef XORG_VERSION_CURRENT
     //#include "xorg-server.h"
     #include"xorgVersion.h"
     #endif
6.Type "make" under "xc\programs\Xserver\hw\xfree86\drivers\siliconmotion"
7.when finished ,new binary driver siliconmotion_drv.so created

SELS10 32bit
1.Get a source code package from internet Version X11R6.9.0-src.tar.bz2
2.Extract this package(tar jxvf X11R6.9.0-src.tar.bz2)
3.cd "xc\programs\Xserver\hw\xfree86\drivers\siliconmotion"
replace the source code which get from svn://172.17.9.38/Graphic/Lynx/Linux/X11 Driver 
4.change the working directory to "xc" ;type "make World"
5.cd "xc\programs\Xserver\hw\xfree86\drivers\siliconmotion" Then modify the file 
  a.Makefile(delete "-ansi");
  b.smi.h
     #ifdef XORG_VERSION_CURRENT
     //#include "xorg-server.h"
     #include"xorgVersion.h"
     #endif
6.Type "make" under "xc\programs\Xserver\hw\xfree86\drivers\siliconmotion"
7.when finished ,new binary driver siliconmotion_drv.so created

SELS10 64bit
1.Get a source code package from internet Version X11R6.9.0-src.tar.bz2
2.Extract this package(tar jxvf X11R6.9.0-src.tar.bz2)
3.cd "xc\programs\Xserver\hw\xfree86\drivers\siliconmotion"
replace the source code which get from svn://172.17.9.38/Graphic/Lynx/Linux/X11 Driver 
4.change the working directory to "xc" ;type "make World"
5.cd "xc\programs\Xserver\hw\xfree86\drivers\siliconmotion" Then modify the file 
  a.Makefile(delete "-ansi");
  b.smi.h
     #ifdef XORG_VERSION_CURRENT
     //#include "xorg-server.h"
     #include"xorgVersion.h"
     #endif
6.Type "make" under "xc\programs\Xserver\hw\xfree86\drivers\siliconmotion"
7.when finished ,new binary driver siliconmotion_drv.so created




