<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Hello<BR>
 <BR>
 <BR>
a) The compiler chain that came with the board uses buildroot. I tried to integrate nut into the buildroot tool chain, but it fails building. <BR>
 <BR>
Here the content of the package/nut/Config.in (that I added)<BR>
 <BR>
config BR2_PACKAGE_NUT<BR>        bool "nut"<BR>        help<BR>          The primary goal of the Network UPS Tools (NUT) project is to provide           support for Power Devices, such as Uninterruptible Power Supplies,<BR>          Power Distribution Units and Solar Controllers.<BR>
          <A href="http://www.networkupstools.org/">http://www.networkupstools.org/</A><BR>
 <BR>
 <BR>
===================================================================<BR>
 <BR>
 <BR>
And here the content of nut.mk file (that I also added to package/nut)<BR>
#############################################################<BR>#<BR># nut<BR>#<BR>#############################################################<BR>NUT_VERSION = 2.6.1<BR>NUT_SOURCE = nut-$(NUT_VERSION).tar.gz<BR>NUT_SITE = <A href="http://www.networkupstools.org/source/2.6/">http://www.networkupstools.org/source/2.6/</A><BR>NUT_INSTALL_STAGING = NO<BR>NUT_INSTALL_TARGET = YES<BR><BR>
===================================================================<BR>
Here the output on the console. Buildroot tries to apply a patch for whatever reason...<BR>
 <BR>
>>> nut 2.6.1 Extracting<BR>>>> nut 2.6.1 Patching package/nut<BR>for file in config.guess config.sub; do for i in $(find /mnt/vol5/lcu1/buildroot/output/build/nut-2.6.1 -name $file); do cp package/gnuconfig/$file $i; done; done<BR>>>>   Patching libtool<BR>
Applying buildroot-libtool.patch using plaintext:<BR>patching file ltmain.sh<BR>Hunk #1 FAILED at 273.<BR>Hunk #2 succeeded at 5416 (offset 3008 lines).<BR>Hunk #3 FAILED at 5560.<BR>Hunk #4 FAILED at 5904.<BR>Hunk #5 succeeded at 8076 with fuzz 1 (offset 2453 lines).<BR>Hunk #6 FAILED at 8401.<BR>4 out of 6 hunks FAILED -- saving rejects to file ltmain.sh.rej<BR>Patch failed!  Please fix buildroot-libtool.patch!<BR>make: *** [/mnt/vol5/lcu1/buildroot/output/build/nut-2.6.1/.stamp_patched] Error 1<BR><BR>
 <BR>
b)  How can I verify that the cross compiler (arm-linux)  was correctly detected by autoconf? Is ther a .config file or something alike in output/build/nut-2.6.1 which I can check ?<BR>
 <BR>
c) man packages: The configure script seems not allow to suppress the installation of the man pages. Can I  supply <BR>
NUT_CONF_OPT = --mandir=/tmp<BR>
in nut.mk as a workaround? The idea is to install the man packages in a "nirvana", i.e. outside the root file system for the embedded board, since  I can not suppress their installation.<BR>
 <BR>
d) To test the manually build nut (i.e. not using buildroot), I copied some binaries via ssh to the embedded board to /usr/local (besides /tmp this is the only place where I have write permission). I then set NUT_CONFPATH to /usr/local/etc<BR>
 The binary all start (the binary is hence compiled OK), but they do not find components they require:<BR>
/usr/local/bin/upsdrvctl   start<BR>Network UPS Tools - UPS driver controller 2.6.1<BR>Can't start /tmp/lcu1root_root/bin/apcsmart: No such file or directory<BR>
 <BR>
upsd does  not start either -- I assumes it is because it cannot connect to the driver:<BR>
/usr/local/bin/upsd<BR>Network UPS Tools upsd 2.6.1<BR>ACL in upsd.conf is no longer supported - switch to LISTEN<BR>ACL in upsd.conf is no longer supported - switch to LISTEN<BR>ACCEPT in upsd.conf is no longer supported - switch to LISTEN<BR>REJECT in upsd.conf is no longer supported - switch to LISTEN<BR>listening on 127.0.0.1 port 3493<BR>getaddrinfo: Name or service not known<BR>
 <BR>
 <BR>
d1) What is the minimal set of files that I need to bring to the embeeded board  to see nut working ? I was thinking of <BR>
 <BR>
/etc/nut/*.conf<BR>
upsdrvctl  <BR>
upsd <BR>
apcsmart (as I am using a APC UPS)<BR>
 <BR>
d2) And  how can I change the directory in which upsdrvctl  searches for its drivers ?<BR>
 <BR>
 <BR>
Thanks<BR>
<BR>Tilman<BR>
 <BR>
 <BR>
 <BR>
<DIV><BR>_______________________________________________ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser</DIV>                                         </div></body>
</html>