Instructions how to build owfs for FOX. NOTE: You should have some kind of 1-wire adapter connected to you FOX board. Supported adapter are listed at http://owfs.sourceforge.net/adapters.html I recommend that you order a DS9490R ( http://www.maxim-ic.com/quick_view2.cfm/qv_pk/3834 ) from Maxim. DS9490R is a fast adapter, and it's easy to connect. Just plugin to your USB connector and the interface is ready to use. If you choose a serial adapter DS9097U-009 ( http://www.maxim-ic.com/quick_view2.cfm/qv_pk/2983 ), you probably have to convert TTL signals to RS232 on connector J6. This could be done with a MAX3232 circuit. ----------------------------------- Download and install SDK-kit from http://www.acmesystems.it/?id=701 > rpm -Uvh cris-dist-1.63-1.i386.rpm > rpm -Uvh pmake-1.45-16.i386.rpm > tar -xzf devboard-R2_01.tar.gz > tar -xzf devboard-R2_01-distfiles.tar.gz > cd devboard-R2_01 Update the SDK-kit to the latest stable svn-version. ( http://www.acmesystems.it/?id=714 ) > wget http://www.acmesystems.it/download/install_svn_sdk.sh > chmod +x install_svn_sdk.sh > ./install_svn_sdk.sh > ./sdk_update ########### WARNING ########### An update will revert the settings of the sdk to the defaults that we provide. If you have made any changes, that you do not want to loose, make sure to create a backup To store your current configuration use the acme_config tool. An example of how to do this is shown below ./acme_config save --- where is a name defined by you To restore those settings call ./acme_config without parameters Do you want to continue with the update (y/N) ? (default n) y Getting newest update script Restored '.sdk_update' U .sdk_update Updated to revision 18. Running update Please choose how you want to update : 1.) beta2 testing (stable) 2.) newest state (might not be stable) 3.) choose a revision (might not be stable) If you want to be on the safe side, choose option 1. This is the latest state known to be stable If you want new features that might not be thoroughly tested yet choose option 2 If you really know what you are doing :-) choose option 3 Enter your choice please : 2 U .sdk_update Updated to revision 18. ---------------------SDK VERSION INFO--------------------- Your SDK is currently at version 18 ---------------------------------------------------------- Download all my .gz (and md5-files) from http://home.mag.cx/fox/source/ and copy them to your distfiles/ directory. (Patch the configuration files to add my packages to menuconfig. This may only be done once! If you do it many times, configure-files/devboard/devboard and configure-files/devboard/AC_general may be corrupted) > patch -p1 < /path/fox_owfs_diff.txt > cp /path/apps-rrdtool-R1_0_50-1.tar.gz* distfiles/ > cp /path/packages-apps-rrdtool-R1_0_0.tar.gz* distfiles/ > cp /path/apps-owfs-IR2_7_2-7.tar.gz* distfiles/ > cp /path/apps-owcapi-example-IR2_7_2-7.tar.gz* distfiles/ > cp /path/apps-fuse-IR2_5_3-1.tar.gz* distfiles/ > cp /path/apps-kmod-fuse-IR2_5_3-1.tar.gz* distfiles/ > cp /path/apps-temploggerd-R1_3_8-1.tar.gz* distfiles/ > cp /path/apps-ntpclient-IR2000_339-1.tar.gz* distfiles/ > cp /path/packages-initscripts-ntpclient-R1_0_0.tar.gz* distfiles/ (Enable general->owfs, owshell, owserver, owlib, fuse, kmod-fuse, ntpclient temploggerd, rrdtools libraries->libusb, and save config. libusb is optional but should be enabled to add support for USB-adapters and fuse-filesystem.) > make menuconfig > ./configure > make (It will take some time to build everything) > ls -l fimage -rw-r--r-- 1 root root 4194328 Jan 18 13:27 fimage > ls -l apps/owfs/install_dir/bin/owfs -rwxr-xr-x 1 root root 77080 Jan 18 13:19 apps/owfs/install_dir/bin/owfs* > file apps/owfs/install_dir/bin/owfs apps/owfs/install_dir/bin/owfs: ELF 32-bit LSB executable, version 1 (SYSV), for GNU/Linux 2.4.5, dynamically linked (uses shared libs), not stripped > /usr/local/cris/cris-objdump -x apps/owfs/install_dir/bin/owfs | grep NEEDED NEEDED libow-2.6.so.6 NEEDED libfuse.so.2 NEEDED libusb-0.1.so.4 NEEDED libdl.so.2 NEEDED libpthread.so.0 NEEDED libc.so.6 Flash the FOX card with the generated image called "fimage". Read ACME's documentation how to do this. ( http://www.acmesystems.it/?id=703 ) One possibility is to use ftp. > ftp 192.168.0.90 Connected to 192.168.0.90. 220 Fox Linux Board release 2.00 (mag 26 2005) ready. Name (192.168.0.90): root 331 User name okay, need password. Password: acme (or pass) 230 User logged in, proceed. Remote system type is UNIX. Using binary mode to transfer files. ftp> put fimage flash_all local: fimage remote: flash_all 227 Entering Passive Mode (192,168,0,90,12,0) 150-Shutting down processes. Preparing system for upgrade ... ----- Login to your FOX board with telnet or ssh. (login: root / password: pass) Make sure ntpclient works for you! Date and time should be set before graphs are generated. [root@axis-00408c010771 /root]108# /bin/ntpclient -s -h pool.ntp.org (or if you use my own ntpclient with startup-scripts) [root@axis-00408c010771 /root]108# /etc/rc3.d/S90ntp start ping: pool.ntp.org: Host name lookup failure pool.ntp.org: Host name lookup failure This means that you have to edit /etc/resolv.conf and decide which nameserver you should use. Nameserver should be set automatically if you use a dhcp-server, but the default setting is to use static ip-number 192.168.0.90 and no nameserver is set. If you have a working nameserver at 192.168.0.1, then add that ip-number to /etc/resolv.conf [root@axis-00408c010771 /root]108# echo "nameserver 192.168.0.1" >/etc/resolv.conf.def [root@axis-00408c010771 /root]108# echo "nameserver 192.168.0.1" >/etc/resolv.conf [root@axis-00408c010771 /root]108# /etc/rc3.d/S90ntp start pool.ntp.org is alive! 53723 45122.724 227344.0 28.0 34182.0 36499.0 0 [root@axis-00408c010771 /root]108# date Mon Jul 2 18:34:15 UTC 2007 Start owserver, owhttpd and owfs with the script /bin/run-owfs You might need to edit /etc/conf.d/owserver depending which 1-wire adapter you have. [root@axis-00408c010771 /root]108# run-owfs Using /lib/modules/2.6.15/fuse.ko [root@axis-00408c010771 /root]108# ls -l /tmp/1wire/ drwxr-xr-x 1 root root 1 Nov 7 10:59 10.061847000800 drwxr-xr-x 1 root root 1 Nov 7 10:59 10.1A9246000800 drwxr-xr-x 1 root root 1 Nov 7 10:59 10.233B40000800 drwxr-xr-x 1 root root 1 Nov 7 10:59 10.2BD346000800 drwxr-xr-x 1 root root 1 Nov 7 10:59 10.4D8746000800 drwxr-xr-x 1 root root 1 Nov 7 10:59 10.5D1947000800 drwxr-xr-x 1 root root 1 Nov 7 10:59 10.6D0150000800 drwxr-xr-x 1 root root 1 Nov 7 10:59 10.762047000800 drwxr-xr-x 1 root root 1 Nov 7 10:59 10.A22840000800 drwxr-xr-x 1 root root 1 Nov 7 10:59 10.B3E166000800 drwxr-xr-x 1 root root 1 Nov 7 10:59 10.E2C746000800 drwxr-xr-x 1 root root 1 Nov 7 10:59 10.E54347000800 drwxr-xr-x 1 root root 1 Nov 7 10:59 1F.7DC202000000 drwxr-xr-x 1 root root 1 Nov 7 10:59 FF.720200000100 drwxr-xr-x 1 root root 1 Jan 1 2000 bus.0 drwxr-xr-x 1 root root 1 Jan 1 2000 settings drwxr-xr-x 1 root root 1 Jan 1 2000 statistics drwxr-xr-x 1 root root 1 Jan 1 2000 structure drwxr-xr-x 1 root root 1 Jan 1 2000 system drwxr-xr-x 1 root root 1 Jan 1 2000 uncached [root@axis-00408c010771 /root]108# cat /tmp/1wire/10.2BD346000800/temperature 18.125 [root@axis-00408c010771 /root]108# cat /tmp/1wire/bus.0/interface/settings/name tcp [root@axis-00408c010771 /root]108# cat /tmp/1wire/bus.0/bus.0/interface/settings/name DS9490 [root@axis-00408c010771 /root]108# cat /tmp/1wire/bus.0/bus.0/interface/settings/address 001/002 [root@axis-00408c010771 /root]108# dmesg | grep "USB device" hub.c: new USB device ETRAX 100LX-2, assigned address 2 usb.c: USB device 2 (vend/prod 0x4fa/0x2490) is not claimed by any active driver. ----- It should also be possible to visit the URL http://192.168.0.90:3001/ to see the 1-wire devices. owhttpd is configured to listen on port 3001 as default. (change this in /etc/conf.d/owhttpd) -----