OWFS in NSLU2 - Installation instructions

Following is executed in the target system. The same can be done in host system as well.

1. Install build tools

 # apt-get install build-essential

2. Install dependency libraries libfuse and libusb

 # apt-get install libfuse2 libfuse-dev fuse-utils
 # apt-get install libusb-0.1-4 libusb-dev

3. Fetch and extract latest owfs source from SourceForge

 http://sourceforge.net/projects/owfs/files/

4. Build

 # configure
 # make
 # make install

5. Create mount point for owfs

# mkdir /mnt/1wire

6. Create startup script /etc/init.d/owfs to start owfs automatically on system boot

#!/bin/sh                                                                       
                                                                                
case "$1" in                                                                    
    start)
       /opt/owfs/bin/owfs -u -m /mnt/1wire                                     
    ;;                                                                          
    *)                                                                          
        echo "Usage: /etc/init.d/owfs {start}"                                  
    ;;                                                                          
esac                                                                            
                                                                                
exit 0

7. Create startup link

# ln -s /etc/init.d/owfs /etc/rc2.d/S99owfs
 

8. Now you can start your service /etc/init.d/owfs start

nslu2_install_owfs.txt · Last modified: 2011/01/30 00:40 by jap
Recent changes RSS feed CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki