1 (edytowany przez bizonx 2019-10-01 12:33:24)

Temat: Domoticz + ebusd + Vaillant (Prośba o Cross Compile)

Witam,

mam prośbę o zrobienie mi paczki.

Próbuję stworzyć monitoring mojego kotła gazowego Vaillant poprzez szynę danych eBus https://en.wikipedia.org/wiki/EBUS_(serial_buses), który to będzie oparty o ebus-TTL adapter+USB-UART (albo Wemos D1 po Wifi), Domoticz i ebusd.

Niestety ostatni składnik (ebusd) nie jest dostępny pod OpenWRT. Są paczki na Debian, RPi, udało mi się nawet zainstalować pod CygWin. Stworzenie środowiska do Cross Compile i ewentualne komplikacje z konfuguracją troszkę mnie zniechęcają, stąd moja prośba.

Tu jest git projektu ebusd https://github.com/john30/ebusd, a tu dokumentacja i zależności https://github.com/john30/ebusd/wiki/1. … nd-install

Mój sprzęt to WRT1900ACS v2 i OpenWrt 19.07-SNAPSHOT r10532-cf3b50377e (z eko.one.pl)

P.S. ewentualnie pomoc przy tworzeniu paczki również będzie mile widziana.

2

Odp: Domoticz + ebusd + Vaillant (Prośba o Cross Compile)

https://dl.eko.one.pl/test/

Czy się uruchamia - nie wiem.
Czy działa - nie wiem.
Czy wymaga czegoś jeszcze - nie wiem.
Jak to skonfigurować - nie wiem.  Ja tylko to skompilowałem.

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

3 (edytowany przez bizonx 2019-09-28 13:58:17)

Odp: Domoticz + ebusd + Vaillant (Prośba o Cross Compile)

Dziękuję za szybką reakcję.

Próbowałem zainstalować, niestety z błędem:

root@OpenWrt:~# opkg install https://dl.eko.one.pl/test/ebusd_2019-0 … _vfpv3.ipk

Collected errors:
* wfopen: https://dl.eko.one.pl/test/ebusd_2019-0 … vfpv3.ipk: No such file or directory.
* pkg_init_from_file: Failed to extract control file from https://dl.eko.one.pl/test/ebusd_2019-0 … vfpv3.ipk.


Sorry, z lokalnego pliku zadziałało:-) i zainstalowało, potestuję i napiszę rezultat.

4

Odp: Domoticz + ebusd + Vaillant (Prośba o Cross Compile)

cd /tmp
wget http://dl.eko.one.pl/test/ebusd_2019-08-15-3926e9cb-1_arm_cortex-a9_vfpv3.ipk
opkg update
opkg install /tmp/ebusd_2019-08-15-3926e9cb-1_arm_cortex-a9_vfpv3.ipk
Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5 (edytowany przez bizonx 2019-09-28 13:59:41)

Odp: Domoticz + ebusd + Vaillant (Prośba o Cross Compile)

Cezary napisał/a:
cd /tmp
wget http://dl.eko.one.pl/test/ebusd_2019-08-15-3926e9cb-1_arm_cortex-a9_vfpv3.ipk
opkg update
opkg install /tmp/ebusd_2019-08-15-3926e9cb-1_arm_cortex-a9_vfpv3.ipk

dokładnie, przedwcześnie odpisałem :-)


root@OpenWrt:/tmp# opkg install ebusd_2019-08-15-3926e9cb-1_arm_cortex-a9_vfpv3.ipk
Installing ebusd (2019-08-15-3926e9cb-1) to root...
Configuring ebusd.

6

Odp: Domoticz + ebusd + Vaillant (Prośba o Cross Compile)

Po którkich testach wygląda że to jak najbardziej działa. Ogromnie, ogromnie dziękuję.

Po doinstalowaniu kmod-usb-serial-cp210x wykrywa pięknie podpięty sprzęt.

root@OpenWrt:~# dmesg | grep cp210x
[  826.003864] usbcore: registered new interface driver cp210x
[  826.271102] usbserial: USB Serial support registered for cp210x
[  826.555027] cp210x 2-1:1.0: cp210x converter detected
[  826.798794] usb 2-1: cp210x converter now attached to ttyUSB0

a reszta to już formalność :-):

root@OpenWrt:~# ebusd -f --scanconfig -d /dev/ttyUSB0
2019-09-28 15:19:06.944 [main notice] ebusd 3.3.reboot-10565-g151bd9ee25 started with auto scan
2019-09-28 15:19:07.255 [bus notice] bus started with own address 31/36
2019-09-28 15:19:07.275 [bus notice] signal acquired

Jeśli to nie jest nachalność z mojej stony, to czy mógłbym prosić o paczkę również na Asus WL500GP V1 OpenWrt Chaos Calmer 15.05.1, może się okazać że to będzie docelowy serwer pod ebusd.

Jeszcze jedno pytanie. Czy jest możliwość zrobić Cross Compile na maszynie wirtualnej (W10 Hyper-V) system Ubuntu? Jakie są wymagania, ustawienia. Być może wkońcu pochylę sie nad tym i nie będę zawracał Tobie głowy. :-) Albo może da się to zainstalować z gotowca jakiegoś?

7

Odp: Domoticz + ebusd + Vaillant (Prośba o Cross Compile)

Dla Asusa - nie. Ani nie kompiluję już tej platformy ani nie mam tak starego środowiska.

Żadnych wymagań poza dyskiem nie ma. Po prostu masz mieć działające ubuntu i kilkadziesiąt giga wolnego dysku.

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

8

Odp: Domoticz + ebusd + Vaillant (Prośba o Cross Compile)

Ok, jeszcze raz ślicznie dziękuję.

9

Odp: Domoticz + ebusd + Vaillant (Prośba o Cross Compile)

Witam,

ponownie chciałbym wrócić do tematu Cross Compile.
Udało mi się skonfigurować debiana pod Windows10 jako Windows Subsystem for Linux (https://docs.microsoft.com/en-us/window … tall-win10)

Zaciągnąłem też Chaos Calmer 15.05.1 dla mojego Asus WL500GP V1:

~/chaos_calmer$ wget http://archive.openwrt.org/chaos_calmer/15.05.1/brcm47xx/legacy/OpenWrt-SDK-15.05.1-brcm47xx-legacy_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar.bz2

Rozpakowałem i dodałem ścieżki do środowiskowych PATH i STAGING_DIR

Udało mi się nawet skompilowac prosty Hello Word!

~$ mipsel-openwrt-linux-gcc -o /tmp/hello.mips hello.c
~$ file /tmp/hello.mips
/tmp/hello.mips: ELF 32-bit LSB executable, MIPS, MIPS32 version 1 (SYSV), dynamically linked, interpreter /lib/ld-uClibc.so.0, with debug_info, not stripped
zuber@NB-ZUBER:~$ /tmp/hello.mips
-bash: /tmp/hello.mips: cannot execute binary file: Exec format error

i nawet zadziałało na ruterze

BusyBox v1.23.2 (2016-03-01 08:53:11 CET) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 CHAOS CALMER (15.05.1, r48532)
 -----------------------------------------------------
  * 1 1/2 oz Gin            Shake with a glassful
  * 1/4 oz Triple Sec       of broken ice and pour
  * 3/4 oz Lime Juice       unstrained into a goblet.
  * 1 1/2 oz Orange Juice
  * 1 tsp. Grenadine Syrup
 -----------------------------------------------------
root@OpenWrt:~# /tmp/hello.mips

Hello, world!

Tylko co dalej, jak zrobic paczkę dla tego repo ebusd?

Dla przypomnieniat git projektu ebusd https://github.com/john30/ebusd, a tu dokumentacja i zależności https://github.com/john30/ebusd/wiki/1. … nd-install

10

Odp: Domoticz + ebusd + Vaillant (Prośba o Cross Compile)

Skompilować całe środowisko raz a później napisać swój własny makefile który zrobi paczkę. Jak to zrobić masz tutaj: https://openwrt.org/docs/guide-developer/packages setki przykładów masz w źródłach.

Ja taki makefile zrobiłem, ale nic ci po nim bo on jest do nowszych wydań, na starych będzie się wywalała kompilacja. Dla nowych wygląda to tak:

include $(TOPDIR)/rules.mk

PKG_NAME:=ebusd
PKG_RELEASE:=1

PKG_SOURCE_URL:=https://github.com/john30/ebusd.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_DATE:=2019-08-15
PKG_SOURCE_VERSION:=3926e9cbf81457cd8cbb3b5985aae6445560d8e2
PKG_FIXUP:=autoreconf

include $(INCLUDE_DIR)/package.mk

define Package/ebusd
  SECTION:=net
  CATEGORY:=Network
  TITLE:=eBUS daemon
  URL:=https://github.com/john30/ebusd
  DEPENDS:=+libpthread +librt +libstdcpp
endef

define Package/ebusd/install
    $(INSTALL_DIR) $(1)/usr/bin
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ebusd/ebusd $(1)/usr/bin
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/tools/{ebusctl,ebusfeed} $(1)/usr/bin
endef

$(eval $(call BuildPackage,ebusd))
Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

11

Odp: Domoticz + ebusd + Vaillant (Prośba o Cross Compile)

Witam,

po dłuuuugich bojach, pod Ubuntu 14.04 (nowsze nie dają rady, za nowe) udało mi się skompilować środowisko. Ale:

bizonx@bizonx-Virtual-Machine:~/chaos_calmer$ make package/ebusd/compile
 make[1] package/ebusd/compile
 make[2] -C package/libs/toolchain compile
 make[2] -C package/ebusd compile
make -r package/ebusd/compile: build failed. Please re-run make with -j1 V=s to see what's going on
make: *** [package/ebusd/compile] Error 1
bizonx@bizonx-Virtual-Machine:~/chaos_calmer$ make package/ebusd/compile -j1 V=s
make[1]: Entering directory `/home/bizonx/chaos_calmer'
make[2]: Entering directory `/home/bizonx/chaos_calmer/package/libs/toolchain'
if [ -f /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean ]; then rm -f /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean; fi; echo "libc" >> /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install
if [ -f /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean ]; then rm -f /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean; fi; echo "libgcc" >> /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install
make[2]: Leaving directory `/home/bizonx/chaos_calmer/package/libs/toolchain'
make[2]: Entering directory `/home/bizonx/chaos_calmer/package/ebusd'
rm -f /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/stamp/.ebusd_installed
(cd /home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3; rm -f aclocal.m4; if [ -f ./configure.ac ] || [ -f ./configure.in ]; then [ -d ./autom4te.cache ] && rm -rf autom4te.cache; [ -e ./config.rpath ] || ln -s /home/bizonx/chaos_calmer/scripts/config.rpath ./config.rpath; touch NEWS AUTHORS COPYING ABOUT-NLS ChangeLog; AUTOM4TE=/home/bizonx/chaos_calmer/staging_dir/host/bin/autom4te AUTOCONF=/home/bizonx/chaos_calmer/staging_dir/host/bin/autoconf AUTOMAKE=/home/bizonx/chaos_calmer/staging_dir/host/bin/automake ACLOCAL=/home/bizonx/chaos_calmer/staging_dir/host/bin/aclocal AUTOHEADER=/home/bizonx/chaos_calmer/staging_dir/host/bin/autoheader LIBTOOLIZE=/home/bizonx/chaos_calmer/staging_dir/host/bin/libtoolize LIBTOOL=/home/bizonx/chaos_calmer/staging_dir/host/bin/libtool M4=/home/bizonx/chaos_calmer/staging_dir/host/bin/m4 AUTOPOINT=true /home/bizonx/chaos_calmer/staging_dir/host/bin/autoreconf -v -f -i -s -B /home/bizonx/chaos_calmer/staging_dir/host/share/aclocal -I /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/host/share/aclocal -I /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/usr/share/aclocal -I m4 -I . . || true; fi; );
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: /home/bizonx/chaos_calmer/staging_dir/host/bin/aclocal -I /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/host/share/aclocal -I /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/usr/share/aclocal -I m4 -I . --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /home/bizonx/chaos_calmer/staging_dir/host/bin/autoconf --include=/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/host/share/aclocal --include=/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/usr/share/aclocal --include=m4 --include=. --prepend-include=/home/bizonx/chaos_calmer/staging_dir/host/share/aclocal --force
autoreconf: running: /home/bizonx/chaos_calmer/staging_dir/host/bin/autoheader --include=/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/host/share/aclocal --include=/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/usr/share/aclocal --include=m4 --include=. --prepend-include=/home/bizonx/chaos_calmer/staging_dir/host/share/aclocal --force
autoreconf: running: /home/bizonx/chaos_calmer/staging_dir/host/bin/automake --add-missing --force-missing
autoreconf: Leaving directory `.'
(cd /home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/./; if [ -x ./configure ]; then find /home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/ -name config.guess | xargs -r chmod u+w; find /home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/ -name config.guess | xargs -r -n1 cp --remove-destination /home/bizonx/chaos_calmer/scripts/config.guess; find /home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/ -name config.sub | xargs -r chmod u+w; find /home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/ -name config.sub | xargs -r -n1 cp --remove-destination /home/bizonx/chaos_calmer/scripts/config.sub; AR="mipsel-openwrt-linux-uclibc-gcc-ar" AS="mipsel-openwrt-linux-uclibc-gcc -c -Os -pipe -mno-branch-likely -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float" LD=mipsel-openwrt-linux-uclibc-ld NM="mipsel-openwrt-linux-uclibc-gcc-nm" CC="mipsel-openwrt-linux-uclibc-gcc" GCC="mipsel-openwrt-linux-uclibc-gcc" CXX="mipsel-openwrt-linux-uclibc-g++" RANLIB="mipsel-openwrt-linux-uclibc-gcc-ranlib" STRIP=mipsel-openwrt-linux-uclibc-strip OBJCOPY=mipsel-openwrt-linux-uclibc-objcopy OBJDUMP=mipsel-openwrt-linux-uclibc-objdump SIZE=mipsel-openwrt-linux-uclibc-size CFLAGS="-Os -pipe -mno-branch-likely -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float " CPPFLAGS="-I/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/usr/include -I/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/include -I/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/include " LDFLAGS="-L/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/usr/lib -L/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/lib -L/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/lib "   ./configure --target=mipsel-openwrt-linux --host=mipsel-openwrt-linux --build=x86_64-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls   ; fi; )
configure: WARNING: unrecognized options: --disable-nls
configure: loading site script /home/bizonx/chaos_calmer/include/site/mipsel
checking for mipsel-openwrt-linux-gcc... mipsel-openwrt-linux-uclibc-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mipsel-openwrt-linux-uclibc-gcc accepts -g... yes
checking for mipsel-openwrt-linux-uclibc-gcc option to accept ISO C89... none needed
checking whether mipsel-openwrt-linux-uclibc-gcc understands -c and -o together... yes
checking how to run the C preprocessor... mipsel-openwrt-linux-uclibc-gcc -E
checking for grep that handles long lines and -e... /home/bizonx/chaos_calmer/staging_dir/host/bin/grep
checking for egrep... /home/bizonx/chaos_calmer/staging_dir/host/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
./configure: line 3563: test: too many arguments
checking whether we are using the GNU C++ compiler... yes
checking whether mipsel-openwrt-linux-uclibc-g++ accepts -g... yes
checking whether mipsel-openwrt-linux-uclibc-g++ supports C++11 features by default... no
checking whether mipsel-openwrt-linux-uclibc-g++ supports C++11 features with -std=gnu++11... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for pthread_setname_np in -lpthread... no
Could not find pthread_setname_np in pthread.
checking for clock_gettime in -lrt... yes
checking for pselect... yes
checking for ppoll... yes
checking linux/serial.h usability... yes
checking linux/serial.h presence... yes
checking for linux/serial.h... yes
checking dev/usb/uftdiio.h usability... no
checking dev/usb/uftdiio.h presence... no
checking for dev/usb/uftdiio.h... no
checking for argp_parse... no
checking for argp_parse in -largp... no
configure: error: argp library not found, specify argp-standalone location in --with-argp-lib= and --with-argp-include= options.
make[2]: *** [/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/.configured_yyyyyyyy] Error 1
make[2]: Leaving directory `/home/bizonx/chaos_calmer/package/ebusd'
make[1]: *** [package/ebusd/compile] Error 2
make[1]: Leaving directory `/home/bizonx/chaos_calmer'
make: *** [package/ebusd/compile] Error 2
configure: error: argp library not found, specify argp-standalone location in --with-argp-lib= and --with-argp-include= options.

Makefile jest bardzo podobne do tego powyżej.  Dodałem tylko PKG_SOURCE i PKG_SOURCE_SUBDIR bo krzyczało.
Czy to jest kwestja kompilatora? Czy jest szansa to naprawić?

12

Odp: Domoticz + ebusd + Vaillant (Prośba o Cross Compile)

On drze się o brakującą bibliotekę argp. W 19.07 masz ją standardowo.

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

13 (edytowany przez bizonx 2019-09-29 21:36:32)

Odp: Domoticz + ebusd + Vaillant (Prośba o Cross Compile)

Kurcze same porażki dzisiaj. Próbowałem jeszcze usbip ale też nie chce pod CC działać.

Co do biblioteki to jest, tylko nie wiem czy o to chodzi?

bizonx@bizonx-Virtual-Machine:~$ ls -n chaos_calmer/package/libs | grep argp

drwxrwxr-x 3 1000 1000 4096 wrz 29 16:11 argp-standalone

Dodałem do Makefile jako zależność

  DEPENDS:=+libpthread +librt +libstdcpp +argp-standalone 

I jest już trochę dalej.

bizonx@bizonx-Virtual-Machine:~/chaos_calmer$ make package/ebusd/compile -j1 V=s
make[1]: Entering directory `/home/bizonx/chaos_calmer'
make[2]: Entering directory `/home/bizonx/chaos_calmer/package/libs/toolchain'
if [ -f /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean ]; then rm -f /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean; fi; echo "libc" >> /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install
if [ -f /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean ]; then rm -f /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean; fi; echo "libgcc" >> /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install
make[2]: Leaving directory `/home/bizonx/chaos_calmer/package/libs/toolchain'
make[2]: Entering directory `/home/bizonx/chaos_calmer/package/libs/argp-standalone'
make[2]: Leaving directory `/home/bizonx/chaos_calmer/package/libs/argp-standalone'
make[2]: Entering directory `/home/bizonx/chaos_calmer/package/ebusd'
CFLAGS="-Os -pipe -mno-branch-likely -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float  -I/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/usr/include -I/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/include -I/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/include " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float  -I/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/usr/include -I/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/include -I/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/include " LDFLAGS="-L/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/usr/lib -L/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/lib -L/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/lib " make -j1 -C /home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/. AR="mipsel-openwrt-linux-uclibc-gcc-ar" AS="mipsel-openwrt-linux-uclibc-gcc -c -Os -pipe -mno-branch-likely -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float" LD=mipsel-openwrt-linux-uclibc-ld NM="mipsel-openwrt-linux-uclibc-gcc-nm" CC="mipsel-openwrt-linux-uclibc-gcc" GCC="mipsel-openwrt-linux-uclibc-gcc" CXX="mipsel-openwrt-linux-uclibc-g++" RANLIB="mipsel-openwrt-linux-uclibc-gcc-ranlib" STRIP=mipsel-openwrt-linux-uclibc-strip OBJCOPY=mipsel-openwrt-linux-uclibc-objcopy OBJDUMP=mipsel-openwrt-linux-uclibc-objdump SIZE=mipsel-openwrt-linux-uclibc-size CROSS="mipsel-openwrt-linux-uclibc-" ARCH="mipsel" ;
make[3]: Entering directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3'
make  all-recursive
make[4]: Entering directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3'
Making all in docs
make[5]: Entering directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/docs'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/docs'
Making all in src/lib/utils
make[5]: Entering directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/src/lib/utils'
  CXX      log.o
log.cpp:42:3: error: 'nullptr' was not declared in this scope
   nullptr
   ^
log.cpp:52:3: error: 'nullptr' was not declared in this scope
   nullptr
   ^
log.cpp: In function 'ebusd::LogFacility ebusd::parseLogFacility(const char*)':
log.cpp:66:56: error: 'nullptr' was not declared in this scope
   char *opt = reinterpret_cast<char*>(input), *value = nullptr;
                                                        ^
log.cpp: In function 'int ebusd::parseLogFacilities(const char*)':
log.cpp:78:56: error: 'nullptr' was not declared in this scope
   char *opt = reinterpret_cast<char*>(input), *value = nullptr;
                                                        ^
log.cpp: In function 'ebusd::LogLevel ebusd::parseLogLevel(const char*)':
log.cpp:101:56: error: 'nullptr' was not declared in this scope
   char *opt = reinterpret_cast<char*>(input), *value = nullptr;
                                                        ^
log.cpp: In function 'bool ebusd::setLogFile(const char*)':
log.cpp:136:18: error: 'nullptr' was not declared in this scope
   if (newFile == nullptr) {
                  ^
log.cpp: In function 'void ebusd::closeLogFile()':
log.cpp:145:20: error: 'nullptr' was not declared in this scope
   if (s_logFile != nullptr) {
                    ^
log.cpp: In function 'void ebusd::logWrite(const char*, const char*, const char*, va_list)':
log.cpp:158:20: error: 'nullptr' was not declared in this scope
   if (s_logFile == nullptr) {
                    ^
make[5]: *** [log.o] Error 1
make[5]: Leaving directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/src/lib/utils'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3'
make[2]: *** [/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/.built] Error 2
make[2]: Leaving directory `/home/bizonx/chaos_calmer/package/ebusd'
make[1]: *** [package/ebusd/compile] Error 2
make[1]: Leaving directory `/home/bizonx/chaos_calmer'
make: *** [package/ebusd/compile] Error 2

Pododawałem deklarację do plików, które o to krzyczały

 #define nullptr NULL 

,ale dalej tylko gorzej i woła o "-std=c++11 or -std=gnu++11", i nie da się oszukać

bizonx@bizonx-Virtual-Machine:~/chaos_calmer$ make package/ebusd/compile -j1 V=s
make[1]: Entering directory `/home/bizonx/chaos_calmer'
make[2]: Entering directory `/home/bizonx/chaos_calmer/package/libs/toolchain'
if [ -f /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean ]; then rm -f /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean; fi; echo "libc" >> /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install
if [ -f /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean ]; then rm -f /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean; fi; echo "libgcc" >> /home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/toolchain.default.install
make[2]: Leaving directory `/home/bizonx/chaos_calmer/package/libs/toolchain'
make[2]: Entering directory `/home/bizonx/chaos_calmer/package/libs/argp-standalone'
make[2]: Leaving directory `/home/bizonx/chaos_calmer/package/libs/argp-standalone'
make[2]: Entering directory `/home/bizonx/chaos_calmer/package/ebusd'
CFLAGS="-Os -pipe -mno-branch-likely -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float  -I/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/usr/include -I/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/include -I/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/include " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float  -I/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/usr/include -I/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/include -I/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/include " LDFLAGS="-L/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/usr/lib -L/home/bizonx/chaos_calmer/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/lib -L/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/lib " make -j1 -C /home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/. AR="mipsel-openwrt-linux-uclibc-gcc-ar" AS="mipsel-openwrt-linux-uclibc-gcc -c -Os -pipe -mno-branch-likely -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float" LD=mipsel-openwrt-linux-uclibc-ld NM="mipsel-openwrt-linux-uclibc-gcc-nm" CC="mipsel-openwrt-linux-uclibc-gcc" GCC="mipsel-openwrt-linux-uclibc-gcc" CXX="mipsel-openwrt-linux-uclibc-g++" RANLIB="mipsel-openwrt-linux-uclibc-gcc-ranlib" STRIP=mipsel-openwrt-linux-uclibc-strip OBJCOPY=mipsel-openwrt-linux-uclibc-objcopy OBJDUMP=mipsel-openwrt-linux-uclibc-objdump SIZE=mipsel-openwrt-linux-uclibc-size CROSS="mipsel-openwrt-linux-uclibc-" ARCH="mipsel" ;
make[3]: Entering directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3'
make  all-recursive
make[4]: Entering directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3'
Making all in docs
make[5]: Entering directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/docs'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/docs'
Making all in src/lib/utils
make[5]: Entering directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/src/lib/utils'
  CXX      tcpsocket.o
  CXX      httpclient.o
In file included from /home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/mipsel-openwrt-linux-uclibc/include/c++/4.8.3/cstdint:35:0,
                 from ../../../src/lib/utils/httpclient.h:23,
                 from httpclient.cpp:19:
/home/bizonx/chaos_calmer/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/mipsel-openwrt-linux-uclibc/include/c++/4.8.3/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support for the \
  ^
In file included from httpclient.cpp:19:0:
../../../src/lib/utils/httpclient.h: In destructor 'ebusd::HttpClient::~HttpClient()':
../../../src/lib/utils/httpclient.h:54:20: error: 'free' was not declared in this scope
       free(m_buffer);
                    ^
make[5]: *** [httpclient.o] Error 1
make[5]: Leaving directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/src/lib/utils'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3'
make[2]: *** [/home/bizonx/chaos_calmer/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/ebusd-3.3.3/.built] Error 2
make[2]: Leaving directory `/home/bizonx/chaos_calmer/package/ebusd'
make[1]: *** [package/ebusd/compile] Error 2
make[1]: Leaving directory `/home/bizonx/chaos_calmer'
make: *** [package/ebusd/compile] Error 2

Tylko jak to obejść  "-std=c++11 or -std=gnu++11"

14

Odp: Domoticz + ebusd + Vaillant (Prośba o Cross Compile)

Cześć,
Super, że ktoś poruszył temat. Dokładnie o tym myślałem bo mam domoticz na openwrt raspberry. I planuje zakup https://www.olx.pl/oferta/ebus-ttl-usb- … eEVmL.html pod piec Vailant.
@bizonx Jaki masz adapter podpięty ? Czemu nie załadujesz np: LEDE (openwrt) 17.01.7?

15

Odp: Domoticz + ebusd + Vaillant (Prośba o Cross Compile)

bizonx napisał/a:

Tylko jak to obejść  "-std=c++11 or -std=gnu++11"

Cos z tego http://u.42.pl/136fd probowales?

16

Odp: Domoticz + ebusd + Vaillant (Prośba o Cross Compile)

TARGET_CXXFLAGS += -std=c++11

Jeżeli faktycznie jest potrzebne.

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

17 (edytowany przez bizonx 2019-10-01 08:27:10)

Odp: Domoticz + ebusd + Vaillant (Prośba o Cross Compile)

kofec napisał/a:

Cześć,
Super, że ktoś poruszył temat. Dokładnie o tym myślałem bo mam domoticz na openwrt raspberry. I planuje zakup https://www.olx.pl/oferta/ebus-ttl-usb- … eEVmL.html pod piec Vailant.
@bizonx Jaki masz adapter podpięty ? Czemu nie załadujesz np: LEDE (openwrt) 17.01.7?

Czekam na paczkę właśnie z tego OLXa, a tymczasem testuję na arduino.
https://zapodaj.net/dc1f2cca9f050.jpg.html

Dlaczego nie LEDE, bo mam stary router WL500gp, który chciałbym przeznaczyć jako server ebusd (stąd kontynuacja tego wątku)
Mam jeszcze OpenWRT 19.07 na WRT1900ACS (tam właśnie Domoticz) i dzięki uprzejmości Cezarego ( skompilował mi ebusd pod tę platformę ) alternatywnie wszystko będzie tu skonfugurowane.

Pozostaje jeszcze opcja z Wemos D1 i dostępie po WiFi, chodzi to ale trochę słabiej niż po UART, muszę potestować z docelowym adapterem.

tomciu napisał/a:

Cos z tego http://u.42.pl/136fd probowales?

Kompilator podsuwał mi rozwiązanie z dodaniem flagi, ale nie mogłem znaleść jasnej odpowiedzi jak to ma wyglądać pod Cross Compile

Cezary napisał/a:

TARGET_CXXFLAGS += -std=c++11

Jeżeli faktycznie jest potrzebne.

Będę próbować, dzięki.

18 (edytowany przez bizonx 2019-10-01 12:49:41)

Odp: Domoticz + ebusd + Vaillant (Prośba o Cross Compile)

Udało się w końcu. Flaga:

TARGET_CXXFLAGS += -std=c++11

w Makefile załatwia sprawę.

Musiałem tylko dodać

#include <stdlib.h>

do jednego pliku źródłowego z powodu błędu. Widocznie ten kompilator nie ładuje domyślnie tej biblioteki. Pewnie jakaś flaga w Makefile by to załatwiła :-)

Na routerze docelowym WL500gp Chaos Calmer 15.05.1

root@OpenWrt:~# opkg install /tmp/ebusd_3.3.3-1_brcm47xx.ipk
Installing ebusd (3.3.3-1) to root...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for ebusd:
 *      argp-standalone *
 * opkg_install_cmd: Cannot install package ebusd.

Wywaliłem z Makefile  ̶+̶a̶r̶g̶p̶-̶s̶t̶a̶n̶d̶a̶l̶o̶n̶e̶

DEPENDS:=+libpthread +librt +libstdcpp  ̶+̶a̶r̶g̶p̶-̶s̶t̶a̶n̶d̶a̶l̶o̶n̶e̶ 

,skompilowałem paczkę i działa. Chyba też CC ma libargp wkompilowane, skoro niedostępne w paczkach.

root@OpenWrt:~# opkg install /tmp/ebusd_3.3.3-1_brcm47xx.ipk
Installing ebusd (3.3.3-1) to root...
Installing libstdcpp (4.8-linaro-1) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/brcm47xx/legacy/packages/base/libstdcpp_4.8-linaro-1_brcm47xx.ipk.
Configuring libstdcpp.
Configuring ebusd.
root@OpenWrt:~# ebusd -f --scanconfig -d /dev/ttyUSB0
2019-10-01 08:28:49.400 [main notice] ebusd 3.3.22375a2 started with auto scan
2019-10-01 08:28:49.840 [bus notice] bus started with own address 31/36
2019-10-01 08:28:49.862 [bus notice] signal acquired

Jeszcze dla porządku, wklejam strukturę i pliki dla kompilacji paczki pod CC

chaos_calmer/package/ebusd/
├── Makefile
└── patches
    └── 100-missing-include-stdlib.patch

Makefile

include $(TOPDIR)/rules.mk

PKG_NAME:=ebusd
PKG_RELEASE:=1                                                                                                          
PKG_VERSION:=3.3

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/john30/ebusd.git
PKG_SOURCE_DATE:=2019-08-15
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=3926e9cbf81457cd8cbb3b5985aae6445560d8e2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_FIXUP:=autoreconf

include $(INCLUDE_DIR)/package.mk

define Package/ebusd
  SECTION:=net
  CATEGORY:=Network
  TITLE:=eBUS daemon
  URL:=https://github.com/john30/ebusd
  DEPENDS:=+libpthread +librt +libstdcpp
endef

TARGET_CXXFLAGS += -std=c++11

define Package/ebusd/install
<------>$(INSTALL_DIR) $(1)/usr/bin
<------>$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ebusd/ebusd $(1)/usr/bin
<------>$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/tools/{ebusctl,ebusfeed} $(1)/usr/bin                                       
endef

$(eval $(call BuildPackage,ebusd)).                          

100-missing-include-stdlib.patch

diff --git a/src/lib/utils/httpclient.h b/src/lib/utils/httpclient.h
index 3648299..0ab1ae9 100755
--- a/src/lib/utils/httpclient.h
+++ b/src/lib/utils/httpclient.h
@@ -22,6 +22,7 @@
 #include <unistd.h>
 #include <cstdint>
 #include <string>
+#include <stdlib.h>
 #include "lib/utils/tcpsocket.h"

A tu paczka, może komuś sie przyda. Jednak zachęcam do własnego kompilowana. Mega przygoda i wiedza. Hehe.
https://megawrzuta.pl/download/455151f1 … c68da.html


Dziękuję za cierpliwość i pomoc. Dla ciekawych projektem eBus - Domoticz postaram sie zamieszczać tu moje zmagania z tematem.

19

Odp: Domoticz + ebusd + Vaillant (Prośba o Cross Compile)

Napisz jak Ci poszło i napisz jaki masz piec.

20 (edytowany przez bizonx 2019-10-01 14:20:32)

Odp: Domoticz + ebusd + Vaillant (Prośba o Cross Compile)

Pozwoliłem sobie na zmianę tematu na bardziej pasujący do dalszej dyskusji.

kofec napisał/a:

Napisz jak Ci poszło i napisz jaki masz piec.

Mój piec to:

Vaillant ecoTEC VC Plus 206/5-5 + VIH R 120/6 B + multiMATIC 700/6

Jak przyjdzie płytka to opiszę co i jak :-)

P.S. Dopiero teraz znalazłem poradnik Cezarego nt. kompilowania https://eko.one.pl/?p=openwrt-kompilacja. Hehe.

21

Odp: Domoticz + ebusd + Vaillant (Prośba o Cross Compile)

Właśnie chciałem Ci doradzić, żebyś sobie nowy obraz skompilował - nawet z branch'a master.
Ja mam urządzenie 32/4 (wr741nd) i po usunięciu zbędnych modułów chodzi całkiem nieżle

root@WR741NDv1:~# free
              total        used        free      shared  buff/cache   available
Mem:          27980       17984        4832         500        5164        7240
Swap:             0           0           0

root@WR741NDv1:~# dmesg
[    0.000000] Linux version 4.19.67 (kofec@E5420Mint) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r10492-c52ca08d40)) #0 Tue Aug 27 13:20:20 2019
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] MIPS: machine is TP-Link TL-WR741N/ND v1/v2

22

Odp: Domoticz + ebusd + Vaillant (Prośba o Cross Compile)

kofec napisał/a:

Właśnie chciałem Ci doradzić, żebyś sobie nowy obraz skompilował - nawet z branch'a master.

Dzięki, faktycznie da się :-).
Niestety chyba zjarałem porty USB bo nie wykrywa urządzeń po podłączeniu. Openwrt konfiguruje USB ale nic nie przydziela. Jest napięcie ale data chyba usmażone.

root@OpenWrt:~# dmesg | grep USB
[    0.000000] ssb: Core 3 found: USB 1.1 Hostdev (cc 0x808, rev 0x03, vendor 0x4243)
[    3.832011] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.857452] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.880175] ohci-platform ohci-platform.0: new USB bus registered, assigned bus number 1
[    3.972555] hub 1-0:1.0: USB hub found
[ 1229.086923] usbserial: USB Serial support registered for generic
[ 1229.111198] usbserial: USB Serial support registered for cp210x
root@OpenWrt:~#
root@OpenWrt:~# opkg list-installed | grep usb
kmod-usb-bcma - 4.14.146-1
kmod-usb-core - 4.14.146-1
kmod-usb-ehci - 4.14.146-1
kmod-usb-ohci - 4.14.146-1
kmod-usb-printer - 4.14.146-1
kmod-usb-serial - 4.14.146-1
kmod-usb-serial-cp210x - 4.14.146-1
kmod-usb-ssb - 4.14.146-1
kmod-usb2 - 4.14.146-1
root@OpenWrt:~#
root@OpenWrt:~# lsusb -t
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/2p, 12M
root@OpenWrt:~#

Lipa podwójna, bo miałem też drukarkę podpietą pod tego Asusa

23

Odp: Domoticz + ebusd + Vaillant (Prośba o Cross Compile)

Trochę się załamałem twoim wpisem. Liczyłem, że potestujesz i podzielisz się doświadczeniami tego modułu ebus.
A kiedy przestało działać ? Może to jednak kwestia buildu bo widzę ze wrzuciłeś nowy. Moduły wydaje się, że wszystkie masz.
Jakby okazało się, że naprawdę padnięty to jest w dobrej cenie polecany model:
https://allegro.pl/oferta/netgear-r6220 … 7605465999

24 (edytowany przez bizonx 2019-10-07 12:20:59)

Odp: Domoticz + ebusd + Vaillant (Prośba o Cross Compile)

@kofec
Dzięki za linka. Jednak nie spaliłem usb, tylko zapomniałem że potrzeba jeszcze kmod-usb2-pci w tym modelu.
A już miałem coś zastępczego zamawiać :-).

OpenWrt.org ASUS WL-500g Premium napisał/a:


Connect stuff to the USB port

To connect stuff to the USB port, please see Connect stuff to the USB port, the package kmod-usb2 is needed. For some devices the package kmod-usb-uhci-iv might also be needed.

Note:

    To enable the VIA USB 2.0 chip (high-speed) on BB 14.07 you must install the kmod-usb2-pci package.

root@OpenWrt:~# dmesg | grep USB
[    0.000000] ssb: Core 3 found: USB 1.1 Hostdev (cc 0x808, rev 0x03, vendor 0x4243)
[    3.842528] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.867932] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.890635] ohci-platform ohci-platform.0: new USB bus registered, assigned bus number 1
[    3.982562] hub 1-0:1.0: USB hub found
[   14.342059] ehci-pci 0000:00:03.2: new USB bus registered, assigned bus number 2
[   14.395256] ehci-pci 0000:00:03.2: USB 2.0 started, EHCI 1.00
[   14.410199] hub 2-0:1.0: USB hub found
[   14.522331] usbserial: USB Serial support registered for generic
[   14.587670] usbserial: USB Serial support registered for cp210x
[   14.855361] usb 2-1: new high-speed USB device number 2 using ehci-pci
[   16.717858] usblp 2-1:1.1: usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04E8 pid 0x341B
root@OpenWrt:~#
root@OpenWrt:~# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/4p, 480M
    |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=, 480M
    |__ Port 1: Dev 2, If 1, Class=Printer, Driver=usblp, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/2p, 12M
root@OpenWrt:~#

Wracamy do gry.

Kurczę nie wykrywa mi teraz usb-serial-cp210x. Czegoś brakuje tylko czego?

25 (edytowany przez kofec 2019-10-07 12:59:43)

Odp: Domoticz + ebusd + Vaillant (Prośba o Cross Compile)

Ufff. Dobra wiadomość. Walcz więc i pisz co odkryjesz. A ten modul masz:  kmod-usb-uhci-iv ?
Moze kmod-usb-uhci? kmod-usb-ohci ? kmod-usb-ohci-pci?  kmod-usb-ehci?

Drukarke widze wykrył:

0x04E8
0x341B
Samsung Electronics Co., Ltd
SCX-4200 series