Sound configuration for solid state thin client: eBox 2300 for Edubuntu 7.04
Philipp Hanselmann
philipp at schoolnet.na
Mon Jul 16 12:11:29 BST 2007
On Sat, 14 Jul 2007 17:18:25 +0100, wrote Gavin McCullagh:
> On Sat, 14 Jul 2007, Philipp Hanselmann wrote:
>
>> 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?
>>
> That's a possibility alright. You should be able to instal the
> linux-headers-386 package on the server and compile modules to run
> against that kernel. You shouldn't need the kernel itself
> installed. Many modules sources will assume you want it compiled
> against the current running kernel so you probably have to pass
> some parameter to tell it to use a different kernel source tree.
>
> Gavin
Ok I was successfully with compiling and I was also able to load the driver on the thin client. cat /proc/interupts shows me that the driver is using an interrupt. When I am using "cat /proc/kcore > /dev/dsp ." , I can hear some static and noise.
Apart from them when am using xmms I can't hear anything. When I open an music file, I get the error message: "Couldn't open audio, Please check ... "
XMMS I configured that he should use for the Audio output the Esound plugin and in the lts.conf file I configured like that:
<snip>
SOUND = True
#SOUND_DAEMON = esd
<snip>
* Sound an other refurbished thin client works,
First I tried an other refurbished thin client (with also supported sound card), there the sound was working. I was using alsamixer on the graphical login and in the shell console. In xmms I noticed that the sound is working with output: alsa or esd.
But on the solid state client, the sound is still not working. When I trying to start alsamixer in the console I get this message:
alsamixer: funtion snd_ctl_open failed for default: No such device
On the graphical client I got this message:
#alsamixer
*** PULSEAUDIO: Unable to connect: Connection refused
alsamixer: funtion snd_ctl_open failed for default: Connection refused
On the thin client console (logged in as root), I noticed that no pulseaudio daemon isn't running (ps aux | grep pulse).
I figured out that deamon get started trough the script etc/rc2.d/S20ltsp-client:
<snip>
/usr/bin/pulseaudio --system \ --disable-shm --no-cpu-limit --resample-method=trivial
--log-target=syslog --high-priority -L module-detect
-L "module-esound-protocol-tcp auth-anonymous=1" -L "module-native-protocol-tcp auth-anonymous=1" -L module-volume-restore \ -L module-rescue-streams
-L module-native-protocol-unix -n &
<snip>
Like I have an oss driver I started pulseaudio manuelly like this
#! /bin/sh/usr/bin/pulseaudio --system --no-cpu-limit --resample-method=trivial --log-target=stderr --log-level=4 &
with the this pulsaudio config file /opt/ltsp/i386/etc/pulse/default.pa
load-module module-oss device="/dev/dsp" sink_name=output source_name=input
load-module module-esound-protocol-tcp auth-anonymous=1
load-module module-native-protocol-tcp auth-anonymous=1
load-module module-volume-restore
load-module module-rescue-streams
load-module module-native-protocol-unix
Now, the pulse audio demon get started and keeps running. But during starting the oss modules gives this error:
module-oss.c: write failed: Resource temporarily anavailable.
....
module.c: Unloading module-oss
....
I check with xmms, the sound is still not working...
During my tries some questions arised:
* I noticed that the /opt/ltsp/i368/usr/bin/esd a wrapper script for pulseaudio is ? Like I have now issues with pulseaudio. So to change the SOUND_DAEMON = esd , it will not help me, because is still pulseaudio (May this is bug of Edubuntu)?
To get this eBox runnig is really imported for us (www.schoolnet.na), because this ebox have great specs (99 u$) and ideal for thin client computing.
Lets hope somebody can assist in this subject?
Philipp
>> 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
pulsedemon
module-detect.c: failed to detect any sound hardware
.....
main.c: failed to initialize deamon.
More information about the edubuntu-users
mailing list