leonsio / YAHM

Yet Another Homematic Management - Skripte zur Einrichtung der Homematic CCU Oberfläche in einem LXC Container unter Debian Jessie auf ARM CPU (z.B.: Raspberry Pi & Co)
Creative Commons Zero v1.0 Universal
114 stars 21 forks source link

Nach einem reboot kann der container yahm nicht gestartet werden #167

Open Jules-Verne opened 6 years ago

Jules-Verne commented 6 years ago

Es wurde ein neues raspberry System aufgesetzt und nach der Installation läuft der YAHM Container. Danach werden nur Homemtic Geräte eingebunden. Sonst wird an dem System nichts geändert. Nach einem Reboot kann der Container nicht mehr gestartet werden. Version Raspbian GNU/Linux 9 (stretch)

Es werden auch keine Logs geschrieben. Was kann das sein, da es sich ja um ein sauber aufgesetzt System handelt.

leonsio commented 6 years ago

Schau unter /var/lib/lxc/yahm

Da muss noch die logdatei von lxc liegen. Ggf steht da was sinnvolles drin

Von meinem iPhone gesendet

Am 28.02.2018 um 22:49 schrieb Jules-Verne notifications@github.com:

Es wurde ein neues raspberry System aufgesetzt und nach der Installation läuft der YAHM Container. Danach werden nur Homemtic Geräte eingebunden. Sonst wird an dem System nicht geändert. Nach einem Reboot kann der Container nicht mehr gestartet werden. Version Raspbian GNU/Linux 9 (stretch)

Es werden auch keine Logs geschrieben. Was kann das sein, da es sich ja um ein sauber aufgesetzt System handelt.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

Jules-Verne commented 6 years ago

Ich finde nur das in yahm.log lxc-start 20170228215501.116 ERROR lxc_conf - conf.c:run_buffer:405 - Script exited with status 2. lxc-start 20170228215501.117 ERROR lxc_start - start.c:lxc_init:450 - Failed to run lxc.hook.pre-start for container "yahm". lxc-start 20170228215501.117 ERROR lxc_start - start.c:__lxc_start:1302 - Failed to initialize container "yahm". lxc-start 20170228215501.117 ERROR lxc_start_ui - tools/lxc_start.c:main:366 - The container failed to start. lxc-start 20170228215501.117 ERROR lxc_start_ui - tools/lxc_start.c:main:370 - Additional information can be obtained by setting the --logfile and --logpriority options.

leonsio commented 6 years ago

Hi

Die Kernel Module scheinen nach reboot nicht geladen zu sein. Führe einfach die installation von pivccu-driver Modul erneut aus. Falls es nicht hilft sag Bescheid

Yahm-module -f -m pivccu-driver enable

Wichtig -f sonst geht es nicht

Gruß

Leo

Von meinem iPhone gesendet

Am 28.02.2018 um 22:56 schrieb Jules-Verne notifications@github.com:

Ich finde nur das in yahm.log lxc-start 20170228215501.116 ERROR lxc_conf - conf.c:run_buffer:405 - Script exited with status 2. lxc-start 20170228215501.117 ERROR lxc_start - start.c:lxc_init:450 - Failed to run lxc.hook.pre-start for container "yahm". lxc-start 20170228215501.117 ERROR lxc_start - start.c:__lxc_start:1302 - Failed to initialize container "yahm". lxc-start 20170228215501.117 ERROR lxc_start_ui - tools/lxc_start.c:main:366 - The container failed to start. lxc-start 20170228215501.117 ERROR lxc_start_ui - tools/lxc_start.c:main:370 - Additional information can be obtained by setting the --logfile and --logpriority options.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

wjentner commented 6 years ago

Hi Leo,

bei mir gibt es das gleiche Problem. Das ganze ist nach einem kernel-update passiert:

      lxc-start 20180327115044.915 ERROR    lxc_conf - conf.c:run_buffer:405 - Script exited with status 2.
      lxc-start 20180327115044.916 ERROR    lxc_start - start.c:lxc_init:450 - Failed to run lxc.hook.pre-start for container "yahm".
      lxc-start 20180327115044.916 ERROR    lxc_start - start.c:__lxc_start:1302 - Failed to initialize container "yahm".
      lxc-start 20180327115049.929 ERROR    lxc_start_ui - tools/lxc_start.c:main:366 - The container failed to start.
      lxc-start 20180327115049.930 ERROR    lxc_start_ui - tools/lxc_start.c:main:368 - To get more details, run the container in foreground mode.
      lxc-start 20180327115049.992 ERROR    lxc_start_ui - tools/lxc_start.c:main:370 - Additional information can be obtained by setting the --logfile and --logpriority options.
$ uname -a
Linux raspberrypi 4.9.80-v7+ #1098 SMP Fri Mar 9 19:11:42 GMT 2018 armv7l GNU/Linux

Ich hatte den pivccu-driver disabled und danach nochmal enabled:

Executing pivccu-driver module_install()
Found hardware: Raspberry Pi 3
Found OS: raspbian
Found kernel:   4.9.80
Trying to disable bluetooth on Raspberry Pi 3 to use HM-MOD-RPI-PCB
Modification /boot/config.txt done.
Trying to disable serial console
Serial disabled successfully.
Updating sources
W: GPG error: http://repo.mosquitto.org/debian stretch InRelease: The following signatures were invalid: EXPKEYSIG 61611AE430993623 Mosquitto Apt Repository <repo@mosquitto.org>
W: The repository 'http://repo.mosquitto.org/debian stretch InRelease' is not signed.
Downloading/Installing kernel sources/headers
Installing dependencies
Set right gcc version
Found kernel 4.9.80-v7+ downloading sources from git und prepare kernel modules (5-10 min)

 *** gcc version check: OK

 *** Using: /usr/share/doc/raspberrypi-bootloader/changelog.Debian.gz

 *** Latest firmware revision: 3347884c7df574bbabeff6dca63caf686e629699

 *** Linux source commit: 80a14a56dacb7cc2b40d5f37d00bedb0ceace130

 *** Kernel source already installed: /usr/src/linux-80a14a56dacb7cc2b40d5f37d00bedb0ceace130

Blocking new kernel updates, please do not use rpi-update anymore, or run this module after kernel update again
Installing kernel modules
Building eq3 kernel modules
make -C /lib/modules/4.9.80-v7+/build M=/tmp/tmp.EqNEzztryK/kernel modules
make[1]: Entering directory '/usr/src/linux-80a14a56dacb7cc2b40d5f37d00bedb0ceace130'
  CC [M]  /tmp/tmp.EqNEzztryK/kernel/eq3_char_loop.o
  CC [M]  /tmp/tmp.EqNEzztryK/kernel/plat_eq3ccu2.o
  CC [M]  /tmp/tmp.EqNEzztryK/kernel/generic_raw_uart.o
  CC [M]  /tmp/tmp.EqNEzztryK/kernel/pl011_raw_uart.o
  CC [M]  /tmp/tmp.EqNEzztryK/kernel/dw_apb_raw_uart.o
  Building modules, stage 2.
  MODPOST 5 modules
  CC      /tmp/tmp.EqNEzztryK/kernel/dw_apb_raw_uart.mod.o
  LD [M]  /tmp/tmp.EqNEzztryK/kernel/dw_apb_raw_uart.ko
  CC      /tmp/tmp.EqNEzztryK/kernel/eq3_char_loop.mod.o
  LD [M]  /tmp/tmp.EqNEzztryK/kernel/eq3_char_loop.ko
  CC      /tmp/tmp.EqNEzztryK/kernel/generic_raw_uart.mod.o
  LD [M]  /tmp/tmp.EqNEzztryK/kernel/generic_raw_uart.ko
  CC      /tmp/tmp.EqNEzztryK/kernel/pl011_raw_uart.mod.o
  LD [M]  /tmp/tmp.EqNEzztryK/kernel/pl011_raw_uart.ko
  CC      /tmp/tmp.EqNEzztryK/kernel/plat_eq3ccu2.mod.o
  LD [M]  /tmp/tmp.EqNEzztryK/kernel/plat_eq3ccu2.ko
make[1]: Leaving directory '/usr/src/linux-80a14a56dacb7cc2b40d5f37d00bedb0ceace130'
Regenerating modules.dep and map files
Installing/Setup overlay file
Creating Overlay files
pivccu-bcm2835.dtbo: Warning (unit_address_vs_reg): Node /fragment@0 has a unit name, but no reg property
pivccu-sun8i-h3.dtbo: Warning (unit_address_vs_reg): Node /fragment@0 has a unit name, but no reg property
Setup Kernel Scheduler
kernel.sched_rt_runtime_us = -1
Preparing modification rfd.conf...
[Interface 0] block found in rfd.conf checking it...
Modification rfd.conf done.
Changing multimacd files
Changing lxc config
Copy startup files
PIVCCU was installed successfully, please restart your system to apply changes
STATUS: Module pivccu-driver was successfully installed

Nach einem reboot taucht der Fehler noch immer auf. Hat der pivccu-driver ein Problem mit dem neuen Kernel?

Gruesse, Wolfgang

leonsio commented 6 years ago

Schaut was unter /var/lib/lxc/yahm/yahm.log steht

Postet bitte Ausgabe von lsmod und Inhalt von /dev

Von meinem iPhone gesendet

Am 27.03.2018 um 14:00 schrieb wjentner notifications@github.com:

Hi Leo,

bei mir gibt es das gleiche Problem. Das ganze ist nach einem kernel-update passiert:

  lxc-start 20180327115044.915 ERROR    lxc_conf - conf.c:run_buffer:405 - Script exited with status 2.
  lxc-start 20180327115044.916 ERROR    lxc_start - start.c:lxc_init:450 - Failed to run lxc.hook.pre-start for container "yahm".
  lxc-start 20180327115044.916 ERROR    lxc_start - start.c:__lxc_start:1302 - Failed to initialize container "yahm".
  lxc-start 20180327115049.929 ERROR    lxc_start_ui - tools/lxc_start.c:main:366 - The container failed to start.
  lxc-start 20180327115049.930 ERROR    lxc_start_ui - tools/lxc_start.c:main:368 - To get more details, run the container in foreground mode.
  lxc-start 20180327115049.992 ERROR    lxc_start_ui - tools/lxc_start.c:main:370 - Additional information can be obtained by setting the --logfile and --logpriority options.

$ uname -a Linux raspberrypi 4.9.80-v7+ #1098 SMP Fri Mar 9 19:11:42 GMT 2018 armv7l GNU/Linux Ich hatte den pivccu-driver disabled und danach nochmal enabled:

Executing pivccu-driver module_install() Found hardware: Raspberry Pi 3 Found OS: raspbian Found kernel: 4.9.80 Trying to disable bluetooth on Raspberry Pi 3 to use HM-MOD-RPI-PCB Modification /boot/config.txt done. Trying to disable serial console Serial disabled successfully. Updating sources W: GPG error: http://repo.mosquitto.org/debian stretch InRelease: The following signatures were invalid: EXPKEYSIG 61611AE430993623 Mosquitto Apt Repository repo@mosquitto.org W: The repository 'http://repo.mosquitto.org/debian stretch InRelease' is not signed. Downloading/Installing kernel sources/headers Installing dependencies Set right gcc version Found kernel 4.9.80-v7+ downloading sources from git und prepare kernel modules (5-10 min)

*** gcc version check: OK

*** Using: /usr/share/doc/raspberrypi-bootloader/changelog.Debian.gz

*** Latest firmware revision: 3347884c7df574bbabeff6dca63caf686e629699

*** Linux source commit: 80a14a56dacb7cc2b40d5f37d00bedb0ceace130

*** Kernel source already installed: /usr/src/linux-80a14a56dacb7cc2b40d5f37d00bedb0ceace130

Blocking new kernel updates, please do not use rpi-update anymore, or run this module after kernel update again Installing kernel modules Building eq3 kernel modules make -C /lib/modules/4.9.80-v7+/build M=/tmp/tmp.EqNEzztryK/kernel modules make[1]: Entering directory '/usr/src/linux-80a14a56dacb7cc2b40d5f37d00bedb0ceace130' CC [M] /tmp/tmp.EqNEzztryK/kernel/eq3_char_loop.o CC [M] /tmp/tmp.EqNEzztryK/kernel/plat_eq3ccu2.o CC [M] /tmp/tmp.EqNEzztryK/kernel/generic_raw_uart.o CC [M] /tmp/tmp.EqNEzztryK/kernel/pl011_raw_uart.o CC [M] /tmp/tmp.EqNEzztryK/kernel/dw_apb_raw_uart.o Building modules, stage 2. MODPOST 5 modules CC /tmp/tmp.EqNEzztryK/kernel/dw_apb_raw_uart.mod.o LD [M] /tmp/tmp.EqNEzztryK/kernel/dw_apb_raw_uart.ko CC /tmp/tmp.EqNEzztryK/kernel/eq3_char_loop.mod.o LD [M] /tmp/tmp.EqNEzztryK/kernel/eq3_char_loop.ko CC /tmp/tmp.EqNEzztryK/kernel/generic_raw_uart.mod.o LD [M] /tmp/tmp.EqNEzztryK/kernel/generic_raw_uart.ko CC /tmp/tmp.EqNEzztryK/kernel/pl011_raw_uart.mod.o LD [M] /tmp/tmp.EqNEzztryK/kernel/pl011_raw_uart.ko CC /tmp/tmp.EqNEzztryK/kernel/plat_eq3ccu2.mod.o LD [M] /tmp/tmp.EqNEzztryK/kernel/plat_eq3ccu2.ko make[1]: Leaving directory '/usr/src/linux-80a14a56dacb7cc2b40d5f37d00bedb0ceace130' Regenerating modules.dep and map files Installing/Setup overlay file Creating Overlay files pivccu-bcm2835.dtbo: Warning (unit_address_vs_reg): Node /fragment@0 has a unit name, but no reg property pivccu-sun8i-h3.dtbo: Warning (unit_address_vs_reg): Node /fragment@0 has a unit name, but no reg property Setup Kernel Scheduler kernel.sched_rt_runtime_us = -1 Preparing modification rfd.conf... [Interface 0] block found in rfd.conf checking it... Modification rfd.conf done. Changing multimacd files Changing lxc config Copy startup files PIVCCU was installed successfully, please restart your system to apply changes STATUS: Module pivccu-driver was successfully installed Nach einem reboot taucht der Fehler noch immer auf. Hat der pivccu-driver ein Problem mit dem neuen Kernel?

Gruesse, Wolfgang

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

wjentner commented 6 years ago

Der output von /var/lib/lxc/yahm/yahm.log ist bereits oben zu sehen:

$ cat /var/lib/lxc/yahm/yahm.log
      lxc-start 20180327115044.915 ERROR    lxc_conf - conf.c:run_buffer:405 - Script exited with status 2.
      lxc-start 20180327115044.916 ERROR    lxc_start - start.c:lxc_init:450 - Failed to run lxc.hook.pre-start for container "yahm".
      lxc-start 20180327115044.916 ERROR    lxc_start - start.c:__lxc_start:1302 - Failed to initialize container "yahm".
      lxc-start 20180327115049.929 ERROR    lxc_start_ui - tools/lxc_start.c:main:366 - The container failed to start.
      lxc-start 20180327115049.930 ERROR    lxc_start_ui - tools/lxc_start.c:main:368 - To get more details, run the container in foreground mode.
      lxc-start 20180327115049.992 ERROR    lxc_start_ui - tools/lxc_start.c:main:370 - Additional information can be obtained by setting the --logfile and --logpriority options.

Diese 6 Meldungen wiederholen sich bei jedem Startversuch. Weitere Meldungen gibt es nicht.

$ lsmod
Module                  Size  Used by
tcp_diag                1498  0
inet_diag              12259  1 tcp_diag
iptable_filter          2197  0
cmac                    3239  1
bnep                   12051  2
hci_uart               20020  1
btbcm                   7916  1 hci_uart
bluetooth             365844  24 hci_uart,bnep,btbcm
bridge                108705  0
stp                     2430  1 bridge
llc                     5903  2 bridge,stp
fuse                   99667  3
brcmfmac              292911  0
brcmutil                9863  1 brcmfmac
cfg80211              544609  1 brcmfmac
rfkill                 20851  6 bluetooth,cfg80211
snd_bcm2835            24427  0
snd_pcm                98565  1 snd_bcm2835
snd_timer              23968  1 snd_pcm
snd                    70032  3 snd_timer,snd_bcm2835,snd_pcm
bcm2835_gpiomem         3940  0
uio_pdrv_genirq         3923  0
uio                    10204  1 uio_pdrv_genirq
fixed                   3285  0
ip_tables              13161  1 iptable_filter
x_tables               20578  2 ip_tables,iptable_filter
ipv6                  409461  45 bridge
$ ls -la /dev
total 4
drwxr-xr-x 14 root root        3300 Mar 27 13:43 .
drwxr-xr-x 21 root root        4096 Apr 10  2017 ..
crw-------  1 root root     10, 235 Mar 27 13:43 autofs
drwxr-xr-x  2 root root         580 Mar 27 13:43 block
crw-------  1 root root     10, 234 Mar 27 13:43 btrfs-control
drwxr-xr-x  3 root root          60 Jan  1  1970 bus
crw-------  1 root root     10,  63 Mar 27 13:43 cachefiles
drwxr-xr-x  2 root root        2440 Mar 27 13:43 char
crw-------  1 root root      5,   1 Mar 27 13:44 console
crw-------  1 root root     10,  62 Mar 27 13:43 cpu_dma_latency
crw-------  1 root root     10, 203 Mar 27 13:43 cuse
drwxr-xr-x  7 root root         140 Mar 27 13:43 disk
crw-rw----  1 root video    29,   0 Mar 27 13:43 fb0
lrwxrwxrwx  1 root root          13 Nov  3  2016 fd -> /proc/self/fd
crw-rw-rw-  1 root root      1,   7 Mar 27 13:43 full
crw-rw-rw-  1 root root     10, 229 Mar 27 13:43 fuse
crw-rw----  1 root gpio    254,   0 Mar 27 13:43 gpiochip0
crw-rw----  1 root gpio    254,   1 Mar 27 13:43 gpiochip1
crw-rw----  1 root gpio    254,   2 Mar 27 13:43 gpiochip2
crw-rw----  1 root gpio    244,   0 Mar 27 13:43 gpiomem
crw-------  1 root root     10, 183 Mar 27 13:43 hwrng
lrwxrwxrwx  1 root root          25 Nov  3  2016 initctl -> /run/systemd/initctl/fifo
drwxr-xr-x  2 root root          60 Jan  1  1970 input
crw-r--r--  1 root root      1,  11 Mar 27 13:43 kmsg
lrwxrwxrwx  1 root root          28 Nov  3  2016 log -> /run/systemd/journal/dev-log
brw-rw----  1 root disk      7,   0 Mar 27 13:43 loop0
brw-rw----  1 root disk      7,   1 Mar 27 13:43 loop1
brw-rw----  1 root disk      7,   2 Mar 27 13:43 loop2
brw-rw----  1 root disk      7,   3 Mar 27 13:43 loop3
brw-rw----  1 root disk      7,   4 Mar 27 13:43 loop4
brw-rw----  1 root disk      7,   5 Mar 27 13:43 loop5
brw-rw----  1 root disk      7,   6 Mar 27 13:43 loop6
brw-rw----  1 root disk      7,   7 Mar 27 13:43 loop7
crw-rw----  1 root disk     10, 237 Mar 27 13:43 loop-control
drwxr-xr-x  2 root root          60 Mar 27 13:43 mapper
crw-r-----  1 root kmem      1,   1 Mar 27 13:43 mem
crw-------  1 root root     10,  59 Mar 27 13:43 memory_bandwidth
brw-rw----  1 root disk    179,   0 Mar 27 13:43 mmcblk0
brw-rw----  1 root disk    179,   1 Mar 27 13:43 mmcblk0p1
brw-rw----  1 root disk    179,   2 Mar 27 13:43 mmcblk0p2
drwxrwxrwt  2 root root          40 Jan  1  1970 mqueue
drwxr-xr-x  2 root root          60 Mar 27 13:43 net
crw-------  1 root root     10,  61 Mar 27 13:43 network_latency
crw-------  1 root root     10,  60 Mar 27 13:43 network_throughput
crw-rw-rw-  1 root root      1,   3 Mar 27 13:43 null
crw-------  1 root root    108,   0 Mar 27 13:43 ppp
crw-rw-rw-  1 root tty       5,   2 Mar 27 14:08 ptmx
drwxr-xr-x  2 root root           0 Nov  3  2016 pts
brw-rw----  1 root disk      1,   0 Mar 27 13:43 ram0
brw-rw----  1 root disk      1,   1 Mar 27 13:43 ram1
brw-rw----  1 root disk      1,  10 Mar 27 13:43 ram10
brw-rw----  1 root disk      1,  11 Mar 27 13:43 ram11
brw-rw----  1 root disk      1,  12 Mar 27 13:43 ram12
brw-rw----  1 root disk      1,  13 Mar 27 13:43 ram13
brw-rw----  1 root disk      1,  14 Mar 27 13:43 ram14
brw-rw----  1 root disk      1,  15 Mar 27 13:43 ram15
brw-rw----  1 root disk      1,   2 Mar 27 13:43 ram2
brw-rw----  1 root disk      1,   3 Mar 27 13:43 ram3
brw-rw----  1 root disk      1,   4 Mar 27 13:43 ram4
brw-rw----  1 root disk      1,   5 Mar 27 13:43 ram5
brw-rw----  1 root disk      1,   6 Mar 27 13:43 ram6
brw-rw----  1 root disk      1,   7 Mar 27 13:43 ram7
brw-rw----  1 root disk      1,   8 Mar 27 13:43 ram8
brw-rw----  1 root disk      1,   9 Mar 27 13:43 ram9
crw-rw-rw-  1 root root      1,   8 Mar 27 13:43 random
drwxr-xr-x  2 root root          60 Jan  1  1970 raw
crw-rw-r--  1 root netdev   10,  58 Mar 27 13:43 rfkill
lrwxrwxrwx  1 root root           5 Mar 27 13:43 serial1 -> ttyS0
drwxrwxrwt  2 root root          40 Nov  3  2016 shm
drwxr-xr-x  3 root root         160 Mar 27 13:43 snd
lrwxrwxrwx  1 root root          15 Nov  3  2016 stderr -> /proc/self/fd/2
lrwxrwxrwx  1 root root          15 Nov  3  2016 stdin -> /proc/self/fd/0
lrwxrwxrwx  1 root root          15 Nov  3  2016 stdout -> /proc/self/fd/1
crw-rw-rw-  1 root tty       5,   0 Mar 27 13:43 tty
crw--w----  1 root tty       4,   0 Mar 27 13:43 tty0
crw--w----  1 root tty       4,   1 Mar 27 13:43 tty1
crw--w----  1 root tty       4,  10 Mar 27 13:43 tty10
crw--w----  1 root tty       4,  11 Mar 27 13:43 tty11
crw--w----  1 root tty       4,  12 Mar 27 13:43 tty12
crw--w----  1 root tty       4,  13 Mar 27 13:43 tty13
crw--w----  1 root tty       4,  14 Mar 27 13:43 tty14
crw--w----  1 root tty       4,  15 Mar 27 13:43 tty15
crw--w----  1 root tty       4,  16 Mar 27 13:43 tty16
crw--w----  1 root tty       4,  17 Mar 27 13:43 tty17
crw--w----  1 root tty       4,  18 Mar 27 13:43 tty18
crw--w----  1 root tty       4,  19 Mar 27 13:43 tty19
crw--w----  1 root tty       4,   2 Mar 27 13:43 tty2
crw--w----  1 root tty       4,  20 Mar 27 13:43 tty20
crw--w----  1 root tty       4,  21 Mar 27 13:43 tty21
crw--w----  1 root tty       4,  22 Mar 27 13:43 tty22
crw--w----  1 root tty       4,  23 Mar 27 13:43 tty23
crw--w----  1 root tty       4,  24 Mar 27 13:43 tty24
crw--w----  1 root tty       4,  25 Mar 27 13:43 tty25
crw--w----  1 root tty       4,  26 Mar 27 13:43 tty26
crw--w----  1 root tty       4,  27 Mar 27 13:43 tty27
crw--w----  1 root tty       4,  28 Mar 27 13:43 tty28
crw--w----  1 root tty       4,  29 Mar 27 13:43 tty29
crw--w----  1 root tty       4,   3 Mar 27 13:43 tty3
crw--w----  1 root tty       4,  30 Mar 27 13:43 tty30
crw--w----  1 root tty       4,  31 Mar 27 13:43 tty31
crw--w----  1 root tty       4,  32 Mar 27 13:43 tty32
crw--w----  1 root tty       4,  33 Mar 27 13:43 tty33
crw--w----  1 root tty       4,  34 Mar 27 13:43 tty34
crw--w----  1 root tty       4,  35 Mar 27 13:43 tty35
crw--w----  1 root tty       4,  36 Mar 27 13:43 tty36
crw--w----  1 root tty       4,  37 Mar 27 13:43 tty37
crw--w----  1 root tty       4,  38 Mar 27 13:43 tty38
crw--w----  1 root tty       4,  39 Mar 27 13:43 tty39
crw--w----  1 root tty       4,   4 Mar 27 13:43 tty4
crw--w----  1 root tty       4,  40 Mar 27 13:43 tty40
crw--w----  1 root tty       4,  41 Mar 27 13:43 tty41
crw--w----  1 root tty       4,  42 Mar 27 13:43 tty42
crw--w----  1 root tty       4,  43 Mar 27 13:43 tty43
crw--w----  1 root tty       4,  44 Mar 27 13:43 tty44
crw--w----  1 root tty       4,  45 Mar 27 13:43 tty45
crw--w----  1 root tty       4,  46 Mar 27 13:43 tty46
crw--w----  1 root tty       4,  47 Mar 27 13:43 tty47
crw--w----  1 root tty       4,  48 Mar 27 13:43 tty48
crw--w----  1 root tty       4,  49 Mar 27 13:43 tty49
crw--w----  1 root tty       4,   5 Mar 27 13:43 tty5
crw--w----  1 root tty       4,  50 Mar 27 13:43 tty50
crw--w----  1 root tty       4,  51 Mar 27 13:43 tty51
crw--w----  1 root tty       4,  52 Mar 27 13:43 tty52
crw--w----  1 root tty       4,  53 Mar 27 13:43 tty53
crw--w----  1 root tty       4,  54 Mar 27 13:43 tty54
crw--w----  1 root tty       4,  55 Mar 27 13:43 tty55
crw--w----  1 root tty       4,  56 Mar 27 13:43 tty56
crw--w----  1 root tty       4,  57 Mar 27 13:43 tty57
crw--w----  1 root tty       4,  58 Mar 27 13:43 tty58
crw--w----  1 root tty       4,  59 Mar 27 13:43 tty59
crw--w----  1 root tty       4,   6 Mar 27 13:43 tty6
crw--w----  1 root tty       4,  60 Mar 27 13:43 tty60
crw--w----  1 root tty       4,  61 Mar 27 13:43 tty61
crw--w----  1 root tty       4,  62 Mar 27 13:43 tty62
crw--w----  1 root tty       4,  63 Mar 27 13:43 tty63
crw--w----  1 root tty       4,   7 Mar 27 13:43 tty7
crw--w----  1 root tty       4,   8 Mar 27 13:43 tty8
crw--w----  1 root tty       4,   9 Mar 27 13:43 tty9
crw-------  1 root root      5,   3 Mar 27 13:43 ttyprintk
crw-rw----  1 root dialout   4,  64 Mar 27 13:43 ttyS0
crw-------  1 root root     10, 239 Mar 27 13:43 uhid
crw-------  1 root root     10, 223 Mar 27 13:43 uinput
crw-rw-rw-  1 root root      1,   9 Mar 27 13:43 urandom
crw-rw----  1 root video   247,   0 Mar 27 13:43 vchiq
crw-rw----  1 root video   249,   0 Mar 27 13:43 vcio
crw-------  1 root root    250,   0 Mar 27 13:43 vc-mem
crw-rw----  1 root tty       7,   0 Mar 27 13:43 vcs
crw-rw----  1 root tty       7,   1 Mar 27 13:43 vcs1
crw-rw----  1 root tty       7,   2 Mar 27 13:43 vcs2
crw-rw----  1 root tty       7,   3 Mar 27 13:43 vcs3
crw-rw----  1 root tty       7,   4 Mar 27 13:43 vcs4
crw-rw----  1 root tty       7,   5 Mar 27 13:43 vcs5
crw-rw----  1 root tty       7,   6 Mar 27 13:43 vcs6
crw-rw----  1 root tty       7, 128 Mar 27 13:43 vcsa
crw-rw----  1 root tty       7, 129 Mar 27 13:43 vcsa1
crw-rw----  1 root tty       7, 130 Mar 27 13:43 vcsa2
crw-rw----  1 root tty       7, 131 Mar 27 13:43 vcsa3
crw-rw----  1 root tty       7, 132 Mar 27 13:43 vcsa4
crw-rw----  1 root tty       7, 133 Mar 27 13:43 vcsa5
crw-rw----  1 root tty       7, 134 Mar 27 13:43 vcsa6
crw-rw----  1 root video   246,   0 Mar 27 13:43 vcsm
crw-------  1 root root     10, 137 Mar 27 13:43 vhci
crw-------  1 root root     10, 130 Mar 27 13:43 watchdog
crw-------  1 root root    252,   0 Mar 27 13:43 watchdog0
crw-rw-rw-  1 root root      1,   5 Mar 27 13:43 zero
$ lxc-start -F -n yahm
cat: /sys/devices/virtual/raw-uart/raw-uart/dev: No such file or directory
/var/lib/yahm/pre-start.sh: 27: /var/lib/yahm/pre-start.sh: cannot create /sys/module/plat_eq3ccu2/parameters/uart_major: Directory nonexistent
lxc-start: conf.c: run_buffer: 405 Script exited with status 2.
lxc-start: start.c: lxc_init: 450 Failed to run lxc.hook.pre-start for container "yahm".
lxc-start: start.c: __lxc_start: 1302 Failed to initialize container "yahm".
lxc-start: tools/lxc_start.c: main: 366 The container failed to start.
lxc-start: tools/lxc_start.c: main: 370 Additional information can be obtained by setting the --logfile and --logpriority options.
leonsio commented 6 years ago

hi

es sieht so aus, als würde pivccu-driver nicht geladen

modprobe pl011_raw_uart generic_raw_uart eq3_char_loop plat_eq3ccu2

Schau was die Meldung sagt, bzw. schau im dmesg nach

wjentner commented 6 years ago

Hier der output:

$ modprobe pl011_raw_uart generic_raw_uart eq3_char_loop plat_eq3ccu2
modprobe: ERROR: could not insert 'pl011_raw_uart': Exec format error
$ dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.80-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #1098 SMP Fri Mar 9 19:11:42 GMT 2018
[    0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: Raspberry Pi 3 Model B Rev 1.2
[    0.000000] cma: Reserved 8 MiB at 0x3ac00000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 242688
[    0.000000] free_area_init_node: node 0, pgdat 80c6f800, node_mem_map ba3a1000
[    0.000000]   Normal zone: 2133 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 242688 pages, LIFO batch:31
[    0.000000] percpu: Embedded 14 pages/cpu @ba35b000 s25600 r8192 d23552 u57344
[    0.000000] pcpu-alloc: s25600 r8192 d23552 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 240555
[    0.000000] Kernel command line: 8250.nr_uarts=1 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  dwc_otg.lpm_enable=0 console=tty1 root=PARTUUID=d234fdce-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 940364K/970752K available (7168K kernel code, 487K rwdata, 2032K rodata, 1024K init, 770K bss, 22196K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xbb800000 - 0xff800000   (1088 MB)
                   lowmem  : 0x80000000 - 0xbb400000   ( 948 MB)
                   modules : 0x7f000000 - 0x80000000   (  16 MB)
                     .text : 0x80008000 - 0x80800000   (8160 kB)
                     .init : 0x80b00000 - 0x80c00000   (1024 kB)
                     .data : 0x80c00000 - 0x80c79cbc   ( 488 kB)
                      .bss : 0x80c7b000 - 0x80d3b9e4   ( 771 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] arm_arch_timer: Architected cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000004] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000012] Switching to timer-based delay loop, resolution 52ns
[    0.000167] Console: colour dummy device 80x30
[    0.000613] console [tty1] enabled
[    0.000639] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.000673] pid_max: default: 32768 minimum: 301
[    0.000852] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000874] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001467] Disabling memory control group subsystem
[    0.001523] CPU: Testing write buffer coherency: ok
[    0.001559] ftrace: allocating 22627 entries in 67 pages
[    0.026478] CPU0: update cpu_capacity 1024
[    0.026510] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.026549] Setting up static identity map for 0x100000 - 0x100034
[    0.027601] CPU1: update cpu_capacity 1024
[    0.027604] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.027966] CPU2: update cpu_capacity 1024
[    0.027970] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.028311] CPU3: update cpu_capacity 1024
[    0.028315] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.028359] Brought up 4 CPUs
[    0.028446] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.028461] CPU: All CPU(s) started in HYP mode.
[    0.028475] CPU: Virtualization extensions available.
[    0.028957] devtmpfs: initialized
[    0.034636] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[    0.034809] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.034841] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.035163] pinctrl core: initialized pinctrl subsystem
[    0.035668] NET: Registered protocol family 16
[    0.036929] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.041367] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.041391] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.041494] Serial: AMBA PL011 UART driver
[    0.042455] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.042851] irq: no irq domain found for /soc/aux@0x7e215000 !
[    0.086857] bcm2835-dma 3f007000.dma: DMA legacy API manager at bb80d000, dmachans=0x1
[    0.087818] SCSI subsystem initialized
[    0.087979] usbcore: registered new interface driver usbfs
[    0.088035] usbcore: registered new interface driver hub
[    0.088095] usbcore: registered new device driver usb
[    0.096282] raspberrypi-firmware soc:firmware: Attached to firmware from 2018-03-13 18:45
[    0.097022] clocksource: Switched to clocksource arch_sys_counter
[    0.121726] VFS: Disk quotas dquot_6.6.0
[    0.121791] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.121918] FS-Cache: Loaded
[    0.122076] CacheFiles: Loaded
[    0.128253] NET: Registered protocol family 2
[    0.128758] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.128828] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.128933] TCP: Hash tables configured (established 8192 bind 8192)
[    0.129000] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.129034] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.129157] NET: Registered protocol family 1
[    0.129403] RPC: Registered named UNIX socket transport module.
[    0.129419] RPC: Registered udp transport module.
[    0.129433] RPC: Registered tcp transport module.
[    0.129447] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.129974] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[    0.131173] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.139256] FS-Cache: Netfs 'nfs' registered for caching
[    0.139767] NFS: Registering the id_resolver key type
[    0.139800] Key type id_resolver registered
[    0.139814] Key type id_legacy registered
[    0.141071] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.141150] io scheduler noop registered
[    0.141166] io scheduler deadline registered (default)
[    0.141307] io scheduler cfq registered
[    0.144669] BCM2708FB: allocated DMA memory fad10000
[    0.144698] BCM2708FB: allocated DMA channel 0 @ bb80d000
[    0.149978] Console: switching to colour frame buffer device 82x26
[    0.153739] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    0.156661] bcm2835-rng 3f104000.rng: hwrng registered
[    0.157878] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    0.160523] vc-sm: Videocore shared memory driver
[    0.169363] brd: module loaded
[    0.175108] loop: module loaded
[    0.176293] Loading iSCSI transport class v2.0-870.
[    0.177857] libphy: Fixed MDIO Bus: probed
[    0.179047] usbcore: registered new interface driver lan78xx
[    0.180234] usbcore: registered new interface driver smsc95xx
[    0.181353] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.410302] Core Release: 2.80a
[    0.411405] Setting default values for core params
[    0.412502] Finished setting default values for core params
[    0.613811] Using Buffer DMA mode
[    0.614910] Periodic Transfer Interrupt Enhancement - disabled
[    0.616060] Multiprocessor Interrupt Enhancement - disabled
[    0.617223] OTG VER PARAM: 0, OTG VER FLAG: 0
[    0.618400] Dedicated Tx FIFOs mode
[    0.619728] WARN::dwc_otg_hcd_init:1032: FIQ DMA bounce buffers: virt = 0xbad04000 dma = 0xfad04000 len=9024
[    0.622087] FIQ FSM acceleration enabled for :
               Non-periodic Split Transactions
               Periodic Split Transactions
               High-Speed Isochronous Endpoints
               Interrupt/Control Split Transaction hack enabled
[    0.627602] dwc_otg: Microframe scheduler enabled
[    0.627629] WARN::hcd_init_fiq:459: FIQ on core 1 at 0x8059b380
[    0.628768] WARN::hcd_init_fiq:460: FIQ ASM at 0x8059b6f0 length 36
[    0.629897] WARN::hcd_init_fiq:486: MPHI regs_base at 0xbb878000
[    0.631034] dwc_otg 3f980000.usb: DWC OTG Controller
[    0.632197] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    0.633382] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
[    0.634559] Init: Port Power? op_state=1
[    0.635688] Init: Power Port (0)
[    0.636894] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.638064] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.639219] usb usb1: Product: DWC OTG Controller
[    0.640346] usb usb1: Manufacturer: Linux 4.9.80-v7+ dwc_otg_hcd
[    0.641486] usb usb1: SerialNumber: 3f980000.usb
[    0.643066] hub 1-0:1.0: USB hub found
[    0.644167] hub 1-0:1.0: 1 port detected
[    0.645527] dwc_otg: FIQ enabled
[    0.645529] dwc_otg: NAK holdoff enabled
[    0.645531] dwc_otg: FIQ split-transaction FSM enabled
[    0.645538] Module dwc_common_port init
[    0.645656] usbcore: registered new interface driver usb-storage
[    0.646822] mousedev: PS/2 mouse device common for all mice
[    0.648422] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[    0.649693] bcm2835-cpufreq: min=1200000 max=1200000
[    0.651038] sdhci: Secure Digital Host Controller Interface driver
[    0.652196] sdhci: Copyright(c) Pierre Ossman
[    0.653473] sdhost-bcm2835 3f202000.sdhost: could not get clk, deferring probe
[    0.656667] mmc-bcm2835 3f300000.mmc: could not get clk, deferring probe
[    0.657953] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.660269] ledtrig-cpu: registered to indicate activity on CPUs
[    0.661597] hidraw: raw HID events driver (C) Jiri Kosina
[    0.662940] usbcore: registered new interface driver usbhid
[    0.664171] usbhid: USB HID core driver
[    0.665848] vchiq: vchiq_init_state: slot_zero = 0xbad80000, is_master = 0
[    0.668045] [vc_sm_connected_init]: start
[    0.674966] [vc_sm_connected_init]: end - returning 0
[    0.676401] Initializing XFRM netlink socket
[    0.677639] NET: Registered protocol family 17
[    0.678912] Key type dns_resolver registered
[    0.680300] Registering SWP/SWPB emulation handler
[    0.681916] registered taskstats version 1
[    0.687704] 3f215040.serial: ttyS0 at MMIO 0x0 (irq = 220, base_baud = 50000000) is a 16550
[    0.690584] sdhost: log_buf @ bad07000 (fad07000)
[    0.767037] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    0.770301] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
[    0.771556] mmc-bcm2835 3f300000.mmc: DMA channel allocated
[    0.843946] mmc0: host does not support reading read-only switch, assuming write-enable
[    0.847087] of_cfs_init
[    0.848300] of_cfs_init: OK
[    0.848888] mmc0: new high speed SDHC card at address 59b4
[    0.850337] mmcblk0: mmc0:59b4 NCard 14.8 GiB
[    0.856196]  mmcblk0: p1 p2
[    0.857526] Indeed it is in host mode hprt0 = 00021501
[    0.927370] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    0.929862] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    0.929998] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    0.931497] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    0.934182] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    0.935721] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    0.936563] random: fast init done
[    0.946240] devtmpfs: mounted
[    0.948250] Freeing unused kernel memory: 1024K
[    1.020667] mmc1: new high speed SDIO card at address 0001
[    1.057054] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    1.058282] Indeed it is in host mode hprt0 = 00001101
[    1.287217] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    1.288363] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.289948] hub 1-1:1.0: USB hub found
[    1.291160] hub 1-1:1.0: 5 ports detected
[    1.457629] systemd[1]: System time before build time, advancing clock.
[    1.572459] NET: Registered protocol family 10
[    1.588200] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.607073] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    1.609484] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[    1.613462] systemd[1]: Detected architecture arm.
[    1.627730] systemd[1]: Set hostname to <raspberrypi>.
[    1.737333] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    1.738717] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.742544] smsc95xx v1.0.5
[    1.829283] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:7e:f8:7d
[    2.102512] systemd[1]: Created slice System Slice.
[    2.106397] systemd[1]: Created slice system-getty.slice.
[    2.109674] systemd[1]: Listening on Journal Socket.
[    2.115596] systemd[1]: Starting Restore / save the current clock...
[    2.119238] systemd[1]: Listening on RPCbind Server Activation Socket.
[    2.122826] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    2.130165] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[    2.224779] eq3_char_loop: disagrees about version of symbol module_layout
[    2.227852] plat_eq3ccu2: disagrees about version of symbol module_layout
[    2.496644] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    2.571939] systemd-journald[125]: Received request to flush runtime journal from PID 1
[    2.756030] generic_raw_uart: disagrees about version of symbol module_layout
[    2.763075] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    3.031347] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
[    3.036000] usbcore: registered new interface driver brcmfmac
[    3.240940] brcmfmac: Firmware version = wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f
[    3.241568] brcmfmac: brcmf_c_preinit_dcmds: CLM version = API: 12.2 Data: 7.11.15 Compiler: 1.24.2 ClmImport: 1.24.1 Creation: 2014-05-26 10:53:55 Inc Data: 9.10.39 Inc Compiler: 1.29.4 Inc ClmImport: 1.36.3 Creation: 2017-10-23 03:47:14
[    3.622065] random: crng init done
[    3.658483] cgroup: new mount options do not match the existing superblock, will be ignored
[    3.851896] fuse init (API version 7.26)
[    3.958201] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[    3.958209] brcmfmac: power management disabled
[    4.162722] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    4.184604] yahmbr0: port 1(eth0) entered blocking state
[    4.184615] yahmbr0: port 1(eth0) entered disabled state
[    4.184915] device eth0 entered promiscuous mode
[    4.235832] Adding 102396k swap on /var/swap.  Priority:-1 extents:5 across:200700k SSFS
[    4.278332] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[    4.281800] IPv6: ADDRCONF(NETDEV_UP): yahmbr0: link is not ready
[    5.896775] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1
[    5.899324] yahmbr0: port 1(eth0) entered blocking state
[    5.899331] yahmbr0: port 1(eth0) entered forwarding state
[    5.899444] IPv6: ADDRCONF(NETDEV_CHANGE): yahmbr0: link becomes ready
[    7.997372] Bluetooth: Core ver 2.22
[    7.997434] NET: Registered protocol family 31
[    7.997437] Bluetooth: HCI device and connection manager initialized
[    7.997467] Bluetooth: HCI socket layer initialized
[    7.997475] Bluetooth: L2CAP socket layer initialized
[    7.997493] Bluetooth: SCO socket layer initialized
[    8.005279] Bluetooth: HCI UART driver ver 2.3
[    8.005290] Bluetooth: HCI UART protocol H4 registered
[    8.005296] Bluetooth: HCI UART protocol Three-wire (H5) registered
[    8.005441] Bluetooth: HCI UART protocol Broadcom registered
[    8.155161] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    8.155168] Bluetooth: BNEP filters: protocol multicast
[    8.155179] Bluetooth: BNEP socket layer initialized
[ 4059.782051] generic_raw_uart: disagrees about version of symbol module_layout

Ich habe gerade nochmal das modul deaktiviert, die kernel sources geloescht und nach einem reboot wieder versucht es zu installieren. Irgendwas scheint aber mit der config nicht ganz zu stimmen. Es wird bei vielen punkten user input erwartet. Es laeuft zwar komplett durch wenn man nur die default values verwendet aber das ist denke ich mal nicht korrekt. Mit dem ausgeschalteten pivccu-driver startet der yahm container auch normal

$ yahm-module -m pivccu-driver enable
Executing pivccu-driver module_install()
Found hardware: Raspberry Pi 3
Found OS: raspbian
Found kernel:   4.9.80
Trying to disable bluetooth on Raspberry Pi 3 to use HM-MOD-RPI-PCB
Modification /boot/config.txt done.
Trying to disable serial console
Serial disabled successfully.
Updating sources
W: GPG error: http://repo.mosquitto.org/debian stretch InRelease: The following signatures were invalid: EXPKEYSIG 61611AE430993623 Mosquitto Apt Repository <repo@mosquitto.org>
W: The repository 'http://repo.mosquitto.org/debian stretch InRelease' is not signed.
Downloading/Installing kernel sources/headers
Installing dependencies
Set right gcc version
Found kernel 4.9.80-v7+ downloading sources from git und prepare kernel modules (5-10 min)

 *** gcc version check: OK

 *** Using: /usr/share/doc/raspberrypi-bootloader/changelog.Debian.gz

 *** Latest firmware revision: 3347884c7df574bbabeff6dca63caf686e629699

 *** Linux source commit: 80a14a56dacb7cc2b40d5f37d00bedb0ceace130

 *** Download kernel source
--2018-03-27 15:17:33--  https://github.com/raspberrypi/linux/archive/80a14a56dacb7cc2b40d5f37d00bedb0ceace130.tar.gz
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/raspberrypi/linux/tar.gz/80a14a56dacb7cc2b40d5f37d00bedb0ceace130 [following]
--2018-03-27 15:17:33--  https://codeload.github.com/raspberrypi/linux/tar.gz/80a14a56dacb7cc2b40d5f37d00bedb0ceace130
Resolving codeload.github.com (codeload.github.com)... 192.30.253.121, 192.30.253.120
Connecting to codeload.github.com (codeload.github.com)|192.30.253.121|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘/usr/src/linux-80a14a56dacb7cc2b40d5f37d00bedb0ceace130.tar.gz’

/usr/src/linux-80a14a56dacb7cc2b40d5f37d00bedb0ceace130.tar     [                                                                                                                          <=>            ] 152.26M  2.48MB/s    in 38s

2018-03-27 15:18:12 (4.01 MB/s) - ‘/usr/src/linux-80a14a56dacb7cc2b40d5f37d00bedb0ceace130.tar.gz’ saved [159658880]

 *** Unpack kernel source
..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
 *** Add '+' to kernel release string

 *** Create symlink: /usr/src/linux

 *** Create /lib/modules/<ver>/{build,source} symlinks

 *** .config

 *** Module.symvers

 *** make modules_prepare
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --silentoldconfig Kconfig
.config:803:warning: symbol value 'm' invalid for NF_CT_PROTO_DCCP
.config:805:warning: symbol value 'm' invalid for NF_CT_PROTO_SCTP
.config:806:warning: symbol value 'm' invalid for NF_CT_PROTO_UDPLITE
.config:823:warning: symbol value 'm' invalid for NF_NAT_PROTO_DCCP
.config:824:warning: symbol value 'm' invalid for NF_NAT_PROTO_UDPLITE
.config:825:warning: symbol value 'm' invalid for NF_NAT_PROTO_SCTP
*
* Restart config...
*
*
* IRQ subsystem
*
Expose hardware/virtual IRQ mapping via debugfs (IRQ_DOMAIN_DEBUG) [N/y/?] n
Expose irq internals in debugfs (GENERIC_IRQ_DEBUGFS) [N/y/?] (NEW)

....

Remote Controller devices (RC_DEVICES) [Y/n] y
  ATI / X10 based USB RF remote controls (RC_ATI_REMOTE) [M/n/?] m
  Hisilicon hix5hd2 IR remote control (IR_HIX5HD2) [N/m/?] n
  SoundGraph iMON Receiver and Display (IR_IMON) [M/n/?] m
  Windows Media Center Ed. eHome Infrared Transceiver (IR_MCEUSB) [M/n/?] m
  RedRat3 IR Transceiver (IR_REDRAT3) [M/n/?] m
  SPI connected IR LED (IR_SPI) [N/m/?] (NEW) ^CTraceback (most recent call last):
  File "/opt/YAHM/share/tools/rpi-source/rpi-source", line 379, in <module>
scripts/kconfig/Makefile:38: recipe for target 'silentoldconfig' failed
make[2]: *** [silentoldconfig] Interrupt
    sh("cd %s && make modules_prepare %s" % (linux_symlink, (" > /dev/null" if args.quiet else "")))
  File "/opt/YAHM/share/tools/rpi-source/rpi-source", line 85, in sh
    subprocess.check_call(cmd, shell=True)
  File "/usr/lib/python2.7/subprocess.py", line 181, in check_call
Makefile:544: recipe for target 'silentoldconfig' failed
make[1]: *** [silentoldconfig] Interrupt
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 168, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 1073, in wait
    pid, sts = _eintr_retry_call(os.waitpid, self.pid, 0)
  File "/usr/lib/python2.7/subprocess.py", line 121, in _eintr_retry_call
    return func(*args)
KeyboardInterrupt
Blocking new kernel updates, please do not use rpi-update anymore, or run this module after kernel update again
Installing kernel modules
Building eq3 kernel modules
make -C /lib/modules/4.9.80-v7+/build M=/tmp/tmp.WBqjQRllLl/kernel modules
make[1]: Entering directory '/usr/src/linux-80a14a56dacb7cc2b40d5f37d00bedb0ceace130'

  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

  CC [M]  /tmp/tmp.WBqjQRllLl/kernel/eq3_char_loop.o
In file included from <command-line>:0:0:
././include/linux/kconfig.h:5:32: fatal error: generated/autoconf.h: No such file or directory
 #include <generated/autoconf.h>
                                ^
compilation terminated.
scripts/Makefile.build:326: recipe for target '/tmp/tmp.WBqjQRllLl/kernel/eq3_char_loop.o' failed
make[2]: *** [/tmp/tmp.WBqjQRllLl/kernel/eq3_char_loop.o] Error 1
Makefile:1508: recipe for target '_module_/tmp/tmp.WBqjQRllLl/kernel' failed
make[1]: *** [_module_/tmp/tmp.WBqjQRllLl/kernel] Error 2
make[1]: Leaving directory '/usr/src/linux-80a14a56dacb7cc2b40d5f37d00bedb0ceace130'
Makefile:16: recipe for target 'all' failed
make: *** [all] Error 2
ERROR: Problem while building eq3 module, exit

Ich habe es in dem Fall mal abgebrochen.

JackGruber commented 6 years ago

Hi,

hab genau den selben Fehler nach einem dist-upgrade auf stretch mit Kernel 4.9.80-v7

leonsio commented 6 years ago

Ich hab eine Ahnung woran es liegen könnte Werde die tage ein Update bei mir machen und mir das ganze ansehen

Am 27.03.2018 um 16:20 schrieb JackGruber notifications@github.com:

Hi,

hab genau den selben Fehler nach einem dist-upgrade auf stretch mit Kernel 4.9.80-v7

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/leonsio/YAHM/issues/167#issuecomment-376543086, or mute the thread https://github.com/notifications/unsubscribe-auth/AAwBF8ZzGijA4GxO3IBdRbzZ2ROTNAajks5tikq3gaJpZM4SXZ07.

zioalex commented 6 years ago

I have the same problem with a different error:

root@raspberrypi:/lib/modules/4.4.38-v7+/kernel/drivers/pivccu# modprobe generic_raw_uart
modprobe: ERROR: could not insert 'generic_raw_uart': Exec format error

May be in some problem during the compile time...Searching for it.

zioalex commented 6 years ago

I was able to built the module with the normal procedure after updating the kernel at 4.9.35-v7 version.

However the rfd service does not start with the pivccu-driver . I am switching back to the the old modules ( hm-mod-rpi-pcb + homematic-ip )

wjentner commented 6 years ago

After updating the kernel again to Linux raspberrypi 4.14.30-v7+ #1102 SMP Mon Mar 26 16:45:49 BST 2018 armv7l GNU/Linux and reinstalling the pivccu-driver module the error disappeared.