- Flash the FritzBox with the Freetz firmware using the Fritz!Box
web-frontend. As we are not allowed to offer a FritzBox binary image for
download, here is a mini HOWTO:
- Copy the tgz packages apache
(1MB), fhem (1MB) and
perl (10MB) to the USB stick
and attach it to the box.
- Restart the box and connect to the box using telnet, e.g. with
telnet 192.168.178.1
- Untar the packages into a new directory on the USB stick, e.g.
cd /var/media/ftp/uStor01/
mkdir fritzext
cd fritzext
tar -xvzf ../fhem-4.6.tgz
tar -xvzf ../perl-5.6.2.tgz
tar -xvzf ../apache-1.3.41.tgz
For the following ascii file modifications the editor nano can be used
which is contained in the Freetz firmware.
- Adapt /var/flash/debug.cfg, and change the path to fhem:
/var/flash # more debug.cfg
export dTSB=1212687845
/bin/sleep 120
cd /var/media/ftp/uStor01/fritzext/fhem-4.5 && ./rc.fhem
- Adapt fhem/rc.fhem, and change the path to perl, fhem, apache:
#!/bin/sh
# "RC" script for a fhem running on the Fritz!Box from
# an attached usb-stick.
cd /var
ln -s /var/media/ftp/uStor01/fritzext/perl .
ln -s /var/media/ftp/uStor01/fritzext/apache-1.3.41 .
ln -s /var/media/ftp/uStor01/fritzext/fhem .
export LD_LIBRARY_PATH=/var/perl/lib
export PATH=/var/perl/bin:$PATH
export PERL5LIB=/var/perl/lib/:/var/perl/perl5/:/var/perl/lib/perl5/5.6.2/
mount -o remount,rw /var/media/ftp/uStor01
swapon /var/perl/swapfile
# For CUL:
insmod /lib/modules/2.6.13.1-ohio/kernel/drivers/usb/serial/usbserial.ko
vendor=0x03eb product=0x204b
# For FHZ:
insmod /lib/modules/2.6.13.1-ohio/kernel/drivers/usb/serial/ftdi_sio.ko
cd /var/media/ftp/uStor01/fritzext/fhem
perl fhem.pl fhem.cfg
cd /var/
apache-1.3.41/apache apache-1.3.41/conf/apache.conf
- Adapt your fhem.cfg. CUL can be used on /dev/ttyUSB0.
- Restart the box