Git Product home page Git Product logo

docker-ccu's Introduction

DEPRECATION NOTE - merged into RaspberryMatic

Since I loved the additional features added by @jens-maus in (RaspberryMatic)[https://github.com/jens-maus/RaspberryMatic] I had been ussing some of his work here. In order to get the "full thing" he and I have merged the functions in this repo: see (RaspberryMatic)[jens-maus/RaspberryMatic#786]. Features:

  • full RaspberryMatic experience, including backups, Dutty-Cycle, LAN GW and many more - see https://raspberrymatic.de/
  • support for x86_64/amd64, ARM and ARM64

Migration:

Therefore I do not longer plan to keep updating this repository. If you believe that there are resons for a vanilla official CCU as container please open an issue here. If I do not hear any requests in 1 month I will set this repo in read-only mode.

docker-ccu

Homematic CCU firmware running as docker container on arm and (emulated) x86.

This project downloads the Homematic CCU2 firmware and re-package it as docker image. You can then start it on your raspi. Other ARM-based boards might also work (see Dependencies section). You can deploy on x86 but it will be slow and some components fail. I am working on a true multi-arch docker container for this.

An automated build pushes new docker images to Docker Hub. You can check there the available versions.

Support for CCU2 has been removed from the HEAD. Please checkout the ccu2 branch if you need to build the CCU2 images. There is also another Docker Hub repository with old CCU2 images.

Features

  • deploy original CCU firmware to Docker and kubernetes
  • Homematic and Homematic IP supported (wired not tested)
  • automatically install support for Homematic HW - thanks to Alex´s piVCCU proyect
  • partial multiarch:
    • builds on x86
    • runs on x86 but HMServer does not start
  • displays Duty Cycle for CCU Gateways - thanks to Andreas and Jens
  • keep configuration in a remote location specified with the env variable PERSISTENT_DIR - you can use any location supported by rsync

Not working

  • Settings -> Control Panel -> Network Settings
  • Display when there is a new CCU version available
  • true multiarch dynamic docker
    • current multiarch is based on qemu
    • will use OCCU as base as done by this other project
    • looking at USB adapter for dual stack with a single device
  • automatically build new docker containers when new CCU versions are published by e3q.

Dependencies

  • Docker
    • Kubernetes and Docker Swarm can be used for High Availability set ups. See the cluster section for more details.
  • ARM HW. Following combinations tested for both Homematic and Homematic IP:
    • Raspberry with HM-MOD-RPI-PCB
    • Orange Pi Plus 2 with HM-MOD-RPI-PCB
    • OdroidXU4 with HM-LGW-O-TW-W-EU and HmIP-RFUSB
  • One or more adapters to connect to the Homematic and/or Homematic IP devices
    • Homematic LAN GW for Homematic devices:
      • HM-LGW-O-TW-W-EU
      • RaspberryMatic in LAN GW mode
      • Docker computer and LAN GW need to be in the same network. No additional SW is needed in the docker computer. Connection is configured using the CCU web UI (settings -> LAN Gateway configuration)
    • Homematic USB IP adapter
      • HmIP-RFUSB
      • the required kernel module is cp210x which is available in most Linux systems. The deploy.sh will add a udev rule to enable it automatically when plugged.
    • HM-MOD-RPI-PCB, RPI-RF-MOD, HB-RF-USB and emulated adapters
      • additional packages need to be installed in the host to support Homematic and Homematic IP in parallel. The required packages come from the piVCCU project which supports multiple ARM devices
      • the deploy.sh script will try to install the pivccu packages for you. If it does not work please follow these instructions to install pivccu-modules-dkms, pivccu-devicetree-armbian (if you are on Armbian) and pivccu-modules-raspberrypi (if you use a Raspberry with Raspbian). You do not need to install a network bridge since docker manages that.

How to deploy

  1. ssh into the target computer (better an ARM device)
  2. git clone this repository
  3. (Optional) cp -a settings.template settings and edit settings.template
  4. sudo ./deploy.sh
    • you can also use env variables such as MAYOR_CCU_VERSION=2 to deploy a CCU2 firmware. See settings.template for all available options

After the above steps you can connect to the :<port 80>. The CCU docker image will be restarted automatically when the computer boots: the container is started in auto-restart mode. With docker ps ccu you can see its status.

How to build

This is only needed if you do not use the already built docker container.

  1. git clone this repository
  2. (Optional) cp -a settings.template settings and edit settings.template
  3. sudo ./build.sh

How to update to a new CCU firmware

  1. git pull
  2. ./pull.sh
  3. ./deploy.sh

Optionally you can use the CCU_VERSION variable to select a particular version.

Your CCU settings will be preserved.

How to import settings from an existing CCU

You can move your settings from an existing CCU into the docker CCU, either via ssh or using the native backup/restore support in the CCU (recommended).

If you use a HM-MOD-RPI-PCB and the Homematic is not working after restoring the backup then likely your old system was running without compatibility with Homematic IP. You need to use the new dual-stack mode. The easiest way to achieve that is to execute the following command: docker exec ccu sh -c "rm /etc/config/rfd.conf && /etc/init.d/S61rfd restart && cat /etc/config/rfd.conf". After this please check that Improved Coprocessor Initialization = true.

Using the CCU UI (recommend)

  1. log into you HW CCU web ui
  2. go to Settings -> Security -> create backup
  3. go into the the docker CCU web UI
  4. go to Settings -> Security -> import backup

Manually copying files

Please notice that this method does not support switch HW versions: to update from HW CCU2 to docker CCU you need to use the UI

  1. Enable ssh in your CCU2. Instructions (in German) here
  2. ssh into your target computer
  3. sudo ./undeploy.sh
  4. rsync -av \[your CCU IP\]/usr/local/* /var/lib/docker/volumes/ccu_data/_data/
  5. ./deploy.sh

Cluster

You can deploy this docker container into a docker cluster with Kubernetes or Docker Swarm. This allows a High Available configuration where the home automation can stay up in the event of HW dying. This is usefull considering that a Raspberry is cheap so you should not depend on a single one to ensure your house stays warm ;-) .

Kubernetes

You can check this example of a high available deployment. There I keep the configuration into a cluster persistent volume (glusterfs) so if one of computers is down then the CCU is "just" redeployed automatically into another available computer.

Docker swarm

You can also deploy this docker image to a docker swarm. For this you need to:

  • set up a docker swarm in multiple Raspberries. They all need to have local antennas at least you use a LAN gateway
  • have a shared folder mounted at the same location in all the members of the cluster. Examples:
    • Mount a NAS folder. This is simple but then the NAS is the single point of failure
    • Cluster FS such as glusterfs. TBD: upload instructions
  1. Change settings parameters
    • Set DOCKER_CCU_DATA to the absolute path of your shared folder. Example: _/media/glusterfs/ccu_
    • Set DOCKER_MODE to swarm
    • Set DOCKER_OPTIONS to --constraint node.labels.architecture==arm
  2. ./deploy.sh

docker-ccu's People

Contributors

angelnu avatar anunezde avatar horizon0156 avatar m-rossi avatar marbon87 avatar milkpirate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-ccu's Issues

CCU2CommController::init(): Init failed. Cannot start coprocessor application

Hi,

i have problems getting the hm-mod-rpi-pcb board to work inside docker. When using RaspberryMatic image everything works fine. But i would love to use Raspbian and docker. I did the following reproducible steps:

  1. Download http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2017-07-05/2017-07-05-raspbian-jessie-lite.zip
  2. Flash 2017-07-05-raspbian-jessie-lite.img to SD
  3. Create empty file with name ssh on bootfs partition
  4. Insert SDCard into RaspberryPi and connect Ethernet
  5. Connect to raspberrypi with ssh and user pi
  6. I use the following commands:
sudo -i

echo "enable_uart=1" >> /boot/config.txt
echo "dtoverlay=pi3-miniuart-bt" >> /boot/config.txt
echo "core_freq=250" >> /boot/config.txt
sed -i s/'\bconsole=serial0,115200 //' /boot/cmdline.txt
systemctl disable [email protected]
systemctl disable [email protected]

reboot
  1. After reboot i use the following commands to install docker
sudo apt-get update
sudo apt-get install git vim
curl -ks https://packagecloud.io/install/repositories/Hypriot/Schatzkiste/script.deb.sh | sudo bash
sudo sudo apt-get install docker-hypriot
sudo sh -c 'usermod -aG docker $SUDO_USER'
sudo systemctl enable docker.service

docker version shows:

Client:
 Version:      1.11.1
 API version:  1.23
 Go version:   go1.4.3
 Git commit:   5604cbe
 Built:        Mon May  9 00:50:14 2016
 OS/Arch:      linux/arm

Server:
 Version:      1.11.1
 API version:  1.23
 Go version:   go1.4.3
 Git commit:   5604cbe
 Built:        Mon May  9 00:50:14 2016
 OS/Arch:      linux/arm
  1. Now i clone this repository and execute build.sh
    I changed the CCU Version
    : ${CCU2_VERSION:="2.29.23"}
    The package python-lzo is not found. I installed it manually.
    FYI python -mplatform gives me Linux-4.9.35-v7+-armv7l-with-debian-8.0

  2. After this is done and the container starts correctly i use a browser to connect to
    http://raspberrypi/

Webinterface works fine. Unfortunately it does not find my radio module. The logs show repeatedly the following line:

ccu2 user.err update-coprocessor: CCU2CommControllerMod::performIdentify(): Unable to determine coprocessor state.

followed by these two lines:

ccu2 user.crit rfd: CCU2CommController::init(): Init failed. Cannot start coprocessor application.
ccu2 user.err rfd: () CCU2CommController::setCSMACAEnabled(): Error disabling CSMA/CA.

Any help would be greatly appreciated

update CUXD 2.0.0 fails

Hi,
just trying to get the latest CUXD release 2.0.0 up and running but it fails.
I was manually installing the softare like I did at #6.

Seams there is a problem with the executables e.g. update_addon and cuxd. They don't even start ("not found"). I tried to trace this problem back, in my eyes it exists since cuxd 1.10, cuxd 1.9 is the latest one that is running within the docker container.
Any ideas how to trace this problem or even get a solution ?

ln: failed to create symbolic link './rfd.conf': Operation not permitted

Hello,

I struggle to get the container running.
The logs don´t go past S11init, last week after the Kernel updates of Pivccu i got to S61 rfd and no further (came up with ...... ERROR), HTTP showed CCU starting up screen endlessly.

I sense it has sth. to do with the failed to create symbolic link ./rfd.conf.

What could be the issue?

Cheers
David

`sudo sh deploy.sh
deploy.sh: 25: deploy.sh: [[: not found

Stoping docker container ccu ccu ccu

Load eq3_char_loop module
Enable realtime
kernel.sched_rt_runtime_us = -1

Starting container as plain docker
docker run --privileged --restart=always --mount type=volume,src=ccu_data,dst=/mnt --detach=true --name ccu -p 81:80 -p 2002:2001 -p 2011:2010 -p 2222:22 -p 8181:8181 -e PERSISTENT_DIR=/mnt --hostname ccu angelnu/ccu:3
57dceceebf8f8bd868277a9dc8387646d4439c2f29d961103d4c675bc93fe4d0

Docker container started!
Docker data volume used: ccu_data
deploy.sh: 133: deploy.sh: [[: not found
You can find its location with the command 'docker volume inspect ccu_data'
[
{
"CreatedAt": "2020-09-26T06:15:09+02:00",
"Driver": "local",
"Labels": null,
"Mountpoint": "/var/lib/docker/volumes/ccu_data/_data",
"Name": "ccu_data",
"Options": null,
"Scope": "local"
}
]
ln: failed to create symbolic link './rfd.conf': Operation not permitted
`

`Copying from /mnt to /usr/local/
sending incremental file list

/
boot_par/.gitkeep
sent 124 bytes received 39 bytes 326.00 bytes/sec
total size is 0 speedup is 0.00
Starting CCU services
Starting /etc/init.d/S00InstallAddon
Starting /etc/init.d/S00watchdog
S00watchdog - skipping
Starting /etc/init.d/S01InitHost
S01InitHost - defaults
Checking device
Detected piVCCU kernel module
Starting /etc/init.d/S02InitRTC
S02InitRTC - skipping
Starting /etc/init.d/S03InitURandom
S03InitURandom - skipping
Starting /etc/init.d/S04CheckFactoryReset
Checking for Factory Reset: not required
Starting /etc/init.d/S04CheckResizeLocalFS
S04CheckResizeLocal - skipping
Starting /etc/init.d/S05CheckBackupRestore
Checking for Backup Restore: not required
Starting /etc/init.d/S05avahi-setup.sh
Starting /etc/init.d/S06InitSystem
mkdir: can't create directory '/var/lib/dbus': No such file or directory
chmod: /var/lib/dbus: No such file or directory
Initializing System: OK
Starting /etc/init.d/S07DisableHdmi
/entrypoint.sh: line 21: /etc/init.d/S07DisableHdmi: Permission denied
Starting /etc/init.d/S07logging
Starting logging: OK
Starting /etc/init.d/S10udev
S10udev - skipping
Starting /etc/init.d/S11InitRFHardware

`

Homematic IP Support

Hi,

do you know if the homematic-ip support is fully working?
I don't have any device yet, but i am planning to buy some.

Regards,
marbon87

homematic radio module nor working

At first THX for the fix #30 !!
With this it looks now better but still nor working.

What I have done now:

  • I setup a Raspi plain from scretch with raspian stretch
  • installed docker with apt
  • rebooted
  • clone the master branch
  • copied the settings template
  • called the deploy.sh

when I login to the WEB interface a page like "please wait until the startup of HomeMatic is completed" appears. This Takes around 5 minutes!
The the WEB interface is ready and I get the message that the Start of the RF Modules failed.

From the messages log:

Apr  8 20:59:42 ccu daemon.crit xinetd[165]: 165 {init_services} no services. Exiting...
Apr  8 20:59:42 ccu user.info root: Updating RF Lan Gateway Coprocessor Firmware
Apr  8 20:59:42 ccu user.debug update-coprocessor: firmware filename is: coprocessor_update_hm_only.eq3
Apr  8 20:59:42 ccu user.info root: Updating RF Lan Gateway Firmware
Apr  8 20:59:42 ccu user.info update-lgw-firmware: No gateway found in config file /etc/config/rfd.conf
Apr  8 21:04:52 ccu local0.err ReGaHss: ERROR: XmlRpc: Error in XmlRpcClient::writeRequest: write error (error 111). [error():iseXmlRpc.h:281]
Apr  8 21:04:52 ccu local0.warn ReGaHss: WARNING: XMLRPC 'init': rpcClient.execute() failed (url: xmlrpc_bin://127.0.0.1:32001, params: {"xmlrpc_bin://127.0.0.1:31999","1007"}, result: nil) [CallXmlrpcMethod():iseXmlRpc.cpp:2602]
Apr  8 21:04:52 ccu local0.err ReGaHss: ERROR: XMLRPC 'init' call failed (interface: 1007, params: {"xmlrpc_bin://127.0.0.1:31999","1007"}) [CallInit():iseXmlRpc.cpp:1204]
Apr  8 21:04:52 ccu local0.err ReGaHss: ERROR: failed CallInit() for interface=BidCos-RF [ThreadFunction():iseRTHss.cpp:163]
Apr  8 21:04:52 ccu local0.err ReGaHss: ERROR: XmlRpc: Error in XmlRpcClient::writeRequest: write error (error 111). [error():iseXmlRpc.h:281]
Apr  8 21:04:52 ccu local0.warn ReGaHss: WARNING: XMLRPC 'init': rpcClient.execute() failed (url: xmlrpc://127.0.0.1:39292/groups, params: {"xmlrpc_bin://127.0.0.1:31999","1008"}, result: nil) [CallXmlrpcMethod():iseXmlRpc.cpp:2602]
Apr  8 21:04:52 ccu local0.err ReGaHss: ERROR: XMLRPC 'init' call failed (interface: 1008, params: {"xmlrpc_bin://127.0.0.1:31999","1008"}) [CallInit():iseXmlRpc.cpp:1204]
Apr  8 21:04:52 ccu local0.err ReGaHss: ERROR: failed CallInit() for interface=VirtualDevices [ThreadFunction():iseRTHss.cpp:163]
Apr  8 21:04:52 ccu local0.err ReGaHss: ERROR: XmlRpc: Error in XmlRpcClient::writeRequest: write error (error 111). [error():iseXmlRpc.h:281]
Apr  8 21:04:52 ccu local0.warn ReGaHss: WARNING: XMLRPC 'init': rpcClient.execute() failed (url: xmlrpc://127.0.0.1:32010, params: {"xmlrpc_bin://127.0.0.1:31999","1009"}, result: nil) [CallXmlrpcMethod():iseXmlRpc.cpp:2602]
Apr  8 21:04:52 ccu local0.err ReGaHss: ERROR: XMLRPC 'init' call failed (interface: 1009, params: {"xmlrpc_bin://127.0.0.1:31999","1009"}) [CallInit():iseXmlRpc.cpp:1204]
Apr  8 21:04:52 ccu local0.err ReGaHss: ERROR: failed CallInit() for interface=HmIP-RF [ThreadFunction():iseRTHss.cpp:163]

but this looks better now:

root@dashboard:~# docker exec ccu /etc/init.d/S11InitRFHardware start
Identifying Homematic RF-Hardware: sh: write error: Device or resource busy
BidCos-RF: RPI-RF-MOD, HmIP: RPI-RF-MOD, OK

Unfortunately it seems to be updated the FW of the radio module now and stopped working with my old setup (old raspi with old raspian) therefore I can't control my shutters actually :(

Any hints what I can do, what I can analyze to get it working?

Thx and best regards
Jörg

please provide docker image with latest ccu2 firmware

Hi,
I tried to build the latest image (2.35.16) by myself, but the built docker container is not starting propperly and remains in status restarting.
I used the workaround with the ubunto base image.

So, can you please provide an updated image on dockerhub ?

thanks for your efforts.

/dev/ttyS1 does not exist under HypriotOS

I am trying to run CCU2 under HypriotOS, amongst other (fixable) things this error occurs when running build.sh:

build.sh terminates w/ error
docker: Error response from daemon: linux runtime spec devices: error gathering device information while adding custom device "/dev/ttyS1": lstat /dev/ttyS1: no such file or directory.

$ uname -a

Linux black-pearl 4.4.50-hypriotos-v7+ #1 SMP PREEMPT Sun Mar 19 14:11:54 UTC 2017 armv7l GNU/Linux

I have to add I could not yet get the HM-MOD-RPI-PCB radio to run within this container. The HW itself does work, I cannot get them to communicate.

Whatfor is /dev_org/ttyS1 used anyway?

Feature request: Make exposed port configurable

This works just great. Thanks a lot! I tried it today and even though I had no experience with docker it worked right away. My production setup includes an nginx reverse proxy, which is listening on port 80 on the same rpi. I thought it should be easy to change the ccu2-docker port to something else but this seems to be more complicated. If you could point me to the right direction, I would love to provide a PR.

Problems with starting with the HmIP-RFUSB

Hello,

FOA thank you for this this engagement with getting this project able to start with docker.

Now to the problem...

I'm trying to run the CCU on a Linux raspberrypi 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux Raspberry 4 with 4gb RAM.

I bought the usb-toolkit from elv-electronic and soldered it by myself. But because of bad equipment and no flux, the solder joints are not pretty good! So this could be also a reason because it's not working - I don't know for sure.
When I unplug and plugin the USB-stick the following message is in the kernel log written:

[10265.234428] usb 1-1.4: USB disconnect, device number 3
[10265.235067] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
[10265.235202] cp210x 1-1.4:1.0: device disconnected
[10268.681832] usb 1-1.3: new full-speed USB device number 4 using xhci_hcd
[10268.817028] usb 1-1.3: New USB device found, idVendor=1b1f, idProduct=c020, bcdDevice= 1.00
[10268.817044] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[10268.817057] usb 1-1.3: Product: eQ-3 HmIP-RFUSB
[10268.817069] usb 1-1.3: Manufacturer: Silicon Labs
[10268.817081] usb 1-1.3: SerialNumber: 3014F711A061A7C00010CECF
[10268.820505] cp210x 1-1.3:1.0: cp210x converter detected
[10268.828717] usb 1-1.3: cp210x converter now attached to ttyUSB0

This does looks like the USB should work fine or?!

To go sure I started java -jar hmip-copro-update.jar -p /dev/ttyUSB0 -v which produced the following output:

[INFO] SGTIN = 3014f711a000041709adfa9d
[INFO] Checking coprocessor firmware version ...
[DEBUG] Start bootloader ...
[DEBUG] Bootloader running
[DEBUG] Request bootloader version ...
[INFO] Bootloader version = 1.0.12
[DEBUG] Start application ...
[DEBUG] Application 'HMIP_TRX_App' running
[DEBUG] Request application version ...
[DEBUG] Request application version ...
[INFO] Application version = 2.8.6

In the building instruction this command with the according output is written as the proof that the USB is working well. - I told you this because maybe you have made different experiences.


After this two circumstantial I was almost sure that the USB works fine and it's a configuration related issue.

So I cloned your repository and executed sudo deploy.sh. This command got stuck at

Starting /etc/init.d/S10udev
S10udev - skipping

Starting /etc/init.d/S11InitRFHardware
Identifying Homematic RF-Hardware: HmIP-RFUSB (1b1f:c020) USB stick is connected -> ensure you do the following on the host:
- modprobe cp210x
- echo 1b1f c020 >/sys/bus/usb-serial/drivers/cp210x/new_id

and I rebooted the Pi with half success.

Now the previous step succeeds, but gets stuck at another one (I cut of the copied files, if you need this let me know) :

sent 5,591,374 bytes  received 6,358 bytes  11,195,464.00 bytes/sec
total size is 5,568,316  speedup is 0.99

Starting CCU services

Starting /etc/init.d/S00InstallAddon

Starting /etc/init.d/S00watchdog
S00watchdog - skipping

Starting /etc/init.d/S01InitHost
S01InitHost - defaults
Checking device
Detected piVCCU kernel module

Starting /etc/init.d/S02InitRTC
S02InitRTC - skipping

Starting /etc/init.d/S03InitURandom
S03InitURandom - skipping

Starting /etc/init.d/S04CheckFactoryReset
Checking for Factory Reset: not required

Starting /etc/init.d/S04CheckResizeLocalFS
S04CheckResizeLocal - skipping

Starting /etc/init.d/S05CheckBackupRestore
Checking for Backup Restore: not required

Starting /etc/init.d/S05avahi-setup.sh

Starting /etc/init.d/S06InitSystem
mkdir: can't create directory '/var/lib/dbus': No such file or directory
chmod: /var/lib/dbus: No such file or directory
Initializing System: OK

Starting /etc/init.d/S07DisableHdmi
/entrypoint.sh: line 21: /etc/init.d/S07DisableHdmi: Permission denied

Starting /etc/init.d/S07logging
Starting logging: OK

Starting /etc/init.d/S10udev
S10udev - skipping

Starting /etc/init.d/S11InitRFHardware
Identifying Homematic RF-Hardware: HmIP-RFUSB (1b1f:c020) USB stick is connected -> ensure you do the following on the host:
- modprobe cp210x
- echo 1b1f c020 >/sys/bus/usb-serial/drivers/cp210x/new_id
Copying from /mnt to /usr/local/
sending incremental file list
etc/config/
etc/config/timezone

sent 8,220 bytes  received 82 bytes  1,509.45 bytes/sec
total size is 5,568,316  speedup is 670.72

Starting CCU services

Starting /etc/init.d/S00InstallAddon

Starting /etc/init.d/S00watchdog
S00watchdog - skipping

Starting /etc/init.d/S01InitHost
S01InitHost - defaults
Checking device
Detected piVCCU kernel module

Starting /etc/init.d/S02InitRTC
S02InitRTC - skipping

Starting /etc/init.d/S03InitURandom
S03InitURandom - skipping

Starting /etc/init.d/S04CheckFactoryReset
Checking for Factory Reset: not required

Starting /etc/init.d/S04CheckResizeLocalFS
S04CheckResizeLocal - skipping

Starting /etc/init.d/S05CheckBackupRestore
Checking for Backup Restore: not required

Starting /etc/init.d/S05avahi-setup.sh

Starting /etc/init.d/S06InitSystem
mkdir: can't create directory '/var/lib/dbus': No such file or directory
chmod: /var/lib/dbus: No such file or directory
Initializing System: OK

Starting /etc/init.d/S07DisableHdmi
/entrypoint.sh: line 21: /etc/init.d/S07DisableHdmi: Permission denied

Starting /etc/init.d/S07logging
Starting logging: OK

Starting /etc/init.d/S10udev
S10udev - skipping

Starting /etc/init.d/S11InitRFHardware
Identifying Homematic RF-Hardware: HmIP-RFUSB (1b1f:c020) USB stick is connected -> ensure you do the following on the host:
- modprobe cp210x
- echo 1b1f c020 >/sys/bus/usb-serial/drivers/cp210x/new_id
BidCos-RF: none, HmIP: HMIP-RFUSB, OK

Starting /etc/init.d/S12UpdateRFHardware
Updating Homematic RF-Hardware: HMIP-RFUSB: 2.8.6, OK

Starting /etc/init.d/S13irqbalance
S13irqbalance - skipping

Starting /etc/init.d/S21rngd
S21rngd - skipping

Starting /etc/init.d/S30dbus
Starting system message bus: done

Starting /etc/init.d/S31bluetooth
S31bluetooth - skipping

Starting /etc/init.d/S40network
S40network - skipping

Starting /etc/init.d/S45ifplugd
S45ifplugd - skipping

Starting /etc/init.d/S48MigrateSecuritySettings
Starting : OK

Starting /etc/init.d/S48ntp
Starting ntpd: OK

Starting /etc/init.d/S49hs485d
Preparing start of hs485d: no Hm-Wired hardware found

Starting /etc/init.d/S49xinetd
Starting xinetd: OK

Starting /etc/init.d/S50eq3configd
Starting eq3configd: OK

Starting /etc/init.d/S50lighttpd
Starting lighttpd: OK

Starting /etc/init.d/S50ssdpd
Starting ssdpd: OK

Starting /etc/init.d/S50sshd
Starting sshd: OK

Starting /etc/init.d/S55InitAddons
Initializing Third-Party Addons: OK

Starting /etc/init.d/S58LGWFirmwareUpdate
Starting LGWFirmwareUpdate: ...OK

Starting /etc/init.d/S59SetLGWKey
Setting LAN Gateway keys: OK

Starting /etc/init.d/S59snmpd

Starting /etc/init.d/S60hs485d
Starting hs485d: no Hm-Wired hardware found

Starting /etc/init.d/S60multimacd
Starting multimacd: .....ERROR

Starting /etc/init.d/S60openvpn

Starting /etc/init.d/S61rfd
Starting rfd:
sh: 296: unknown operand
sh: 296: unknown operand
Waiting for rfd to get ready...rfd is ready now.

Starting /etc/init.d/S62HMServer

This stucks until a timeout is reached I think and this step is skipped, then the following follow:

Starting /etc/init.d/S62HMServer
Starting HMIPServer: (/dev/mmd_hmip) .......................................................................................................................................................ERROR

Starting /etc/init.d/S69UDSServices
Starting eq3-uds-services: OK

Starting /etc/init.d/S70ReGaHss
Starting ReGaHss: .OK

Starting /etc/init.d/S97CloudMatic
Starting CloudMatic: OK

Starting /etc/init.d/S97NeoServer
Version is up to date / or Bigger

Starting /etc/init.d/S98StartAddons
Starting Third-Party Addons: OK

Starting /etc/init.d/S98crond
Starting crond: OK

Starting /etc/init.d/S99SetupLEDs
Setup onboard LEDs: booted, OK
Done starting CCU services

Register trap for SIGTERM
sending incremental file list
etc/config/
etc/config/InterfacesList.xml
etc/config/rfd.conf
etc/config/timezone
etc/config/addons/mh/ids

sent 9,316 bytes  received 139 bytes  18,910.00 bytes/sec
total size is 5,568,316  speedup is 588.93

After a while I can access the WebUi, but get the error information that a component of the Homatic is not responding anymore. This error popup message I receive for HmIP-RF and VirtualDevices.

And the adding new devices button opens a empty window where I just can push the Back or Inbox-Button. The inbox button opens a alert with Homeatic Wireless learning mode could not be activated. In the browser console the following error is displayed:
anlernen-fehler

FYI: The error messages I translated from german to english as good as my english is. I also took some screenshots, if this helps you.

I tried to find some log-information but without success and don't know how to go further.

Thank you a lot in advice!

UPDATE 1
I copied the hmserver.log which holds the following content:

Jan 18 15:18:05 de.eq3.cbcs.vertx.management.VertxManager WARN  [vert.x-eventloop-thread-6] SYSTEM ADVICE: pre-conditions for deployment of LocalServerFirmwareUpdateInitialization still not met - check deployment configuration  (still unfulfilled: [connector.open])
Jan 18 15:18:05 de.eq3.cbcs.vertx.management.VertxManager WARN  [vert.x-eventloop-thread-2] SYSTEM ADVICE: pre-conditions for deployment of LegacyAPIWorker still not met - check deployment configuration  (still unfulfilled: [connector.open])
Jan 18 15:18:05 de.eq3.cbcs.vertx.management.VertxManager WARN  [vert.x-eventloop-thread-7] SYSTEM ADVICE: pre-conditions for deployment of LanRoutingWorker still not met - check deployment configuration  (still unfulfilled: [connector.open])
Jan 18 15:18:05 de.eq3.cbcs.vertx.management.VertxManager WARN  [vert.x-eventloop-thread-0] SYSTEM ADVICE: pre-conditions for deployment of LegacyNotificationHandler still not met - check deployment configuration  (still unfulfilled: [connector.open])
Jan 18 15:18:05 de.eq3.cbcs.vertx.management.VertxManager WARN  [vert.x-eventloop-thread-6] SYSTEM ADVICE: pre-conditions for deployment of LegacyInitializion still not met - check deployment configuration  (still unfulfilled: [legacy.api.worker][connector.open])
Jan 18 15:18:05 de.eq3.cbcs.vertx.management.VertxManager WARN  [vert.x-eventloop-thread-5] SYSTEM ADVICE: pre-conditions for deployment of LegacyBackendNotificationHandler still not met - check deployment configuration  (still unfulfilled: [connector.open])

This log entries happens each 7 seconds.

Update 2:
I took a closer view to this log file and found the following exception:

Jan 18 14:50:28 de.eq3.cbcs.server.local.base.internal.LocalServerAdapterInitialization ERROR [vert.x-eventloop-thread-3] Error 'LOCAL_ADAPTER_NO_SUCH_PORT' while trying to open port '/dev/mmd_hmip':
de.eq3.cbcs.lib.commdevice.CommDeviceException: Exception while trying to open serial port. Check configured port '/dev/mmd_hmip'
        at de.eq3.cbcs.lib.nrjavaserialdevice.SerialCommDevice.open(SerialCommDevice.java:105)
        at de.eq3.cbcs.lib.hmiptrxcommadapter.HomeMaticIPTRXCommAdapter.open(HomeMaticIPTRXCommAdapter.java:726)
        at de.eq3.cbcs.lib.hmiptrxcommadapter.HomeMaticIPTRXCommAdapter.<init>(HomeMaticIPTRXCommAdapter.java:98)
        at de.eq3.cbcs.server.local.base.internal.ShareableHomeMaticIPTRXCommAdapter.<init>(ShareableHomeMaticIPTRXCommAdapter.java:20)
        at de.eq3.cbcs.server.local.base.internal.LocalServerAdapterInitialization.start(LocalServerAdapterInitialization.java:114)
        at io.vertx.core.AbstractVerticle.start(AbstractVerticle.java:111)
        at io.vertx.core.impl.DeploymentManager.lambda$doDeploy$8(DeploymentManager.java:434)
        at io.vertx.core.impl.ContextImpl.lambda$wrapTask$2(ContextImpl.java:337)
        at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403)
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:445)
        at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
        at java.lang.Thread.run(Thread.java:748)
Caused by: gnu.io.NoSuchPortException
        at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:294)
        at de.eq3.cbcs.lib.nrjavaserialdevice.SerialCommDevice.open(SerialCommDevice.java:96)
        ... 12 more

Docker Compose

Hello,

i want to start your container with docker-compose

I have this one https://de.elv.com/elv-homematic-komplettbausatz-funkmodul-fuer-raspberry-pi-hm-mod-rpi-pcb-fuer-smart-home-hausautomation-142141?fs=841525213&c=499 on my RPi3

I made the steps from the deploy.sh by hand.

But no luck

homematic:
image: angelnu/ccu
container_name: homematic
volumes:
- homematic:/mnt
devices:
- /dev/ttyAMA0:/dev_org/ttyAMA0:rwm
- /dev/eq3loop:/dev_org/eq3loop:rwm

Log: https://pastebin.com/WaMMRUe9

I think the eq3 device could be a problem...
(I want to use Homematic IP)

CCU firmware download fails

The URL for the firmware download seems to be wrong, causing the firmware download during setup to fail.

Step 5/23 : RUN export CCU_FW_LINK="http://update.homematic.com/firmware/download?cmd=download&version=${CCU_VERSION}&serial=${CCU_SERIAL}&lang=de&product=HM-CCU${CCU_VERSION%%.*}"     && echo "Downloading from $CCU_FW_LINK "     && wget --no-verbose $CCU_FW_LINK -O -|tar -xzO rootfs.ext4.gz|gunzip>rootfs.ext4
 ---> Running in 7c332aee9f75
Downloading from http://update.homematic.com/firmware/download?cmd=download&version=3.47.22&serial=ccu_docker&lang=de&product=HM-CCU3
http://update.homematic.com/firmware/download?cmd=download&version=3.47.22&serial=ccu_docker&lang=de&product=HM-CCU3:
2020-02-19 08:29:44 ERROR 400: Bad Request.

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

gzip: stdin: unexpected end of file

Install "Zusatzsoftware"

Hi,
thank you for proving raspberrymatic in a docker image. I am just using your pre-built one.
I am wondering whether it is possible to install additional software like Cux Deamon via the GUI?
Currently there seems that simply nothing happens, when an additional software package should be installed. Also the reboot via the homematic GUI does not work.
Any ideas ?

Added support for HM-MOD-RPI-PCB via USB but not working

I've tried this Homematic installation as I wanted to have it inside a container on my raspberry pi4.
I've bought a HM-MOD-RPI-PCB which I connect via USB ( I had a fd232 lying around ).
I've changed the boot up process so that /etc/init.d/S11InitRFHardware correctly initializes the /var/hm_mode to something like (numbers changed)

/ # cat /var/hm_mode
HM_HMIP_ADDRESS='0x0627BF'
HM_HMIP_DEV='HM-MOD-RPI-PCB-USB'
HM_HMIP_DEVNODE='/dev/mmd_hmip'
HM_HMIP_SERIAL='8947CE04FD'
HM_HMIP_SGTIN='1F34E5A39F23958947CE04FD'
HM_HMIP_VERSION='2.8.6'
HM_HMRF_ADDRESS='0x2d32F1'
HM_HMRF_DEV='HM-MOD-RPI-PCB-USB'
HM_HMRF_DEVNODE='/dev/mmd_bidcos'
HM_HMRF_SERIAL='QEQ0123456'
HM_HMRF_VERSION='2.8.6'
HM_HOST='pivvcu'
HM_HOST_GPIO_RESET=''
HM_HOST_GPIO_UART='/dev/ttyUSB0'
HM_LED_GREEN=''
HM_LED_GREEN_MODE1='none'
HM_LED_GREEN_MODE2='none'
HM_LED_RED=''
HM_LED_RED_MODE1='none'
HM_LED_RED_MODE2='none'
HM_LED_YELLOW=''
HM_LED_YELLOW_MODE1='none'
HM_LED_YELLOW_MODE2='none'
HM_MODE='NORMAL'
HM_RTC=''

rfd also looks good to me:

/etc/init.d # /bin/rfd  -f /etc/config/rfd.conf -l 0 -c
2020/07/30 07:20:19.566 <Info> BidCoS-Service started
2020/07/30 07:20:19.567 <Info> XmlRpc Server is listening on TCP port 32001
2020/07/30 07:20:19.569 <Warning> opendir(/etc/config/firmware//) failed
2020/07/30 07:20:19.570 <Debug> CCU2CommController::init() - Improved initialization.
2020/07/30 07:20:19.570  CCU2CommController::SendSystemCommdand()
2020/07/30 07:20:19.570  CCU2CommController::SendSystemCommdand() sending: fd 00 03 00 00 00 18 00 
2020/07/30 07:20:19.571  RX SERIAL: fd 00 0d 00 00 00 43 6f 5f 43 50 55 5f 41 70 70 d8 31 
2020/07/30 07:20:19.572  RX FRAME: 00 00 00 43 6f 5f 43 50 55 5f 41 70 70 
2020/07/30 07:20:19.572 <Debug> () CCU2CommController::handleIdentifyEvent(): Handling incoming identify event.
2020/07/30 07:20:19.574  RX SERIAL: fd 00 0e 00 00 04 02 43 6f 5f 43 50 55 5f 41 70 70 0f 97 
2020/07/30 07:20:19.574  RX FRAME: 00 00 04 02 43 6f 5f 43 50 55 5f 41 70 70 
2020/07/30 07:20:19.575 <Debug> CCU2CommController::improvedInit() - Coprocessor is in application.
2020/07/30 07:20:19.602  RX SERIAL: fd 00 15 01 02 05 00 ff 40 87 86 10 24 01 25 00 00 00 0a 24 e0 0a 00 40 69 e4 
2020/07/30 07:20:19.603  RX FRAME: 01 02 05 00 ff 40 87 86 10 24 01 25 00 00 00 0a 24 e0 0a 00 40 
2020/07/30 07:20:19.825  CCU2CommController::SendSystemCommdand()
2020/07/30 07:20:19.826  CCU2CommController::SendSystemCommdand() sending: fd 00 03 00 01 02 1e 0c 
2020/07/30 07:20:19.826  RX SERIAL: fd 00 0a 00 01 04 02 01 00 03 02 08 06 16 a7 
2020/07/30 07:20:19.828  RX FRAME: 00 01 04 02 01 00 03 02 08 06 
2020/07/30 07:20:19.828 <Info> CCU2CommController::init(): Coprocessor Bootloader Version is: 1.0.3
2020/07/30 07:20:19.828 <Info> CCU2CommController::init(): Coprocessor Firmware Version is: 2.8.6
2020/07/30 07:20:19.828  CCU2CommController::SendSystemCommdand()
2020/07/30 07:20:19.829  CCU2CommController::SendSystemCommdand() sending: fd 00 04 00 02 0a 00 3d 10 
2020/07/30 07:20:19.829  RX SERIAL: fd 00 04 00 02 04 01 19 16 
2020/07/30 07:20:19.830  RX FRAME: 00 02 04 01 
2020/07/30 07:20:19.830 <Info> () CCU2CommController::setCSMACAEnabled(): CSMA/CA disabled.
2020/07/30 07:20:19.831  CCU2CommController::SendSystemCommdand()
2020/07/30 07:20:19.831  CCU2CommController::SendSystemCommdand() sending: fd 00 03 00 03 0b 92 39 
2020/07/30 07:20:19.832  RX SERIAL: fd 00 0e 00 03 04 02 51 45 51 30 34 31 32 36 38 34 0a 1f 
2020/07/30 07:20:19.833  RX FRAME: 00 03 04 02 51 45 51 30 34 31 32 36 38 34 
2020/07/30 07:20:19.834  CCU2CommController::SendSystemCommdand()
2020/07/30 07:20:19.834  CCU2CommController::SendSystemCommdand() sending: fd 00 08 00 04 0e 5f 22 58 93 04 b4 79 
2020/07/30 07:20:19.835  RX SERIAL: fd 00 04 00 04 04 01 19 6e 
2020/07/30 07:20:19.836  RX FRAME: 00 04 04 01 
2020/07/30 07:20:19.837 <Debug> Default interface is now QEQ0123456
2020/07/30 07:20:19.838 <Info> Current AES key=0, previous AES key=0
2020/07/30 07:20:19.838  CCU2BidcosRemoteInterface::SetAesKeyUser(): Trying to change user keys...
2020/07/30 07:20:19.839  RX SERIAL: fd 00 04 01 05 04 01 0d 7a 
2020/07/30 07:20:19.839  RX FRAME: 01 05 04 01 
2020/07/30 07:20:19.840 <Debug> (QEQ0123456) Response status: OK.
2020/07/30 07:20:19.840  (QEQ0123456) CCU2CommController::handleIncomingSerialFrame(): Got an bidcos msg. Response waiting --> Handling as response...
2020/07/30 07:20:19.841  (QEQ0123456) CCU2CommController::handleIncomingSerialFrame(): Response ok
2020/07/30 07:20:19.841  CCU2BidcosRemoteInterface::SetAesKeyUser(): Previous key empty. Skip setting previous key.
2020/07/30 07:20:19.841 <Debug> CCU2BidcosRemoteInterface::StartInterface(): addr=6d 16 03 
2020/07/30 07:20:19.843  RX SERIAL: fd 00 04 01 06 04 01 0d 46 
2020/07/30 07:20:19.843  RX FRAME: 01 06 04 01 
2020/07/30 07:20:19.843 <Debug> (QEQ0123456) Response status: OK.
2020/07/30 07:20:19.844  (QEQ0123456) CCU2CommController::handleIncomingSerialFrame(): Got an bidcos msg. Response waiting --> Handling as response...
2020/07/30 07:20:19.844  (QEQ0123456) CCU2CommController::handleIncomingSerialFrame(): Response ok

The Website comes ok and shows a duty cycle but for whatever reason it does not show a teach-in device page - it only shows 'back' and 'inbox'

Edit: I've directly put in the board into the raspberry pi 4 directly and have the same result - it's recognized and multimacd and rfd run fine, but no teach in on the webpage. So it seems to me it has nothing to do with the fact that I was adding it via usb first.

where should I look to get hints on what's going wrong ?

Docker image does not build on hypriot - lzo missing

Device: RaspberryPi3 + ELV-Radio Module
OS: hypriot 1.4.0 - kernel: 4.4.50
Docker: 17.05.0-ce

Tried it with your prebuildt docker-image including the changes in your readme but the homematic webUI always displaying the failure "BidCos-RF Anlernmodus konnte nicht aktiviert werden".

Log from first run:

Configuring GPIO in port 18

Check if /etc/config/keys exits

Check if /etc/config/ids exits

Starting CCU2 init scripts

Starting /etc/init.d/S00eQ3SystemStart
cat: can't open '/sys/module/plat_eq3ccu2/parameters/board_serial': No such file or directory
/etc/init.d/S00eQ3SystemStart: line 142: can't create /sys/class/leds/power/brightness: nonexistent directory
/etc/init.d/S00eQ3SystemStart: line 142: can't create /sys/class/leds/power/trigger: nonexistent directory
/etc/init.d/S00eQ3SystemStart: line 142: can't create /sys/class/leds/internet/trigger: nonexistent directory
/etc/init.d/S00eQ3SystemStart: line 142: can't create /sys/class/leds/info/trigger: nonexistent directory
/etc/init.d/S00eQ3SystemStart: line 142: can't create /sys/class/leds/info/brightness: nonexistent directory
/etc/init.d/S00eQ3SystemStart: line 142: can't create /sys/class/leds/info/delay_off: nonexistent directory
/etc/init.d/S00eQ3SystemStart: line 142: can't create /sys/class/leds/info/delay_on: nonexistent directory
mkdir: can't create directory '/var/log': File exists
mkdir: can't create directory '/var/tmp': File exists
mkdir: can't create directory '/var/run': File exists
mkdir: can't create directory '/var/spool': File exists
mkdir: can't create directory '/var/lock': File exists
mkdir: can't create directory '/var/cache': File exists
mkdir: can't create directory '/var/lib': File exists
mkdir: can't create directory '/var/lib/misc': File exists
mkdir: can't create directory '/var/empty': File exists
modprobe: chdir(4.4.50-hypriotos-v7+): No such file or directory
modprobe: chdir(4.4.50-hypriotos-v7+): No such file or directory
modprobe: chdir(4.4.50-hypriotos-v7+): No such file or directory
modprobe: chdir(4.4.50-hypriotos-v7+): No such file or directory
modprobe: chdir(4.4.50-hypriotos-v7+): No such file or directory
modprobe: chdir(4.4.50-hypriotos-v7+): No such file or directory
modprobe: chdir(4.4.50-hypriotos-v7+): No such file or directory
modprobe: chdir(4.4.50-hypriotos-v7+): No such file or directory
modprobe: chdir(4.4.50-hypriotos-v7+): No such file or directory
modprobe: chdir(4.4.50-hypriotos-v7+): No such file or directory
LED Code: System start:OK
Starting crond: OK

Starting /etc/init.d/S01logging
Starting logging: OK

Starting /etc/init.d/S10udev
/etc/init.d/S10udev: line 45: can't create /proc/sys/kernel/hotplug: Read-only file system
Populating /dev using udev: done

Starting /etc/init.d/S15watchdog
Starting watchdog...

Starting /etc/init.d/S20urandom
Initializing random number generator... done.

Starting /etc/init.d/S40UsbNetwork
ifconfig: SIOCSIFADDR: Operation not permitted
Starting network over usb: OK

Starting /etc/init.d/S40network
Starting network...
ip: RTNETLINK answers: Operation not permitted
hostname: sethostname: Operation not permitted
route: SIOCADDRT: Operation not permitted
udhcpc (v1.20.2) started
ifconfig: SIOCSIFADDR: Operation not permitted
Sending discover...
Sending discover...
Sending discover...
No lease, failing
killall: checkDHCP: no process killed
eth0 carrier detected
ifconfig: SIOCSIFADDR: Operation not permitted
route: SIOCADDRT: Operation not permitted

Starting /etc/init.d/S45ifplugd
Starting Network Interface Plugging Daemon: eth0.

Starting /etc/init.d/S49hs485d
Preparing start of hs485dOK

Starting /etc/init.d/S50SetClock
clock_settime: Operation not permitted
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.
Starting setclock: OK

Starting /etc/init.d/S50eq3configd
cat: can't open '/sys/module/plat_eq3ccu2/parameters/radio_mac': No such file or directory
cat: can't open '/sys/module/plat_eq3ccu2/parameters/board_serial': No such file or directory
Starting eq3configd: OK

Starting /etc/init.d/S50lighttpd
Starting lighttpd: OK

Starting /etc/init.d/S50sshd

Starting /etc/init.d/S58LGWFirmwareUpdate

Starting /etc/init.d/S59SetLGWKey
ls: /etc/config/*.keychange: No such file or directory
OK

Starting /etc/init.d/S60hs485d
Starting hs485d: OK

Starting /etc/init.d/S60multimacd
Starting multimacd: 
Could not open SPI device: No such file or directory
Could not open SPI device: No such file or directory
sed: /sys/module/plat_eq3ccu2/parameters/radio_mac: No such file or directory
2017/06/04 16:11:17.214 <Error> CCU2CommControllerMod::performIdentify(): Unable to determine coprocessor state.
Could not open SPI device: No such file or directory
checking if firmware update is needed...
error while updating coprocessor, recovering...
Could not open SPI device: No such file or directory
sh: 265: unknown operand
sh: 265: unknown operand
sh: 265: unknown operand
sh: 265: unknown operand
sh: 265: unknown operand
Waiting for multimacd to get ready.....Timeout while waiting for multimacd to get ready.

Starting /etc/init.d/S61rfd
Starting rfd: 
sh: 293: unknown operand
sh: 293: unknown operand
sh: 293: unknown operand
sh: 293: unknown operand
Waiting for rfd to get ready.....rfd is ready now.

cp: can't stat '/etc/config_templates/hmip_networkkey.conf': No such file or directory
Starting /etc/init.d/S62HMServer
Starting HMServer: Waiting for HMServer to get ready
OK

Starting /etc/init.d/S70ReGaHss
Starting ReGaHss: OK

Starting /etc/init.d/S99eQ3SystemStarted
cat: can't open '/sys/module/plat_eq3ccu2/parameters/board_serial': No such file or directory
/etc/init.d/S99eQ3SystemStarted: line 58: can't create /sys/class/leds/power/brightness: nonexistent directory
/etc/init.d/S99eQ3SystemStarted: line 58: can't create /sys/class/leds/power/trigger: nonexistent directory
/etc/init.d/S99eQ3SystemStarted: line 58: can't create /sys/class/leds/internet/trigger: nonexistent directory
/etc/init.d/S99eQ3SystemStarted: line 58: can't create /sys/class/leds/info/trigger: nonexistent directory
insmod: can't insert '/opt/mh/tun.ko': Operation not permitted
System startedOK
Done starting CCU2 init scripts

Register trap for SIGTERM
sending incremental file list
etc/config/
etc/config/netconfig
etc/config/rfd.conf
etc/config/addons/mh/ids
etc/config/eshlight/mapdb/storage.mapdb.t

sent 4976 bytes  received 108 bytes  10168.00 bytes/sec
total size is 1557950  speedup is 306.44
sending incremental file list

sent 2432 bytes  received 29 bytes  4922.00 bytes/sec
total size is 1557950  speedup is 633.06

Docker-Compose File:

version: "3"
services:
  ccu2:
    image: angelnu/ccu2
    hostname: ccu2
    ports:
      - "2001:2001/tcp"
      - "8086:80/tcp"
    environment:
      PERSISTENT_DIR: /mnt
    volumes:
      - /dev:/dev_org
      - /sys:/sys_org
      - /opt/ccu2/data:/mnt
    restart: always

After that i found that your CCU Version is old so i tried it with an git checkout, changing the version in build.sh like you described in the readme and executed build.sh but it failed with following error:

Extract UBI image from tarball

Extract UBI image content
Cloning into 'ubi_reader'...
remote: Counting objects: 567, done.
remote: Compressing objects: 100% (31/31), done.
remote: Total 567 (delta 12), reused 19 (delta 5), pack-reused 531
Receiving objects: 100% (567/567), 205.43 KiB | 146.00 KiB/s, done.
Resolving deltas: 100% (312/312), done.
Checking connectivity... done.
Traceback (most recent call last):
  File "ubi_reader/scripts/ubireader_extract_files", line 29, in <module>
    from ubireader.ubifs import ubifs
  File "/opt/ccu2/src/docker-ccu2/build/ubi_reader/ubireader/ubifs/__init__.py", line 24, in <module>
    from ubireader.ubifs import nodes, display
  File "/opt/ccu2/src/docker-ccu2/build/ubi_reader/ubireader/ubifs/nodes.py", line 20, in <module>
    from ubireader.ubifs.misc import parse_key
  File "/opt/ccu2/src/docker-ccu2/build/ubi_reader/ubireader/ubifs/misc.py", line 19, in <module>
    import lzo
ImportError: No module named lzo

I will try some other things but it would be great if you can lend an eye or so and get me this thing to work like it should.

regards

Don't recognize HW

Hi,
first of all I need to say a docker for ccu2 is a great idea. Many thanks for this.
However any new idea has its challenges and the one I cannot overcome is the following.

When I execute the following:
root@raspberrypi:/# docker run -i -t angelnu/ccu2
The output is:
Checking device
grep: /sys_org/firmware/devicetree/base/model: No such file or directory
grep: /sys_org/firmware/devicetree/base/model: No such file or directory
cat: can't open '^/model': No such file or directory
Do not recognize HW -> Exiting

On my raspberry of course the directory /sys_org does not exist.
So I've created a Symlink but the issue still exist

cat /sys_org/firmware/devicetree/base/model
shows:
Raspberry Pi 3 Model B Rev 1.2

I think it is same as issue #4 and the path for raspberry devices need to be corrected.

BR,
Kurt

Cannot build using Raspbian Lite - Stretch

Hi all,

as I have some problems using the pre-build version of the image (groups are not working properly), I wanted to build the docker image again.
However, after cloning the repo, copying settings.template and running build.sh, I get the following error:
root@smarthome:~/docker-ccu2# ./build.sh
Sending build context to Docker daemon 121.3kB
Step 1/17 : FROM python:alpine as builder
alpine: Pulling from library/python
no matching manifest for unknown in the manifest list entries
root@smarthome:~/docker-ccu2#

I am running on a RPi 3
root@smarthome:~/docker-ccu2# uname -a
Linux smarthome 4.14.58v7-aufs #1 SMP Sat Jul 28 20:40:59 CEST 2018 armv7l GNU/Linux

Has anyone an idea?

BR,
André

Deploy CCU2

Hi,

a deploy of a CCU2 version does not work, for CCU3 the deploy works.

./deploy.sh
Unable to find image 'angelnu/ccu:2' locally
docker: Error response from daemon: manifest for angelnu/ccu:2 not found.

Kernel error after deployment on RPi 4 and Raspbian Buster

Hi @angelnu ,

first: thank you for providing this great docker image and providing regular updates!

Issue
After buying a new Raspberry Pi 4 with 4GB, I checked your image for any updates concerning the virtual devices issue and was happy to see the solution from last December by using the PivCCU Kernel extensions #23 . So I made a fresh Raspbian Lite (Buster) installation on my brand new RPi:

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.19.66-v7l+ #1253 SMP Thu Aug 15 12:02:08 BST 2019 armv7l GNU/Linux

On Raspbian Buster:

pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

and Docker CE 19:

pi@raspberrypi:~ $ sudo docker version
Client: Docker Engine - Community
 Version:           19.03.2
 API version:       1.40
 Go version:        go1.12.8
 Git commit:        6a30dfc
 Built:             Thu Aug 29 06:18:36 2019
 OS/Arch:           linux/arm
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.2
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.8
  Git commit:       6a30dfc
  Built:            Thu Aug 29 06:12:41 2019
  OS/Arch:          linux/arm
  Experimental:     false
 containerd:
  Version:          1.2.6
  GitCommit:        894b81a4b802e4eb2a91d1ce216b8817763c29fb
 runc:
  Version:          1.0.0-rc8
  GitCommit:        425e105d5a03fabd737a126ad93d62a9eeede87f
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

My cmdline.txt and boot.txt

pi@raspberrypi:~/docker-ccu-master $ cat /boot/cmdline.txt
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=17869b7d-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
pi@raspberrypi:~/docker-ccu-master $ cat /boot/config.txt
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=off
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2

[all]
#dtoverlay=vc4-fkms-v3d
start_x=0
gpu_mem=64
dtoverlay=pivccu-raspberrypi

After starting the container:

pi@raspberrypi:~/docker-ccu-master $ sudo ./deploy.sh



Load eq3_char_loop module
Enable realtime
kernel.sched_rt_runtime_us = -1

Starting container as plain docker
docker run --privileged --restart=always --mount type=volume,src=ccu_data,dst=/mnt --detach=true --name ccu -p 80:80 -p 2001:2001 -p 2010:2010 -p 2222:22 -p 8181:8181 -e PERSISTENT_DIR=/mnt --hostname ccu  angelnu/ccu:3
c2f33bb00bd44f300633f646add19bfb56c03d955e9b7bc8461100564d9fa4ee

Docker container started!
Docker data volume used: ccu_data
You can find its location with the command 'docker volume inspect ccu_data'
[
    {
        "CreatedAt": "2019-09-07T21:39:16+02:00",
        "Driver": "local",
        "Labels": null,
        "Mountpoint": "/var/lib/docker/volumes/ccu_data/_data",
        "Name": "ccu_data",
        "Options": null,
        "Scope": "local"
    }
]

And shortly after deploying the docker image, Kernel errors are shown on the console. Thereafter, dmesg shows the following errors:

[   21.432454] docker0: port 1(veth52aafc0) entered forwarding state
[  174.807299] eq3_char_loop: loading out-of-tree module taints kernel.
[  329.488553] docker0: port 2(vethbb7d794) entered blocking state
[  329.488559] docker0: port 2(vethbb7d794) entered disabled state
[  329.488708] device vethbb7d794 entered promiscuous mode
[  329.488921] IPv6: ADDRCONF(NETDEV_UP): vethbb7d794: link is not ready
[  329.551714] IPv6: ADDRCONF(NETDEV_UP): vetha03cc2a: link is not ready
[  329.551736] IPv6: ADDRCONF(NETDEV_CHANGE): vetha03cc2a: link becomes ready
[  329.551830] IPv6: ADDRCONF(NETDEV_CHANGE): vethbb7d794: link becomes ready
[  329.551894] docker0: port 2(vethbb7d794) entered blocking state
[  329.551899] docker0: port 2(vethbb7d794) entered forwarding state
[  330.708862] docker0: port 2(vethbb7d794) entered disabled state
[  330.709776] eth0: renamed from vetha03cc2a
[  330.769172] docker0: port 2(vethbb7d794) entered blocking state
[  330.769182] docker0: port 2(vethbb7d794) entered forwarding state
[  346.815328] eq3loop: eq3loop_open_slave()
[  346.815339] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[  346.815357] pgd = 051bd8fd
[  346.815365] [00000000] *pgd=19f15003, *pmd=f8beb003
[  346.815382] Internal error: Oops: a07 [#1] SMP ARM
[  346.815391] Modules linked in: eq3_char_loop(O) xt_nat xt_tcpudp veth ipt_MASQUERADE nf_conntrack_netlink nft_counter nft_chain_nat_ipv4 nf_nat_ipv4 xt_addrtype nft_compat nf_tables nfnetlink xt_conntrack nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 br_netfilter bridge overlay bnep hci_uart btbcm serdev bluetooth ecdh_generic 8021q garp stp llc sg vc4 v3d drm_kms_helper gpu_sched brcmfmac brcmutil drm sha256_generic snd_bcm2835(C) snd_soc_core snd_compress snd_pcm_dmaengine drm_panel_orientation_quirks snd_pcm snd_timer syscopyarea sysfillrect sysimgblt fb_sys_fops cfg80211 bcm2835_codec(C) snd v4l2_mem2mem rfkill bcm2835_v4l2(C) bcm2835_mmal_vchiq(C) v4l2_common raspberrypi_hwmon videobuf2_vmalloc hwmon videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 videobuf2_common videodev media vc_sm_cma(C)
[  346.815639]  rpivid_mem fixed uio_pdrv_genirq uio ip_tables x_tables ipv6
[  346.815671] CPU: 3 PID: 9275 Comm: rfd Tainted: G         C O      4.19.66-v7l+ #1253
[  346.815682] Hardware name: BCM2835
[  346.815699] PC is at __down_interruptible+0x58/0x120
[  346.815711] LR is at down_interruptible+0x5c/0x68
[  346.815719] pc : [<c099961c>]    lr : [<c0277cd8>]    psr: 600c0093
[  346.815728] sp : cd6b3cf8  ip : c4da2403  fp : cd6b3d34
[  346.815736] r10: 00000000  r9 : d992d108  r8 : cd6b2000
[  346.815744] r7 : c1004d88  r6 : 7fffffff  r5 : d992d108  r4 : d992d108
[  346.815754] r3 : cd6b2000  r2 : 00000000  r1 : cd6b3cfc  r0 : d992d110
[  346.815764] Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  346.815775] Control: 30c5383d  Table: 10cd76c0  DAC: 55555555
[  346.815784] Process rfd (pid: 9275, stack limit = 0x763f779e)
[  346.815793] Stack: (0xcd6b3cf8 to 0xcd6b4000)
[  346.815802] 3ce0:                                                       c03045d0 d992d110
[  346.815814] 3d00: 00000000 d992d108 600c0013 c4da2403 d992d108 d106f9c0 00000894 d992c004
[  346.815826] 3d20: d0f1e030 d992d108 cd6b3d54 cd6b3d38 c0277cd8 c09995d0 cd6b3d8c 600c0013
[  346.815838] 3d40: d992c000 d106f9c0 cd6b3d8c cd6b3d58 bfae63dc c0277c88 c03b3ef0 00000000
[  346.815850] 3d60: 0000000b bfae8000 c1004d88 c11241c4 d992c004 d0f1e030 d106f9c0 00000000
[  346.815862] 3d80: cd6b3dc4 cd6b3d90 c03b4a8c bfae634c 00000002 c4da2403 d0f1e030 d106f9c0
[  346.815874] 3da0: 00000000 d0f1e030 cd6b3f50 d106f9c8 c03b499c 00000000 cd6b3dec cd6b3dc8
[  346.815885] 3dc0: c03ab88c c03b49a8 00000002 00000000 00000000 cd6b3f50 d106f9c0 cd6b3e90
[  346.815897] 3de0: cd6b3dfc cd6b3df0 c03acd68 c03ab65c cd6b3e8c cd6b3e00 c03bf594 c03acd38
[  346.815909] 3e00: c03bab14 c03d3888 cd6b3e68 00000000 c1004d88 c03c04d0 c10054c0 cd6b2000
[  346.815921] 3e20: cdb35110 cdb35110 c1004d88 00000041 c10056d8 00000000 00000000 00000006
[  346.815932] 3e40: 00000002 d0f1e030 dacb1110 cda8d000 cd6b3e7c cd6b3e60 c030430c c4da2403
[  346.815944] 3e60: 000111a5 c1004d88 c1004d88 cd6b3f50 cd6b3e90 00000001 cd6b2000 00000142
[  346.815956] 3e80: cd6b3f44 cd6b3e90 c03c147c c03bf178 dacb1110 cda8d000 5e91806a 0000000a
[  346.815968] 3ea0: dc62e015 006000c0 00000000 cdb35110 d0f1e030 00000101 00000002 00000d32
[  346.815980] 3ec0: 00000000 00000000 00000000 cd6b3ed0 c0424094 c4da2403 1b856382 00000007
[  346.815992] 3ee0: d0d9ae00 d0d9ae18 00000000 00100000 00000002 00000020 cd6b3f34 cd6b3f08
[  346.816003] 3f00: dc62e000 00000000 00000002 00000002 ffffff9c ffffff9c dc62e000 c4da2403
[  346.816015] 3f20: cd6b2000 00000007 c1004d88 ffffff9c dc62e000 c02011c4 cd6b3f94 cd6b3f48
[  346.816027] 3f40: c03ad048 c03c1408 cd6b3f58 c02011c4 00000002 c1000000 00000006 00000100
[  346.816039] 3f60: 00000001 c4da2403 a00d0010 01c27df0 bebcf650 bebcf668 00000142 c02011c4
[  346.816050] 3f80: cd6b2000 00000142 cd6b3fa4 cd6b3f98 c03ad144 c03acf14 00000000 cd6b3fa8
[  346.816062] 3fa0: c0201000 c03ad134 01c27df0 bebcf650 ffffff9c bebcf6b0 00000002 00000000
[  346.816074] 3fc0: 01c27df0 bebcf650 bebcf668 00000142 bebcf698 bebcf6b0 01c27df0 01c27ab0
[  346.816086] 3fe0: b6eb8ec0 bebcf5b8 00075f70 b6eb8f0c 600c0010 ffffff9c 00000000 00000000
[  346.816102] [<c099961c>] (__down_interruptible) from [<c0277cd8>] (down_interruptible+0x5c/0x68)
[  346.816123] [<c0277cd8>] (down_interruptible) from [<bfae63dc>] (eq3loop_open+0x9c/0x1c0 [eq3_char_loop])
[  346.816167] [<bfae63dc>] (eq3loop_open [eq3_char_loop]) from [<c03b4a8c>] (chrdev_open+0xf0/0x1c0)
[  346.816185] [<c03b4a8c>] (chrdev_open) from [<c03ab88c>] (do_dentry_open+0x23c/0x3c0)
[  346.816199] [<c03ab88c>] (do_dentry_open) from [<c03acd68>] (vfs_open+0x3c/0x40)
[  346.816214] [<c03acd68>] (vfs_open) from [<c03bf594>] (path_openat+0x428/0x1024)
[  346.816228] [<c03bf594>] (path_openat) from [<c03c147c>] (do_filp_open+0x80/0xec)
[  346.816241] [<c03c147c>] (do_filp_open) from [<c03ad048>] (do_sys_open+0x140/0x1f0)
[  346.816254] [<c03ad048>] (do_sys_open) from [<c03ad144>] (sys_openat+0x1c/0x20)
[  346.816267] [<c03ad144>] (sys_openat) from [<c0201000>] (ret_fast_syscall+0x0/0x28)
[  346.816277] Exception stack(0xcd6b3fa8 to 0xcd6b3ff0)
[  346.816287] 3fa0:                   01c27df0 bebcf650 ffffff9c bebcf6b0 00000002 00000000
[  346.816299] 3fc0: 01c27df0 bebcf650 bebcf668 00000142 bebcf698 bebcf6b0 01c27df0 01c27ab0
[  346.816310] 3fe0: b6eb8ec0 bebcf5b8 00075f70 b6eb8f0c
[  346.816321] Code: e50bc028 e1a08003 e50b0038 e3e06102 (e5821000)
[  346.816332] ---[ end trace 7e1ed5ecdcb9baad ]---
[  353.850746] eq3loop: eq3loop_open_slave()
[  353.850770] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[  353.850783] pgd = 99917292
[  353.850790] [00000000] *pgd=0e660003, *pmd=fbe15003
[  353.850807] Internal error: Oops: a07 [#2] SMP ARM
[  353.850817] Modules linked in: eq3_char_loop(O) xt_nat xt_tcpudp veth ipt_MASQUERADE nf_conntrack_netlink nft_counter nft_chain_nat_ipv4 nf_nat_ipv4 xt_addrtype nft_compat nf_tables nfnetlink xt_conntrack nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 br_netfilter bridge overlay bnep hci_uart btbcm serdev bluetooth ecdh_generic 8021q garp stp llc sg vc4 v3d drm_kms_helper gpu_sched brcmfmac brcmutil drm sha256_generic snd_bcm2835(C) snd_soc_core snd_compress snd_pcm_dmaengine drm_panel_orientation_quirks snd_pcm snd_timer syscopyarea sysfillrect sysimgblt fb_sys_fops cfg80211 bcm2835_codec(C) snd v4l2_mem2mem rfkill bcm2835_v4l2(C) bcm2835_mmal_vchiq(C) v4l2_common raspberrypi_hwmon videobuf2_vmalloc hwmon videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 videobuf2_common videodev media vc_sm_cma(C)
[  353.851068]  rpivid_mem fixed uio_pdrv_genirq uio ip_tables x_tables ipv6
[  353.851100] CPU: 2 PID: 9327 Comm: java Tainted: G      D  C O      4.19.66-v7l+ #1253
[  353.851111] Hardware name: BCM2835
[  353.851128] PC is at __down_interruptible+0x58/0x120
[  353.851139] LR is at down_interruptible+0x5c/0x68
[  353.851147] pc : [<c099961c>]    lr : [<c0277cd8>]    psr: 60070093
[  353.851156] sp : ce409cf8  ip : c4da2403  fp : ce409d34
[  353.851164] r10: 00000000  r9 : d992c874  r8 : ce408000
[  353.851172] r7 : c1004d88  r6 : 7fffffff  r5 : d992c874  r4 : d992c874
[  353.851181] r3 : ce408000  r2 : 00000000  r1 : ce409cfc  r0 : d992c87c
[  353.851191] Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  353.851202] Control: 30c5383d  Table: 10f65480  DAC: 55555555
[  353.851211] Process java (pid: 9327, stack limit = 0x1a7355f1)
[  353.851220] Stack: (0xce409cf8 to 0xce40a000)
[  353.851228] 9ce0:                                                       c03045d0 d992c87c
[  353.851241] 9d00: 00000000 d992c874 60070013 c4da2403 d992c874 da920300 00000000 d992c004
[  353.851252] 9d20: d0f1a030 d992c874 ce409d54 ce409d38 c0277cd8 c09995d0 ce409d8c 60070013
[  353.851264] 9d40: d992c000 da920300 ce409d8c ce409d58 bfae63dc c0277c88 c03b3ef0 00000000
[  353.851276] 9d60: 0000000b bfae8000 c1004d88 c11241c4 d992c004 d0f1a030 da920300 00000000
[  353.851287] 9d80: ce409dc4 ce409d90 c03b4a8c bfae634c 00000001 c4da2403 d0f1a030 da920300
[  353.851299] 9da0: 00000000 d0f1a030 ce409f50 da920308 c03b499c 00000000 ce409dec ce409dc8
[  353.851311] 9dc0: c03ab88c c03b49a8 00000900 00000000 00000000 ce409f50 da920300 ce409e90
[  353.851322] 9de0: ce409dfc ce409df0 c03acd68 c03ab65c ce409e8c ce409e00 c03bf594 c03acd38
[  353.851334] 9e00: da75b714 da920180 00000000 ce409ec8 ce409ee8 ce409ee0 ce409e54 ce408000
[  353.851346] 9e20: c03aee58 c03ad530 c1004d88 00000041 c10056d8 00000000 00000000 00000004
[  353.851357] 9e40: 00000002 d0f1a030 dacb1110 cf67aaa0 c03aefa0 bf9aaee4 ce409eb4 c4da2403
[  353.851369] 9e60: bf9aaee4 c1004d88 c1004d88 ce409f50 ce409e90 00000001 ce408000 00000142
[  353.851380] 9e80: ce409f44 ce409e90 c03c147c c03bf178 dacb1110 cf67aaa0 e1e9c3a2 00000008
[  353.851392] 9ea0: dba35015 006000c0 00000000 cdb35110 d0f1a030 00000101 00000002 00000d42
[  353.851404] 9ec0: 00000000 00000000 00000000 ce409ed0 c0291720 c4da2403 00000000 0000002d
[  353.851415] 9ee0: db314500 d0e16080 00000000 00100000 00000900 00000100 ce409f34 ce409f08
[  353.851427] 9f00: dba35000 00000000 00000900 00000002 ffffff9c ffffff9c dba35000 c4da2403
[  353.851439] 9f20: ce408000 0000002d c1004d88 ffffff9c dba35000 c02011c4 ce409f94 ce409f48
[  353.851450] 9f40: c03ad048 c03c1408 ce408010 c02011c4 00000900 c0200000 00000004 00000100
[  353.851462] 9f60: 00000001 c4da2403 c0201068 a9df47e8 00000000 b3013150 00000142 c02011c4
[  353.851474] 9f80: ce408000 00000142 ce409fa4 ce409f98 c03ad144 c03acf14 00000000 ce409fa8
[  353.851485] 9fa0: c0201000 c03ad134 a9df47e8 00000000 ffffff9c a9df47e8 00000900 00000000
[  353.851497] 9fc0: a9df47e8 00000000 b3013150 00000142 a7aac130 00000004 a7aac000 a6e2dde8
[  353.851508] 9fe0: 00000000 a6e2dcb0 00000000 b6f1ff68 80070010 ffffff9c 00000000 00000000
[  353.851525] [<c099961c>] (__down_interruptible) from [<c0277cd8>] (down_interruptible+0x5c/0x68)
[  353.851546] [<c0277cd8>] (down_interruptible) from [<bfae63dc>] (eq3loop_open+0x9c/0x1c0 [eq3_char_loop])
[  353.851565] [<bfae63dc>] (eq3loop_open [eq3_char_loop]) from [<c03b4a8c>] (chrdev_open+0xf0/0x1c0)
[  353.851583] [<c03b4a8c>] (chrdev_open) from [<c03ab88c>] (do_dentry_open+0x23c/0x3c0)
[  353.851597] [<c03ab88c>] (do_dentry_open) from [<c03acd68>] (vfs_open+0x3c/0x40)
[  353.851610] [<c03acd68>] (vfs_open) from [<c03bf594>] (path_openat+0x428/0x1024)
[  353.851624] [<c03bf594>] (path_openat) from [<c03c147c>] (do_filp_open+0x80/0xec)
[  353.851637] [<c03c147c>] (do_filp_open) from [<c03ad048>] (do_sys_open+0x140/0x1f0)
[  353.851649] [<c03ad048>] (do_sys_open) from [<c03ad144>] (sys_openat+0x1c/0x20)
[  353.851663] [<c03ad144>] (sys_openat) from [<c0201000>] (ret_fast_syscall+0x0/0x28)
[  353.851673] Exception stack(0xce409fa8 to 0xce409ff0)
[  353.851682] 9fa0:                   a9df47e8 00000000 ffffff9c a9df47e8 00000900 00000000
[  353.851694] 9fc0: a9df47e8 00000000 b3013150 00000142 a7aac130 00000004 a7aac000 a6e2dde8
[  353.851705] 9fe0: 00000000 a6e2dcb0 00000000 b6f1ff68
[  353.851715] Code: e50bc028 e1a08003 e50b0038 e3e06102 (e5821000)
[  353.851726] ---[ end trace 7e1ed5ecdcb9baae ]---

This Kernel errors are raised during the start of the HM Server (Starting /etc/init.d/S62HMServer,). Thereafter, the start continues:

Copying from /mnt to /usr/local/,
sending incremental file list,�,
/,
boot_par/.gitkeep,
,
sent 123 bytes  received 39 bytes  324.00 bytes/sec,
total size is 0  speedup is 0.00,
,
Starting CCU services,
,
Starting /etc/init.d/S00InstallAddon,
,
Starting /etc/init.d/S00watchdog,
S00watchdog - skipping,
,
Starting /etc/init.d/S01InitHost,
S01InitHost - defaults,
Checking device,
Detected Raspberry PI,
,
Starting /etc/init.d/S02InitRTC,
S02InitRTC - skipping,
,
Starting /etc/init.d/S03InitURandom,
S03InitURandom - skipping,
,
Starting /etc/init.d/S04CheckFactoryReset,
Checking for Factory Reset: not required,
,
Starting /etc/init.d/S04CheckResizeLocalFS,
S04CheckResizeLocal - skipping,
,
Starting /etc/init.d/S05CheckBackupRestore,
Checking for Backup Restore: not required,
,
Starting /etc/init.d/S05avahi-setup.sh,
,
Starting /etc/init.d/S06InitSystem,
mkdir: can't create directory '/var/lib/dbus': No such file or directory,
chmod: /var/lib/dbus: No such file or directory,
Initializing System: OK,
,
Starting /etc/init.d/S07DisableHdmi,
/entrypoint.sh: line 21: /etc/init.d/S07DisableHdmi: Permission denied,
,
Starting /etc/init.d/S07logging,
Starting logging: OK,
,
Starting /etc/init.d/S10udev,
S10udev - skipping,
,
Starting /etc/init.d/S11InitRFHardware,
Identifying Homematic RF-Hardware: BidCos-RF: RPI-RF-MOD, HmIP: RPI-RF-MOD, OK,
,
Starting /etc/init.d/S12UpdateRFHardware,
Updating Homematic RF-Hardware: RPI-RF-MOD: =>4.0.16, ERROR ( != 4.0.16),
,
Starting /etc/init.d/S13irqbalance,
S13irqbalance - skipping,
,
Starting /etc/init.d/S21rngd,
S21rngd - skipping,
,
Starting /etc/init.d/S30dbus,
Starting system message bus: done,
,
Starting /etc/init.d/S31bluetooth,
S31bluetooth - skipping,
,
Starting /etc/init.d/S40network,
S40network - skipping,
,
Starting /etc/init.d/S45ifplugd,
S45ifplugd - skipping,
,
Starting /etc/init.d/S48MigrateSecuritySettings,
Starting : OK,
,
Starting /etc/init.d/S48ntp,
Starting ntpd: OK,
,
Starting /etc/init.d/S49hs485d,
Preparing start of hs485d: no Hm-Wired hardware found,
,
Starting /etc/init.d/S49xinetd,
Starting xinetd: OK,
,
Starting /etc/init.d/S50eq3configd,
Starting eq3configd: OK,
,
Starting /etc/init.d/S50lighttpd,
Starting lighttpd: creating new SSL cert... OK,
,
Starting /etc/init.d/S50ssdpd,
Starting ssdpd: OK,
,
Starting /etc/init.d/S50sshd,
,
Starting /etc/init.d/S55InitAddons,
Initializing Third-Party Addons: OK,
,
Starting /etc/init.d/S58LGWFirmwareUpdate,
Starting LGWFirmwareUpdate: ...OK,
,
Starting /etc/init.d/S59SetLGWKey,
Setting LAN Gateway keys: OK,
,
Starting /etc/init.d/S59snmpd,
cat: can't open '/etc/config/snmp/snmpd.conf': No such file or directory,
,
Starting /etc/init.d/S60hs485d,
Starting hs485d: no Hm-Wired hardware found,
,
Starting /etc/init.d/S60multimacd,
Starting multimacd: SKIPPING (missing HM_HOST_GPIO_UART),
,
Starting /etc/init.d/S60openvpn,
,
Starting /etc/init.d/S61rfd,
Starting rfd: ,
Waiting for rfd to get ready.rfd is ready now.,
,
Starting /etc/init.d/S62HMServer,
Starting HMIPServer: (/dev/mmd_hmip) .......................................................................................................................................................ERROR,
,
Starting /etc/init.d/S69UDSServices,
Starting eq3-uds-services: OK,
,
Starting /etc/init.d/S70ReGaHss,
Starting ReGaHss: .OK,
,
Starting /etc/init.d/S97CloudMatic,
Starting CloudMatic: OK,
,
Starting /etc/init.d/S97NeoServer,
Starting NeoServer: OK,
,
Starting /etc/init.d/S98StartAddons,
Starting Third-Party Addons: OK,
,
Starting /etc/init.d/S98crond,
Starting crond: OK,
,
Starting /etc/init.d/S99SetupLEDs,
Setup onboard LEDs: booted, OK,
ne starting CCU services,
,
Register trap for SIGTERM,
sending incremental file list,
addons/,
addons/mediola/,
addons/mediola/Disabled,
addons/mediola/README.md,
addons/mediola/VERSION,
addons/mediola/mediola_addon.cfg,
addons/mediola/update_addon,
addons/mediola/bin/,
addons/mediola/bin/watchdog,
addons/mediola/neo_server/,
addons/mediola/neo_server/automation.js,
addons/mediola/neo_server/package-lock.json,
addons/mediola/neo_server/package.json,
addons/mediola/neo_server/licenses/,
addons/mediola/neo_server/licenses/files/,
addons/mediola/neo_server/licenses/files/adm-zip.txt,
addons/mediola/neo_server/licenses/files/brace-expansion.txt,
addons/mediola/neo_server/licenses/files/cookie-signature.txt,
addons/mediola/neo_server/licenses/files/cron.txt,
addons/mediola/neo_server/licenses/files/debug.txt,
addons/mediola/neo_server/licenses/files/isarray.txt,
addons/mediola/neo_server/licenses/files/nwjs.txt,
addons/mediola/neo_server/licenses/files/options.txt,
addons/mediola/neo_server/licenses/files/winreg.txt,
addons/mediola/neo_server/licenses/files/ws.txt,
addons/mediola/neo_server/node_modules/,
addons/mediola/neo_server/node_modules/m.aio.activationcodemgmt.js,
addons/mediola/neo_server/node_modules/m.aio.automation.js,
addons/mediola/neo_server/node_modules/m.aio.backupmanager.js,
addons/mediola/neo_server/node_modules/m.aio.commandhandler.js,
addons/mediola/neo_server/node_modules/m.aio.configmanager.js,
addons/mediola/neo_server/node_modules/m.aio.devicemanager.js,
addons/mediola/neo_server/node_modules/m.aio.filemanager.js,
addons/mediola/neo_server/node_modules/m.aio.importmanager.js,
addons/mediola/neo_server/node_modules/m.aio.infomanager.js,
addons/mediola/neo_server/node_modules/m.aio.macromanager.js,
addons/mediola/neo_server/node_modules/m.aio.modulemanager.js,
addons/mediola/neo_server/node_modules/m.aio.skinmanager.js,
addons/mediola/neo_server/node_modules/m.aio.syncmanager.js,
addons/mediola/neo_server/node_modules/m.aio.templatemanager.js,
addons/mediola/neo_server/node_modules/m.aio.voicemanager.js,
addons/mediola/neo_server/node_modules/runner.js,
addons/mediola/neo_server/node_modules/runner2.js,
addons/mediola/neo_server/node_modules/script_executor.js,
addons/mediola/neo_server/node_modules/websocket.js,
addons/mediola/neo_server/node_modules/x.aws.js,
addons/mediola/neo_server/node_modules/x.core.js,
addons/mediola/neo_server/node_modules/x.crypt.js,
addons/mediola/neo_server/node_modules/x.events.js,
addons/mediola/neo_server/node_modules/x.hub.camman.js,
addons/mediola/neo_server/node_modules/x.hub.commandman.js,
addons/mediola/neo_server/node_modules/x.hub.datastore.js,
addons/mediola/neo_server/node_modules/x.hub.deviceman.js,
addons/mediola/neo_server/node_modules/x.hub.eventbus.js,
addons/mediola/neo_server/node_modules/x.hub.fileman.js,
addons/mediola/neo_server/node_modules/x.hub.hubsyncman.js,
addons/mediola/neo_server/node_modules/x.hub.js,
addons/mediola/neo_server/node_modules/x.hub.logman.js,
addons/mediola/neo_server/node_modules/x.hub.m.cams.js,
addons/mediola/neo_server/node_modules/x.hub.m.enocean.js,
addons/mediola/neo_server/node_modules/x.hub.m.gateway.js,
addons/mediola/neo_server/node_modules/x.hub.m.harmony.js,
addons/mediola/neo_server/node_modules/x.hub.m.hm.js,
addons/mediola/neo_server/node_modules/x.hub.m.hue.js,
addons/mediola/neo_server/node_modules/x.hub.m.knx.js,
addons/mediola/neo_server/node_modules/x.hub.m.netatmo.js,
addons/mediola/neo_server/node_modules/x.hub.m.proxy.js,
addons/mediola/neo_server/node_modules/x.hub.m.siegenia.js,
addons/mediola/neo_server/node_modules/x.hub.m.template.js,
addons/mediola/neo_server/node_modules/x.hub.m.zigbee.js,
addons/mediola/neo_server/node_modules/x.hub.m.zwave.js,
addons/mediola/neo_server/node_modules/x.hub.m.zway.js,
addons/mediola/neo_server/node_modules/x.hub.macroman.js,
addons/mediola/neo_server/node_modules/x.hub.moduleman.js,
addons/mediola/neo_server/node_modules/x.hub.peripheralman.js,
addons/mediola/neo_server/node_modules/x.hub.recordman.js,
addons/mediola/neo_server/node_modules/x.hub.scriptman.js,
addons/mediola/neo_server/node_modules/x.hub.sysvarman.js,
addons/mediola/neo_server/node_modules/x.hub.taskman.js,
addons/mediola/neo_server/node_modules/x.hub.v5.js,
addons/mediola/neo_server/node_modules/x.logger.js,
addons/mediola/neo_server/node_modules/x.mdns.js,
addons/mediola/neo_server/node_modules/x.mjpeg.js,
addons/mediola/neo_server/node_modules/x.nodeext.js,
addons/mediola/neo_server/node_modules/x.upnp.js,
addons/mediola/neo_server/node_modules/x.xmlrpc.js,
addons/mediola/neo_server/node_modules/xnm.aio.artnet.js,
addons/mediola/neo_server/node_modules/xnm.aio.bose.js,
addons/mediola/neo_server/node_modules/xnm.aio.brennenstuhl.js,
addons/mediola/neo_server/node_modules/xnm.aio.cams.js,
addons/mediola/neo_server/node_modules/xnm.aio.cloud.js,
addons/mediola/neo_server/node_modules/xnm.aio.commandhandler.js,
addons/mediola/neo_server/node_modules/xnm.aio.contronics.js,
addons/mediola/neo_server/node_modules/xnm.aio.denon.js,
addons/mediola/neo_server/node_modules/xnm.aio.devicegroup.js,
addons/mediola/neo_server/node_modules/xnm.aio.digitalstrom.js,
addons/mediola/neo_server/node_modules/xnm.aio.dlink.js,
addons/mediola/neo_server/node_modules/xnm.aio.edimax.js,
addons/mediola/neo_server/node_modules/xnm.aio.ez.js,
addons/mediola/neo_server/node_modules/xnm.aio.feller.js,
addons/mediola/neo_server/node_modules/xnm.aio.fibaro.js,
addons/mediola/neo_server/node_modules/xnm.aio.fritz.js,
addons/mediola/neo_server/node_modules/xnm.aio.gateway.js,
addons/mediola/neo_server/node_modules/xnm.aio.harmony.js,
addons/mediola/neo_server/node_modules/xnm.aio.hautau.js,
addons/mediola/neo_server/node_modules/xnm.aio.hcgw.js,
addons/mediola/neo_server/node_modules/xnm.aio.heos.js,
addons/mediola/neo_server/node_modules/xnm.aio.hm.js,
addons/mediola/neo_server/node_modules/xnm.aio.homewizard.js,
addons/mediola/neo_server/node_modules/xnm.aio.hue.js,
addons/mediola/neo_server/node_modules/xnm.aio.icomfort.js,
addons/mediola/neo_server/node_modules/xnm.aio.iobroker.js,
addons/mediola/neo_server/node_modules/xnm.aio.ip.js,
addons/mediola/neo_server/node_modules/xnm.aio.ir.js,
addons/mediola/neo_server/node_modules/xnm.aio.jointspace.js,
addons/mediola/neo_server/node_modules/xnm.aio.knx.js,
addons/mediola/neo_server/node_modules/xnm.aio.kt.js,
addons/mediola/neo_server/node_modules/xnm.aio.lg.js,
addons/mediola/neo_server/node_modules/xnm.aio.m10T.js,
addons/mediola/neo_server/node_modules/xnm.aio.max.js,
addons/mediola/neo_server/node_modules/xnm.aio.mcontrol.js,
addons/mediola/neo_server/node_modules/xnm.aio.moehlenhoff.js,
addons/mediola/neo_server/node_modules/xnm.aio.mystrom.js,
addons/mediola/neo_server/node_modules/xnm.aio.neoserver.js,
addons/mediola/neo_server/node_modules/xnm.aio.netatmo.js,
addons/mediola/neo_server/node_modules/xnm.aio.nuki.js,
addons/mediola/neo_server/node_modules/xnm.aio.onkyo.js,
addons/mediola/neo_server/node_modules/xnm.aio.orvibo.js,
addons/mediola/neo_server/node_modules/xnm.aio.osram.js,
addons/mediola/neo_server/node_modules/xnm.aio.panasonic.js,
addons/mediola/neo_server/node_modules/xnm.aio.philips.js,
addons/mediola/neo_server/node_modules/xnm.aio.pioneer.js,
addons/mediola/neo_server/node_modules/xnm.aio.push.js,
addons/mediola/neo_server/node_modules/xnm.aio.qivicon.js,
addons/mediola/neo_server/node_modules/xnm.aio.rademacher.js,
addons/mediola/neo_server/node_modules/xnm.aio.raumfeld.js,
addons/mediola/neo_server/node_modules/xnm.aio.rehau.js,
addons/mediola/neo_server/node_modules/xnm.aio.rgb.js,
addons/mediola/neo_server/node_modules/xnm.aio.rwe.js,
addons/mediola/neo_server/node_modules/xnm.aio.samsung.js,
addons/mediola/neo_server/node_modules/xnm.aio.siegenia.js,
addons/mediola/neo_server/node_modules/xnm.aio.slim.js,
addons/mediola/neo_server/node_modules/xnm.aio.sonos.js,
addons/mediola/neo_server/node_modules/xnm.aio.sony.js,
addons/mediola/neo_server/node_modules/xnm.aio.symcon.js,
addons/mediola/neo_server/node_modules/xnm.aio.synology.js,
addons/mediola/neo_server/node_modules/xnm.aio.systemdata.js,
addons/mediola/neo_server/node_modules/xnm.aio.tado.js,
addons/mediola/neo_server/node_modules/xnm.aio.tahoma.js,
addons/mediola/neo_server/node_modules/xnm.aio.tplink.js,
addons/mediola/neo_server/node_modules/xnm.aio.upnp.js,
addons/mediola/neo_server/node_modules/xnm.aio.warema.js,
addons/mediola/neo_server/node_modules/xnm.aio.webhook.js,
addons/mediola/neo_server/node_modules/xnm.aio.webpage.js,
addons/mediola/neo_server/node_modules/xnm.aio.wemo.js,
addons/mediola/neo_server/node_modules/xnm.aio.yamaha.js,
addons/mediola/neo_server/node_modules/xnm.aio.yellowstone.js,
addons/mediola/neo_server/node_modules/.bin/,
addons/mediola/neo_server/node_modules/.bin/mime,
addons/mediola/neo_server/node_modules/.bin/uuid,
addons/mediola/neo_server/node_modules/async-limiter/,
addons/mediola/neo_server/node_modules/async-limiter/.travis.yml,
addons/mediola/neo_server/node_modules/async-limiter/LICENSE,
addons/mediola/neo_server/node_modules/async-limiter/index.js,
addons/mediola/neo_server/node_modules/async-limiter/package.json,
addons/mediola/neo_server/node_modules/async-limiter/readme.md,
addons/mediola/neo_server/node_modules/async-limiter/coverage/,
addons/mediola/neo_server/node_modules/async-limiter/coverage/coverage.json,
addons/mediola/neo_server/node_modules/async-limiter/coverage/lcov.info,
addons/mediola/neo_server/node_modules/async-limiter/coverage/lcov-report/,
addons/mediola/neo_server/node_modules/async-limiter/coverage/lcov-report/base.css,
addons/mediola/neo_server/node_modules/async-limiter/coverage/lcov-report/prettify.css,
addons/mediola/neo_server/node_modules/async-limiter/coverage/lcov-report/prettify.js,
addons/mediola/neo_server/node_modules/async-limiter/coverage/lcov-report/sort-arrow-sprite.png,
addons/mediola/neo_server/node_modules/async-limiter/coverage/lcov-report/sorter.js,
addons/mediola/neo_server/node_modules/async-limiter/coverage/lcov-report/async-throttle/,
addons/mediola/neo_server/node_modules/async-limiter/coverage/lcov-report/async-throttle/index.js.html,
addons/mediola/neo_server/node_modules/buffer-alloc-unsafe/,
addons/mediola/neo_server/node_modules/buffer-alloc-unsafe/index.js,
addons/mediola/neo_server/node_modules/buffer-alloc-unsafe/package.json,
addons/mediola/neo_server/node_modules/buffer-alloc-unsafe/readme.md,
addons/mediola/neo_server/node_modules/buffer-alloc/,
addons/mediola/neo_server/node_modules/buffer-alloc/index.js,
addons/mediola/neo_server/node_modules/buffer-alloc/package.json,
addons/mediola/neo_server/node_modules/buffer-alloc/readme.md,
addons/mediola/neo_server/node_modules/buffer-fill/,
addons/mediola/neo_server/node_modules/buffer-fill/index.js,
addons/mediola/neo_server/node_modules/buffer-fill/package.json,
addons/mediola/neo_server/node_modules/buffer-fill/readme.md,
addons/mediola/neo_server/node_modules/events/,
addons/mediola/neo_server/node_modules/events/.npmignore,
addons/mediola/neo_server/node_modules/events/.travis.yml,
addons/mediola/neo_server/node_modules/events/.zuul.yml,
addons/mediola/neo_server/node_modules/events/History.md,
addons/mediola/neo_server/node_modules/events/LICENSE,
addons/mediola/neo_server/node_modules/events/Readme.md,
addons/mediola/neo_server/node_modules/events/events.js,
addons/mediola/neo_server/node_modules/events/package.json,
addons/mediola/neo_server/node_modules/events/tests/,
addons/mediola/neo_server/node_modules/events/tests/add-listeners.js,
addons/mediola/neo_server/node_modules/events/tests/check-listener-leaks.js,
addons/mediola/neo_server/node_modules/events/tests/common.js,
addons/mediola/neo_server/node_modules/events/tests/index.js,
addons/mediola/neo_server/node_modules/events/tests/legacy-compat.js,
addons/mediola/neo_server/node_modules/events/tests/listener-count.js,
addons/mediola/neo_server/node_modules/events/tests/listeners-side-effects.js,
addons/mediola/neo_server/node_modules/events/tests/listeners.js,
addons/mediola/neo_server/node_modules/events/tests/max-listeners.js,
addons/mediola/neo_server/node_modules/events/tests/modify-in-emit.js,
addons/mediola/neo_server/node_modules/events/tests/num-args.js,
addons/mediola/neo_server/node_modules/events/tests/once.js,
addons/mediola/neo_server/node_modules/events/tests/remove-all-listeners.js,
addons/mediola/neo_server/node_modules/events/tests/remove-listeners.js,
addons/mediola/neo_server/node_modules/events/tests/set-max-listeners-side-effects.js,
addons/mediola/neo_server/node_modules/events/tests/subclass.js,
addons/mediola/neo_server/node_modules/fs-constants/,
addons/mediola/neo_server/node_modules/fs-constants/LICENSE,
addons/mediola/neo_server/node_modules/fs-constants/README.md,
addons/mediola/neo_server/node_modules/fs-constants/browser.js,
addons/mediola/neo_server/node_modules/fs-constants/index.js,
addons/mediola/neo_server/node_modules/fs-constants/package.json,
addons/mediola/neo_server/node_modules/loop-protect/,
addons/mediola/neo_server/node_modules/loop-protect/.editorconfig,
addons/mediola/neo_server/node_modules/loop-protect/.npmignore,
addons/mediola/neo_server/node_modules/loop-protect/LICENSE.md,
addons/mediola/neo_server/node_modules/loop-protect/README.md,
addons/mediola/neo_server/node_modules/loop-protect/loop-protect.js,
addons/mediola/neo_server/node_modules/loop-protect/loop-protect.test.js,
addons/mediola/neo_server/node_modules/loop-protect/package.json,
addons/mediola/rc.d/,
addons/mediola/rc.d/97NeoServer,�,
/,
crontabs/root,
etc/,
etc/config/,
etc/config/InterfacesList.xml,
etc/config/TZ,
etc/config/crypttool.cfg,
etc/config/hm_addons.cfg,
etc/config/hmip_address.conf,
etc/config/ids,
etc/config/localtime -> /usr/share/zoneinfo/Europe/Berlin,
etc/config/log4j.xml,
etc/config/netconfig,
etc/config/ntpclient,
etc/config/rfd.conf,
etc/config/securitySettingsMigrated,
etc/config/server.pem,
etc/config/shadow,
etc/config/syslog,
etc/config/timezone,
etc/config/addons/,
etc/config/addons/mediola/,
etc/config/addons/mh/,
etc/config/addons/mh/addcron.sh,
etc/config/addons/mh/autoupdate,
etc/config/addons/mh/autoupdatean,
etc/config/addons/mh/autoupdatean.sh,
etc/config/addons/mh/autoupdateaus,
etc/config/addons/mh/autoupdateaus.sh,
etc/config/addons/mh/baddns,
etc/config/addons/mh/badip,
etc/config/addons/mh/ca.crt,
etc/config/addons/mh/checkcon.sh,
etc/config/addons/mh/checkdns,
etc/config/addons/mh/checkip,
etc/config/addons/mh/cleanup.sh,
etc/config/addons/mh/client.conf,
etc/config/addons/mh/cloudmaticcheck.sh,
etc/config/addons/mh/csmsg.sh,
etc/config/addons/mh/dienst,
etc/config/addons/mh/dienstan,
etc/config/addons/mh/dienstan.sh,
etc/config/addons/mh/dienstanngx.sh,
etc/config/addons/mh/dienstanzbx.sh,
etc/config/addons/mh/dienstaus,
etc/config/addons/mh/dienstaus.sh,
etc/config/addons/mh/dienstausngx.sh,
etc/config/addons/mh/dienstauszbx.sh,
etc/config/addons/mh/dienstngx,
etc/config/addons/mh/dienstzbx,
etc/config/addons/mh/dotest.sh,
etc/config/addons/mh/dotest2.sh,
etc/config/addons/mh/doupdatecm.sh,
etc/config/addons/mh/doupdatemh.sh,
etc/config/addons/mh/encodesms,
etc/config/addons/mh/fastcgi.conf,
etc/config/addons/mh/fastcgi.conf.default,
etc/config/addons/mh/fastcgi_params,
etc/config/addons/mh/fastcgi_params.default,
etc/config/addons/mh/ids,
etc/config/addons/mh/keytransfer,
etc/config/addons/mh/keytransferan,
etc/config/addons/mh/keytransferaus,
etc/config/addons/mh/koi-utf,
etc/config/addons/mh/koi-win,
etc/config/addons/mh/loop.sh,
etc/config/addons/mh/loophammer.sh,
etc/config/addons/mh/loopupd.sh,
etc/config/addons/mh/mhca.crt,
etc/config/addons/mh/mhcfg,
etc/config/addons/mh/mhmkey,
etc/config/addons/mh/mime.types,
etc/config/addons/mh/mime.types.default,
etc/config/addons/mh/newver,
etc/config/addons/mh/nginx,
etc/config/addons/mh/nginx.conf,
etc/config/addons/mh/nginx.conf.default,
etc/config/addons/mh/oldver,
etc/config/addons/mh/result.txt,
etc/config/addons/mh/result2.txt,
etc/config/addons/mh/scgi_params,
etc/config/addons/mh/scgi_params.default,
etc/config/addons/mh/smsguthaben,
etc/config/addons/mh/startopenvpn,
etc/config/addons/mh/trans.sh,
etc/config/addons/mh/upd1503,
etc/config/addons/mh/update.sh,
etc/config/addons/mh/uwsgi_params,
etc/config/addons/mh/uwsgi_params.default,
etc/config/addons/mh/win-utf,
etc/config/addons/mh/zabbix.conf,
etc/config/addons/mh/zabbix_agentd,
etc/config/addons/mh/html/,
etc/config/addons/mh/html/50x.html,
etc/config/addons/mh/html/cmsmarthome.png,
etc/config/addons/mh/html/index.html,
etc/config/addons/mh/scripts/,
etc/config/addons/mh/scripts/getdpintbyid.tcl,
etc/config/addons/mh/scripts/getdpvalue.tcl,
etc/config/addons/mh/scripts/getdpvaluebyid.tcl,
etc/config/addons/www/,
etc/config/addons/www/mediola -> /opt/mediola/www,
etc/config/addons/www/mh -> /opt/mh/www,
etc/config/crRFD/,
etc/config/crRFD/data/,
etc/config/hs485d/,
etc/config/rc.d/,
etc/config/rc.d/97NeoServer,
etc/config/rfd/,
etc/config/snmp/,
etc/config/snmp/snmpd-user.conf,
etc/config/snmp/snmpd.conf,
etc/config/snmp/snmptrapd-user.conf,
etc/config/userprofiles/,
etc/ssh/,
tmp/,
,
sent 5,523,009 bytes  received 6,032 bytes  11,058,082.00 bytes/sec,
total size is 5,501,198  speedup is 0.99,

If try thereafter to open the CCU website, I´m getting a 404 error:
image

After this, I tried to restart the container. However, this completly crashes the RPi and I have to powercycle the RPi to get it restarted. And even then, the container will not start but crash my RPi.

My first thought was about the pivCCU Kernel extensions. But based on this post of the pivCCU developer, it is compatible with the Raspberry Pi 4.

Do you have any idea?

HMIP-USB not working: no GPIO/USB connected RF-hardware found

Hello,

I am trying desperately to make this work on a RPI4 system with OMV5 on it.

So far I managed to get the TTYUSB0 device attached to the docker like this:
Host dev:
crw-rw---- 1 root dialout 188, 0 Aug 29 20:47 ttyUSB0

Container dev:
crw-rw---- 1 root 20 188, 0 Aug 29 21:32 ttyUSB0

However the startup log file always tells me no RF device has been found:

Starting /etc/init.d/S11InitRFHardware
Identifying Homematic RF-Hardware: HmIP-RFUSB (1b1f:c020) USB stick is connected -> ensure you do the following on the host:

  • modprobe cp210x
  • echo 1b1f c020 >/sys/bus/usb-serial/drivers/cp210x/new_id
    BidCos-RF: none, HmIP: none, OK

Starting /etc/init.d/S12UpdateRFHardware
Updating Homematic RF-Hardware: no GPIO/USB connected RF-hardware found

What could be the issue? Anything I tried from other similar reported errors doesn´t help.
I tried starting the container from the portainer ui as well as from by direct docker command:
docker run --device /dev/ttyUSB0 --name CCU angelnu/ccu:latest

Log:

Starting CCU services

Starting /etc/init.d/S00InstallAddon

Starting /etc/init.d/S00watchdog
S00watchdog - skipping

Starting /etc/init.d/S01InitHost
S01InitHost - defaults
Checking device
PiVCCU kernel module is not installed and did not recognize HW Hardware : BCM2711
-> Homematic PCB adapter will not work!!!

Starting /etc/init.d/S02InitRTC
S02InitRTC - skipping

Starting /etc/init.d/S03InitURandom
S03InitURandom - skipping

Starting /etc/init.d/S04CheckFactoryReset
Checking for Factory Reset: not required

Starting /etc/init.d/S04CheckResizeLocalFS
S04CheckResizeLocal - skipping

Starting /etc/init.d/S05CheckBackupRestore
Checking for Backup Restore: not required

Starting /etc/init.d/S05avahi-setup.sh

Starting /etc/init.d/S06InitSystem
Initializing System: mkdir: can't create directory '/var/lib/dbus': No such file or directory
chmod: /var/lib/dbus: No such file or directory
OK

Starting /etc/init.d/S07DisableHdmi
/entrypoint.sh: line 21: /etc/init.d/S07DisableHdmi: Permission denied

Starting /etc/init.d/S07logging
Starting logging: OK

Starting /etc/init.d/S10udev
S10udev - skipping

Starting /etc/init.d/S11InitRFHardware
Identifying Homematic RF-Hardware: HmIP-RFUSB (1b1f:c020) USB stick is connected -> ensure you do the following on the host:

  • modprobe cp210x
  • echo 1b1f c020 >/sys/bus/usb-serial/drivers/cp210x/new_id
    BidCos-RF: none, HmIP: none, OK

Starting /etc/init.d/S12UpdateRFHardware
Updating Homematic RF-Hardware: no GPIO/USB connected RF-hardware found

Starting /etc/init.d/S13irqbalance
S13irqbalance - skipping

Starting /etc/init.d/S21rngd
S21rngd - skipping

Starting /etc/init.d/S30dbus
Starting system message bus: done

Starting /etc/init.d/S31bluetooth
S31bluetooth - skipping

Starting /etc/init.d/S40network
S40network - skipping

Starting /etc/init.d/S45ifplugd
S45ifplugd - skipping

Starting /etc/init.d/S48MigrateSecuritySettings
Starting : OK

Starting /etc/init.d/S48ntp
Starting ntpd: OK

Starting /etc/init.d/S49hs485d
Preparing start of hs485d: no Hm-Wired hardware found

Starting /etc/init.d/S49xinetd
Starting xinetd: OK

Starting /etc/init.d/S50eq3configd
Starting eq3configd: OK

Starting /etc/init.d/S50lighttpd
Starting lighttpd: creating new SSL cert... OK

Starting /etc/init.d/S50ssdpd
Starting ssdpd: OK

Starting /etc/init.d/S50sshd

Starting /etc/init.d/S55InitAddons
Initializing Third-Party Addons: OK

Starting /etc/init.d/S58LGWFirmwareUpdate
Starting LGWFirmwareUpdate: ...OK

Starting /etc/init.d/S59SetLGWKey
Setting LAN Gateway keys: OK

Starting /etc/init.d/S59snmpd
cat: can't open '/etc/config/snmp/snmpd.conf': No such file or directory

Starting /etc/init.d/S60hs485d
Starting hs485d: no Hm-Wired hardware found

Starting /etc/init.d/S60multimacd
Starting multimacd: SKIPPING (missing HM_HOST_GPIO_UART)

Starting /etc/init.d/S60openvpn

Starting /etc/init.d/S61rfd
Starting rfd: ........................................ERROR

Starting /etc/init.d/S62HMServer
Starting HMIPServer: (no HMIP dev) ....OK

Starting /etc/init.d/S69UDSServices
Starting eq3-uds-services: OK

Starting /etc/init.d/S70ReGaHss
Starting ReGaHss: .OK

Starting /etc/init.d/S97CloudMatic
Starting CloudMatic: OK

Starting /etc/init.d/S97NeoServer
Starting NeoServer: OK

Starting /etc/init.d/S98StartAddons
Starting Third-Party Addons: OK

Starting /etc/init.d/S98crond
Starting crond: OK

Starting /etc/init.d/S99SetupLEDs
Setup onboard LEDs: booted, OK
Done starting CCU services

Register trap for SIGTERM

/proc/device-tree/model not found on docker 1.13.1

I updated my docker daemon to version 1.13.1 today and since then i cannot start the ccu2-image anymore, because the file /proc/device-tree/model does not exist in the container.

When i try to start the container, i get the following error(s):

Checking device
grep: /proc/device-tree/model: No such file or directory
grep: /proc/device-tree/model: No such file or directory
cat: can't open '/proc/device-tree/model': No such file or directory
Do not recognize HW  -> Exiting
Checking device
grep: /proc/device-tree/model: No such file or directory
grep: /proc/device-tree/model: No such file or directory
cat: can't open '/proc/device-tree/model': No such file or directory
Do not recognize HW  -> Exiting
Checking device
grep: /proc/device-tree/model: No such file or directory
grep: /proc/device-tree/model: No such file or directory
cat: can't open '/proc/device-tree/model': No such file or directory
Do not recognize HW  -> Exiting
Checking device
grep: /proc/device-tree/model: No such file or directory
grep: /proc/device-tree/model: No such file or directory
cat: can't open '/proc/device-tree/model': No such file or directory
Do not recognize HW  -> Exiting

I changed entrypoint.sh by removing the if-else-block for hardware detection at the top and then the container starts.

I am not sure if it has to do with docker 1.13.1 or my setup. Does anybody else has a problem with docker version 1.13.1?

cp: cannot stat 'enableCCUDevices.sh': No such file or directory

Hi there,

when build.sh reaches line 129 to copy the "enableCCUDevices.sh" file, it is still in the build subdirectory.
Visible when adding something like pwd && ls one line before:

Start ccu2 service
/home/pi/docker-ccu2/build
ccu2-2.29.23.tgz docker_build rootfs-2.29.23.ubi ubi ubi-2.29.23.tgz ubi_reader
cp: cannot stat 'enableCCUDevices.sh': No such file or directory

Had to add a cd .. prior that command. Just wanted to let you know ...

Broken w/ 3.55.5 during patching.

Hi All,

The patches during "build.sh" don't seem to work anymore with version 3.55.5:

Step 17/23 : RUN cd extracted/ && cat /additions/patches/*.patch|patch -p1 ---> Running in 0e767fe4fd60 patching file etc/init.d/S06InitSystem patching file etc/init.d/S11InitRFHardware patching file etc/init.d/S12UpdateRFHardware Hunk #1 FAILED at 89. 1 out of 1 hunk FAILED -- saving rejects to file etc/init.d/S12UpdateRFHardware.rej

Best regards,

empor-co

rfd does not run stable in prebuilt image

I see, we are discussing two things in one thread. Therefore I opened a new issue for the prebuilt image one, okay ? History can be seen at #7.

I used your latest prebuilt image and your run command:
docker run --name ccu2 -d --restart=always -p 8080:80 -p 2001:2001 -e PERSISTENT_DIR=/mnt -v /dev:/dev_org -v /sys:/sys_org -v ccu2_data:/mnt --hostname ccu2 angelnu/ccu2

the volumes sys_org and dev_org are available inside the container. But the rfd does not run stable.
I am using a raspberry pi 3 with the latest docker version.

Is the image really running in your environment ? in my eyes you should not mount the sys volume as /sys_org but as /sys, because access to GPIO port 18 does not work (read-only filesystem).
Curious about your comment.

Container not reachable after hard power off, Raspi 3B+

Hi!

Many thx for providing the CCU3 as Docker image!

I successfully used deploy.sh to start the container using this "settings" file, I only changed the REGA_PORT to avoid a conflict with an existing nginx installation.

grafik

This setup worked fine until I tried to import a RaspberryMatic backup. The container consumed all CPU and RAM ressources of my Raspi 3 B+ and didn't finish for one hour+. I decided to turn off power.

Now the container isn't reachable any more by port 85 (nor any other).

I already tried undeploy.sh/deploy.sh and manually removed (hopefully) all remaining docker remains, but withot success. The container starts, but isn't reachable.

ccu

question about the homematic radio module

Hi,
I just cloned the docker-ccu master branch, called build.sh and deploy.sh on a raspberry 3b
Then I imports the settings from my ols instaltion (also on a raspberry).
After that i can see my devices and programms on the web interface :)

Then I shutdown and installes the homematic radio module (which I used before at the old raspberry) andd booted again.

After logging in to the web interface I get the Message:

Eine Komponente der Homematic Zentrale reagiert nicht mehr.
And no device is responding to any action.

The /dev/ttyS0 is present, the cmdline.txt looks like:
dwc_otg.lpm_enable=0 console=tty1 root=PARTUUID=5f14d53a-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles usbhid.mousepoll=0

and dtoverlay ist set to:
root@dashboard:/boot# grep dtov config.txt dtoverlay=pivccu-raspberrypi dtoverlay=pi3-miniuart-bt

Any hint what is going wrong? Is there someting like a homatic log file which can help? In the syslog i calt find a hint about the problem.
May I have to use the ccu2 branch instead of master?

Thx and regards Jörg

Documentation: Docker Hub

There is no documentation how to use the container from docker hub, or how to link the usb device to docker. There is many text in the readme, but nothing helpfull at all. I just want to use your great work.

Homematic docker on QNAP

Hi
I am wondering whether it would bee possible to make the homematic docker image working on QNAP ARM based or Intel based?

Thanks

Docker on Synology x86 refuses to launch

I get this error when I try to run the container on a celeron-based Synology NAS:

standard_init_linux.go:189: exec user process caused "exec format error"

Any suggestions?

Virtual Devices "Eine Komponente der HomeMatic Zentrale reagiert nicht mehr."

Hi,
I think this issues lasts for some versions now, at least in my installation.
I know about the "Hm-IP" problem, which is not supported. But what about the Virtual Devices ?
I found out that /etc/init.d/S62HMServer during startup fails.
looking into hmserver.log I found issues like:
de.eq3.cbcs.server.local.base.internal.LocalServerAdapterInitialization ERROR [vert.x-eventloop-thread-7] Error 'LOCAL_ADAPTER_NO_SUCH_PORT' while trying to open port '/dev/ttyS0' and
Exception while trying to open serial port. Check configured port '/dev/ttyS0'

I started my docker container with
docker run --name ccu2 -d --restart=always -p 80:80 -p2000:2000 -p 2001:2001 -p 2002:2002 -p 8181:80 -e PERSISTENT_DIR=/mnt -v /dev:/dev_org -v /sys:/sys_org -v ccu2_data:/mnt --device=/dev/ttyAMA0:/dev_org/ttyAMA0:rwm --device=/dev/ttyS0:/dev_org/ttyS0:rwm --hostname ccu2

Any thoughts about this ? Thanks in advance.

Latest version 3.43.16 not pushed to docker hub?

When I execute sudo ./pull.sh I receive the error Error response from daemon: manifest for angelnu/ccu:3.43.16 not found. Seems like the latest image with the tag has not been pushed to the docker hub?

Reverse Proxy

I have this docker image running on a RPi and the web GUI is so far on port 80.

What changes are needed to run it behind a reverse proxy?

E.g. I have a nginx reverse proxy running and could proxy e.g. as:

  location /ccu/ {
    proxy_pass  http://ccu/;
    include     common_location.conf;
  }

and this would be like https://[fqdn]/ccu

trying to build newest version 3.49.17

When I try to build the newest version I always get "connection refused" at downloading:

Step 5/23 : RUN export CCU_FW_LINK="http://update.homematic.com/firmware/download?cmd=download&version=${CCU_VERSION}&serial=${CCU_SERIAL}&lang=de&product=HM-CCU${CCU_VERSION%%.*}" && echo "Downloading from $CCU_FW_LINK " && wget --no-verbose $CCU_FW_LINK -O -|tar -xzO rootfs.ext4.gz|gunzip>rootfs.ext4
---> Running in 54da381ae811
Downloading from http://update.homematic.com/firmware/download?cmd=download&version=3.49.17&serial=ccu_docker&lang=de&product=HM-CCU3
failed: Connection refused.

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

gzip: stdin: unexpected end of file
The command '/bin/sh -c export CCU_FW_LINK="http://update.homematic.com/firmware/download?cmd=download&version=${CCU_VERSION}&serial=${CCU_SERIAL}&lang=de&product=HM-CCU${CCU_VERSION%%.*}" && echo "Downloading from $CCU_FW_LINK " && wget --no-verbose $CCU_FW_LINK -O -|tar -xzO rootfs.ext4.gz|gunzip>rootfs.ext4' returned a non-zero code: 1

What do I wrong here

How to troubleshoot "BidCos-RF : Eine Komponente der Homematic Zentrale reagiert nicht mehr."?

Acknowledgement:
First, I would like to thank Angelnu for this great repository! Binning the CCU2 into a docker container is one of the best and most flexible solutions for systems that should run multiple services in parallel.

Issue:
I think I got it almost running, but there is a piece missing. I can log into the web GUI fine, but after one minute several pop up messages appear from which this one is probably the most severe one: "BidCos-RF : Eine Komponente der Homematic Zentrale reagiert nicht mehr." Others had this issue as well, but all solutions I tried, did not help in my case: The BidCos-RF seems not to initialize properly with the HM-MOD-RPI-PCB (see log of rfd -l 0 -c at the far end of this post).

Below you find my log files and the things I checked. The HM-MOD-RPI-PCB is working fine with another Raspberry Pi based installation on PIVCCU. The module seems also to respond to firmware queries from inside the container.

My question is, how can I diagnose the issue further to resolve this issue?

bildschirmfoto 2018-12-21 09 22 43

Logs and Data:
I installed a fresh Raspbian Stretch on a Raspberry 2 B V1.1, disabled the serial console but enabled the serial port. Then installed docker and created the docker container with ./build.sh and ./deploy.sh.

The following commands are executed on the host raspberry pi system:

uname -a shows:

Linux raspi4home 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux

cat /etc/os-release shows:

PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian

docker version shows:

Client:
 Version:           18.09.0
 API version:       1.39
 Go version:        go1.10.4
 Git commit:        4d60db4
 Built:             Wed Nov  7 00:57:26 2018
 OS/Arch:           linux/arm
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          18.09.0
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.10.4
  Git commit:       4d60db4
  Built:            Wed Nov  7 00:17:57 2018
  OS/Arch:          linux/arm
  Experimental:     false

cat /boot/cmdline.txt shows:

dwc_otg.lpm_enable=0 console=tty1 root=PARTUUID=b96a4d1a-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

cat /boot/config.txt shows:

# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on
enable_uart=1

sudo ./deploy.sh shows:

Starting container as plain docker
docker run --device=/dev/ttyAMA0:/dev_org/ttyAMA0:rwm -d --restart=always -v /sys:/sys_org -v /dev:/dev_org -v /home/pi/dockerdata/ccu2_data:/mnt --name ccu2 -p 80:80 -p 2001:2001 -p 8181:8181 -e PERSISTENT_DIR=/mnt --hostname ccu2  angelnu/ccu2:latest
83b6c4f42697c56f7096a28534c82cdec9fe351cad1dbdb909122443a11331a0

Docker container started!
Docker data volume used: /home/pi/dockerdata/ccu2_data

docker logs -f ccu2 shows:

Detected Raspberry
Copying from /mnt to /usr/local/
sending incremental file list
crontabs/
crontabs/crontabs -> /usr/local/crontabs
crontabs/root
etc/
etc/ssh_host_dsa_key
etc/ssh_host_dsa_key.pub
etc/ssh_host_ecdsa_key
etc/ssh_host_ecdsa_key.pub
etc/ssh_host_key
etc/ssh_host_key.pub
etc/ssh_host_rsa_key
etc/ssh_host_rsa_key.pub
etc/config/
etc/config/InterfacesList.xml
etc/config/TZ
etc/config/crypttool.cfg
etc/config/firmware -> /firmware/
etc/config/hm_addons.cfg
etc/config/hmip_address.conf
etc/config/homematic.regadom
etc/config/homematic.regadom.bak
etc/config/ids
etc/config/keys
etc/config/log4j.xml
etc/config/multimacd.conf
etc/config/netconfig
etc/config/ntpclient
etc/config/rfd.conf
etc/config/shadow
etc/config/syslog
etc/config/userAckSecurityHint
etc/config/addons/
etc/config/addons/mh/
etc/config/addons/mh/addcron.sh
etc/config/addons/mh/autoupdate
etc/config/addons/mh/autoupdatean
etc/config/addons/mh/autoupdatean.sh
etc/config/addons/mh/autoupdateaus
etc/config/addons/mh/autoupdateaus.sh
etc/config/addons/mh/baddns
etc/config/addons/mh/badip
etc/config/addons/mh/ca.crt
etc/config/addons/mh/checkcon.sh
etc/config/addons/mh/checkdns
etc/config/addons/mh/checkip
etc/config/addons/mh/cleanup.sh
etc/config/addons/mh/client.conf
etc/config/addons/mh/cloudmaticcheck.sh
etc/config/addons/mh/csmsg.sh
etc/config/addons/mh/dienst
etc/config/addons/mh/dienstan
etc/config/addons/mh/dienstan.sh
etc/config/addons/mh/dienstanngx.sh
etc/config/addons/mh/dienstanzbx.sh
etc/config/addons/mh/dienstaus
etc/config/addons/mh/dienstaus.sh
etc/config/addons/mh/dienstausngx.sh
etc/config/addons/mh/dienstauszbx.sh
etc/config/addons/mh/dienstngx
etc/config/addons/mh/dienstzbx
etc/config/addons/mh/dotest.sh
etc/config/addons/mh/dotest2.sh
etc/config/addons/mh/doupdatecm.sh
etc/config/addons/mh/doupdatemh.sh
etc/config/addons/mh/encodesms
etc/config/addons/mh/fastcgi.conf
etc/config/addons/mh/fastcgi.conf.default
etc/config/addons/mh/fastcgi_params
etc/config/addons/mh/fastcgi_params.default
etc/config/addons/mh/ids
etc/config/addons/mh/keytransfer
etc/config/addons/mh/keytransferan
etc/config/addons/mh/keytransferaus
etc/config/addons/mh/koi-utf
etc/config/addons/mh/koi-win
etc/config/addons/mh/loop.sh
etc/config/addons/mh/loophammer.sh
etc/config/addons/mh/loopupd.sh
etc/config/addons/mh/mhca.crt
etc/config/addons/mh/mhcfg
etc/config/addons/mh/mhmkey
etc/config/addons/mh/mime.types
etc/config/addons/mh/mime.types.default
etc/config/addons/mh/newver
etc/config/addons/mh/nginx
etc/config/addons/mh/nginx.conf
etc/config/addons/mh/nginx.conf.default
etc/config/addons/mh/nginx.pi
etc/config/addons/mh/oldver
etc/config/addons/mh/result.txt
etc/config/addons/mh/result2.txt
etc/config/addons/mh/scgi_params
etc/config/addons/mh/scgi_params.default
etc/config/addons/mh/smsguthaben
etc/config/addons/mh/startopenvpn
etc/config/addons/mh/trans.sh
etc/config/addons/mh/upd1503
etc/config/addons/mh/update.sh
etc/config/addons/mh/uwsgi_params
etc/config/addons/mh/uwsgi_params.default
etc/config/addons/mh/win-utf
etc/config/addons/mh/zabbix.conf
etc/config/addons/mh/zabbix_agentd
etc/config/addons/mh/html/
etc/config/addons/mh/html/50x.html
etc/config/addons/mh/html/cmsmarthome.png
etc/config/addons/mh/html/index.html
etc/config/addons/mh/scripts/
etc/config/addons/mh/scripts/getdpintbyid.tcl
etc/config/addons/mh/scripts/getdpvalue.tcl
etc/config/addons/mh/scripts/getdpvaluebyid.tcl
etc/config/addons/www/
etc/config/addons/www/mh -> /opt/mh/www
etc/config/crRFD/
etc/config/crRFD/data/
etc/config/hs485d/
etc/config/rc.d/
etc/config/rfd/
etc/config/userprofiles/

sent 1993029 bytes  received 2015 bytes  3990088.00 bytes/sec
total size is 1985961  speedup is 1.00
Configuring GPIO in port 18

Check if /etc/config/keys exits

Check if /etc/config/ids exits

Starting CCU2 init scripts

Starting /etc/init.d/S00eQ3SystemStart
cat: can't open '/sys/module/plat_eq3ccu2/parameters/board_serial': No such file or directory
/etc/init.d/S00eQ3SystemStart: line 159: can't create /sys/class/leds/power/brightness: nonexistent directory
/etc/init.d/S00eQ3SystemStart: line 159: can't create /sys/class/leds/power/trigger: nonexistent directory
/etc/init.d/S00eQ3SystemStart: line 159: can't create /sys/class/leds/internet/trigger: nonexistent directory
/etc/init.d/S00eQ3SystemStart: line 159: can't create /sys/class/leds/info/trigger: nonexistent directory
/etc/init.d/S00eQ3SystemStart: line 159: can't create /sys/class/leds/info/brightness: nonexistent directory
/etc/init.d/S00eQ3SystemStart: line 159: can't create /sys/class/leds/info/delay_off: nonexistent directory
/etc/init.d/S00eQ3SystemStart: line 159: can't create /sys/class/leds/info/delay_on: nonexistent directory
mkdir: can't create directory '/var/log': File exists
mkdir: can't create directory '/var/tmp': File exists
mkdir: can't create directory '/var/run': File exists
mkdir: can't create directory '/var/spool': File exists
mkdir: can't create directory '/var/lock': File exists
mkdir: can't create directory '/var/cache': File exists
mkdir: can't create directory '/var/lib': File exists
mkdir: can't create directory '/var/lib/misc': File exists
mkdir: can't create directory '/var/empty': File exists
modprobe: chdir(4.14.79-v7+): No such file or directory
modprobe: chdir(4.14.79-v7+): No such file or directory
modprobe: chdir(4.14.79-v7+): No such file or directory
modprobe: chdir(4.14.79-v7+): No such file or directory
modprobe: chdir(4.14.79-v7+): No such file or directory
modprobe: chdir(4.14.79-v7+): No such file or directory
modprobe: chdir(4.14.79-v7+): No such file or directory
modprobe: chdir(4.14.79-v7+): No such file or directory
modprobe: chdir(4.14.79-v7+): No such file or directory
modprobe: chdir(4.14.79-v7+): No such file or directory
LED Code: System start: OK
Init Firewall: Starting crond: OK

Starting /etc/init.d/S01logging
Starting logging: OK

Starting /etc/init.d/S07logging
Starting logging: OK

Starting /etc/init.d/S10udev
/etc/init.d/S10udev: line 45: can't create /proc/sys/kernel/hotplug: Read-only file system
Populating /dev using udev: done

Starting /etc/init.d/S15watchdog
Starting watchdog...

Starting /etc/init.d/S20urandom
Initializing random number generator... done.

Starting /etc/init.d/S40UsbNetwork
ifconfig: SIOCSIFADDR: Operation not permitted
Starting network over usb: OK

Starting /etc/init.d/S40network
Starting network...
ip: RTNETLINK answers: Operation not permitted
sysctl: error setting key 'net.ipv4.tcp_timestamps': Read-only file system
hostname: sethostname: Operation not permitted
route: SIOCADDRT: Operation not permitted
udhcpc (v1.20.2) started
ifconfig: SIOCSIFADDR: Operation not permitted
Sending discover...
Sending discover...
Sending discover...
No lease, failing
killall: checkDHCP: no process killed
eth0 carrier detected
ifconfig: SIOCSIFADDR: Operation not permitted
route: SIOCADDRT: Operation not permitted

Starting /etc/init.d/S45ifplugd
Starting Network Interface Plugging Daemon: eth0.

Starting /etc/init.d/S49hs485d
Preparing start of hs485dOK

Starting /etc/init.d/S50SetClock
clock_settime: Operation not permitted
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.
Starting setclock: OK

Starting /etc/init.d/S50eq3configd
cat: can't open '/sys/module/plat_eq3ccu2/parameters/radio_mac': No such file or directory
cat: can't open '/sys/module/plat_eq3ccu2/parameters/board_serial': No such file or directory
Starting eq3configd: OK

Starting /etc/init.d/S50lighttpd
Starting lighttpd: OK

Starting /etc/init.d/S50sshd

Starting /etc/init.d/S58LGWFirmwareUpdate

Starting /etc/init.d/S59SetLGWKey
ls: /etc/config/*.keychange: No such file or directory
OK

Starting /etc/init.d/S60hs485d
Starting hs485d: OK

Starting /etc/init.d/S60multimacd
Starting multimacd: 
Could not open SPI device: No such file or directory
Could not open SPI device: No such file or directory
sed: /sys/module/plat_eq3ccu2/parameters/radio_mac: No such file or directory
2018/12/21 08:58:40.027 <Error> CCU2CommControllerMod::performIdentify(): Unable to determine coprocessor state.
Could not open SPI device: No such file or directory
checking if firmware update is needed...
error while updating coprocessor, recovering...
Could not open SPI device: No such file or directory
sh: 279: unknown operand
sh: 279: unknown operand
sh: 279: unknown operand
sh: 279: unknown operand
sh: 279: unknown operand
Waiting for multimacd to get ready.....Timeout while waiting for multimacd to get ready.

Starting /etc/init.d/S61rfd
Starting rfd: 
sh: 311: unknown operand
sh: 311: unknown operand
sh: 311: unknown operand
sh: 311: unknown operand
sh: 311: unknown operand
Waiting for rfd to get ready......rfd is ready now.

Starting /etc/init.d/S62HMServer
cp: can't stat '/etc/config_templates/hmip_networkkey.conf': No such file or directory
Starting HMServer: Waiting for HMServer to get ready
Init Hardware Info
OK

Starting /etc/init.d/S70ReGaHss
Starting ReGaHss: OK

Starting /etc/init.d/S99eQ3SystemStarted
cat: can't open '/sys/module/plat_eq3ccu2/parameters/board_serial': No such file or directory
/etc/init.d/S99eQ3SystemStarted: line 58: can't create /sys/class/leds/power/brightness: nonexistent directory
/etc/init.d/S99eQ3SystemStarted: line 58: can't create /sys/class/leds/power/trigger: nonexistent directory
/etc/init.d/S99eQ3SystemStarted: line 58: can't create /sys/class/leds/internet/trigger: nonexistent directory
/etc/init.d/S99eQ3SystemStarted: line 58: can't create /sys/class/leds/info/trigger: nonexistent directory
insmod: can't insert '/opt/mh/tun.ko': Operation not permitted
System startedOK
Done starting CCU2 init scripts

Register trap for SIGTERM
sending incremental file list
etc/config/
etc/config/netconfig
etc/config/rfd.conf
etc/config/addons/mh/ids

sent 3558 bytes  received 86 bytes  7288.00 bytes/sec
total size is 1985961  speedup is 544.99

cat rfd.conf shows:

# TCP Port for XmlRpc connections
Listen Port = 2001

Log Destination = Syslog
Log Identifier = rfd
Log Level = 1

Persist Keys = 1

# PID File = /var/rfd.pid
# UDS File = /var/socket_rfd

Device Description Dir = /firmware/rftypes
Device Files Dir = /etc/config/rfd
Key File = /etc/config/keys
Address File = /etc/config/ids
Firmware Dir = /firmware
Replacemap File = /firmware/rftypes/replaceMap/rfReplaceMap.xml
Fire NACK Error Events = true
#Improved Coprocessor Initialization = true

[Interface 0]
Type = CCU2
ComPortFile = /dev/mmd_bidcos
 AccessFile = /dev/null
 ResetFile = /dev/ccu2-ic200

The following commands were executed inside the docker container, which was entered by the command: docker exec -it ccu2 /bin/sh.

Retrieving the serial number from the HM-MOD-RPI-PCB by the command eq3configcmd update-coprocessor -p /dev/mmd_bidcos -c -se -d /firmware shows (inside container execution):

2018/12/21 08:04:19.203 <Info> SerialNumber: OEQ0308206

Retrieving the firmware version from the HM-MOD-RPI-PCB by the command eq3configcmd update-coprocessor -p /dev/mmd_bidcos -c -v -d /firmware shows (inside container execution):

2018/12/21 08:04:19.203 <Info> SerialNumber: OEQ0308206

Triggering the firmware update for the HM-MOD-RPI-PCB by the command eq3configcmd update-coprocessor -p /dev/mmd_bidcos -c -u -d /firmware shows (inside container execution):

2018/12/21 08:06:00.046 <Info> Version: 2.8.6

2018/12/21 08:06:00.047 <Info> No update necessary

rfd -l 0 -c shows:

Config file is /etc/config/rfd.conf
2018/12/21 08:08:52.543 <Info> BidCoS-Service started
2018/12/21 08:08:52.546 <Info> XmlRpc Server is listening on TCP port 2001
2018/12/21 08:08:52.553 <Debug> CCU2CommController::init() - Legacy initialization.
2018/12/21 08:08:57.555 <Debug> () CCU2CommController::startCoprocessorApp(): Trying to start coprocessor application
2018/12/21 08:08:58.056  CCU2CommController::startCoprocessorAppThreadFunction(): Send start command
2018/12/21 08:08:58.056  CCU2CommController::SendSystemCommdand()
2018/12/21 08:08:58.058  CCU2CommController::SendSystemCommdand() sending: fd 00 03 00 00 03 18 0a 
2018/12/21 08:08:58.061  RX SERIAL: fd 00 02 ff 00 02 00 
2018/12/21 08:08:58.061  RX FRAME: ff 00 
2018/12/21 08:08:58.061  CCU2CoprocessorCommand::CCU2CoprocessorCommand(): Message too small: 2 bytes.
2018/12/21 08:08:58.062 <Debug> () CCU2CommController::handleIncomingSerialFrame(): Command not parseable.
2018/12/21 08:08:59.059 <Debug> () CCU2CommController::waitForCoProcessorResponse(): Timeout while waiting for response.

2018/12/21 08:09:01.059  CCU2CommController::startCoprocessorAppThreadFunction(): Retrying to send start command
2018/12/21 08:09:01.059  CCU2CommController::startCoprocessorAppThreadFunction(): Send start command
2018/12/21 08:09:01.060  CCU2CommController::SendSystemCommdand()
2018/12/21 08:09:01.060  CCU2CommController::SendSystemCommdand() sending: fd 00 03 00 01 03 9e 09 
2018/12/21 08:09:01.063  RX SERIAL: fd 00 02 ff 01 82 05 
2018/12/21 08:09:01.063  RX FRAME: ff 01 
2018/12/21 08:09:01.063  CCU2CoprocessorCommand::CCU2CoprocessorCommand(): Message too small: 2 bytes.
2018/12/21 08:09:01.064 <Debug> () CCU2CommController::handleIncomingSerialFrame(): Command not parseable.
2018/12/21 08:09:02.061 <Debug> () CCU2CommController::waitForCoProcessorResponse(): Timeout while waiting for response.

2018/12/21 08:09:02.557 <Fatal error> CCU2CommController::init(): Init failed. Cannot start coprocessor application.
2018/12/21 08:09:02.557  CCU2CommController::SendSystemCommdand()
2018/12/21 08:09:02.557  CCU2CommController::SendSystemCommdand() sending: fd 00 04 00 02 0a 00 3d 10 
2018/12/21 08:09:02.560  RX SERIAL: fd 00 02 ff 02 82 0f 
2018/12/21 08:09:02.561  RX FRAME: ff 02 
2018/12/21 08:09:02.561  CCU2CoprocessorCommand::CCU2CoprocessorCommand(): Message too small: 2 bytes.
2018/12/21 08:09:02.561 <Debug> () CCU2CommController::handleIncomingSerialFrame(): Command not parseable.
2018/12/21 08:09:03.558 <Debug> () CCU2CommController::waitForCoProcessorResponse(): Timeout while waiting for response.

2018/12/21 08:09:03.558 <Error> () CCU2CommController::setCSMACAEnabled(): Error disabling CSMA/CA.
2018/12/21 08:09:03.560 <Error> No BidCoS-Interface available
2018/12/21 08:09:03.561 <Warning> Error initializing interfaces

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.