<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2017-03-12 4:02 GMT+01:00 Charles Lepple <span dir="ltr"><<a target="_blank" href="mailto:clepple@gmail.com">clepple@gmail.com</a>></span>:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span class="gmail-">On Sat, Mar 11, 2017 at 7:15 PM, David Baker <<a href="mailto:david@baker.im">david@baker.im</a>> wrote:<br>
> Hi Arnaud & Charles,<br>
><br></span></blockquote><div><br><div>Hi Dave,<br><br></div>any news on your side from this venerable ESV+?<br><br></div><div>-- Arno<br></div><div><br> </div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span class="gmail-">
> You’ll have to forgive my low level of Linux Understanding here….<br>
><br>
><br>
><br>
> I downloaded the source files, modified the appropriate driver file,<br>
> re-compiled it (all of this was a lot of research and learning!)<br>
><br>
><br>
><br>
> When I use the new driver I get –<br>
><br>
><br>
><br>
> Network UPS Tools - UPS driver controller 2.7.2<br>
><br>
> Network UPS Tools - MGE UPS SYSTEMS/U-Talk driver 0.93 (2.7.4.1)<br>
><br>
> Can't chdir to /var/state/ups: No such file or directory<br>
><br>
> Driver failed to start (exit status=1)<br>
<br>
</span>To match the Raspbian build, I think the configure parameters should<br>
look like this:<br>
<br>
./configure --build=arm-linux-gnueabihf --prefix= --includedir=/usr/include \<br>
   --mandir=/usr/share/man --infodir="\${prefix}/share/<wbr>info"<br>
--sysconfdir=/etc/nut \<br>
   --localstatedir=/var --libexecdir="\${prefix}/lib/<wbr>nut"<br>
--enable-maintainer-mode \<br>
   --libdir=\${prefix}/lib/arm-<wbr>linux-gnueabihf --with-ssl --with-nss<br>
--with-cgi --with-dev \<br>
   --enable-static --with-statepath=/var/run/nut<br>
--with-altpidpath=/var/run/nut \<br>
   --with-drvpath=/lib/nut --with-cgipath=/usr/lib/cgi-<wbr>bin/nut \<br>
   --with-htmlpath=/usr/share/<wbr>nut/www --with-pidpath=/var/run/nut<br>
--datadir=/usr/share/nut \<br>
   --with-pkgconfig-dir=/usr/lib/<wbr>arm-linux-gnueabihf/pkgconfig \<br>
   --with-user=nut --with-group=nut --with-udev-dir=/lib/udev \<br>
   --with-systemdsystemunitdir=/<wbr>lib/systemd/system<br>
<br>
Source: <a target="_blank" rel="noreferrer" href="https://buildd.debian.org/status/fetch.php?pkg=nut&arch=armhf&ver=2.7.4-4&stamp=1475019180&raw=0">https://buildd.debian.org/<wbr>status/fetch.php?pkg=nut&arch=<wbr>armhf&ver=2.7.4-4&stamp=<wbr>1475019180&raw=0</a><br>
(so if the paths are slightly different, it's because the log is from<br>
stock Debian vs. Raspbian)<br>
<br>
You might not need all of those options for just one driver, but it<br>
should save some trial-and-error to just copy-and-paste everything,<br>
then rebuild.<br>
<span class="gmail-"><br>
> The new .h file reads as this –<br>
><br>
><br>
><br>
> /* Output page */<br>
><br>
>         { "output.voltage", 0, 0, "Lv", "%05.1f", VOLT, TRUE },<br>
><br>
>         { "output.voltage.nominal", ST_FLAG_RW | ST_FLAG_STRING, 5, "Lv ?",<br>
> "%05.1f", VOLT, TRUE },<br>
><br>
>         { "output.current", 0, 0, "Lc", "%05.1f", AMPERE, TRUE },<br>
><br>
><br>
><br>
> If I copy the old driver back, it works fine – so I’m guessing I’ve got<br>
> something wrong with the compile or syntax!<br>
<br>
</span>The .h file looks good, as far as I can tell.<br>
<span class="gmail-"><br>
> Welcome your thoughts – the ESV22+ was a beast I came across which didn’t<br>
> work – I managed to pick up some replacement batteries and it’s now<br>
> protecting a load of audio and comms equipment in a charitable community<br>
> centre in Northern Romania!<br>
<br>
</span>Always good to hear about equipment being saved from the dump, and put<br>
to good use!<br>
</blockquote></div><br><br></div></div>