****************************************************
Downloading and patching finished.
****************************************************
rm -f torisatool makefw tor2fw.h
rm -f zttool
rm -f *.o ztcfg tzdriver sethdlc sethdlc-new
rm -f zonedata.lo tonezone.lo libtonezone.so.1.0 *.lo
rm -f *.ko *.mod.c .*o.cmd
rm -f gendigits tones.h
rm -f libtonezone*
rm -f tor2ee
rm -f core
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DCONFIG_ZAPATA_BRI_DCHANS -c -o gendigits.o gendigits.c
cc -o gendigits gendigits.o -lm
./gendigits
gcc -I/usr/src/linux/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I/usr/src/linux/drivers/net -Wall -I. -Wstrict-prototypes -fomit-frame-pointer -I/usr/src/linux/drivers/net/wan -I /usr/src/linux/include -I/usr/src/linux/include/net -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -DCONFIG_ZAPATA_BRI_DCHANS -DSTANDALONE_ZAPATA -c zaptel.c
In file included from /usr/src/linux/include/linux/spinlock.h:6,
from /usr/src/linux/include/linux/module.h:12,
from zaptel.c:44:
/usr/src/linux/include/asm/system.h: In Funktion »__set_64bit_var«:
/usr/src/linux/include/asm/system.h:190: Warnung: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:190: Warnung: dereferencing type-punned pointer will break strict-aliasing rules
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DCONFIG_ZAPATA_BRI_DCHANS makefw.c -o makefw
./makefw tormenta2.rbt tor2fw > tor2fw.h
Loaded 69900 bytes from file
gcc -I/usr/src/linux/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I/usr/src/linux/drivers/net -Wall -I. -Wstrict-prototypes -fomit-frame-pointer -I/usr/src/linux/drivers/net/wan -I /usr/src/linux/include -I/usr/src/linux/include/net -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -DCONFIG_ZAPATA_BRI_DCHANS -DSTANDALONE_ZAPATA -c tor2.c
In file included from /usr/src/linux/include/linux/spinlock.h:6,
from /usr/src/linux/include/linux/module.h:12,
from tor2.c:32:
/usr/src/linux/include/asm/system.h: In Funktion »__set_64bit_var«:
/usr/src/linux/include/asm/system.h:190: Warnung: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:190: Warnung: dereferencing type-punned pointer will break strict-aliasing rules
gcc -I/usr/src/linux/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I/usr/src/linux/drivers/net -Wall -I. -Wstrict-prototypes -fomit-frame-pointer -I/usr/src/linux/drivers/net/wan -I /usr/src/linux/include -I/usr/src/linux/include/net -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -DCONFIG_ZAPATA_BRI_DCHANS -DSTANDALONE_ZAPATA -c torisa.c
In file included from /usr/src/linux/include/linux/spinlock.h:6,
from /usr/src/linux/include/linux/wait.h:16,
from /usr/src/linux/include/linux/fs.h:12,
from /usr/src/linux/include/linux/capability.h:17,
from /usr/src/linux/include/linux/binfmts.h:5,
from /usr/src/linux/include/linux/sched.h:9,
from torisa.c:25:
/usr/src/linux/include/asm/system.h: In Funktion »__set_64bit_var«:
/usr/src/linux/include/asm/system.h:190: Warnung: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:190: Warnung: dereferencing type-punned pointer will break strict-aliasing rules
torisa.c: Auf höchster Ebene:
torisa.c:1139: Warnung: `set_tor_base' defined but not used
gcc -I/usr/src/linux/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I/usr/src/linux/drivers/net -Wall -I. -Wstrict-prototypes -fomit-frame-pointer -I/usr/src/linux/drivers/net/wan -I /usr/src/linux/include -I/usr/src/linux/include/net -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -DCONFIG_ZAPATA_BRI_DCHANS -DSTANDALONE_ZAPATA -c wcusb.c
In file included from /usr/src/linux/include/linux/spinlock.h:6,
from /usr/src/linux/include/linux/module.h:12,
from wcusb.c:36:
/usr/src/linux/include/asm/system.h: In Funktion »__set_64bit_var«:
/usr/src/linux/include/asm/system.h:190: Warnung: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:190: Warnung: dereferencing type-punned pointer will break strict-aliasing rules
gcc -I/usr/src/linux/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I/usr/src/linux/drivers/net -Wall -I. -Wstrict-prototypes -fomit-frame-pointer -I/usr/src/linux/drivers/net/wan -I /usr/src/linux/include -I/usr/src/linux/include/net -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -DCONFIG_ZAPATA_BRI_DCHANS -DSTANDALONE_ZAPATA -c wcfxo.c
In file included from /usr/src/linux/include/linux/spinlock.h:6,
from /usr/src/linux/include/linux/module.h:12,
from wcfxo.c:29:
/usr/src/linux/include/asm/system.h: In Funktion »__set_64bit_var«:
/usr/src/linux/include/asm/system.h:190: Warnung: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:190: Warnung: dereferencing type-punned pointer will break strict-aliasing rules
gcc -I/usr/src/linux/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I/usr/src/linux/drivers/net -Wall -I. -Wstrict-prototypes -fomit-frame-pointer -I/usr/src/linux/drivers/net/wan -I /usr/src/linux/include -I/usr/src/linux/include/net -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -DCONFIG_ZAPATA_BRI_DCHANS -DSTANDALONE_ZAPATA -c wcfxs.c
In file included from /usr/src/linux/include/linux/spinlock.h:6,
from /usr/src/linux/include/linux/module.h:12,
from wcfxs.c:29:
/usr/src/linux/include/asm/system.h: In Funktion »__set_64bit_var«:
/usr/src/linux/include/asm/system.h:190: Warnung: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:190: Warnung: dereferencing type-punned pointer will break strict-aliasing rules
gcc -I/usr/src/linux/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I/usr/src/linux/drivers/net -Wall -I. -Wstrict-prototypes -fomit-frame-pointer -I/usr/src/linux/drivers/net/wan -I /usr/src/linux/include -I/usr/src/linux/include/net -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -DCONFIG_ZAPATA_BRI_DCHANS -DSTANDALONE_ZAPATA -c ztdynamic.c
In file included from /usr/src/linux/include/linux/spinlock.h:6,
from /usr/src/linux/include/linux/module.h:12,
from ztdynamic.c:28:
/usr/src/linux/include/asm/system.h: In Funktion »__set_64bit_var«:
/usr/src/linux/include/asm/system.h:190: Warnung: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:190: Warnung: dereferencing type-punned pointer will break strict-aliasing rules
gcc -I/usr/src/linux/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I/usr/src/linux/drivers/net -Wall -I. -Wstrict-prototypes -fomit-frame-pointer -I/usr/src/linux/drivers/net/wan -I /usr/src/linux/include -I/usr/src/linux/include/net -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -DCONFIG_ZAPATA_BRI_DCHANS -DSTANDALONE_ZAPATA -c ztd-eth.c
In file included from /usr/src/linux/include/linux/spinlock.h:6,
from /usr/src/linux/include/linux/module.h:12,
from ztd-eth.c:28:
/usr/src/linux/include/asm/system.h: In Funktion »__set_64bit_var«:
/usr/src/linux/include/asm/system.h:190: Warnung: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:190: Warnung: dereferencing type-punned pointer will break strict-aliasing rules
gcc -I/usr/src/linux/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I/usr/src/linux/drivers/net -Wall -I. -Wstrict-prototypes -fomit-frame-pointer -I/usr/src/linux/drivers/net/wan -I /usr/src/linux/include -I/usr/src/linux/include/net -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -DCONFIG_ZAPATA_BRI_DCHANS -DSTANDALONE_ZAPATA -c wct1xxp.c
In file included from /usr/src/linux/include/linux/spinlock.h:6,
from /usr/src/linux/include/linux/module.h:12,
from wct1xxp.c:31:
/usr/src/linux/include/asm/system.h: In Funktion »__set_64bit_var«:
/usr/src/linux/include/asm/system.h:190: Warnung: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:190: Warnung: dereferencing type-punned pointer will break strict-aliasing rules
gcc -I/usr/src/linux/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I/usr/src/linux/drivers/net -Wall -I. -Wstrict-prototypes -fomit-frame-pointer -I/usr/src/linux/drivers/net/wan -I /usr/src/linux/include -I/usr/src/linux/include/net -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -DCONFIG_ZAPATA_BRI_DCHANS -DSTANDALONE_ZAPATA -c wct4xxp.c
In file included from /usr/src/linux/include/linux/spinlock.h:6,
from /usr/src/linux/include/linux/module.h:12,
from wct4xxp.c:31:
/usr/src/linux/include/asm/system.h: In Funktion »__set_64bit_var«:
/usr/src/linux/include/asm/system.h:190: Warnung: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:190: Warnung: dereferencing type-punned pointer will break strict-aliasing rules
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DCONFIG_ZAPATA_BRI_DCHANS -c -o ztcfg.o ztcfg.c
cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DCONFIG_ZAPATA_BRI_DCHANS -DBUILDING_TONEZONE -o zonedata.lo zonedata.c
cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DCONFIG_ZAPATA_BRI_DCHANS -DBUILDING_TONEZONE -o tonezone.lo tonezone.c
ar rcs libtonezone.a zonedata.lo tonezone.lo
cc -o ztcfg ztcfg.o -lm -L. libtonezone.a
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DCONFIG_ZAPATA_BRI_DCHANS -c -o torisatool.o torisatool.c
cc -o torisatool torisatool.o
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DCONFIG_ZAPATA_BRI_DCHANS -c -o ztmonitor.o ztmonitor.c
cc -o ztmonitor ztmonitor.o
cc -c ztspeed.c
cc -o ztspeed ztspeed.o
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DCONFIG_ZAPATA_BRI_DCHANS zttest.c -o zttest
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
cc -shared -Wl,-soname,libtonezone.so.1 -lm -o libtonezone.so.1.0 zonedata.lo tonezone.lo
/sbin/ldconfig -n .
ln -sf libtonezone.so.1 libtonezone.so
mkdir -p /sbin
install -m 755 ztcfg /sbin
if [ -f sethdlc-new ]; then \
install -m 755 sethdlc-new /sbin/sethdlc; \
elif [ -f sethdlc ]; then \
install -m 755 sethdlc /sbin ; \
fi
if [ -f zttool ]; then install -m 755 zttool /sbin; fi
mkdir -p /lib/modules/`uname -r`/misc
if [ -f zaptel.ko ]; then \
for x in zaptel.ko tor2.ko torisa.ko wcusb.ko wcfxo.ko wcfxs.ko ztdynamic.ko ztd-eth.ko wct1xxp.ko wct4xxp.ko ztdummy.ko; do \
install -m 644 $x /lib/modules/`uname -r`/misc ; \
done; \
if ! [ -f wcfxsusb.ko ]; then \
rm -f /lib/modules/`uname -r`/misc/wcfxsusb.o; \
fi; \
else \
for x in zaptel.o tor2.o torisa.o wcusb.o wcfxo.o wcfxs.o ztdynamic.o ztd-eth.o wct1xxp.o wct4xxp.o ; do \
install -m 644 $x /lib/modules/`uname -r`/misc ; \
done; \
if ! [ -f wcfxsusb.o ]; then \
rm -f /lib/modules/`uname -r`/misc/wcfxsusb.ko; \
fi; \
fi
mkdir -p /usr/lib
install -m 755 libtonezone.so.1.0 /usr/lib
mkdir -p /usr/include/linux
install -m 644 zaptel.h /usr/include/linux
install -m 644 torisa.h /usr/include/linux
install -m 644 tonezone.h /usr/include
( cd /usr/lib ; rm -f libtonezone.so ; ln -sf libtonezone.so.1.0 libtonezone.so )
/sbin/ldconfig
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 "post-install wcfxs /sbin/ztcfg" > /etc/modprobe.d/zaptel || true
cat: /etc/modprobe.d/zaptel.bak: Datei oder Verzeichnis nicht gefunden
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 wcfxs ztdynamic ztd-eth wct1xxp wct4xxp ; do \
if ! grep "post-install $x" /etc/modprobe.d/zaptel; then \
if ! grep "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 [ -d /etc/modutils ]; then \
/sbin/update-modules ; \
fi
/sbin/depmod -a
[ -f /etc/zaptel.conf ] || install -m 644 zaptel.conf.sample /etc/zaptel.conf
****************************************************
ZAPTEL installed.
Press <Enter> to continue, or <CTRL> + <C> to abort.
****************************************************