<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Arnaud,<br>
<br>
On 13/08/12 18:09, Arnaud Quette wrote:<br>
</div>
<blockquote
cite="mid:CAFm_bUhaOjP4S8dw6ouYWyB2fe2pvbFD0W7UeAq7ptk7ybmXzw@mail.gmail.com"
type="cite">Hey Massimo and Greg,<br>
<br>
<div class="gmail_quote">2012/8/12 Massimo Gais <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:massimo.gais@iki.fi"
target="_blank">massimo.gais@iki.fi</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sun, Aug 12, 2012 at 5:11 AM, Greg Vickers
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:daehenoc@iinet.net.au" target="_blank">daehenoc@iinet.net.au</a>></span>
wrote:<br>
</div>
<div>
<div class="im">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">I have not yet
gotten rid of it, so thank you very much! It's a case
of download, extract, apply patch, and compile on my
RPi, correct? </div>
</blockquote>
<br>
</div>
Hello Greg,<br>
yes you can compile it directly on the RPI. See anyway that
if you have the old deb package installed and you want to
replace only the recompiled driver, you may have some
mismatch with the pidpath/statepath directories
(/var/state/ups vs /var/run/nut). I tried to make a debian
package on the RPi, but it was requiring to install all the
documentation tools, and I did not have enough SD disk space
for that.<br>
</div>
</blockquote>
</div>
</blockquote>
I have finally gotten around to compiling nut with the patch! It
was on my list of things to do :)
<blockquote
cite="mid:CAFm_bUhaOjP4S8dw6ouYWyB2fe2pvbFD0W7UeAq7ptk7ybmXzw@mail.gmail.com"
type="cite">use the following configuration line to get back
inline with deb directives:<br>
<br>
./configure --prefix= --includedir=/usr/include
--mandir=/usr/share/man --sysconfdir=/etc/nut --localstatedir=/var
--without-ssl --with-cgi --with-dev --enable-static
--with-statepath=/var/run/nut --with-altpidpath=/var/run/nut
--with-drvpath=/lib/nut --with-cgipath=/usr/lib/cgi-bin/nut
--with-htmlpath=/usr/share/nut/www --with-pidpath=/var/run/nut
--datadir=/usr/share/nut --with-pkgconfig-dir=/usr/lib/pkgconfig
--with-user=nut --with-group=nut --with-udev-dir=/lib/udev
--without-doc<br>
</blockquote>
I saw that 'compile usb drivers = no' was set, and added --with-usb
to get bcmxcp_usb to compile.<br>
<blockquote
cite="mid:CAFm_bUhaOjP4S8dw6ouYWyB2fe2pvbFD0W7UeAq7ptk7ybmXzw@mail.gmail.com"
type="cite">
you may also want to disable a few more things, like CGI, by using
"--without-cgi" for example...<br clear="all">
this will lower the dependencies barrier.<br>
</blockquote>
The only packages I had to add were 'libgd2-xmp-dev' and
'libusb-dev'.<br>
<br>
I've just tested it and it work great! Thanks very much :) The
only thing plugged into this UPS is the power supply for the
RaspberryPi - nut reports the load as 0.0% :) I'm going to also
plug in the 5-port switch and ADSL modem/router, I expect to be
online for some time when there is a local power failure :D<br>
<br>
Cheers,<br>
Greg<br>
</body>
</html>