Мой дом. |
|
Пакет OWFS Установка... Я сделал локальный репозиторий с версией OWFS 2.7p14-1.
Вот еще: http://moais.imag.fr/membres/vincent.danjean/deb.html Далее: apt-get install fuseowfs owfs
Запустить OWFS: modprobe fuse
Посмотреть состояние линий: more /mnt/1-wire/29.A15808000000/sensed.ALL --------------------------------------------------------------------- Инструкция по установке OWFS на Debian squeeze http://archive.pfb.no/2010/04/01/owfs-on-debian-squeeze/
OWFS on Debian squeezeNB! This is the new post on how to install OWFS on Debian 6.0 squeeze. For the current Debian 5.0 lenny version see here: OWFS on Debian 5.0 (lenny). Also, it may give useful tips if problems occur. If you are using a kernel newer than 2.6.18, which Debian 6.0 is, libusb-0.1.12 must be used because usbdevfs/usbfs is no longer used. It displayed usb devices under /proc/bus/usb but the udev system is only linking usb devices to /dev/bus/usb. Newer kernel versions does not have /proc/bus/usb/devices (because of a cleanup of the /proc file system). Because earlier versions of libusb only checks /dev/bus/usb if /proc/bus/usb does not exist, it would fail in most cases because /proc/bus/usb does exist but it is empty. Installation :~$ sudo nano /etc/modprobe.d/blacklist Add the following to the end of the file: Unload blacklisted modules manually, in case if they have been loaded already: :~$ sudo modprobe -r ds9490r Now we need to install some essential packages in order to build OWFS. :~$ sudo aptitude install build-essential Now we need to fetch the owfs package and the libusb package. http://downloads.sourceforge.net/project/owfs/owfs/2.7p32/owfs-2.7p32.tar.gz?use_mirror=surfnet wget http://downloads.sourceforge.net/project/libusb/libusb-0.1%20%28LEGACY%29/0.1.12/libusb-0.1.12.tar.gz?use_mirror=mesh Updated versions can be found at http://sourceforge.net/projects/owfs/files/ and http://sourceforge.net/projects/libusb/files/. :~$ tar -xvzf libusb-0.1.12.tar.gz :~/libusb-0.1.12$ make Running: libub-config --version should now return 0.1.12 :~$ tar -xvzf owfs-2.7p32.tar.gz :~/owfs-2.7p32$ make :~$ sudo pico /etc/udev/rules.d/56-owfs.rules Paste the code below. # DS2490 1-Wire adapter LABEL="owfs_rules_end" Now we need to add the group that should have access to owfs, and add our own username to that group. :~$ sudo addgroup owfs -u is the command for using the usb interface. If you would like to mount the 1-wire network at startup, then simply add this script (owfs.tar.gz) to :~$ sudo chmod +x /etc/init.d/owfs.sh If it is not able to load the USB device, simply add error_level to the command line. :~$ sudo /opt/owfs/bin/owfs --error_level 6 --error_print 2 -u --allow_other --mountpoint=/mnt/1wire/ |
E-mail: bogovic@yandex.ru |