Neue FW 2.29.22

Einrichtung, Nutzung und Hilfe zu YAHM

Moderator: Co-Administratoren

leonsio
Beiträge: 1107
Registriert: 07.01.2012, 14:06
Danksagung erhalten: 6 Mal

Re: Neue FW 2.29.22

Beitrag von leonsio » 27.10.2017, 13:46

pruse hat geschrieben:Hallo,
habe wie in der Beschreibung von leonsio eine manuelle Installation auf ein Stretch lite auf den Pi2 durchgeführt.
Leider bekomme ich bei Installation der Bridge eine Fehlermeldung und ich komme nicht weiter.
"sudo yahm-network -w create_bridge"

Gruß Jens

hi bei manueller installation wird die Interfaces Datei nicht korrigiert, du musst dhcpd manuell deaktivieren und die Interfaces Datei mit default werten anlegen
ich nehme dies in den allgemeinen teil mit auf, zumindest den geil mit der Interfaces Datei
wegen dhcpd muss ich überlegen

Code: Alles auswählen

if [ "$1" = "quickinstall" ] && [ "$DIST" != "ubuntu" ] 
then
    info "\n\tEnter quick install mode\n"

  if [ "$DIST_ID" = "Raspbian" ] ;
  then
    if [ $(cat /etc/dhcpcd.conf | grep -v "^#" | grep "interface " | wc -l) -gt 0 ] ;
      then
        die "Custom network configuration is not supported"
    fi	  
    info "Disable new dhcpcd on Raspbian"
    systemctl disable dhcpcd.service 
    systemctl stop dhcpcd.service

    if [ "$CODENAME" = "jessie" ] ;
      then
	sed -i /etc/network/interfaces -e "s/iface eth0 inet manual/auto eth0\niface eth0 inet dhcp/"
      fi

    if [ "$CODENAME" = "stretch" ] ;
    then
#      INTERFACE=`ls /sys/class/net | grep enx`
      cat >> "/etc/network/interfaces" <<EOF
auto lo
iface lo inet loopback
auto ${INTERFACE}
iface ${INTERFACE} inet dhcp
EOF
  fi
fi

pruse
Beiträge: 223
Registriert: 03.02.2012, 22:41

Re: Neue FW 2.29.22

Beitrag von pruse » 28.10.2017, 07:15

Hallo Danke für die Antwort,
was genau und wo muss ich was änder habe da keine Ahnung.

Gruß Jens



leonsio hat geschrieben:
pruse hat geschrieben:Hallo,
habe wie in der Beschreibung von leonsio eine manuelle Installation auf ein Stretch lite auf den Pi2 durchgeführt.
Leider bekomme ich bei Installation der Bridge eine Fehlermeldung und ich komme nicht weiter.
"sudo yahm-network -w create_bridge"

Gruß Jens

hi bei manueller installation wird die Interfaces Datei nicht korrigiert, du musst dhcpd manuell deaktivieren und die Interfaces Datei mit default werten anlegen
ich nehme dies in den allgemeinen teil mit auf, zumindest den geil mit der Interfaces Datei
wegen dhcpd muss ich überlegen

Code: Alles auswählen

if [ "$1" = "quickinstall" ] && [ "$DIST" != "ubuntu" ] 
then
    info "\n\tEnter quick install mode\n"

  if [ "$DIST_ID" = "Raspbian" ] ;
  then
    if [ $(cat /etc/dhcpcd.conf | grep -v "^#" | grep "interface " | wc -l) -gt 0 ] ;
      then
        die "Custom network configuration is not supported"
    fi	  
    info "Disable new dhcpcd on Raspbian"
    systemctl disable dhcpcd.service 
    systemctl stop dhcpcd.service

    if [ "$CODENAME" = "jessie" ] ;
      then
	sed -i /etc/network/interfaces -e "s/iface eth0 inet manual/auto eth0\niface eth0 inet dhcp/"
      fi

    if [ "$CODENAME" = "stretch" ] ;
    then
#      INTERFACE=`ls /sys/class/net | grep enx`
      cat >> "/etc/network/interfaces" <<EOF
auto lo
iface lo inet loopback
auto ${INTERFACE}
iface ${INTERFACE} inet dhcp
EOF
  fi
fi
LXCCU im Standby,Yahm auf Raspberry Pi3, 3xHomeduino, 1xHM-Sen-LI-O, 1xHM-WDS10-TH-O, 1xHM-PBI-4-FM, 4xHM-LC-Bl1-FM, 3xHM-LC-Sw1-FM, 2xHM-WDS40-TH-I,
2x HM-Sen-MDIR-O, 6xHMW-IO-12-Sw14-DR, 1xHM-RC-4-2, 1xHM-LC-Sw4-PCB, 1xHM-ES-PMSw1-Pl, 1xHM-WDS30-OT2-SM,
1xHM-LC-Bl1PBU-FM, 1xHM-WDS30-T-O, 1xHM-TC-IT-WM-W-EU, 1xHM-Sen-MDIR-WM55, 1xHM-LC-Bl1PBU-FM

PapaWolf
Beiträge: 584
Registriert: 19.10.2007, 09:17
Wohnort: Aschaffenburg (Deutschland)
Hat sich bedankt: 5 Mal
Danksagung erhalten: 1 Mal

Re: Neue FW 2.29.22

Beitrag von PapaWolf » 29.10.2017, 19:28

Also bei mir hat die Installation der Version 2.29.23 nun endlich mit den üblichen beiden Befehlen funktioniert. Leider wird der MP3-Adapter noch immer 2 x angesprochen, sodass die Ansagen 2 x gesprochen werden, statt einmal. Kurioserweise ist das aber nicht bei allen Geräten so, manche werden noch immer nur 1 x angesagt. Aber das Update hat funktioniert und die Gruppen gehen auch wieder - danke an den Entwickler !
Viele Grüße !
PapaWolf

Ich betreibe das HPCL-Studio für Homematic und FHZ(FS20) auf einem RaspberryPi 3B+ unter piVCCU3 und der FHZ2000, sowie mit 2 LAN-Gateways

Benutzeravatar
Centauri2k
Beiträge: 684
Registriert: 17.09.2016, 21:13

Re: Neue FW 2.29.22

Beitrag von Centauri2k » 30.10.2017, 19:51

Hallo, führt man die YAHM Installation als root oder pi User aus?

PapaWolf
Beiträge: 584
Registriert: 19.10.2007, 09:17
Wohnort: Aschaffenburg (Deutschland)
Hat sich bedankt: 5 Mal
Danksagung erhalten: 1 Mal

Re: Neue FW 2.29.22

Beitrag von PapaWolf » 30.10.2017, 19:53

Ich habe mich als "pi" angemeldet und dann mit
- sudo yahm-ctl update
- sudo yahm-lxc update
die Befehle gegeben und es hat einwandfrei funktioniert.
Viele Grüße !
PapaWolf

Ich betreibe das HPCL-Studio für Homematic und FHZ(FS20) auf einem RaspberryPi 3B+ unter piVCCU3 und der FHZ2000, sowie mit 2 LAN-Gateways

Benutzeravatar
Centauri2k
Beiträge: 684
Registriert: 17.09.2016, 21:13

Re: Neue FW 2.29.22

Beitrag von Centauri2k » 30.10.2017, 20:01

Ich bekomme einen Fehler bei der Installation:

Code: Alles auswählen

root@raspberrypi:~# wget -nv -O- https://raw.githubusercontent.com/leonsio/YAHM/master/yahm-init | sudo -E  bash -s quickinstall -
2017-10-30 19:56:08 URL:https://raw.githubusercontent.com/leonsio/YAHM/master/yahm-init [6271/6271] -> "-" [1]
Found ARM based distribution
Updating sources (can take some time)
Installing dependencies
install sendmail
bash-completion is installed
wget is installed
install dos2unix
python is installed
install git
install lxc
install liblzo2-dev
bridge-utils is installed
install python-lzo
patch is installed
gzip is installed
openssl is installed
Clean up YAHM directory (removing old versions)
done
Downloading actual version from git repository
Including YAHM into PATH
Installing bash command completion
Done

	Enter quick install mode

Disable new dhcpcd on Raspbian
Synchronizing state of dhcpcd.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable dhcpcd
Removed /etc/systemd/system/dhcpcd5.service.
ATTENTION: For log files see /var/log/yahm
	Installing LXC container (can take some time)
	YAHM LXC container was installed successfully

	Creating Bridge for networking
	Bridge yahmbr0 with interface eth0 was created

	Attaching network configuration to LXC container
	yahmbr0 was attached to YAHM LXC container

	Starting LXC container
	YAHM started

	Disable Homematic-IP

An error occurred while processing quickinstall mode. Pleasy try manually installation

Benutzeravatar
Centauri2k
Beiträge: 684
Registriert: 17.09.2016, 21:13

Re: Neue FW 2.29.22

Beitrag von Centauri2k » 30.10.2017, 21:21

Manuelle Installation klappt auch nicht. Beim Netzwerk kommen dann die Fehler:

Code: Alles auswählen

pi@raspberrypi:~ $ wget -nv -O- https://raw.githubusercontent.com/leonsio/YAHM/master/yahm-init | sudo -E  bash -
2017-10-30 21:16:38 URL:https://raw.githubusercontent.com/leonsio/YAHM/master/yahm-init [6271/6271] -> "-" [1]
Found ARM based distribution
Updating sources (can take some time)
Installing dependencies
install sendmail
bash-completion is installed
wget is installed
install dos2unix
python is installed
install git
install lxc
install liblzo2-dev
bridge-utils is installed
install python-lzo
patch is installed
gzip is installed
openssl is installed
Clean up YAHM directory (removing old versions)
done
Downloading actual version from git repository
Including YAHM into PATH
Installing bash command completion
Done
Please see 'yahm-lxc' for creating new container, 'yahm-network' for network configuration and 'yahm-modules' for additional modules
pi@raspberrypi:~ $ sudo yahm-ctl update
/opt/YAHM/share/tools/arm-board-detect/armhwinfo.sh: Zeile 219: Warnung: command substitution: ignored null byte in input
Updating YAHM installation, for updatate CCU2 please use 'yahm-lxc update'
Bereits aktuell.
Updating all YAHM modules
Submodul-Pfad: 'share/tools/rpi-source': '1caa816d834e7d4105826bf7463909568912b411' ausgecheckt
Betrete 'share/firmware'
Von https://github.com/leonsio/YAHM-Firmware
 * branch            master     -> FETCH_HEAD
Bereits aktuell.
Betrete 'share/modules'
Von https://github.com/leonsio/YAHM-Module
 * branch            master     -> FETCH_HEAD
Bereits aktuell.
Betrete 'share/tools/Network-Interfaces-Script'
Von https://github.com/leonsio/Network-Interfaces-Script
 * branch            master     -> FETCH_HEAD
Bereits aktuell.
Betrete 'share/tools/arm-board-detect'
Von https://github.com/leonsio/arm-board-detect
 * branch            master     -> FETCH_HEAD
Bereits aktuell.
Betrete 'share/tools/rpi-source'
Von https://github.com/notro/rpi-source
 * branch            master     -> FETCH_HEAD
Aktualisiere 1caa816..0981c09
Fast-forward
 rpi-source | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Updating CCU2-FW archive
YAHM version 1.8 found
pi@raspberrypi:~ $ sudo yahm-lxc install
Creating new lxc container name: yahm, version 2.29.23
Downloading CCU Firmware
Extracting firmware
Extract ubi image
Writing to: /var/lib/lxc/yahm/root
Cleanup CCU2 source
Applying patch
Applying scripts
Creating SD card
Clean Up
Creating lxc config file
Container is created, please use 'yahm-ctl -n yahm start' to start and 'yahm-ctl -n yahm join' for console access
For network configuration see yahm-network script
pi@raspberrypi:~ $ sudo yahm-network -w create_bridge
Trying to create new bridge yahmbr0 with physical interface eth0
ATTENTION: Network configuration will be changed, you may no longer login to the system!!!
No bridge with choosen name found, continue...
Interface eth0 is physical and valid, continue...
pi@raspberrypi:~ $ sudo yahm-network attach_bridge
ERROR: Bridge yahmbr0 dont exists.

Benutzeravatar
Centauri2k
Beiträge: 684
Registriert: 17.09.2016, 21:13

Re: Neue FW 2.29.22

Beitrag von Centauri2k » 31.10.2017, 11:47

Noch mal mehrmals versucht, kriege es nicht installiert.


Gesendet von iPhone mit Tapatalk Pro

Benutzeravatar
Centauri2k
Beiträge: 684
Registriert: 17.09.2016, 21:13

Re: Neue FW 2.29.22

Beitrag von Centauri2k » 31.10.2017, 16:30

Ich habe es gerade noch mal über die Automatische Installation mit einem Frischen Stretch Image (2017-09-07-raspbian-stretch-lite.img) versucht, es kommt immer zum Schluss eine Fehlermeldung:

Code: Alles auswählen

pi@raspberrypi:~ $ wget -nv -O- https://raw.githubusercontent.com/leonsio/YAHM/master/yahm-init | sudo -E  bash -s quickinstall -
2017-10-31 16:24:27 URL:https://raw.githubusercontent.com/leonsio/YAHM/master/yahm-init [6271/6271] -> "-" [1]
Found ARM based distribution
Updating sources (can take some time)
Installing dependencies
install sendmail
bash-completion is installed
wget is installed
install dos2unix
python is installed
install git
install lxc
install liblzo2-dev
bridge-utils is installed
install python-lzo
patch is installed
gzip is installed
openssl is installed
Clean up YAHM directory (removing old versions)
done
Downloading actual version from git repository
Including YAHM into PATH
Installing bash command completion
Done

	Enter quick install mode

Disable new dhcpcd on Raspbian
Synchronizing state of dhcpcd.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable dhcpcd
Removed /etc/systemd/system/dhcpcd5.service.
ATTENTION: For log files see /var/log/yahm
	Installing LXC container (can take some time)
	YAHM LXC container was installed successfully

	Creating Bridge for networking
	Bridge yahmbr0 with interface eth0 was created

	Attaching network configuration to LXC container
	yahmbr0 was attached to YAHM LXC container

	Starting LXC container
	YAHM started

	Disable Homematic-IP

An error occurred while processing quickinstall mode. Pleasy try manually installation
Was kann da los sein?

leonsio
Beiträge: 1107
Registriert: 07.01.2012, 14:06
Danksagung erhalten: 6 Mal

Re: Neue FW 2.29.22

Beitrag von leonsio » 31.10.2017, 16:38

Die Meldung kommt bei homematic ip
Einfach homematic ip Skript nochmal ausführen oder mit einer Meldung zu Virtual devices leben

Rest sollte laufen (alles ohne IP)
Nach Renoir solltest du neue IP bekommen.

Antworten

Zurück zu „YAHM“