76

Odp: Kompilacja modułów openwrt - świerzak

Package tvheadend is missing dependencies for the following libraries:
libcrypto.so.1.0.0
libcurl.so.4
libpthread.so.0
librt.so.0
libssl.so.1.0.0
libz.so.1
make[2]: *** [/opt/attitude_adjustment/bin/kirkwood/packages/tvheadend_"20130903"-2b649954346aa2e9c81834d500a25c528f31f829_kirkwood.ipk] Error 1
make[2]: Leaving directory `/opt/attitude_adjustment/package/tvheadend'
make[1]: *** [package/tvheadend/compile] Error 2
make[1]: Leaving directory `/opt/attitude_adjustment'
make: *** [package/tvheadend/compile] Error 2

77

Odp: Kompilacja modułów openwrt - świerzak

Jakieś cuda się dzieją, przecież to m.in do libopenssl należy. Czym edytujesz ten plik?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

78

Odp: Kompilacja modułów openwrt - świerzak

gedit'em.

79

Odp: Kompilacja modułów openwrt - świerzak

Nie zrobiłeś windowsowych końców linii?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

80

Odp: Kompilacja modułów openwrt - świerzak

Na linuxie? Podejrzałem plik edytorem nano, brak windowsowych końców lini. Makefile ode mnie: http://www.speedyshare.com/wJNwm/Makefile

81

Odp: Kompilacja modułów openwrt - świerzak

Ale ty masz TYLKO libcurl tam a miałeś to dodać bez usuwania pozostałych...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

82 (edytowany przez Bartekk 2013-10-18 19:35:07)

Odp: Kompilacja modułów openwrt - świerzak

Z innymi też nie działało sad

Update://

Packaged contents of /opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-2b649954346aa2e9c81834d500a25c528f31f829/ipkg-kirkwood/tvheadend into /opt/attitude_adjustment/bin/kirkwood/packages/tvheadend_20130903-2b649954346aa2e9c81834d500a25c528f31f829_kirkwood.ipk
rm -rf /opt/attitude_adjustment/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/root-kirkwood/tmp-tvheadend
mkdir -p /opt/attitude_adjustment/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/root-kirkwood/stamp /opt/attitude_adjustment/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/root-kirkwood/tmp-tvheadend
install -d -m0755 /opt/attitude_adjustment/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/root-kirkwood/tmp-tvheadend/etc/tvheadend
install -d -m0755 /opt/attitude_adjustment/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/root-kirkwood/tmp-tvheadend/etc/init.d
install -m0755 ./files/tvheadend.init /opt/attitude_adjustment/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/root-kirkwood/tmp-tvheadend/etc/init.d/tvheadend
install -d -m0755 /opt/attitude_adjustment/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/root-kirkwood/tmp-tvheadend/lib/upgrade/keep.d
install -m0644 ./files/tvheadend.upgrade /opt/attitude_adjustment/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/root-kirkwood/tmp-tvheadend/lib/upgrade/keep.d/tvheadend
install -d -m0755 /opt/attitude_adjustment/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/root-kirkwood/tmp-tvheadend/usr/bin
install -m0755 /opt/attitude_adjustment/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/tvheadend-2b649954346aa2e9c81834d500a25c528f31f829/build.linux/tvheadend /opt/attitude_adjustment/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/root-kirkwood/tmp-tvheadend/usr/bin/
SHELL= /opt/attitude_adjustment/staging_dir/host/bin/flock /opt/attitude_adjustment/tmp/.root-copy.flock -c 'cp -fpR /opt/attitude_adjustment/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/root-kirkwood/tmp-tvheadend/. /opt/attitude_adjustment/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/root-kirkwood/'
rm -rf /opt/attitude_adjustment/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/root-kirkwood/tmp-tvheadend
touch /opt/attitude_adjustment/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/root-kirkwood/stamp/.tvheadend_installed
make[2]: Leaving directory `/opt/attitude_adjustment/package/tvheadend'
make[1]: Leaving directory `/opt/attitude_adjustment'

Czyżby się udało? W package mam plik tvheadend_20130903-2b649954346aa2e9c81834d500a25c528f31f829_kirkwood.ipkg.

83

Odp: Kompilacja modułów openwrt - świerzak

tak.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

84

Odp: Kompilacja modułów openwrt - świerzak

Nie zakładając nowego tematu. Walczę teraz z NUT'em. Źródła mam pobrane, w configu pakiet zaznaczony i podczas kompilacji otrzymuje:

rm -rf /opt/trunk_ar/trunk/tmp/stage-nut
touch /opt/trunk_ar/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.nut_installed
WARNING: skipping nut-client -- package not selected
WARNING: skipping nut-server -- package not selected
WARNING: skipping nut-monitor -- package not selected
WARNING: skipping nut-logger -- package not selected
WARNING: skipping nut-driver-bcmxcp -- package not selected
WARNING: skipping nut-driver-belkin -- package not selected
WARNING: skipping nut-driver-belkinunv -- package not selected
WARNING: skipping nut-driver-bestfcom -- package not selected
WARNING: skipping nut-driver-bestfortress -- package not selected
WARNING: skipping nut-driver-bestuferrups -- package not selected
WARNING: skipping nut-driver-bestups -- package not selected
WARNING: skipping nut-driver-dummy-ups -- package not selected
WARNING: skipping nut-driver-etapro -- package not selected
WARNING: skipping nut-driver-everups -- package not selected
WARNING: skipping nut-driver-gamatronic -- package not selected
WARNING: skipping nut-driver-genericups -- package not selected
WARNING: skipping nut-driver-isbmex -- package not selected
WARNING: skipping nut-driver-liebert -- package not selected
WARNING: skipping nut-driver-liebert-esp2 -- package not selected
WARNING: skipping nut-driver-masterguard -- package not selected
WARNING: skipping nut-driver-metasys -- package not selected
WARNING: skipping nut-driver-oldmge-shut -- package not selected
WARNING: skipping nut-driver-mge-utalk -- package not selected
WARNING: skipping nut-driver-microdowell -- package not selected
WARNING: skipping nut-driver-mge-shut -- package not selected
WARNING: skipping nut-driver-oneac -- package not selected
WARNING: skipping nut-driver-optiups -- package not selected
WARNING: skipping nut-driver-powercom -- package not selected
WARNING: skipping nut-driver-rhino -- package not selected
WARNING: skipping nut-driver-safenet -- package not selected
WARNING: skipping nut-driver-solis -- package not selected
WARNING: skipping nut-driver-tripplite -- package not selected
WARNING: skipping nut-driver-tripplitesu -- package not selected
WARNING: skipping nut-driver-upscode2 -- package not selected
WARNING: skipping nut-driver-victronups -- package not selected
WARNING: skipping nut-driver-powerpanel -- package not selected
WARNING: skipping nut-driver-blazer_ser -- package not selected
WARNING: skipping nut-driver-clone -- package not selected
WARNING: skipping nut-driver-ivtscd -- package not selected
WARNING: skipping nut-driver-apcsmart -- package not selected
WARNING: skipping nut-driver-apcsmart-old -- package not selected
WARNING: skipping nut-driver-usbhid-ups -- package not selected
WARNING: skipping nut-driver-bcmxcp_usb -- package not selected
WARNING: skipping nut-driver-tripplite_usb -- package not selected
WARNING: skipping nut-driver-blazer_usb -- package not selected
WARNING: skipping nut-driver-richcomm_usb -- package not selected
WARNING: skipping nut-driver-snmp-ups -- package not selected
make[2]: Leaving directory `/opt/trunk_ar/trunk/package/utils/nut'
make[1]: Leaving directory `/opt/trunk_ar/trunk'
debian@debian:/opt/trunk_ar/trunk$ 

Gdzie niby mam zaznaczyć to? Mój makefile

#
# Copyright © 2006-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=nut
PKG_VERSION:=2.6.5
PKG_RELEASE:=2

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.networkupstools.org/source/2.6/
PKG_MD5SUM:=e6eac4fa04baff0d0a827d64efe81a7e

PKG_BUILD_DEPENDS:=libusb libnetsnmp
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1

PKG_BUILD_PARALLEL:=1

define Package/nut/Default
  URL:=http://www.networkupstools.org/
  TITLE:= Network UPS Tools
  DEPENDS:=@USB_SUPPORT +libnetsnmp +libpthread
  SECTION:=utils
  CATEGORY:=Utilities
endef

define Package/nut/description
  Network UPS Tools (NUT) is a client/server monitoring system that
  allows computers to share uninterruptible power supply (UPS) and
  power distribution unit (PDU) hardware. Clients access the hardware
  through the server, and are notified whenever the power status
  changes.
endef

define Package/nut
$(call Package/nut/Default)
  MENU:=1
#  TITLE+= (common)
endef

define Package/nut-server
$(call Package/nut/Default)
  TITLE+= (server)
  DEPENDS+= nut
endef

define Package/nut-client
$(call Package/nut/Default)
  TITLE+= (client)
  DEPENDS+= nut
endef

define Package/nut-logger
$(call Package/nut/Default)
  TITLE+= (logger)
  DEPENDS+= nut
endef

define Package/nut-monitor
$(call Package/nut/Default)
  TITLE+= (monitor)
  DEPENDS+= nut
endef

define Package/nut/install
    $(INSTALL_DIR) $(1)/usr/lib
    $(INSTALL_DIR) $(1)/etc/nut
    $(CP) $(PKG_INSTALL_DIR)/usr/lib/libupsclient.so* $(1)/usr/lib/
    $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/nut/nut.conf.sample $(1)/etc/nut/nut.conf
    ln -sf /var/run/ups.conf $(1)/etc/nut/ups.conf
endef

define Build/InstallDev
    $(INSTALL_DIR) $(1)/usr/include
    $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include
    $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
    $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig
    $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib
endef

define Package/nut/conffiles
/etc/nut/nut.conf
endef

define Package/nut-client/install
    $(INSTALL_DIR) $(1)/usr/bin
    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/upsc $(1)/usr/bin
    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/upsrw $(1)/usr/bin
    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/upscmd $(1)/usr/bin
endef

define Package/nut-server/install
    $(INSTALL_DIR) $(1)/etc/nut
    $(INSTALL_DIR) $(1)/usr/sbin
    $(INSTALL_DIR) $(1)/lib/nut
    $(INSTALL_DIR) $(1)/usr/share/nut
    $(INSTALL_DIR) $(1)/etc/init.d
    $(INSTALL_BIN) ./files/ups.init $(1)/etc/init.d/ups
    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/upsd $(1)/usr/sbin
    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/lib/nut/upsdrvctl $(1)/lib/nut
    $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/nut/upsd.conf.sample $(1)/etc/nut/upsd.conf
    ln -sf /var/run/upsd.users $(1)/etc/nut/upsd.users
    $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/nut/cmdvartab $(1)/usr/share/nut/cmdvartab
    $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/nut/driver.list $(1)/usr/share/nut/driver.list
endef

define Package/nut-server/conffiles
/etc/nut/upsd.conf
endef

define Package/nut-logger/install
    $(INSTALL_DIR) $(1)/usr/bin
    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/upslog $(1)/usr/bin
endef

define Package/nut-monitor/install
    $(INSTALL_DIR) $(1)/usr/sbin
    $(INSTALL_DIR) $(1)/etc/nut
    $(INSTALL_DIR) $(1)/etc/init.d
    $(INSTALL_BIN) ./files/upsmon.init $(1)/etc/init.d/upsmon
    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/upsmon $(1)/usr/sbin
    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/upssched $(1)/usr/sbin
    ln -sf /var/run/upsmon.conf $(1)/etc/nut/upsmon.conf
    $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/nut/upssched.conf.sample $(1)/etc/nut/upssched.conf
endef

define Package/nut-monitor/conffiles
/etc/nut/upssched.conf
endef

define DriverPackage
  define Package/nut-driver-$(1)
    $(call Package/nut/Default)
    TITLE += ($(1) driver)
    DEPENDS += nut nut-server
    ifeq ($(1),$(filter $(1),$(USB_LIBUSB_DRIVERLIST)))
      DEPENDS+=libusb
    endif
    ifeq ($(1),$(filter $(1),$(SNMP_DRIVERLIST)))
      DEPENDS+=libnetsnmp
    endif
  endef
  # Deliberately empty (well, some spaces) in order to trigger a build
  # failure. It should be overridden by the list below, and when updating
  # to a new version of nut we will need to provide descriptions for any
  # new drivers.
  define Package/nut-driver-$(1)/description
  
  endef
  define Package/nut-driver-$(1)/install
    $(INSTALL_DIR) $$(1)/lib/nut/
    $(INSTALL_BIN) $$(PKG_INSTALL_DIR)/lib/nut/$(1) $$(1)/lib/nut/
    ifeq ($(1),clone)
    # Bundle clone and clone-outlet together
    $(INSTALL_BIN) $$(PKG_INSTALL_DIR)/lib/nut/$(1)-outlet $$(1)/lib/nut/
    endif
  endef
endef

# These lists are lifted *directly* from drivers/Makefile.am in the nut
# source tree. This it to make it simpler to keep in sync when updating
# to a newer version of nut. Do not edit this manually.
#
# DO NOT EDIT (except to update with a fresh cut/paste)!
SERIAL_DRIVERLIST = bcmxcp belkin belkinunv bestfcom    \
 bestfortress bestuferrups bestups dummy-ups etapro everups     \
 gamatronic genericups isbmex liebert liebert-esp2 masterguard metasys  \
 oldmge-shut mge-utalk microdowell mge-shut oneac optiups powercom rhino        \
 safenet skel solis tripplite tripplitesu upscode2 victronups powerpanel \
 blazer_ser clone clone-outlet ivtscd apcsmart apcsmart-old
SNMP_DRIVERLIST = snmp-ups
USB_LIBUSB_DRIVERLIST = usbhid-ups bcmxcp_usb tripplite_usb \
 blazer_usb richcomm_usb
# END: DO NOT EDIT!

NUT_DRIVERS := $(filter-out skel clone-outlet,$(SERIAL_DRIVERLIST)) \
    $(USB_LIBUSB_DRIVERLIST) $(SNMP_DRIVERLIST)

$(foreach d,$(NUT_DRIVERS),$(eval $(call DriverPackage,$(d))))

define DriverDescription
  define Package/nut-driver-$(1)/description
    $(2)
  endef
endef

$(eval $(call DriverDescription,apcsmart,\
    Driver for American Power Conversion Smart Protocol UPS equipment))
$(eval $(call DriverDescription,apcsmart-old,\
    Driver for American Power Conversion Smart Protocol UPS equipment))
$(eval $(call DriverDescription,bcmxcp,\
    Driver for UPSes supporting the serial BCM/XCP protocol))
$(eval $(call DriverDescription,bcmxcp_usb,\
    Experimental driver for UPSes supporting the BCM/XCP protocol over USB))
$(eval $(call DriverDescription,belkin,\
    Driver for Belkin serial UPS equipment))
$(eval $(call DriverDescription,belkinunv,\
    Driver for Belkin "Universal UPS" and compatible))
$(eval $(call DriverDescription,bestfcom,\
    Driver for Best Power Fortress/Ferrups))
$(eval $(call DriverDescription,bestfortress,\
    Driver for old Best Fortress UPS equipment))
$(eval $(call DriverDescription,bestuferrups,\
    Driver for Best Power Micro-Ferrups))
$(eval $(call DriverDescription,bestups,\
    Driver for Best Power / SOLA (Phoenixtec protocol) UPS equipment))
$(eval $(call DriverDescription,blazer_ser,\
    Driver for Megatec/Q1 protocol serial))
$(eval $(call DriverDescription,blazer_usb,\
    Driver for Megatec/Q1 protocol USB))
$(eval $(call DriverDescription,clone,\
    UPS driver clone))
$(eval $(call DriverDescription,dummy-ups,\
    Driver for multi-purpose UPS emulation))
$(eval $(call DriverDescription,etapro,\
    Driver for ETA UPS equipment))
$(eval $(call DriverDescription,everups,\
    Driver for Ever UPS models))
$(eval $(call DriverDescription,gamatronic,\
    Driver for Gamatronic UPS equipment))
$(eval $(call DriverDescription,genericups,\
    Driver for contact-closure UPS equipment))
$(eval $(call DriverDescription,isbmex,\
    Driver for ISBMEX UPS equipment))
$(eval $(call DriverDescription,ivtscd,\
    driver for the IVT Solar Controller Device))
$(eval $(call DriverDescription,liebert,\
    Driver for Liebert contact-closure UPS equipment))
$(eval $(call DriverDescription,liebert-esp2,\
    Driver for Liebert UPS using the ESP-II protocol))
$(eval $(call DriverDescription,masterguard,\
    Driver for Masterguard UPS equipment))
$(eval $(call DriverDescription,metasys,\
    Driver for Meta System UPS equipment))
$(eval $(call DriverDescription,mge-shut,\
    Driver for SHUT Protocol UPS equipment))
$(eval $(call DriverDescription,mge-utalk,\
    Driver for MGE UPS SYSTEMS UTalk protocol equipment))
$(eval $(call DriverDescription,microdowell,\
    Driver for Microdowell Enterprise UPS series))
$(eval $(call DriverDescription,oldmge-shut,\
    Driver for SHUT Protocol UPS equipment))
$(eval $(call DriverDescription,oneac,\
    Driver for Oneac UPS equipment))
$(eval $(call DriverDescription,optiups,\
    Driver for Opti-UPS (Viewsonice) UPS and Zinto D (ONLINE-USV) equipment))
$(eval $(call DriverDescription,powercom,\
    UPS driver for Powercom/Trust/Advice UPS equipment))
$(eval $(call DriverDescription,powerpanel,\
    Driver for PowerPanel Plus compatible UPS equipment))
$(eval $(call DriverDescription,rhino,\
    Driver for Brazilian Microsol RHINO UPS equipment))
$(eval $(call DriverDescription,richcomm_usb,\
    Driver UPS equipment using Richcomm dry-contact to USB solution))
$(eval $(call DriverDescription,safenet,\
    Driver for SafeNet compatible UPS equipment))
$(eval $(call DriverDescription,solis,\
    Driver for Brazilian Microsol SOLIS UPS equipment))
$(eval $(call DriverDescription,tripplite,\
    Driver for Tripp-Lite SmartPro UPS equipment))
$(eval $(call DriverDescription,tripplitesu,\
    Driver for Tripp-Lite SmartOnline (SU) UPS equipment))
$(eval $(call DriverDescription,tripplite_usb,\
    Driver for older Tripp Lite USB UPSes (not PDC HID)))
$(eval $(call DriverDescription,upscode2,\
    Driver for UPScode II compatible UPS equipment))
$(eval $(call DriverDescription,usbhid-ups,\
    Driver for USB/HID UPS equipment))
$(eval $(call DriverDescription,victronups,\
    Driver for IMV/Victron UPS unit Match, Match Lite, NetUps))
$(eval $(call DriverDescription,snmp-ups,\
    Multi-MIB Driver for SNMP UPS equipment))

include $(INCLUDE_DIR)/package.mk

CONFIGURE_ARGS += \
  --without-ssl \
  --with-pidpath=/var/run \
  --with-statepath=/var/run \
  --with-altpidpath=/var/run \
  --sysconfdir=/etc/nut \
  --with-drvpath=/lib/nut \
  --datadir=/usr/share/nut \
  --with-user=root \
  --with-group=root \
  --with-usb \
  --with-snmp \
  --without-libltdl \
  --with-dev


$(eval $(call BuildPackage,nut))
$(eval $(call BuildPackage,nut-client))
$(eval $(call BuildPackage,nut-server))
$(eval $(call BuildPackage,nut-monitor))
$(eval $(call BuildPackage,nut-logger))
$(foreach d,$(NUT_DRIVERS),$(eval $(call BuildPackage,nut-driver-$(d))))

85

Odp: Kompilacja modułów openwrt - świerzak

make menuconfig i zaznacz, bo pewnie tego nie zrobiłeś.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

86

Odp: Kompilacja modułów openwrt - świerzak

Tylko, gdzie to to tam jest. W utilities mam podwójny NUT, który zaznaczyłem jako pakiet. Reszty rzeczy z tych warningów tam nie widzę.

87

Odp: Kompilacja modułów openwrt - świerzak

A czasami nie masz strzałki w prawo przy tym pakiecie która robi za menu?

EDIT: pewnie że jest.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

88

Odp: Kompilacja modułów openwrt - świerzak

Zapomniałem, że tam można wchodzić dalej big_smile Teraz mam coś takiego:

Package nut-driver-usbhid-ups is missing dependencies for the following libraries:
libusb-0.1.so.4
make[2]: *** [/opt/trunk_ar/trunk/bin/ar71xx/packages/nut-driver-usbhid-ups_2.6.5-2_ar71xx.ipk] Error 1
make[2]: Leaving directory `/opt/trunk_ar/trunk/package/utils/nut'
make[1]: *** [package/utils/nut/compile] Error 2
make[1]: Leaving directory `/opt/trunk_ar/trunk'

Z tym libusb też miałem problemy, bo nie mogę tego skompilować.

89

Odp: Kompilacja modułów openwrt - świerzak

Skompilowałem, lecz jak instaluje to wywala:

root@Gargoyle:/mnt# opkg install /nut.ipk
ERROR: No package named nut-driver-powercom found, try updating your package lists

90

Odp: Kompilacja modułów openwrt - świerzak

No to zainstaluj wcześniej nut-driver-powercom

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

91

Odp: Kompilacja modułów openwrt - świerzak

Zainstalowałem to wszystko, ale nie mam bladego pojęcia co teraz. Odpaliłem /etc/init.d/ups i tyle. Co mam dalej robić?

92

Odp: Kompilacja modułów openwrt - świerzak

Witryna developera, manual i jedziesz z konfiguracją.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

93

Odp: Kompilacja modułów openwrt - świerzak

Chyba to nie ma sensu, bo i tak nie wykrywa sterownika:

T:  Bus=01 Lev=02 Prnt=02 Port=01 Cnt=02 Dev#=  6 Spd=1.5  MxCh= 0
D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0d9f ProdID=0002 Rev= 0.00
S:  Manufacturer=POWERCOM CO., LTD.
S:  Product=USB to Serial
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=03(HID  ) Sub=00 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
E:  Ad=02(O) Atr=03(Int.) MxPS=   8 Ivl=10ms

Mam rację?

94

Odp: Kompilacja modułów openwrt - świerzak

Nie masz racji. Już po raz kolejny to piszę: nut korzysta z libusb i sam obsługuje to. Identycznie jak cups korzysta z libusb i nie potrzebuje jakiegoś specjalnego drivera do każdego modelu drukarki.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

95

Odp: Kompilacja modułów openwrt - świerzak

Ciężka sprawa ten NUT. Zostawiam to na później. Jakby ktoś chciał drivery to mam skompilowane.

96

Odp: Kompilacja modułów openwrt - świerzak

Bardzo OT: nie jest to ciężkie:

root@Gargoyle:~# upsc domowy
battery.charge: 50
battery.charge.low: 10
battery.charge.warning: 50
battery.date: not set
battery.mfr.date: 2013/05/27
battery.runtime: 1230
battery.runtime.low: 120
battery.type: PbAc
battery.voltage: 12.9
battery.voltage.nominal: 12.0
device.mfr: APC
device.model: Back-UPS ES 700
device.serial: 5B0710U03272  
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.version: 2.6.5-Unversioned directory
driver.version.data: APC HID 0.95
driver.version.internal: 0.38
input.sensitivity: medium
input.transfer.high: 266
input.transfer.low: 180
input.voltage: 230.0
input.voltage.nominal: 230
ups.beeper.status: disabled
ups.delay.shutdown: 20
ups.firmware: 829.D2.I
ups.firmware.aux: D2
ups.load: 2
ups.mfr: APC
ups.mfr.date: 2007/03/06
ups.model: Back-UPS ES 700
ups.productid: 0002
ups.serial: 5B0710U03272  
ups.status: OL CHRG
ups.timer.reboot: 0
ups.timer.shutdown: -1
ups.vendorid: 051d
Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

97 (edytowany przez Bartekk 2014-06-19 18:17:29)

Odp: Kompilacja modułów openwrt - świerzak

Ok, siadam znowu do tego. Namówiłeś mnie smile Moje configi:

# Network UPS Tools: example nut.conf
#
##############################################################################
# General section
##############################################################################
# The MODE determines which part of the NUT is to be started, and which
# configuration files must be modified.
#
# This file try to standardize the various files being found in the field, like
# /etc/default/nut on Debian based systems, /etc/sysconfig/ups on RedHat based
# systems, ... Distribution's init script should source this file to see which
# component(s) has to be started.
#
# The values of MODE can be:
# - none: NUT is not configured, or use the Integrated Power Management, or use
#   some external system to startup NUT components. So nothing is to be started.
# - standalone: This mode address a local only configuration, with 1 UPS 
#   protecting the local system. This implies to start the 3 NUT layers (driver,
#   upsd and upsmon) and the matching configuration files. This mode can also
#   address UPS redundancy.
# - netserver: same as for the standalone configuration, but also need
#   some more network access controls (firewall, tcp-wrappers) and possibly a
#   specific LISTEN directive in upsd.conf.
#   Since this MODE is opened to the network, a special care should be applied
#   to security concerns.
# - netclient: this mode only requires upsmon.
#
# IMPORTANT NOTE:
#  This file is intended to be sourced by shell scripts.
#  You MUST NOT use spaces around the equal sign!

MODE=standalone
# Network UPS Tools: example upsd configuration file
#
# This file contains access control data, you should keep it secure.
#
# It should only be readable by the user that upsd becomes.  See the FAQ.
#
# Each entry below provides usage and default value.

# =======================================================================
# MAXAGE <seconds>
 MAXAGE 15
#
# This defaults to 15 seconds.  After a UPS driver has stopped updating
# the data for this many seconds, upsd marks it stale and stops making
# that information available to clients.  After all, the only thing worse
# than no data is bad data.
#
# You should only use this if your driver has difficulties keeping
# the data fresh within the normal 15 second interval.  Watch the syslog
# for notifications from upsd about staleness.

# =======================================================================
# STATEPATH <path>
 STATEPATH /var/run/nut
#
# Tell upsd to look for the driver state sockets in 'path' rather
# than the default that was compiled into the program.

# =======================================================================
# LISTEN <address> [<port>]
 LISTEN 127.0.0.1 3493
 LISTEN ::1 3493
#
# This defaults to the localhost listening addresses and port 3493.
# In case of IP v4 or v6 disabled kernel, only the available one will be used.
#
# You may specify each interface you want upsd to listen on for connections,
# optionally with a port number.
#
# You may need this if you have multiple interfaces on your machine and
# you don't want upsd to listen to all interfaces (for instance on a
# firewall, you may not want to listen to the external interface).
#
# This will only be read at startup of upsd.  If you make changes here,
# you'll need to restart upsd, reload will have no effect.

# =======================================================================
# MAXCONN <connections>
 MAXCONN 1024
#
# This defaults to maximum number allowed on your system.  Each UPS, each
# LISTEN address and each client count as one connection.  If the server
# runs out of connections, it will no longer accept new incoming client
# connections.  Only set this if you know exactly what you're doing.

# =======================================================================
# CERTFILE <certificate file>
#
# When compiled with SSL support, you can enter the certificate file here.
# The certificates must be in PEM format and must be sorted starting with
# the subject's certificate (server certificate), followed by intermediate
# CA certificates (if applicable_ and the highest level (root) CA. It should
# end with the server key. See 'docs/security.txt' or the Security chapter of
# NUT user manual for more information on the SSL support in NUT.

Mógłbyś pokazać jak to jest zrobione u Ciebie? Te manuale mało mi mówią szczerze powiedziawszy. Ja nawet nie mam takiej usługi jak upsc.

98

Odp: Kompilacja modułów openwrt - świerzak

Zrób nowy wątek do tego.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

99

Odp: Kompilacja modułów openwrt - świerzak

Co mam nie tak przy kompilacji AA? Że niby nie może znaleźć kompilatora?

---------------------------------------------
CMake 2.8.12, Copyright 2000-2012 Kitware, Inc.
---------------------------------------------
Error when bootstrapping CMake:
Cannot find appropriate C compiler on this system.
Please specify one using environment variable CC.
See cmake_bootstrap.log for compilers attempted.

---------------------------------------------
Log of errors: /home/local/build/attitude_adjustment/build_dir/host/cmake-2.8.12/Bootstrap.cmk/cmake_bootstrap.log
---------------------------------------------
make[3]: *** [/home/local/build/attitude_adjustment/build_dir/host/cmake-2.8.12/.configured] Error 6
make[3]: Leaving directory `/home/local/build/attitude_adjustment/tools/cmake'
make[2]: *** [tools/cmake/compile] Error 2
make[2]: Leaving directory `/home/local/build/attitude_adjustment'
make[1]: *** [/home/local/build/attitude_adjustment/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.tools_install_nnnnn] Error 2
make[1]: Leaving directory `/home/local/build/attitude_adjustment'
make: *** [world] Błąd 2

100

Odp: Kompilacja modułów openwrt - świerzak

O to się drze. Co masz w  /home/local/build/attitude_adjustment/build_dir/host/cmake-2.8.12/Bootstrap.cmk/cmake_bootstrap.log? Na jakim systemie kompilujesz?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.