<?xml version="1.0"?>
<rss xmlns:blogChannel="http://backend.userland.com/blogChannelModule" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:blog="http://bitflux.org/doctypes/blog" xmlns:php="http://php.net/xsl" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:georss="http://www.georss.org/georss" xmlns:media="http://search.yahoo.com/mrss" version="2.0"><channel><title>sneosx86.freeflux.net</title><link>http://sneosx86.freeflux.net/blog/</link><description>Welcome to my MacOSx86 site</description><generator>Flux CMS - http://www.flux-cms.org</generator><atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" type="application/json" href="http://friendfeed.com/api/public-sup.json#flx-a23570ce33"/><item><title>Fitzbox 3170 scanner support with SANE</title><link>http://sneosx86.freeflux.net/blog/archive/2007/12/31/fitzbox-3170-scanner-support-with-sane.html</link><guid isPermaLink="false">http://sneosx86.freeflux.net/blog/archive/id/33/</guid><content:encoded xmlns="http://www.w3.org/1999/xhtml">With the FritzBox from AVM (&lt;a href="http://www.avm.de/de/Produkte/FRITZBox/FRITZ_Box_WLAN/index.html"
    &gt;Product Page&lt;/a&gt;) 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.&lt;br/&gt;
&lt;br/&gt;
This is my configuration:&lt;br/&gt;
&lt;strong&gt;Fritzbox&lt;/strong&gt;: 3170&lt;br/&gt;
&lt;strong&gt;PC:&lt;/strong&gt; Leopard OSx86&lt;br/&gt;
&lt;strong&gt;Notebook&lt;/strong&gt;: Windows XP Pro&lt;br/&gt;
&lt;strong&gt;MacBook&lt;/strong&gt; Pro: Leopard&lt;br/&gt;
&lt;strong&gt;Scanner&lt;/strong&gt;: Mustek BearPaw 1200TA&lt;br/&gt;
&lt;strong&gt;Printer&lt;/strong&gt;: Brother DCP-7010&lt;br/&gt;
&lt;br/&gt;
The &lt;strong&gt;PC&lt;/strong&gt; is connected via ethernetcable. &lt;br/&gt;
&lt;strong&gt;Macbook&lt;/strong&gt; and &lt;strong&gt;Notebook&lt;/strong&gt; via WLAN.&lt;br/&gt;
&lt;strong&gt;Scanner&lt;/strong&gt; and &lt;strong&gt;Printer&lt;/strong&gt; are connected both with an USB-HUB to the Fritzbox.&lt;br/&gt;
&lt;br/&gt;
&lt;h1&gt;To build a new firmware for the &lt;strong&gt;Fritzbox&lt;/strong&gt; you will need the following packages:&lt;/h1&gt;
[Info] modification danisahne: &lt;strong&gt;ds26-15.2.tar.bz2&lt;/strong&gt;&lt;br/&gt;
[Link] http://www.ip-phone-forum.de/showthread.php?t=144646&lt;br/&gt;
[Link] http://wiki.ip-phone-forum.de/software:ds-mod:start&lt;br/&gt;
&lt;br/&gt;
[Info] SANE: &lt;strong&gt;sane-backends-1.0.18.tar.gz&lt;/strong&gt;&lt;br/&gt;
[Link] http://www.sane-project.org/&lt;br/&gt;
&lt;br/&gt;
[Info] Scanner driver: &lt;strong&gt;gt68xx-backend-only-1.0-84.tar.gz&lt;/strong&gt;&lt;br/&gt;
[Link] http://meier-geinitz.de/sane/gt68xx-backend/&lt;br/&gt;
[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.&lt;br/&gt;
&lt;br/&gt;
[Info] The Firmware for my scanner: &lt;strong&gt;A1fw.usb&lt;/strong&gt;&lt;br/&gt;
[Link] http://meier-geinitz.de/sane/gt68xx-backend/&lt;br/&gt;
[Hint] Only a few scanners need firmware. &lt;br/&gt;
&lt;br/&gt;
[Info] A ready-to-build VMware image: StinkyLinux V1.05&lt;br/&gt;
[Link] http://www.ip-phone-forum.de/showthread.php?t=146502&lt;br/&gt;
[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.&lt;br/&gt;
&lt;br/&gt;
&lt;h1&gt;Lets build the Firmware:&lt;/h1&gt;
Start you VMware StinkyLinux and login (slightly:stinky).&lt;br/&gt;
make a Fritzbox directory &lt;br/&gt;
&lt;pre&gt;mkdir /fritzbox&lt;/pre&gt;
put the files in the folder&lt;br/&gt;
&lt;pre&gt;ds26-15.2.tar.bz2&lt;br/&gt;sane-backends-1.0.18.tar.gz&lt;br/&gt;gt68xx-backend-only-1.0-84.tar.gz&lt;br/&gt;A1fw.usb&lt;/pre&gt;
decompress ds-mod&lt;br/&gt;
&lt;pre&gt;tar -jxvf ds26-15.2.tar.bz2&lt;/pre&gt;
enter the decompressed directory and configure the mod&lt;br/&gt;
&lt;pre&gt;cd /fritzbox/ds26-15.2&lt;br/&gt;make menuconfig&lt;/pre&gt;
choose &lt;strong&gt;YOUR&lt;/strong&gt; settings!! Like Hardware type and others. This is &lt;strong&gt;MY&lt;/strong&gt; example&lt;br/&gt;
&lt;pre&gt;--- General --------------------------------&lt;br/&gt;Hardware type (WLAN 3170)  ---&amp;gt;&lt;br/&gt;Firmware language (de - deutsch)  ---&amp;gt;&lt;br/&gt;[ ] Replace kernel&lt;br/&gt;--- Brandings ------------------------------&lt;br/&gt;[*] AVM&lt;br/&gt; --- Patches --------------------------------&lt;br/&gt;[*] Remove help&lt;br/&gt;[*] Remove assistant&lt;br/&gt;[*] Remove cdrom.iso&lt;br/&gt;[*] Patch USB storage names&lt;br/&gt;[ ] Replace AVM web server by httpd - EXPERIMENTAL&lt;br/&gt;[ ] Remove UPnP daemon (igdd) - EXPERIMENTAL&lt;br/&gt;[ ] Integrate Media Server from USB Labor firmware - EXPERIMENTAL     &lt;br/&gt;--- Mod ------------------------------------&lt;br/&gt;Language (de - deutsch)  ---&amp;gt; &lt;br/&gt;&lt;/pre&gt;
exit and &lt;strong&gt;SAVE YOUR&lt;/strong&gt; settings&lt;br/&gt;
&lt;br/&gt;
decompress SANE and build it with the newest scanner driver&lt;br/&gt;
&lt;pre&gt;cd /fritzbox/&lt;br/&gt;tar -zxvf sane-backends-1.0.18.tar.gz&lt;br/&gt;cd sane-backends-1.0.18&lt;br/&gt;cp ../gt68xx-backend-only-1.0-84.tar.gz .&lt;br/&gt;tar -zxvf gt68xx-backend-only-1.0-84.tar.gz&lt;br/&gt;./configure --build=i386-linux-gnu --target=mipsel-linux --host=mipsel-linux --prefix=&lt;br/&gt;make CC="mipsel-linux-gcc" CFLAGS="-Os -pipe -march=4kc -Wa,--trap"&lt;/pre&gt;
create SANE as an addon for the Fritzbox&lt;br/&gt;
&lt;pre&gt;mkdir -p /fritzbox/ds26-15.2/addon/sane-backends-1.0.18/root/bin/&lt;br/&gt;mkdir -p /fritzbox/ds26-15.2/addon/sane-backends-1.0.18/root/etc/sane.d/&lt;br/&gt;mkdir -p /fritzbox/ds26-15.2/addon/sane-backends-1.0.18/root/etc/hotplug/&lt;br/&gt;mkdir -p /fritzbox/ds26-15.2/addon/sane-backends-1.0.18/root/lib/sane/&lt;br/&gt;mkdir -p /fritzbox/ds26-15.2/addon/sane-backends-1.0.18/root/share/sane/gt68xx/&lt;/pre&gt;
copy the files and create some symlinks&lt;br/&gt;
&lt;pre&gt;cd /fritzbox/sane-backends-1.0.18&lt;br/&gt;cp frontend/.libs/* ../ds26-15.2/addon/sane-backends-1.0.18/root/bin/&lt;br/&gt;cp tools/sane-config ../ds26-15.2/addon/sane-backends-1.0.18/root/bin/&lt;br/&gt;cp tools/sane-find-scanner ../ds26-15.2/addon/sane-backends-1.0.18/root/bin/&lt;br/&gt;cp tools/gamma4scanimage ../ds26-15.2/addon/sane-backends-1.0.18/root/bin/&lt;br/&gt;&lt;br/&gt;cp backend/.libs/libsane.so.1.0.18 ../ds26-15.2/addon/sane-backends-1.0.18/root/lib/&lt;br/&gt;cd ../ds26-15.2/addon/sane-backends-1.0.18/root/lib/&lt;br/&gt;ln -s libsane.so.1.0.18 libsane.so.1&lt;br/&gt;ln -s libsane.so.1.0.18 libsane.so&lt;/pre&gt;
&lt;pre&gt;cd /fritzbox/sane-backends-1.0.18&lt;br/&gt;cp backend/.libs/libsane-gt68xx.so.1.0.18 ../ds26-15.2/addon/sane-backends-1.0.18/root/lib/sane/&lt;br/&gt;cp backend/.libs/libsane-dll.so.1.0.18 ../ds26-15.2/addon/sane-backends-1.0.18/root/lib/sane/&lt;br/&gt;cd ../ds26-15.2/addon/sane-backends-1.0.18/root/lib/sane/&lt;br/&gt;ln -s libsane-gt68xx.so.1.0.18 libsane-gt68xx.so.1&lt;br/&gt;ln -s libsane-gt68xx.so.1.0.18 libsane-gt68xx.so&lt;br/&gt;ln -s libsane-dll.so.1.0.18 libsane-dll.so.1&lt;br/&gt;ln -s libsane-dll.so.1.0.18 libsane-dll.so&lt;br/&gt;&lt;br/&gt;cd /fritzbox/sane-backends-1.0.18&lt;/pre&gt;
create the configs for SANE with an Linux editor like joe,vi or your favorite&lt;br/&gt;
&lt;pre&gt;joe ../ds26-15.2/addon/sane-backends-1.0.18/root/bin/saned_wrapper&lt;br/&gt;#!/bin/sh&lt;br/&gt;(while true; do /bin/saned -d; done) &amp;gt;/dev/null 2&amp;gt;/dev/null &amp;amp;&lt;/pre&gt;
make it executable&lt;br/&gt;
&lt;pre&gt;chmod 755 ds26-15.2/addon/sane-backends-1.0.18/root/bin/saned_wrapper&lt;/pre&gt;
&lt;pre&gt;joe ../ds26-15.2/addon/sane-backends-1.0.18/root/etc/sane.d/dll.conf&lt;br/&gt;gt68xx&lt;/pre&gt;
make sure you enter the right SUBNET!!!&lt;br/&gt;
&lt;pre&gt;joe ../ds26-15.2/addon/sane-backends-1.0.18/root/etc/sane.d/saned.conf&lt;br/&gt;192.168.2.0/24 &lt;/pre&gt;
&lt;pre&gt;cp backend/gt68xx.conf ../ds26-15.2/addon/sane-backends-1.0.18/root/etc/sane.d/&lt;/pre&gt;
integrate the scanner firmware&lt;br/&gt;
&lt;pre&gt;cd /fritzbox/&lt;br/&gt;cp A1fw.usb ds26-15.2/addon/sane-backends-1.0.18/root/share/sane/gt68xx/&lt;/pre&gt;
change the hotplug script from the original firmware to start the saned deamon&lt;br/&gt;
&lt;pre&gt;cp ds26-15.2/build/original/filesystem/etc/hotplug/printer ds26-15.2/addon/sane-backends-1.0.18/root/etc/hotplug/scanner&lt;/pre&gt;
edit the script add the following after the #&lt;br/&gt;
&lt;pre&gt;joe ds26-15.2/addon/sane-backends-1.0.18/root/etc/hotplug/printer&lt;br/&gt;# Starting printserver...&lt;br/&gt;/bin/saned_wrapper&lt;br/&gt;&lt;br/&gt;# Stop it all...&lt;br/&gt;killall saned_wrapper&lt;/pre&gt;
&lt;br/&gt;
cleanup if you used joe as editor&lt;br/&gt;
&lt;pre&gt;rm /fritzbox/ds26-15.2/addon/sane-backends-1.0.18/root/etc/hotplug/printer~&lt;br/&gt;rm /fritzbox/ds26-15.2/addon/sane-backends-1.0.18/root/bin/saned_wrapper~&lt;br/&gt;&lt;/pre&gt;
ok now make the firmware&lt;br/&gt;
&lt;pre&gt;cd /fritzbox/ds26-15.2/&lt;br/&gt;make&lt;br/&gt;&lt;/pre&gt;
&lt;br/&gt;
this will take some time depends on your hardware configuration&lt;br/&gt;
&lt;br/&gt;
well at this point i will not give any guarantee that this will work.&lt;br/&gt;
&lt;font color="red"
    &gt;YOU CAN DAMAGE YOUR FRITZBOX!&lt;/font&gt; &lt;br/&gt;
if something goes wrong so please Don't bother me if you DAMAGE your box &lt;br/&gt;
&lt;font color="red"
    &gt;YOU DO THIS ON YOUR OWN RISK!&lt;/font&gt;  &lt;br/&gt;
&lt;br/&gt;
&lt;h1&gt;Flashing the Fritzbox: &lt;br/&gt;
&lt;/h1&gt;
&lt;p&gt;&lt;br/&gt;
Get the new image and use the firmware-update from the web interface to update the box.&lt;/p&gt;
After flashing you can login to the ds-mod webinterface (http://your.box.ip:81) and follow the instructions. &lt;br/&gt;
If you have configured the ds-mod you can start the telnetd with the webinterface.&lt;br/&gt;
&lt;br/&gt;
Telnet to your box and try to list the scanner&lt;br/&gt;
&lt;pre&gt;/$ scanimage -L&lt;br/&gt;device `gt68xx:libusb:001:005' is a Mustek BearPaw 1200 TA flatbed scanner&lt;br/&gt;&lt;/pre&gt;
&lt;h1&gt;Clients to scan:&lt;/h1&gt;
Now you can use sane-twain clients to scan&lt;br/&gt;
For Tiger and Leopard check this http://www.ellert.se/twain-sane/&lt;br/&gt;
For Windows try http://sanetwain.ozuzo.net/&lt;br/&gt;
&lt;br/&gt;
&lt;strong&gt;Thanks&lt;/strong&gt; to &lt;font&gt;&lt;a class="bigusername"
     href="http://www.ip-phone-forum.de/member.php?u=79788"
    &gt;&lt;font size="2"
    &gt;clawiter&lt;/font&gt;&lt;/a&gt; for the inspiration and this &lt;a href="http://www.ip-phone-forum.de/showthread.php?t=108479"
    &gt;&lt;a href="http://www.ip-phone-forum.de/showthread.php?t=108479"
    &gt;thread&lt;/a&gt;.&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
SnE&lt;br/&gt;
&lt;/font&gt;</content:encoded><dc:subject>General</dc:subject><dc:subject>fitzbox</dc:subject><dc:subject>sane</dc:subject><dc:creator>sneosx86</dc:creator><dc:date>2007-12-31T23:00:00Z</dc:date></item><item><title>_CFGetHostUUIDString Final Extension FIX</title><link>http://sneosx86.freeflux.net/blog/archive/2007/11/11/_cfgethostuuidstring-final-extension-fix.html</link><guid isPermaLink="false">http://sneosx86.freeflux.net/blog/archive/id/26/</guid><content:encoded xmlns="http://www.w3.org/1999/xhtml">There is now final extension fix from  #leopard @ irc.osx86.hu.&lt;br/&gt;
&lt;br/&gt;
You can get it &lt;a href="http://tinyurl.com/27frv7"
    &gt;here&lt;/a&gt;.&lt;br/&gt;
Unpack it an place it to &lt;strong&gt;/System/Library/Extensions/IONetworkingFamily.kext/Contents/MasOS/&lt;/strong&gt;&lt;br/&gt;
If you used my workaround please restore your backup of &lt;strong&gt;NetworkInterfaces.plist.&lt;/strong&gt;&lt;br/&gt;
&lt;br/&gt;
This fix will set &lt;strong&gt;IOBuiltin = true&lt;/strong&gt; for all network devices.&lt;br/&gt;
&lt;br/&gt;
SnE</content:encoded><dc:subject>General</dc:subject><dc:subject>osx86</dc:subject><dc:subject>extension</dc:subject><dc:subject>network</dc:subject><dc:subject>fix</dc:subject><dc:creator>sneosx86</dc:creator><dc:date>2007-11-11T12:38:43Z</dc:date></item><item><title>_CFGetHostUUIDString Error WORKAROUND/FIX</title><link>http://sneosx86.freeflux.net/blog/archive/2007/11/10/_cfgethostuuidstring-error-workaround-fix.html</link><guid isPermaLink="false">http://sneosx86.freeflux.net/blog/archive/id/15/</guid><content:encoded xmlns="http://www.w3.org/1999/xhtml">This workaround will help you to remove the "&lt;strong&gt;_CFGetHostUUIDString: unable to determine UUID for host. Error: 35&lt;/strong&gt;" error.&lt;br/&gt;
&lt;br/&gt;
1.) BACKUP your &lt;strong&gt;/Library/Preferences/SystemConfiguration/NetworkInterfaces.plist&lt;/strong&gt;&lt;br/&gt;
2.) Open &lt;strong&gt;/Library/Preferences/SystemConfiguration/NetworkInterfaces.plist&lt;/strong&gt;&lt;br/&gt;
3.) ADD AFTER &lt;strong&gt;&amp;lt;string&amp;gt;Ethernet&amp;lt;/string&amp;gt;&amp;lt;/dict&amp;gt; the following:&lt;br/&gt;
&amp;lt;dict&amp;gt;&lt;br/&gt;
&amp;lt;key&amp;gt;BSD Name&amp;lt;/key&amp;gt;&lt;br/&gt;
&amp;lt;string&amp;gt;en3&amp;lt;/string&amp;gt;&lt;br/&gt;
&amp;lt;key&amp;gt;IOBuiltin&amp;lt;/key&amp;gt;&lt;br/&gt;
&amp;lt;false/&amp;gt;&lt;br/&gt;
&amp;lt;key&amp;gt;IOInterfaceType&amp;lt;/key&amp;gt;&lt;br/&gt;
&amp;lt;integer&amp;gt;6&amp;lt;/integer&amp;gt;&lt;br/&gt;
&amp;lt;key&amp;gt;IOInterfaceUnit&amp;lt;/key&amp;gt;&lt;br/&gt;
&amp;lt;integer&amp;gt;3&amp;lt;/integer&amp;gt;&lt;br/&gt;
&amp;lt;key&amp;gt;IOLocation&amp;lt;/key&amp;gt;&lt;br/&gt;
&amp;lt;string&amp;gt;&amp;lt;/string&amp;gt;&lt;br/&gt;
&amp;lt;key&amp;gt;IOMACAddress&amp;lt;/key&amp;gt;&lt;br/&gt;
&amp;lt;data&amp;gt;&lt;br/&gt;
ABbPoF5V&lt;br/&gt;
&amp;lt;/data&amp;gt;&lt;br/&gt;
&amp;lt;key&amp;gt;IOPathMatch&amp;lt;/key&amp;gt;&lt;br/&gt;
&amp;lt;string&amp;gt;IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/P0P3@1C,2/&lt;br/&gt;
IOPCI2PCIBridge/pci14e4,4311@0/AirPort_Brcm43xx/IO80211Interface&amp;lt;/string&amp;gt;&lt;br/&gt;
&amp;lt;key&amp;gt;SCNetworkInterfaceType&amp;lt;/key&amp;gt;&lt;br/&gt;
&amp;lt;string&amp;gt;IEEE80211&amp;lt;/string&amp;gt;&lt;br/&gt;
&amp;lt;/dict&amp;gt;&lt;/strong&gt;&lt;br/&gt;
4.) IF you have more than 3 interfaces or there is an "&lt;strong&gt;en3&lt;/strong&gt;" interface change it to "&lt;strong&gt;en4&lt;/strong&gt;" or a higher number, don't forget to change this "&lt;strong&gt;&amp;lt;integer&amp;gt;3&amp;lt;/integer&amp;gt;&lt;/strong&gt;" to "&lt;strong&gt;&amp;lt;integer&amp;gt;4&amp;lt;/integer&amp;gt;&lt;/strong&gt;".&lt;br/&gt;
5.) You need to &lt;strong&gt;REBOOT&lt;/strong&gt;&lt;br/&gt;
6.) If this work for you please tell me. &lt;br/&gt;
7.) If this &lt;strong&gt;workaround&lt;/strong&gt; did not work please provide your &lt;strong&gt;system.log&lt;/strong&gt; and your &lt;strong&gt;NetworkInterfaces.plist&lt;/strong&gt;.&lt;br/&gt;
&lt;br/&gt;
Why does this error happen?&lt;br/&gt;
Well at looking at the source code of the configd there is a plugin "InterfaceNamer" it seams the plugin will always skip interfaces &lt;br/&gt;
that are IOBuiltin = false. The "&amp;lt;key&amp;gt;IOBuiltin&amp;lt;/key&amp;gt;" cannot be changed because the plugin will check and restore it on next boot.&lt;br/&gt;
But it does not check if wireless interfaces &amp;lt;key&amp;gt;SCNetworkInterfaceType&amp;lt;/key&amp;gt;&amp;lt;string&amp;gt;IEEE80211&amp;lt;/string&amp;gt; are IOBuiltin.&lt;br/&gt;
Like I say this is only a workaround and there will be more need of testing.&lt;br/&gt;
&lt;br/&gt;
You will find me on irc &lt;br/&gt;
&lt;br/&gt;
SnE</content:encoded><dc:subject>General</dc:subject><dc:subject>osx86</dc:subject><dc:subject>source</dc:subject><dc:subject>network</dc:subject><dc:subject>fix</dc:subject><dc:creator>sneosx86</dc:creator><dc:date>2007-11-10T14:50:12Z</dc:date></item></channel></rss>
