Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: clnsupport on September 02, 2008, 11:35:53 AM
-
Hi all, please help me with the installation of the sunix pci serial card. Model no 4037A
I need this as my Intel motherboard has no serial connections.
I’ve downloaded the driver from..
http://www.sunix.com.tw/it/en/down/driver/IO/V1.08.zip
I installed gcc
Yum install gcc
Then installed the kernel source
yum install kernel-smp-devel
because the release notes said….
..."Support kernel 2.4 and 2.6 on x86 machine only. Distributions test refer to item C.
Before driver installation. Make sure system with c compiler and kernel development package."
Then i did....
cp golden_Vx.xx.tar.gz /temp
cd /temp
tar xvfz golden_Vx.xx.tar.gz
cd /temp/golden
make clean ; make install
but I got the following ….
[root@smeserver golden]# make clean ; make install
cd snxdump;\
make clean;
make[1]: Entering directory `/tmp/golden/snxdump'
rm -f snxdump
rm -f *~ *.o
make[1]: Leaving directory `/tmp/golden/snxdump'
cd snxterm;\
make clean;
make[1]: Entering directory `/tmp/golden/snxterm'
rm -f snxterm
rm -f *~ *.o
make[1]: Leaving directory `/tmp/golden/snxterm'
cd driver;\
make clean
make[1]: Entering directory `/tmp/golden/driver'
rm -f *~
rm -f *.o
rm -rf ./.tmp_versions
rm -f snx_golden.mod*
rm -f .snx_golden*
rm -f snx_golden.ko
rm -f Module*
make[1]: Leaving directory `/tmp/golden/driver'
cd snxmknod;\
rm -f *~
rm -f *~
cd snxmknod;\
./snxmknod
Build Golden tty file node (ttySNX0 ~ ttySNX31)
/dev/ttySNX0
/dev/ttySNX1
/dev/ttySNX2
/dev/ttySNX3
/dev/ttySNX4
/dev/ttySNX5
/dev/ttySNX6
/dev/ttySNX7
/dev/ttySNX8
/dev/ttySNX9
/dev/ttySNX10
/dev/ttySNX11
/dev/ttySNX12
/dev/ttySNX13
/dev/ttySNX14
/dev/ttySNX15
/dev/ttySNX16
/dev/ttySNX17
/dev/ttySNX18
/dev/ttySNX19
/dev/ttySNX20
/dev/ttySNX21
/dev/ttySNX22
/dev/ttySNX23
/dev/ttySNX24
/dev/ttySNX25
/dev/ttySNX26
/dev/ttySNX27
/dev/ttySNX28
/dev/ttySNX29
/dev/ttySNX30
/dev/ttySNX31
/dev/ttySNX32
cd snxdump;\
make install
make[1]: Entering directory `/tmp/golden/snxdump'
gcc -O2 -pipe -o snxdump snxdump.c
cp -p snxdump /usr/bin
make[1]: Leaving directory `/tmp/golden/snxdump'
cd snxterm;\
make install
make[1]: Entering directory `/tmp/golden/snxterm'
gcc -c -o snxterm.o snxterm.c
gcc -pthread snxterm.o -o snxterm -lncurses
cp -p snxterm /usr/bin
make[1]: Leaving directory `/tmp/golden/snxterm'
cd driver;\
make install
make[1]: Entering directory `/tmp/golden/driver'
make -C /lib/modules/2.6.9-67.0.7.ELsmp/build SUBDIRS=/tmp/golden/driver modules
make: *** /lib/modules/2.6.9-67.0.7.ELsmp/build: No such file or directory. Stop.
make: Entering an unknown directorymake: Leaving an unknown directorymake[1]: *** [module] Error 2
make[1]: Leaving directory `/tmp/golden/driver'
make: *** [snx_install] Error 2
-
this should be in the contribs forum
when you install the kernel sources were they are scr rpm package if you once install you have to do a few other things
well that is the way you do it on centos as SME is based on it you would do it the same way i would think some one else may know here as i have never build drivers for SME only centos
Now that the source rpm is installed, unpack the source files:
[user@host]$ cd usr/src/redhat/SPECS then there should be a file in there
[user@host SPECS]$ rpmbuild -bp --target=`uname -m` kernel-2.6.spec
in he uname -m type that first say if it is an i686 or what ever it say you would type rpmbuild -bp --target= i686 kernel-2.6.spec it will take a while depends on the speed of your pc
remember installing compiling things and installing things like gcc and the kernel source can make your system more easy to hack you should have a another one not as a server to do this on
also looking at your post the kernel sources have not been unpacked
-
Moving this topic to the SME 7.x contribs forum, it is more appropriate there. Thanks!
-
hi zatnktel,
thanks for the advice, i did
uname -m
i686
then did
cd /usr/src/redhat/SPECS/ (this folder was empty)
when i did the
rpmbuild -bp --target=i686 kernel-2.6.spec
Building target platforms: i686
Building for target i686
error: failed to stat /usr/src/redhat/SPECS/kernel-2.6.spec: No such file or directory
this is the first time i am compiling drivers for sme so please help
-
the kernel-2.6.spec file could be in another spot try here
see if there is a usr/src/linux directory and then have a look around the sub directories
it should be in usr/src/redhat
sme uses the same kernel and centos but compiled different so much the kernel.src.rpm with your running kernel from centos 4.6
but also remember every time you get i kernel update from SME you will have to get the new kernel source and compile the driver again
you would be better off getting a serial card that is on the centos 4.6 list it would be a pain in the ass every new updated kernel you get you have to go thought the same thing again
and recompile the driver
the kernel src.rpm is in here
http://mirror.pacific.net.au/linux/smeserver/releases/7/smeos/SRPMS/kernel-2.6.9-67.0.1.EL.src.rpm
then see after you install that 50 meg in size see if the spec file is in there you may need the kernel utils as well
as i live in australia i gave you the link to the file from an australian site
PS the 4037a is not listed on there web site onlt 4037d