[Nut-upsuser] cannot connect to usb ups on solaris express 02/07
Arnaud Quette
aquette.dev at gmail.com
Wed Mar 7 16:06:43 CET 2007
2007/3/7, Zoltan Farkas <zoly at daxtechnologies.com>:
> I cannot connect to my ups (USB tripplite 1000omniLCD):
> ...
you might be missing some postinst things (might be interest to store
this somewhere in our doc while waiting for solaris packages):
- Verify that "/usr/sfw/lib" is in the dynamic linker
search path, using the following command:
# crle
If you don't see any reference to "/usr/sfw/lib", execute
the following command:
# crle -l /usr/sfw/lib
- Bind your unit to Solaris USB /Ugen layer using:
# add_drv -i '"usb463,ffff.1"' -m '* 0660 nut root' ugen
# update_drv -a -m '* 0666 root sys' -i '"usb463,0001.1"' ugen
# reboot -- -r
Note that the above example is for MGE units (0x463 - 0xFFFF or 0x463 - 0x0001)
That should do the trick.
>
> # ./usbhid-ups -DD -u root -a z2ups
> Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.1.0)
>
> debug level is '2'
> Checking device (0424/2228) (/dev/usb/424.2228/0)
> - VendorID: 0424
> - ProductID: 2228
> - Manufacturer: Generic
> - Product: Flash Card Reader
> - Serial Number: 26020128B005
> - Bus: /dev/usb
> Trying to match device
> Device does not match - skipping
> No appropriate HID device found
> No matching HID UPS found
>
>
> here is what I have in /dev/usb:
>
> $ ls -l
> total 22
> drwxr-xr-x 3 root root 512 Mar 6 19:58 424.2228
> lrwxrwxrwx 1 root root 53 Feb 23 00:23 hid0 -> ../../devices/pci at 0,0/pci8086,5842 at 1d,3/mouse at 2:mouse
> lrwxrwxrwx 1 root root 58 Mar 5 21:17 hid1 -> ../../devices/pci at 0,0/pci8086,5842 at 1d,1/input at 1:hid_-124_4
> lrwxrwxrwx 1 root root 42 Feb 17 11:38 hub0 -> ../../devices/pci at 0,0/pci8086,5842 at 1d:hubd
> lrwxrwxrwx 1 root root 44 Feb 17 11:38 hub1 -> ../../devices/pci at 0,0/pci8086,5842 at 1d,1:hubd
> lrwxrwxrwx 1 root root 44 Feb 17 11:38 hub2 -> ../../devices/pci at 0,0/pci8086,5842 at 1d,2:hubd
> lrwxrwxrwx 1 root root 44 Feb 17 11:38 hub3 -> ../../devices/pci at 0,0/pci8086,5842 at 1d,3:hubd
> lrwxrwxrwx 1 root root 44 Feb 17 11:38 hub4 -> ../../devices/pci at 0,0/pci8086,5842 at 1d,7:hubd
> lrwxrwxrwx 1 root root 50 Mar 6 19:58 hub5 -> ../../devices/pci at 0,0/pci8086,5842 at 1d,7/hub at 4:hubd
> lrwxrwxrwx 1 root root 56 Mar 6 19:58 hub6 -> ../../devices/pci at 0,0/pci8086,5842 at 1d,7/hub at 4/hub at 1:hubd
> lrwxrwxrwx 1 root root 70 Mar 6 19:58 mass-storage0 -> ../../devices/pci at 0,0/pci8086,5842 at 1d,7/hub at 4/hub at 1/storage at 1:scsa2usb
>
>
> /dev/usb/hid1 shoudl be my UPS.
>
>
> Now I don't have much experience with usb on unix, any ideas on what should I do to make this work?
>
> thanks
>
> --zoly
>
>
> -----Original Message-----
> >From Zoltan Farkas <zoly at daxtechnologies.com>
> Sent Tue 3/6/2007 2:06 PM
> To Charles Lepple <clepple at gmail.com>
> Cc nut-upsuser at lists.alioth.debian.org <nut-upsuser at lists.alioth.debian.org>
> Subject RE: [Nut-upsuser] make errors on solaris express dev 02/07
>
> This is the configure I have executed:
>
> ./configure --with-user=ups --with-group=ups
>
> Here are the versions of the tools:
>
> $ libtool --version
> ltmain.sh (GNU libtool) 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)
>
> $ autoconf --version
> autoconf (GNU Autoconf) 2.59
> Written by David J. MacKenzie and Akim Demaille.
>
>
> $ automake --version
> automake (GNU automake) 1.9.6
> Written by Tom Tromey <tromey at redhat.com>.
>
> Will try to disable Net-SNMP and HAL and see if it builds
>
> Thanks
>
> --zoly
>
>
>
>
> -----Original Message-----
> From: Charles Lepple [mailto:clepple at gmail.com]
> Sent: Tuesday, March 06, 2007 1:11 PM
> To: Zoltan Farkas
> Cc: nut-upsuser at lists.alioth.debian.org
> Subject: Re: [Nut-upsuser] make errors on solaris express dev 02/07
>
> On 3/6/07, Zoltan Farkas <zoly at daxtechnologies.com> wrote:
> > /bin/bash ../libtool --tag=CC --mode=link gcc -I../include -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/sfw/include -g -Dsolaris2 -I. -I/usr/sfw/include -O -Wall -Wsign-compare -o snmp-ups snmp-ups.o ../common/libcommon.a ../common/upsconf.o ../common/parseconf.o ../common/state.o main.o dstate.o -R../lib -L/usr/sfw/lib -lnetsnmp -lgen -lpkcs11 -lkstat -lelf -lm -ldl -lnsl -lsocket -ladm -lsocket -lnsl
> > libtool: link: only absolute run-paths are allowed
>
> I think libtool is objecting to the '-R../lib' part. Did you use any
> relative paths in anything that you passed to configure?
>
> You might try disabling HAL or Net-SNMP support and seeing if that goes away.
>
> Which versions of autoconf, libtool, automake, etc. are you using?
>
> --
> - Charles Lepple
>
>
> _______________________________________________
> Nut-upsuser mailing list
> Nut-upsuser at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
>
>
> _______________________________________________
> Nut-upsuser mailing list
> Nut-upsuser at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
>
--
Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://people.debian.org/~aquette/
OpenSource Developer - http://arnaud.quette.free.fr/
More information about the Nut-upsuser
mailing list