• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Kernel sources >> linux sources

TOBI--

Member
Hi Debian user und Gurus,

ich bin gerade dabei mirt der VoIPonCD Distribution (debian Etch) einen Asterisk server aufzusetzen.

Asterisk ist auch nicht das Problem (noch nicht)

Ich habe eine teure Aculab Prosody PCI karte wo die Treiber vom Hersteller http://www.aculab.com herunterladbar sind. In deren installations/compilierungs scripten suchen sie nach den kernel-sources im Verzeichnis
/lib/modules/2.6.18-6-686/build
mit aptitude habe ich sie gesucht und als "linux-sources" gefunden. sie befinden sich jetzt als linux-source-2.6.18 verzeichnis /usr/src/linuxsource-2.6.18

da ich die hersteller scripte nicht umschreiben will..... was mache ich am besten?
ich habe es mit einem symbolischem link versucht nur leider verweist der dann auch auf "linux-source" und nicht "kernel-source"

:???:

Danke und Gruß
Toby
 

Spasswolf

Member
Vergiss die linux-sources, die braucht man (fast) nie. Installier die passenden linux-headers (linux-headers-2.6.18-6-686), dann wird auch der /lib/modules/2.6.18-6-686/build symlink richtig gesetzt.
 
OP
T

TOBI--

Member
Hi Forum,
doch die sources brauch ich laut Hersteller schon.

koennt ihr mir sagen was ich hier genau tun muss?

die README fordert hierzu auf:
Building, and Configuring, the Driver
-------------------------------------
If you are using a 16 port cPCI, then you must read the "Installing NIC Driver
for 16 Port cPCI Card" section in this document. diese karte habe ich nicht, kann ignoriert weden

ACULAB_ROOT must be set to the root directory of the Aculab distribution
(eg, /home/aculab/v6). setV6.sh is a script that will set all of the
environment variables correctly. To run:

source setV6.sh dieses Script klappt wenn ich es manuell im Verzeichnis /usr/local/aculab/ ausfuehre
Code:
das hier ist das script setV6.sh: 
ACULAB_ROOT=`pwd`
export ACULAB_ROOT
if [ "" != "${LD_LIBRARY_PATH}" ]; then
	LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${ACULAB_ROOT}/lib
else
	LD_LIBRARY_PATH=${ACULAB_ROOT}/lib
fi
export LD_LIBRARY_PATH
TiNGTYPE=LINUX
export TiNGTYPE
PATH=${PATH}:${ACULAB_ROOT}/bin
export PATH
if [ -d TiNG ]; then
	if [ ! -h ting ]; then
		ln -s TiNG ting
	fi
fi

This file may also be modified and copied into /etc/profile.d to ensure
settings are loaded for each bash shell. wie muss ich das anstellen das dieses script automatisch geladen wird? wenn ich es einfach dort hinein verlinke klappts nicht. Es muss irgendwie mit dem befehl "source" gestartet werden. sorry habe da noch nicht so viel Erfahrung was Scripte schreiben angeht

Before the driver can be loaded, it has to be fully built. Due to the many
variations of Linux distributions, there can not be a "one binary for all"
situation. To cope with this, the driver kit comprises of precompiled objects
with the final compilation of the kernel-specific code, and linking together
of the loadable module, completed on the host machine. The script file
dacpinst is used to automate this process as well as configuring the driver
to your needs.

Please ensure that the sources for the intended kernel have been installed,
prior to building the driver, to avoid compilation errors. For most
distributions, this required package would be called kernel-source.

The commands for dacpinst are as follows:

./dacpinst build - builds, then configures, the driver.
./dacpinst config - configures an existing driver.
./dacpinst clean - removes the objects, allowing a clean rebuild.
./dacpinst version - gives the version of dacpinst.

At each prompt, dacpinst will often give options (i.e., "yes/no") in brackets
"(....)", and the default actions in square brackets "[....]". The default
actions will predict the desired input according to a typical build. If you'd
like the default input, hit return, or else type in what you'd like, instead. hier faengt das grosse Problem an. Kompilierung stoppt mit
./dacpinst build
Aculab dacpinst

*** Refer to readme.install for instuctions on using this tool ***

Cleaning Aculab driver object

Cleaning Aculab SS7 driver object
rm -f -f *.o *.ko
Aculab driver generation


Do you have any 16 port carrier cards in your system? (y/n)? [Y]: n

Would you like to have Prosody X card support? (y/n)? [Y]: n

Do you have any other Aculab cards installed? (y/n)? [Y]:

Would you like to have E1/T1 call control support (y/n)? [Y]:

Would you like to have ss7 driver support (y/n)? [Y]: n

Would you like to have speech driver support (y/n)? [Y]:

Would you like to have voip driver support (y/n)? [Y]: n

(cPCI only) Would you like a HotSwap capable driver (y/n)? [N]: n

Note: The driver name will be: dacpdev.ko
make -C /lib/modules/2.6.18-6-686/build SUBDIRS=`pwd` modules CONFIG_DACP_DEV=m
make[1]: Entering directory `/usr/src/linux-source-2.6.18'

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

CC [M] /usr/local/aculab/driver/src/dacpmain.o
CC [M] /usr/local/aculab/driver/src/kern_if.o
/bin/sh: scripts/genksyms/genksyms: Datei oder Verzeichnis nicht gefunden
make[2]: *** [/usr/local/aculab/driver/src/kern_if.o] Fehler 1
make[1]: *** [_module_/usr/local/aculab/driver/src] Fehler 2
make[1]: Leaving directory `/usr/src/linux-source-2.6.18'
make: *** [dacpdev.ko] Fehler 2
Error: unable to compile and link dacpdev.ko.
 
OP
T

TOBI--

Member
Hi Leute,
habe gelernt Linux ist nicht gleich Linux.

Mit den Distributionen Opensuse, VoipOnCD(Debian) ging es nicht.

"Hersteller empfielt RedHat" daraufhin hatte ich es mit Fedora probiert und bin wieder gescheitert.

Zum Schluss hatte ich glück mit TrixBox (CentOS) based.

Der Treiber ließ sich compilieren und starten.
Hi Admin, das kann hier erstmal geschlossen werden!

Suchbegriffe: Asterisk, Prosody, Aculab Card, Distribution, Linux,
 
Oben