No subject

Philipp Hanselmann philipp.hanselmann at gmx.ch
Sat Jul 14 15:19:13 BST 2007


Hi

I am trying to get the sound on our solid state thin clients (eBox 2300) under Edubuntu 7.04 working (chip SIS7019).

Meanwhile I managed to compile the driver under Edubuntu 7.04. I was also successfully to load the driver on the server with modprobe, whithout any error message. When I'm trying the same on the thin client with the sis7019 chip, I get this error message:

modprobe sis7019
FATAL: Error inserting sis 7019 (/lib/modules/2.6.20-15-386/kernel/sound/sis7019.ko):Invalid module format

One reason could be, that I compiled the driver on the server (kernel: 2.6.20-15-generic) and moved later on the binary driver to the ltsp root (/opt/ltsp/i368). I noticed that the thin client have an other kernel version (kernel: 2.6.20.15-386)

It this may the reason? How do I compile a sound driver for a thin client?

Detailed steps what I did you will find below.

Now I am really lost, but its really imported that I get this solid thin clients soon working for our NGO.

Thanks for your help!

Philipp

------------------------------------------------
1.) Downloaded the drivers (sis7019 is a sound OSS driver for vortex chipset) from:
http://mentors.debian.net/debian/pool/main/s/sis7019

2.) Installed build-essentials and the kernel headers

3.) Changed the path in config.in (sis7019 driver),
linux_src_directory = /lib/modules/2.6.20-15-generic/build


4.) Based that I figured out that some include files aren't existing in this kernel . I replaced some lines in the sis7019.c file.
-#include
+#include

/*#include */

Without this changings, I wasn't able to compile the driver at all !

5.) compiled the driver
root at demo:~/sis7019-1.0.0/kernel-2.6# make clean


root at demo:~/sis7019-1.0.0/kernel-2.6# make
make -C /lib/modules/2.6.20-15-generic/build SUBDIRS=/home/schoolnet/3/sis7019-1.0.0/kernel-2.6 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic'
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic'


6) ON THE SERVER: copy the driver to the server (TESTING PURPOSE)

cp sis7019.ko  /opt/ltsp/i386/lib/modules/2.6.20-15-generic/kernel/sound/

6.1) update the module database with depbrobe

6.2) check if module is available?


root at demo:~/3/sis7019-1.0.0/kernel-2.6# modinfo sis7019
filename:       /lib/modules/2.6.20-15-generic/kernel/sound/sis7019.ko
license:        Dual BSD/GPL
description:    sis7019 Audio Driver
author:         SiS Software
srcversion:     013DAE0F57E02B48C778B6A
alias:          pci:v00001039d00007019sv*sd*bc*sc*i*
depends:        soundcore,ac97_codec
vermagic:       2.6.20-15-generic SMP mod_unload 586

6.3) load module with (TESTING PURPOSE)

modprobe ac97_codec
modprobe sis7019

Which was working without any error message!!


7.) SOUND CONFIGURATION FOR THE THIN CLIENT

7.1) lspci, used on the thin client, shows that the sound chip is available

lspci -v
00:01.4 Multimedia audio controller: Silicon Integrated Systems [SiS] SiS7019 Audio Accelerator
Subsystem: Silicon Integrated Systems [SiS] SiS7019 Audio Accelerator
Flags: bus master, medium devsel, latency 64, IRQ 10
I/O ports at dc00 [size=256]
Memory at dfff8000 (32-bit, non-prefetchable) [size=16K]
Capabilities: [60] Power Management version 2


7.2) Installation of the driver (done on the server)

cp sis7019.ko  /opt/ltsp/i386/lib/modules/2.6.20-15-386/kernel/sound/

chroot /opt/ltsp/i386
depmod -v 2.6.20-15-386

7.3) check if  driver is there (done on the client side)

root at demo:# modinfo sis7019
filename:       /lib/modules/2.6.20-15-i386/kernel/sound/sis7019.ko
license:        Dual BSD/GPL
description:    sis7019 Audio Driver
author:         SiS Software
srcversion:     013DAE0F57E02B48C778B6A
alias:          pci:v00001039d00007019sv*sd*bc*sc*i*
depends:        soundcore,ac97_codec
vermagic:       2.6.20-15-generic SMP mod_unload 586

7.4) load the driver (done on the client side)

modprobe ac97_codec
modprobe sis7019

FATAL: Error inserting sis 7019 (/lib/modules/2.6.20-15-386/kernel/sound/sis7019.ko):Invalid module format




---------------------------------------------------------

Further links:
http://www.norhtec.com/products/mcjr/index.html
http://wiki.ltsp.org/twiki/bin/view/Ltsp/SoundCards#SiS_7019
http://www.k12ltsp.org/mediawiki/index.php/WorkstationSound
http://www.damnsmalllinux.org/f/topic-3-6-16159-0.html
-- 
-----------------------------------------------------------
Philipp Hanselmann
P.O Box 66
Queens Park 1404
Rundu 
Namibia

cell    +264 (0)81 2273695  
home +264 (0)66 255308

philipp.hanselmann at gmx.ch
www.morokeni.ch
 


Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger



More information about the edubuntu-users mailing list