- Mitglied seit
- 16 Nov 2005
- Beiträge
- 124
- Punkte für Reaktionen
- 0
- Punkte
- 0
so, OS: debian 3.1 netinstall (debian-31r0a-i386-netinst.iso)
1. apt-get install kernel-image-2.6.8-2-386
2. apt-get install kernel-headers-2.6.8-2-386
nach reboot: uname -r --> 2.6.8-2-386
3. folgende pakete werden via apt-get install installiert:
bison
ncurses-dev
libssl-dev
libnewt-dev
zlib1g-dev
libncurses5
libncurses5-dev
libcurl3-dev
gcc
g++
make
patch
4. die Links:
ln -s kernel-headers-2.6.8-2-386 linux-2.6
ln -s kernel-headers-2.6.8-2-386 linux
ergebnis:
drwxr-xr-x 16 root root 4096 2005-12-02 00:54 kernel-headers-2.6.8-2
drwxr-xr-x 3 root root 4096 2005-12-02 00:55 kernel-headers-2.6.8-2-386
drwxr-xr-x 3 root root 4096 2005-12-02 00:54 kernel-kbuild-2.6-3
lrwxrwxrwx 1 root src 26 2005-12-02 01:03 linux -> kernel-headers-2.6.8-2-386
lrwxrwxrwx 1 root src 26 2005-12-02 01:03 linux-2.6 -> kernel-headers-2.6.8-2-386
5. download und entpacken von bristuff:
wget http://83.137.99.169/~junghanns.net/downloads/bristuff-0.2.0-RC8q.tar.gz
gzip -d bristuff-0.2.0-RC8q.tar.gz
tar -xf bristuff-0.2.0-RC8q.tar.gz
6. downloade Zaptel 1.2.0 - Libpri 1.2.0 - asterisk 1.2.0 und entpacke diese
wget http://ftp.digium.com/pub/zaptel/zaptel-1.2.0.tar.gz
wget http://ftp.digium.com/pub/libpri/libpri-1.2.0.tar.gz
wget http://ftp.digium.com/pub/asterisk/asterisk-1.2.0.tar.gz
7. kompilieren von zaptel
cd zaptel/
make clean
make install
denk mal das hat funktioniert
8. kompilieren von libpri
cd libpri/
make clean
make install
denk mal das hat funktioniert
so, 9. und jetzt kommts - zaphfc kompilieren:
cd zaphfc/
make clean
make install
so, und hab hier komm ich nicht weiter ;(
hab ich was falsch gemacht, oder hab ich was vergessen ??
ich freu mich schon auf eure vorschläge, danke
1. apt-get install kernel-image-2.6.8-2-386
2. apt-get install kernel-headers-2.6.8-2-386
nach reboot: uname -r --> 2.6.8-2-386
3. folgende pakete werden via apt-get install installiert:
bison
ncurses-dev
libssl-dev
libnewt-dev
zlib1g-dev
libncurses5
libncurses5-dev
libcurl3-dev
gcc
g++
make
patch
4. die Links:
ln -s kernel-headers-2.6.8-2-386 linux-2.6
ln -s kernel-headers-2.6.8-2-386 linux
ergebnis:
drwxr-xr-x 16 root root 4096 2005-12-02 00:54 kernel-headers-2.6.8-2
drwxr-xr-x 3 root root 4096 2005-12-02 00:55 kernel-headers-2.6.8-2-386
drwxr-xr-x 3 root root 4096 2005-12-02 00:54 kernel-kbuild-2.6-3
lrwxrwxrwx 1 root src 26 2005-12-02 01:03 linux -> kernel-headers-2.6.8-2-386
lrwxrwxrwx 1 root src 26 2005-12-02 01:03 linux-2.6 -> kernel-headers-2.6.8-2-386
5. download und entpacken von bristuff:
wget http://83.137.99.169/~junghanns.net/downloads/bristuff-0.2.0-RC8q.tar.gz
gzip -d bristuff-0.2.0-RC8q.tar.gz
tar -xf bristuff-0.2.0-RC8q.tar.gz
6. downloade Zaptel 1.2.0 - Libpri 1.2.0 - asterisk 1.2.0 und entpacke diese
wget http://ftp.digium.com/pub/zaptel/zaptel-1.2.0.tar.gz
wget http://ftp.digium.com/pub/libpri/libpri-1.2.0.tar.gz
wget http://ftp.digium.com/pub/asterisk/asterisk-1.2.0.tar.gz
7. kompilieren von zaptel
cd zaptel/
make clean
make install
Code:
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o gendigits.o gendigits.c
cc -o gendigits gendigits.o -lm
./gendigits
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" makefw.c -o makefw
./makefw tormenta2.rbt tor2fw > tor2fw.h
./makefw pciradio.rbt radfw > radfw.h
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o ztcfg.o ztcfg.c
cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -DBUILDING_TONEZONE -o zonedata.lo zonedata.c
cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -DBUILDING_TONEZONE -o tonezone.lo tonezone.c
ar rcs libtonezone.a zonedata.lo tonezone.lo
cc -o ztcfg ztcfg.o libtonezone.a -lm
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o torisatool.o torisatool.c
cc -o torisatool torisatool.o
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o ztmonitor.o ztmonitor.c
cc -o ztmonitor ztmonitor.o
cc -o ztspeed.o -c ztspeed.c
cc -o ztspeed ztspeed.o
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o zttool.o zttool.c
cc -o zttool zttool.o -lnewt
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" zttest.c -o zttest
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o fxotune.o fxotune.c
cc -o fxotune fxotune.o -lm
/lib/modules/2.6.8-2-386/build
make -C /lib/modules/2.6.8-2-386/build SUBDIRS=/usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0 modules
make[1]: Entering directory `/usr/src/kernel-headers-2.6.8-2-386'
CC [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/zaptel.o
CC [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/tor2.o
CC [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/torisa.o
CC [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wcusb.o
CC [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wcfxo.o
CC [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wctdm.o
CC [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wctdm24xxp.o
CC [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/ztdynamic.o
CC [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/ztd-eth.o
CC [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wct1xxp.o
CC [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wct4xxp.o
CC [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wcte11xp.o
CC [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/pciradio.o
CC [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/ztd-loc.o
CC [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/ztdummy.o
Building modules, stage 2.
MODPOST
CC /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/pciradio.mod.o
LD [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/pciradio.ko
CC /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/tor2.mod.o
LD [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/tor2.ko
CC /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/torisa.mod.o
LD [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/torisa.ko
CC /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wcfxo.mod.o
LD [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wcfxo.ko
CC /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wct1xxp.mod.o
LD [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wct1xxp.ko
CC /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wct4xxp.mod.o
LD [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wct4xxp.ko
CC /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wctdm.mod.o
LD [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wctdm.ko
CC /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wctdm24xxp.mod.o
LD [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wctdm24xxp.ko
CC /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wcte11xp.mod.o
LD [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wcte11xp.ko
CC /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wcusb.mod.o
LD [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wcusb.ko
CC /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/zaptel.mod.o
LD [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/zaptel.ko
CC /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/ztd-eth.mod.o
LD [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/ztd-eth.ko
CC /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/ztd-loc.mod.o
LD [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/ztd-loc.ko
CC /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/ztdummy.mod.o
LD [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/ztdummy.ko
CC /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/ztdynamic.mod.o
LD [M] /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/ztdynamic.ko
make[1]: Leaving directory `/usr/src/kernel-headers-2.6.8-2-386'
cc -shared -Wl,-soname,libtonezone.so.1 -lm -o libtonezone.so zonedata.lo tonezone.lo
mkdir -p /dev/zap
rm -f /dev/zap/ctl
rm -f /dev/zap/channel
rm -f /dev/zap/pseudo
rm -f /dev/zap/timer
rm -f /dev/zap/253
rm -f /dev/zap/252
rm -f /dev/zap/251
rm -f /dev/zap/250
mknod /dev/zap/ctl c 196 0
mknod /dev/zap/timer c 196 253
mknod /dev/zap/channel c 196 254
mknod /dev/zap/pseudo c 196 255
N=1; \
while [ $N -lt 250 ]; do \
rm -f /dev/zap/$N; \
mknod /dev/zap/$N c 196 $N; \
N=$[$N+1]; \
done
install -D -m 755 ztcfg /sbin/ztcfg
if [ -f sethdlc-new ]; then \
install -D -m 755 sethdlc-new /sbin/sethdlc; \
elif [ -f sethdlc ]; then \
install -D -m 755 sethdlc /sbin/sethdlc ; \
fi
if [ -f zttool ]; then install -D -m 755 zttool /sbin/zttool; fi
if [ -f zaptel.ko ]; then \
for x in zaptel.ko tor2.ko torisa.ko wcusb.ko wcfxo.ko wctdm.ko wctdm24xxp.ko ztdynamic.ko ztd-eth.ko wct1xxp.ko wct4xxp.ko wcte11xp.ko pciradio.ko ztd-loc.ko ztdummy.ko; do \
rm -f /lib/modules/2.6.8-2-386/extra/$x ; \
done; \
make -C /lib/modules/2.6.8-2-386/build SUBDIRS=/usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0 INSTALL_MOD_PATH= INSTALL_MOD_DIR=misc modules_install; \
if ! [ -f wcfxsusb.ko ]; then \
rm -f /lib/modules/2.6.8-2-386/misc/wcfxsusb.ko; \
fi; \
rm -f /lib/modules/2.6.8-2-386/misc/wcfxs.ko; \
else \
for x in zaptel.o tor2.o torisa.o wcusb.o wcfxo.o wctdm.o wctdm24xxp.o ztdynamic.o ztd-eth.o wct1xxp.o wct4xxp.o wcte11xp.o pciradio.o ztd-loc.o ztdummy.o; do \
install -D -m 644 $x /lib/modules/2.6.8-2-386/misc/$x ; \
done; \
if ! [ -f wcfxsusb.o ]; then \
rm -f /lib/modules/2.6.8-2-386/misc/wcfxsusb.o; \
fi; \
rm -f /lib/modules/2.6.8-2-386/misc/wcfxs.o; \
fi
make[1]: Entering directory `/usr/src/kernel-headers-2.6.8-2-386'
INSTALL /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/pciradio.ko
INSTALL /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/tor2.ko
INSTALL /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/torisa.ko
INSTALL /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wcfxo.ko
INSTALL /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wct1xxp.ko
INSTALL /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wct4xxp.ko
INSTALL /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wctdm.ko
INSTALL /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wctdm24xxp.ko
INSTALL /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wcte11xp.ko
INSTALL /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/wcusb.ko
INSTALL /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/zaptel.ko
INSTALL /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/ztd-eth.ko
INSTALL /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/ztd-loc.ko
INSTALL /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/ztdummy.ko
INSTALL /usr/src/bristuff-0.2.0-RC8q/zaptel-1.2.0/ztdynamic.ko
make[1]: Leaving directory `/usr/src/kernel-headers-2.6.8-2-386'
install -D -m 755 libtonezone.so /usr/lib/libtonezone.so.1.0
[ `id -u` = 0 ] && /sbin/ldconfig || :
rm -f /usr/lib/libtonezone.so
ln -sf libtonezone.so.1 /usr/lib/libtonezone.so
if [ -x /usr/sbin/sestatus ] && (/usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled") ; then restorecon -v /usr/lib/libtonezone.so; fi
install -D -m 644 zaptel.h /usr/include/linux/zaptel.h
install -D -m 644 torisa.h /usr/include/linux/torisa.h
install -D -m 644 tonezone.h /usr/include/tonezone.h
install -m 644 doc/ztcfg.8 /usr/share/man/man8
install -m 644 doc/zttool.8 /usr/share/man/man8
if [ -n "/etc/modprobe.d/zaptel" ]; then \
if [ -f /etc/modprobe.d/zaptel ]; then mv -f /etc/modprobe.d/zaptel /etc/modprobe.d/zaptel.bak ; fi; \
cat /etc/modprobe.d/zaptel.bak | grep -v "alias char-major-250" | \
grep -v "post-install torisa /sbin/ztcfg" | \
grep -v "post-install wcfxsusb /sbin/ztcfg" | \
grep -v "alias wctdm" | \
grep -v "post-install wctdm /sbin/ztcfg" > /etc/modprobe.d/zaptel; \
if ! grep "options torisa" /etc/modprobe.d/zaptel; then \
echo "options torisa base=0xd0000" >> /etc/modprobe.d/zaptel; \
fi; \
if ! grep "alias char-major-196" /etc/modprobe.d/zaptel; then \
echo "alias char-major-196 torisa" >> /etc/modprobe.d/zaptel; \
fi; \
for x in zaptel tor2 torisa wcusb wcfxo wctdm wctdm24xxp ztdynamic ztd-eth wct1xxp wct4xxp wcte11xp pciradio ztd-loc ztdummy; do \
if ! grep -q "post-install $x" /etc/modprobe.d/zaptel; then \
if ! grep -q "install $x " /etc/modprobe.d/zaptel; then \
if [ "$x" != "zaptel" ] ; then \
if [ -f zaptel.ko ]; then echo "install $x /sbin/modprobe --ignore-install $x && /sbin/ztcfg" >> /etc/modprobe.d/zaptel; \
else echo "post-install $x /sbin/ztcfg" >> /etc/modprobe.d/zaptel; \
fi; \
fi; \
fi; \
fi; \
done; \
if ! grep "ias wcfxs" /etc/modprobe.d/zaptel; then \
echo "alias wcfxs wctdm" >> /etc/modprobe.d/zaptel; \
fi; \
if ! grep "alias wct2xxp" /etc/modprobe.d/zaptel; then \
echo "alias wct2xxp wct4xxp" >> /etc/modprobe.d/zaptel; \
fi; \
fi
if [ -d /etc/modutils ]; then \
/sbin/update-modules ; \
fi
[ `id -u` = 0 ] && /sbin/depmod -a 2.6.8-2-386 || :
[ -f /etc/zaptel.conf ] || install -D -m 644 zaptel.conf.sample /etc/zaptel.conf
denk mal das hat funktioniert
8. kompilieren von libpri
cd libpri/
make clean
make install
Code:
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -c -o copy_string.o copy_string.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -c -o pri.o pri.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -c -o q921.o q921.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -c -o prisched.o prisched.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -c -o q931.o q931.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -c -o pri_facility.o pri_facility.c
ar rcs libpri.a copy_string.o pri.o q921.o prisched.o q931.o pri_facility.o
ranlib libpri.a
gcc -fPIC -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -o copy_string.lo -c copy_string.c
gcc -fPIC -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -o pri.lo -c pri.c
gcc -fPIC -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -o q921.lo -c q921.c
gcc -fPIC -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -o prisched.lo -c prisched.c
gcc -fPIC -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -o q931.lo -c q931.c
gcc -fPIC -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -o pri_facility.lo -c pri_facility.c
gcc -shared -Wl,-hlibpri.so.1 -o libpri.so.1.0 copy_string.lo pri.lo q921.lo prisched.lo q931.lo pri_facility.lo
/sbin/ldconfig -n .
ln -sf libpri.so.1 libpri.so
mkdir -p /usr/lib
mkdir -p /usr/include
install -m 644 libpri.h /usr/include
install -m 755 libpri.so.1.0 /usr/lib
if [ -x /usr/sbin/sestatus ] && ( /usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled"); then restorecon -v /usr/lib/libpri.so.1.0; fi
( cd /usr/lib ; ln -sf libpri.so.1 libpri.so )
install -m 644 libpri.a /usr/lib
if test $(id -u) = 0; then /sbin/ldconfig; fi
denk mal das hat funktioniert
so, 9. und jetzt kommts - zaphfc kompilieren:
cd zaphfc/
make clean
Code:
rm -f zaphfc.o *.ko *.mod.c *.mod.o .*o.cmd *~
rm -rf .tmp_versions
make install
Code:
install -D -m 644 zaphfc.ko /lib/modules/`uname -r`/misc/zaphfc.ko
install: Aufruf von stat für ,,zaphfc.ko" nicht möglich: Datei oder Verzeichnis nicht gefunden
make: *** [installlinux26] Fehler 1
so, und hab hier komm ich nicht weiter ;(
hab ich was falsch gemacht, oder hab ich was vergessen ??
ich freu mich schon auf eure vorschläge, danke