Fitzbox 3170 scanner support with SANE
With the FritzBox from AVM (Product Page) you can do amazing things like adding and compile sane as a part of the FritzBox. This can be done by changing the firmware. You will need some Linux knowlege for this.
This is my configuration:
Fritzbox: 3170
PC: Leopard OSx86
Notebook: Windows XP Pro
MacBook Pro: Leopard
Scanner: Mustek BearPaw 1200TA
Printer: Brother DCP-7010
The PC is connected via ethernetcable.
Macbook and Notebook via WLAN.
Scanner and Printer are connected both with an USB-HUB to the Fritzbox.
[Link] http://www.ip-phone-forum.de/showthread.php?t=144646
[Link] http://wiki.ip-phone-forum.de/software:ds-mod:start
[Info] SANE: sane-backends-1.0.18.tar.gz
[Link] http://www.sane-project.org/
[Info] Scanner driver: gt68xx-backend-only-1.0-84.tar.gz
[Link] http://meier-geinitz.de/sane/gt68xx-backend/
[Hint] If you have another scanner check http://www.sane-project.org/sane-supported-devices.html. This is not nesessary if you have another scanner.
[Info] The Firmware for my scanner: A1fw.usb
[Link] http://meier-geinitz.de/sane/gt68xx-backend/
[Hint] Only a few scanners need firmware.
[Info] A ready-to-build VMware image: StinkyLinux V1.05
[Link] http://www.ip-phone-forum.de/showthread.php?t=146502
[Hint] I used this VMware image because it save many time but if you are experienced enough on compiling things on Linux you can make it your way.
make a Fritzbox directory
decompress SANE and build it with the newest scanner driver
cleanup if you used joe as editor
this will take some time depends on your hardware configuration
well at this point i will not give any guarantee that this will work.
YOU CAN DAMAGE YOUR FRITZBOX!
if something goes wrong so please Don't bother me if you DAMAGE your box
YOU DO THIS ON YOUR OWN RISK!
Flashing the Fritzbox:
If you have configured the ds-mod you can start the telnetd with the webinterface.
Telnet to your box and try to list the scanner
For Tiger and Leopard check this http://www.ellert.se/twain-sane/
For Windows try http://sanetwain.ozuzo.net/
Thanks to clawiter for the inspiration and this thread.
SnE
This is my configuration:
Fritzbox: 3170
PC: Leopard OSx86
Notebook: Windows XP Pro
MacBook Pro: Leopard
Scanner: Mustek BearPaw 1200TA
Printer: Brother DCP-7010
The PC is connected via ethernetcable.
Macbook and Notebook via WLAN.
Scanner and Printer are connected both with an USB-HUB to the Fritzbox.
To build a new firmware for the Fritzbox you will need the following packages:
[Info] modification danisahne: ds26-15.2.tar.bz2[Link] http://www.ip-phone-forum.de/showthread.php?t=144646
[Link] http://wiki.ip-phone-forum.de/software:ds-mod:start
[Info] SANE: sane-backends-1.0.18.tar.gz
[Link] http://www.sane-project.org/
[Info] Scanner driver: gt68xx-backend-only-1.0-84.tar.gz
[Link] http://meier-geinitz.de/sane/gt68xx-backend/
[Hint] If you have another scanner check http://www.sane-project.org/sane-supported-devices.html. This is not nesessary if you have another scanner.
[Info] The Firmware for my scanner: A1fw.usb
[Link] http://meier-geinitz.de/sane/gt68xx-backend/
[Hint] Only a few scanners need firmware.
[Info] A ready-to-build VMware image: StinkyLinux V1.05
[Link] http://www.ip-phone-forum.de/showthread.php?t=146502
[Hint] I used this VMware image because it save many time but if you are experienced enough on compiling things on Linux you can make it your way.
Lets build the Firmware:
Start you VMware StinkyLinux and login (slightly:stinky).make a Fritzbox directory
mkdir /fritzboxput the files in the folder
ds26-15.2.tar.bz2decompress ds-mod
sane-backends-1.0.18.tar.gz
gt68xx-backend-only-1.0-84.tar.gz
A1fw.usb
tar -jxvf ds26-15.2.tar.bz2enter the decompressed directory and configure the mod
cd /fritzbox/ds26-15.2choose YOUR settings!! Like Hardware type and others. This is MY example
make menuconfig
--- General --------------------------------exit and SAVE YOUR settings
Hardware type (WLAN 3170) --->
Firmware language (de - deutsch) --->
[ ] Replace kernel
--- Brandings ------------------------------
[*] AVM
--- Patches --------------------------------
[*] Remove help
[*] Remove assistant
[*] Remove cdrom.iso
[*] Patch USB storage names
[ ] Replace AVM web server by httpd - EXPERIMENTAL
[ ] Remove UPnP daemon (igdd) - EXPERIMENTAL
[ ] Integrate Media Server from USB Labor firmware - EXPERIMENTAL
--- Mod ------------------------------------
Language (de - deutsch) --->
decompress SANE and build it with the newest scanner driver
cd /fritzbox/create SANE as an addon for the Fritzbox
tar -zxvf sane-backends-1.0.18.tar.gz
cd sane-backends-1.0.18
cp ../gt68xx-backend-only-1.0-84.tar.gz .
tar -zxvf gt68xx-backend-only-1.0-84.tar.gz
./configure --build=i386-linux-gnu --target=mipsel-linux --host=mipsel-linux --prefix=
make CC="mipsel-linux-gcc" CFLAGS="-Os -pipe -march=4kc -Wa,--trap"
mkdir -p /fritzbox/ds26-15.2/addon/sane-backends-1.0.18/root/bin/copy the files and create some symlinks
mkdir -p /fritzbox/ds26-15.2/addon/sane-backends-1.0.18/root/etc/sane.d/
mkdir -p /fritzbox/ds26-15.2/addon/sane-backends-1.0.18/root/etc/hotplug/
mkdir -p /fritzbox/ds26-15.2/addon/sane-backends-1.0.18/root/lib/sane/
mkdir -p /fritzbox/ds26-15.2/addon/sane-backends-1.0.18/root/share/sane/gt68xx/
cd /fritzbox/sane-backends-1.0.18
cp frontend/.libs/* ../ds26-15.2/addon/sane-backends-1.0.18/root/bin/
cp tools/sane-config ../ds26-15.2/addon/sane-backends-1.0.18/root/bin/
cp tools/sane-find-scanner ../ds26-15.2/addon/sane-backends-1.0.18/root/bin/
cp tools/gamma4scanimage ../ds26-15.2/addon/sane-backends-1.0.18/root/bin/
cp backend/.libs/libsane.so.1.0.18 ../ds26-15.2/addon/sane-backends-1.0.18/root/lib/
cd ../ds26-15.2/addon/sane-backends-1.0.18/root/lib/
ln -s libsane.so.1.0.18 libsane.so.1
ln -s libsane.so.1.0.18 libsane.so
cd /fritzbox/sane-backends-1.0.18create the configs for SANE with an Linux editor like joe,vi or your favorite
cp backend/.libs/libsane-gt68xx.so.1.0.18 ../ds26-15.2/addon/sane-backends-1.0.18/root/lib/sane/
cp backend/.libs/libsane-dll.so.1.0.18 ../ds26-15.2/addon/sane-backends-1.0.18/root/lib/sane/
cd ../ds26-15.2/addon/sane-backends-1.0.18/root/lib/sane/
ln -s libsane-gt68xx.so.1.0.18 libsane-gt68xx.so.1
ln -s libsane-gt68xx.so.1.0.18 libsane-gt68xx.so
ln -s libsane-dll.so.1.0.18 libsane-dll.so.1
ln -s libsane-dll.so.1.0.18 libsane-dll.so
cd /fritzbox/sane-backends-1.0.18
joe ../ds26-15.2/addon/sane-backends-1.0.18/root/bin/saned_wrappermake it executable
#!/bin/sh
(while true; do /bin/saned -d; done) >/dev/null 2>/dev/null &
chmod 755 ds26-15.2/addon/sane-backends-1.0.18/root/bin/saned_wrapper
joe ../ds26-15.2/addon/sane-backends-1.0.18/root/etc/sane.d/dll.confmake sure you enter the right SUBNET!!!
gt68xx
joe ../ds26-15.2/addon/sane-backends-1.0.18/root/etc/sane.d/saned.conf
192.168.2.0/24
cp backend/gt68xx.conf ../ds26-15.2/addon/sane-backends-1.0.18/root/etc/sane.d/integrate the scanner firmware
cd /fritzbox/change the hotplug script from the original firmware to start the saned deamon
cp A1fw.usb ds26-15.2/addon/sane-backends-1.0.18/root/share/sane/gt68xx/
cp ds26-15.2/build/original/filesystem/etc/hotplug/printer ds26-15.2/addon/sane-backends-1.0.18/root/etc/hotplug/scanneredit the script add the following after the #
joe ds26-15.2/addon/sane-backends-1.0.18/root/etc/hotplug/printer
# Starting printserver...
/bin/saned_wrapper
# Stop it all...
killall saned_wrapper
cleanup if you used joe as editor
rm /fritzbox/ds26-15.2/addon/sane-backends-1.0.18/root/etc/hotplug/printer~ok now make the firmware
rm /fritzbox/ds26-15.2/addon/sane-backends-1.0.18/root/bin/saned_wrapper~
cd /fritzbox/ds26-15.2/
make
this will take some time depends on your hardware configuration
well at this point i will not give any guarantee that this will work.
YOU CAN DAMAGE YOUR FRITZBOX!
if something goes wrong so please Don't bother me if you DAMAGE your box
YOU DO THIS ON YOUR OWN RISK!
Flashing the Fritzbox:
Get the new image and use the firmware-update from the web interface to update the box.
If you have configured the ds-mod you can start the telnetd with the webinterface.
Telnet to your box and try to list the scanner
/$ scanimage -L
device `gt68xx:libusb:001:005' is a Mustek BearPaw 1200 TA flatbed scanner
Clients to scan:
Now you can use sane-twain clients to scanFor Tiger and Leopard check this http://www.ellert.se/twain-sane/
For Windows try http://sanetwain.ozuzo.net/
Thanks to clawiter for the inspiration and this thread.
SnE