GithubHelp home page GithubHelp logo

Comments (9)

jens-maus avatar jens-maus commented on June 12, 2024 1

So, mit der 1.15 version des install-lxc.sh sollte das nun auch mit einem 32bit system klappen ein LXC container zu installieren. Danke @Baxxy13 das du da drüber gestolpert bist. Bitte nochmal zum Abschluss probieren und dann nen haken dran machen.

from raspberrymatic.

Baxxy13 avatar Baxxy13 commented on June 12, 2024 1

Haken ist dran, läuft sauber durch (Install/Uninstall getestet).
(extra auf deutsch gelassen... 😉 )

Installation mittels install-lxc.sh (v1.15)
root@tinkerboard:~# bash ./install-lxc.sh
RaspberryMatic LXC installation script v1.15
Copyright (c) 2024 Jens Maus <[email protected]>

[INFO] Checking/Installing host package dependencies...
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Die folgenden zusätzlichen Pakete werden installiert:
  liblxc-common liblxc1
Vorgeschlagene Pakete:
  lvm2 python3-lxc
Empfohlene Pakete:
  apparmor debootstrap libpam-cgfs lxc-templates lxcfs uidmap
Die folgenden NEUEN Pakete werden installiert:
  liblxc-common liblxc1 lxc
0 aktualisiert, 3 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 3.267 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 24,2 MB Plattenplatz zusätzlich benutzt.
Holen:1 http://deb.debian.org/debian bookworm/main armhf liblxc1 armhf 1:5.0.2-1+deb12u2 [353 kB]
Holen:2 http://deb.debian.org/debian bookworm/main armhf liblxc-common armhf 1:5.0.2-1+deb12u2 [715 kB]
Holen:3 http://deb.debian.org/debian bookworm/main armhf lxc armhf 1:5.0.2-1+deb12u2 [2.199 kB]
Es wurden 3.267 kB in 1 s geholt (6.148 kB/s).
Preconfiguring packages ...
Vormals nicht ausgewähltes Paket liblxc1:armhf wird gewählt.
(Lese Datenbank ... 39567 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../liblxc1_1%3a5.0.2-1+deb12u2_armhf.deb ...
Entpacken von liblxc1:armhf (1:5.0.2-1+deb12u2) ...
Vormals nicht ausgewähltes Paket liblxc-common wird gewählt.
Vorbereitung zum Entpacken von .../liblxc-common_1%3a5.0.2-1+deb12u2_armhf.deb ...
Entpacken von liblxc-common (1:5.0.2-1+deb12u2) ...
Vormals nicht ausgewähltes Paket lxc wird gewählt.
Vorbereitung zum Entpacken von .../lxc_1%3a5.0.2-1+deb12u2_armhf.deb ...
Entpacken von lxc (1:5.0.2-1+deb12u2) ...
liblxc1:armhf (1:5.0.2-1+deb12u2) wird eingerichtet ...
liblxc-common (1:5.0.2-1+deb12u2) wird eingerichtet ...
lxc (1:5.0.2-1+deb12u2) wird eingerichtet ...
Created symlink /etc/systemd/system/multi-user.target.wants/lxc-monitord.service → /lib/systemd/system/lxc-monitord.service.
Created symlink /etc/systemd/system/multi-user.target.wants/lxc-net.service → /lib/systemd/system/lxc-net.service.
Created symlink /etc/systemd/system/multi-user.target.wants/lxc.service → /lib/systemd/system/lxc.service.
Trigger für man-db (2.11.2-2) werden verarbeitet ...
Trigger für libc-bin (2.36-9+deb12u7) werden verarbeitet ...
OK:1 http://deb.debian.org/debian bookworm InRelease
Holen:2 http://deb.debian.org/debian bookworm-updates InRelease [55,4 kB]
Holen:3 http://security.debian.org bookworm-security InRelease [48,0 kB]
Holen:4 http://deb.debian.org/debian bookworm-backports InRelease [56,5 kB]
OK:5 https://apt.pivccu.de/piVCCU stable InRelease
OK:6 http://mirrors.xtom.de/armbian bookworm InRelease
Holen:7 http://security.debian.org bookworm-security/main armhf Packages [150 kB]
Holen:8 http://deb.debian.org/debian bookworm-backports/main armhf Packages.diff/Index [63,3 kB]
Holen:9 http://deb.debian.org/debian bookworm-backports/main armhf Contents (deb).diff/Index [63,4 kB]
Holen:10 http://deb.debian.org/debian bookworm-backports/main all Contents (deb).diff/Index [63,6 kB]
Holen:11 http://deb.debian.org/debian bookworm-backports/main armhf Packages T-2024-05-06-2036.03-F-2024-05-06-2036.03.pdiff [2.520 B]
Holen:12 http://deb.debian.org/debian bookworm-backports/main armhf Contents (deb) T-2024-05-06-2036.03-F-2024-05-06-2036.03.pdiff [363 B]
Holen:11 http://deb.debian.org/debian bookworm-backports/main armhf Packages T-2024-05-06-2036.03-F-2024-05-06-2036.03.pdiff [2.520 B]
Holen:12 http://deb.debian.org/debian bookworm-backports/main armhf Contents (deb) T-2024-05-06-2036.03-F-2024-05-06-2036.03.pdiff [363 B]
Holen:13 http://deb.debian.org/debian bookworm-backports/main all Contents (deb) T-2024-05-06-2036.03-F-2024-05-06-2036.03.pdiff [295 B]
Holen:13 http://deb.debian.org/debian bookworm-backports/main all Contents (deb) T-2024-05-06-2036.03-F-2024-05-06-2036.03.pdiff [295 B]
Es wurden 504 kB in 10 s geholt (50,4 kB/s).
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Aktualisierung für 1 Paket verfügbar. Führen Sie »apt list --upgradable« aus, um es anzuzeigen.
[INFO] Identified armv7l-based Armbian host system...
[INFO] Installing linux-headers-current-rockchip
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Die folgenden zusätzlichen Pakete werden installiert:
  libelf-dev zlib1g-dev
Die folgenden NEUEN Pakete werden installiert:
  libelf-dev linux-headers-current-rockchip zlib1g-dev
0 aktualisiert, 3 neu installiert, 0 zu entfernen und 1 nicht aktualisiert.
Es müssen 15,0 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 79,7 MB Plattenplatz zusätzlich benutzt.
Holen:1 http://deb.debian.org/debian bookworm/main armhf zlib1g-dev armhf 1:1.2.13.dfsg-1 [902 kB]
Holen:2 http://deb.debian.org/debian bookworm/main armhf libelf-dev armhf 0.188-2.1 [68,7 kB]
Holen:3 http://mirrors.xtom.de/armbian bookworm/main armhf linux-headers-current-rockchip armhf 24.2.5 [14,0 MB]
Es wurden 15,0 MB in 2 s geholt (8.472 kB/s).
Vormals nicht ausgewähltes Paket zlib1g-dev:armhf wird gewählt.
(Lese Datenbank ... 39796 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../zlib1g-dev_1%3a1.2.13.dfsg-1_armhf.deb ...
Entpacken von zlib1g-dev:armhf (1:1.2.13.dfsg-1) ...
Vormals nicht ausgewähltes Paket libelf-dev:armhf wird gewählt.
Vorbereitung zum Entpacken von .../libelf-dev_0.188-2.1_armhf.deb ...
Entpacken von libelf-dev:armhf (0.188-2.1) ...
Vormals nicht ausgewähltes Paket linux-headers-current-rockchip wird gewählt.
Vorbereitung zum Entpacken von .../linux-headers-current-rockchip_24.2.5_armhf.deb ...
Armbian 'linux-headers-current-rockchip' for '6.6.22-current-rockchip': 'preinst' starting.
Armbian 'linux-headers-current-rockchip' for '6.6.22-current-rockchip': 'preinst' finishing.
Entpacken von linux-headers-current-rockchip (24.2.5) ...
zlib1g-dev:armhf (1:1.2.13.dfsg-1) wird eingerichtet ...
libelf-dev:armhf (0.188-2.1) wird eingerichtet ...
linux-headers-current-rockchip (24.2.5) wird eingerichtet ...
Armbian 'linux-headers-current-rockchip' for '6.6.22-current-rockchip': 'postinst' starting.
Compiling kernel-headers tools (6.6.22-current-rockchip) using 4 CPUs - please wait ...
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
  YACC    scripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/menu.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTCC  scripts/kconfig/util.o
  HOSTLD  scripts/kconfig/conf
*
* Restart config...
*
*
* Kernel Features
*
Symmetric Multi-Processing (SMP) [Y/n/?] y
  Allow booting SMP kernel on uniprocessor systems (SMP_ON_UP) [Y/n/?] y
Support cpu topology definition (ARM_CPU_TOPOLOGY) [Y/n/?] y
  Multi-core scheduler support (SCHED_MC) [N/y/?] n
  SMT scheduler support (SCHED_SMT) [N/y/?] n
Architected timer support (HAVE_ARM_ARCH_TIMER) [Y/?] y
Multi-Cluster Power Management (MCPM) [N/y/?] n
big.LITTLE support (Experimental) (BIG_LITTLE) [N/y/?] n
Memory split
  1. 3G/1G user/kernel split (VMSPLIT_3G)
> 2. 3G/1G user/kernel split (for full 1G low memory) (VMSPLIT_3G_OPT)
  3. 2G/2G user/kernel split (VMSPLIT_2G)
  4. 1G/3G user/kernel split (VMSPLIT_1G)
choice[1-4?]: 2
Maximum number of CPUs (2-32) (NR_CPUS) [4] 4
Support for hot-pluggable CPUs (HOTPLUG_CPU) [Y/?] y
Support for the ARM Power State Coordination Interface (PSCI) (ARM_PSCI) [Y/n/?] y
Timer frequency
  1. 100 Hz (HZ_100)
  2. 200 Hz (HZ_200)
> 3. 250 Hz (HZ_250)
  4. 300 Hz (HZ_300)
  5. 500 Hz (HZ_500)
  6. 1000 Hz (HZ_1000)
choice[1-6?]: 3
Compile the kernel in Thumb-2 mode (THUMB2_KERNEL) [N/y/?] n
Runtime patch udiv/sdiv instructions into __aeabi_{u}idiv() (ARM_PATCH_IDIV) [Y/n/?] y
Use the ARM EABI to compile the kernel (AEABI) [Y/?] y
  Allow old ABI binaries to run with this kernel (EXPERIMENTAL) (OABI_COMPAT) [N/y/?] n
High Memory Support (HIGHMEM) [Y/n/?] y
  Allocate 2nd-level pagetables from highmem (HIGHPTE) [N/y/?] n
Enable use of CPU domains to implement privileged no-access (CPU_SW_DOMAIN_PAN) [Y/n/?] y
Use PLTs to allow module memory to spill over into vmalloc area (ARM_MODULE_PLTS) [Y/n/?] y
Order of maximal physically contiguous allocations (ARCH_FORCE_MAX_ORDER) [11] 11
Use kernel mem{cpy,set}() for {copy_to,clear}_user() (UACCESS_WITH_MEMCPY) [N/y/?] n
Enable paravirtualization code (PARAVIRT) [N/y/?] n
Paravirtual steal time accounting (PARAVIRT_TIME_ACCOUNTING) [N/y/?] n
Xen guest support on ARM (XEN) [N/y/?] n
Use a unique stack canary value for each task (STACKPROTECTOR_PER_TASK) [Y/n/?] (NEW)
*
* BPF based packet filtering framework (BPFILTER)
*
BPF based packet filtering framework (BPFILTER) (BPFILTER) [Y/n/?] y
  bpfilter kernel module with user mode helper (BPFILTER_UMH) [M/n/y/?] (NEW)
*
* Memory initialization
*
Initialize kernel stack variables at function entry
> 1. no automatic stack variable initialization (weakest) (INIT_STACK_NONE)
  2. pattern-init everything (strongest) (INIT_STACK_ALL_PATTERN) (NEW)
  3. zero-init everything (strongest and safest) (INIT_STACK_ALL_ZERO) (NEW)
choice[1-3?]:
Enable heap memory zeroing on allocation by default (INIT_ON_ALLOC_DEFAULT_ON) [N/y/?] n
Enable heap memory zeroing on free by default (INIT_ON_FREE_DEFAULT_ON) [N/y/?] n
Enable register zeroing on function exit (ZERO_CALL_USED_REGS) [N/y/?] n
#
# configuration written to .config
#
  SYNC    include/config/auto.conf.cmd
  HOSTCC  scripts/dtc/dtc.o
  HOSTCC  scripts/dtc/flattree.o
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/srcpos.o
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/dtc/util.o
  LEX     scripts/dtc/dtc-lexer.lex.c
  YACC    scripts/dtc/dtc-parser.tab.[ch]
  HOSTCC  scripts/dtc/libfdt/fdt.o
  HOSTCC  scripts/dtc/libfdt/fdt_ro.o
  HOSTCC  scripts/dtc/libfdt/fdt_wip.o
  HOSTCC  scripts/dtc/libfdt/fdt_sw.o
  HOSTCC  scripts/dtc/libfdt/fdt_rw.o
  HOSTCC  scripts/dtc/libfdt/fdt_strerror.o
  HOSTCC  scripts/dtc/libfdt/fdt_empty_tree.o
  HOSTCC  scripts/dtc/libfdt/fdt_addresses.o
  HOSTCC  scripts/dtc/libfdt/fdt_overlay.o
  HOSTCC  scripts/dtc/fdtoverlay.o
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTLD  scripts/dtc/fdtoverlay
  HOSTLD  scripts/dtc/dtc
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/sorttable
  HOSTCC  scripts/asn1_compiler
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  CC      scripts/mod/devicetable-offsets.s
  UPD     scripts/mod/devicetable-offsets.h
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  MODPOST scripts/mod/Module.symvers
Done compiling kernel-headers tools (6.6.22-current-rockchip).
Done compiling kernel-headers tools (6.6.22-current-rockchip).
Armbian 'linux-headers-current-rockchip' for '6.6.22-current-rockchip': 'postinst' finishing.
Trigger für man-db (2.11.2-2) werden verarbeitet ...
[INFO] Installing pivccu-devicetree-armbian
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Die folgenden NEUEN Pakete werden installiert:
  pivccu-devicetree-armbian
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 1 nicht aktualisiert.
Es müssen 4.432 B an Archiven heruntergeladen werden.
Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
Holen:1 https://apt.pivccu.de/piVCCU stable/main armhf pivccu-devicetree-armbian all 1.0.37 [4.432 B]
Es wurden 4.432 B in 0 s geholt (20,0 kB/s).
Preconfiguring packages ...
Vormals nicht ausgewähltes Paket pivccu-devicetree-armbian wird gewählt.
(Lese Datenbank ... 63200 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../pivccu-devicetree-armbian_1.0.37_all.deb ...
Entpacken von pivccu-devicetree-armbian (1.0.37) ...
pivccu-devicetree-armbian (1.0.37) wird eingerichtet ...
piVCCU: Patching DTB rk3288-tinker.dtb
piVCCU: Patching DTB rk3288-tinker-s.dtb
Configuring pivccu-devicetree-armbian
-------------------------------------

WARNUNG: Ein Neustart ist erforderlich um die Module zu aktivieren.

[INFO] Building and installing homematic kernel modules...
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Die folgenden NEUEN Pakete werden installiert:
  pivccu-modules-dkms
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 1 nicht aktualisiert.
Es müssen 43,1 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
Holen:1 https://apt.pivccu.de/piVCCU stable/main armhf pivccu-modules-dkms all 1.0.84 [43,1 kB]
Es wurden 43,1 kB in 0 s geholt (176 kB/s).
Preconfiguring packages ...
Vormals nicht ausgewähltes Paket pivccu-modules-dkms wird gewählt.
(Lese Datenbank ... 63222 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../pivccu-modules-dkms_1.0.84_all.deb ...
Entpacken von pivccu-modules-dkms (1.0.84) ...
pivccu-modules-dkms (1.0.84) wird eingerichtet ...
Create kernel modules ... Done
Enable DKMS service ... Done
Configuring pivccu-modules-dkms
-------------------------------

WARNUNG: Ein Neustart ist erforderlich um die Module zu aktivieren.

piVCCU: DTB rk3288-tinker.dtb was already patched
piVCCU: DTB rk3288-tinker-s.dtb was already patched
[INFO] Checking correct cgroup kernel settings...
[INFO] Getting available RaspberryMatic versions...
[INFO] Selected 3.75.7.20240502-ac635c as target version
[INFO] Entering userfs storage location
[INFO] Using '/var/lib/raspberrymatic/userfs' as userfs storage location.
[INFO] Entering container name
[INFO] Using 'raspberrymatic' as container name.
[INFO] Chosen CPU core number is 2.
[INFO] Chosen memory limit is 1024 MiB.
[INFO] Downloading disk image...
[INFO] Creating LXC container config...
[INFO] Creating LXC container...
Unpacking the rootfs
[INFO] Completed Successfully. New LXC container is: (raspberrymatic).
- Start container via "sudo lxc-start raspberrymatic"
- Access console via "sudo lxc-console raspberrymatic"
- Connect to WebUI via http://homematic-raspi/
- Stop container via "sudo lxc-stop raspberrymatic"
- Destroy container via "sudo lxc-destroy raspberrymatic"
- Uninstall LXC host dependencies via "sudo ./install-lxc.sh uninstall"
- Update LXC container later via "sudo ./install-lxc.sh update"
root@tinkerboard:~#

from raspberrymatic.

Baxxy13 avatar Baxxy13 commented on June 12, 2024

Inzwischen ist mir klar wo es hakt.
Das install-lxc.sh geht nicht von einem armv7l - System aus.
Entsprechend fehlen Erkennungsroutinen für armv7l und somit werden weder die Kernel-Header noch pivccu-devicetree-armbian installiert.

Könnte man ändern. 😉

from raspberrymatic.

jens-maus avatar jens-maus commented on June 12, 2024

Das ergibt natürlich Sinn. Das Tinkerboard hat ja eine reine 32bit ARM CPU und folglich ist es 'arm' bzw 'armv7l' und eben nicht 'aarch64'. Müsstest du einfach mal alle stellen im install-lxc.sh' wo aarch64` auftaucht testweise ändern und dann schauen ob es dann durchläuft. Wenn ja, kann ich das gerne anpassen damit das 64bit und 32bit ARM akzeptiert..

from raspberrymatic.

Baxxy13 avatar Baxxy13 commented on June 12, 2024

Ich denke das läuft...
Quick & Dirty:

--- install-lxc.sh	2024-05-06 16:44:40.401793517 +0200
+++ install-lxc-bx.sh	2024-05-06 15:08:58.041647955 +0200
@@ -86,11 +86,16 @@
     info "Purging pivccu-modules-dkms"
     apt purge -y pivccu-modules-dkms
   fi
 
   HEADER_PKGS=
-  if [[ "${PLATFORM}" == "aarch64" ]] &&
+  if [[ "${PLATFORM}" == "armv7l" ]] &&
+     command -v armbian-install >/dev/null; then
+    # armv7l based Armbian system
+    info "Identified armv7l-based Armbian host system..."
+    HEADER_PKGS="$(dpkg --get-selections | grep 'linux-image-' | grep -m1 '\sinstall' | sed -e 's/linux-image-\([a-z0-9-]\+\).*/linux-headers-\1/')"
+  elif [[ "${PLATFORM}" == "aarch64" ]] &&
      command -v armbian-install >/dev/null; then
     # arm based Armbian system
     info "Identified arm64-based Armbian host system..."
     HEADER_PKGS="$(dpkg --get-selections | grep 'linux-image-' | grep -m1 '\sinstall' | sed -e 's/linux-image-\([a-z0-9-]\+\).*/linux-headers-\1/')"
   elif [[ "${PLATFORM}" == "aarch64" ]] &&
@@ -438,11 +443,16 @@
 sh -c 'echo "deb [signed-by=/usr/share/keyrings/pivccu-archive-keyring.gpg] https://apt.pivccu.de/piVCCU stable main" >/etc/apt/sources.list.d/pivccu.list'
 apt update
 
 # install kernel headers
 HEADER_PKGS=
-if [[ "${PLATFORM}" == "aarch64" ]] &&
+if [[ "${PLATFORM}" == "armv7l" ]] &&
+   command -v armbian-install >/dev/null; then
+  # armv7l based Armbian system
+  info "Identified armv7l-based Armbian host system..."
+  HEADER_PKGS="$(dpkg --get-selections | grep 'linux-image-' | grep -m1 '\sinstall' | sed -e 's/linux-image-\([a-z0-9-]\+\).*/linux-headers-\1/')"
+elif [[ "${PLATFORM}" == "aarch64" ]] &&
    command -v armbian-install >/dev/null; then
   # arm based Armbian system
   info "Identified arm64-based Armbian host system..."
   HEADER_PKGS="$(dpkg --get-selections | grep 'linux-image-' | grep -m1 '\sinstall' | sed -e 's/linux-image-\([a-z0-9-]\+\).*/linux-headers-\1/')"
 elif [[ "${PLATFORM}" == "aarch64" ]] &&
@@ -466,11 +476,11 @@
   done
 fi
 
 # install OS specific device tree stuff if RPI-RF-MOD
 # or HM-MOD-RPI-PCB will be connected to the GPIO
-if [[ "${PLATFORM}" == "aarch64" ]] &&
+if [[ "${PLATFORM}" == "aarch64" ]] || [[ "${PLATFORM}" == "armv7l" ]] &&
    ! pkg_installed pivccu-devicetree-armbian &&
    ! pkg_installed pivccu-modules-raspberrypi &&
    [[ ! -f /boot/firmware/overlays/pivccu-raspberrypi.dtbo ]]; then
 
    text=$(cat <<EOF

from raspberrymatic.

jens-maus avatar jens-maus commented on June 12, 2024

Ich denke das läuft...
[...]

Du denkst ODER das läuft? Was nun? 😜

from raspberrymatic.

Baxxy13 avatar Baxxy13 commented on June 12, 2024

Läuft! 😉

from raspberrymatic.

Baxxy13 avatar Baxxy13 commented on June 12, 2024
Installation über das modifizierte install-lxc.sh
root@tinkerboard:~# bash ./install-lxc-bx.sh
RaspberryMatic LXC installation script v1.14
Copyright (c) 2024 Jens Maus <[email protected]>

[INFO] Checking/Installing host package dependencies...
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Die folgenden zusätzlichen Pakete werden installiert:
  liblxc-common liblxc1
Vorgeschlagene Pakete:
  lvm2 python3-lxc
Empfohlene Pakete:
  apparmor debootstrap libpam-cgfs lxc-templates lxcfs uidmap
Die folgenden NEUEN Pakete werden installiert:
  liblxc-common liblxc1 lxc
0 aktualisiert, 3 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 3.267 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 24,2 MB Plattenplatz zusätzlich benutzt.
Holen:1 http://deb.debian.org/debian bookworm/main armhf liblxc1 armhf 1:5.0.2-1+deb12u2 [353 kB]
Holen:2 http://deb.debian.org/debian bookworm/main armhf liblxc-common armhf 1:5.0.2-1+deb12u2 [715 kB]
Holen:3 http://deb.debian.org/debian bookworm/main armhf lxc armhf 1:5.0.2-1+deb12u2 [2.199 kB]
Es wurden 3.267 kB in 1 s geholt (6.292 kB/s).
Preconfiguring packages ...
Vormals nicht ausgewähltes Paket liblxc1:armhf wird gewählt.
(Lese Datenbank ... 39567 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../liblxc1_1%3a5.0.2-1+deb12u2_armhf.deb ...
Entpacken von liblxc1:armhf (1:5.0.2-1+deb12u2) ...
Vormals nicht ausgewähltes Paket liblxc-common wird gewählt.
Vorbereitung zum Entpacken von .../liblxc-common_1%3a5.0.2-1+deb12u2_armhf.deb ...
Entpacken von liblxc-common (1:5.0.2-1+deb12u2) ...
Vormals nicht ausgewähltes Paket lxc wird gewählt.
Vorbereitung zum Entpacken von .../lxc_1%3a5.0.2-1+deb12u2_armhf.deb ...
Entpacken von lxc (1:5.0.2-1+deb12u2) ...
liblxc1:armhf (1:5.0.2-1+deb12u2) wird eingerichtet ...
liblxc-common (1:5.0.2-1+deb12u2) wird eingerichtet ...
lxc (1:5.0.2-1+deb12u2) wird eingerichtet ...
Created symlink /etc/systemd/system/multi-user.target.wants/lxc-monitord.service → /lib/systemd/system/lxc-monitord.service.
Created symlink /etc/systemd/system/multi-user.target.wants/lxc-net.service → /lib/systemd/system/lxc-net.service.
Created symlink /etc/systemd/system/multi-user.target.wants/lxc.service → /lib/systemd/system/lxc.service.
Trigger für man-db (2.11.2-2) werden verarbeitet ...
Trigger für libc-bin (2.36-9+deb12u7) werden verarbeitet ...
OK:1 http://deb.debian.org/debian bookworm InRelease
Holen:2 http://deb.debian.org/debian bookworm-updates InRelease [55,4 kB]
Holen:3 http://deb.debian.org/debian bookworm-backports InRelease [56,5 kB]
OK:4 http://security.debian.org bookworm-security InRelease
OK:5 https://apt.pivccu.de/piVCCU stable InRelease
OK:6 http://mirrors.xtom.de/armbian bookworm InRelease
Es wurden 112 kB in 2 s geholt (69,5 kB/s).
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Alle Pakete sind aktuell.
[INFO] Identified armv7l-based Armbian host system...
[INFO] Installing linux-headers-current-rockchip
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Die folgenden zusätzlichen Pakete werden installiert:
  libelf-dev zlib1g-dev
Die folgenden NEUEN Pakete werden installiert:
  libelf-dev linux-headers-current-rockchip zlib1g-dev
0 aktualisiert, 3 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 15,0 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 79,7 MB Plattenplatz zusätzlich benutzt.
Holen:1 http://deb.debian.org/debian bookworm/main armhf zlib1g-dev armhf 1:1.2.13.dfsg-1 [902 kB]
Holen:2 http://deb.debian.org/debian bookworm/main armhf libelf-dev armhf 0.188-2.1 [68,7 kB]
Holen:3 http://fi.mirror.armbian.de/apt bookworm/main armhf linux-headers-current-rockchip armhf 24.2.5 [14,0 MB]
Es wurden 15,0 MB in 2 s geholt (7.615 kB/s).
Vormals nicht ausgewähltes Paket zlib1g-dev:armhf wird gewählt.
(Lese Datenbank ... 39796 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../zlib1g-dev_1%3a1.2.13.dfsg-1_armhf.deb ...
Entpacken von zlib1g-dev:armhf (1:1.2.13.dfsg-1) ...
Vormals nicht ausgewähltes Paket libelf-dev:armhf wird gewählt.
Vorbereitung zum Entpacken von .../libelf-dev_0.188-2.1_armhf.deb ...
Entpacken von libelf-dev:armhf (0.188-2.1) ...
Vormals nicht ausgewähltes Paket linux-headers-current-rockchip wird gewählt.
Vorbereitung zum Entpacken von .../linux-headers-current-rockchip_24.2.5_armhf.deb ...
Armbian 'linux-headers-current-rockchip' for '6.6.22-current-rockchip': 'preinst' starting.
Armbian 'linux-headers-current-rockchip' for '6.6.22-current-rockchip': 'preinst' finishing.
Entpacken von linux-headers-current-rockchip (24.2.5) ...
zlib1g-dev:armhf (1:1.2.13.dfsg-1) wird eingerichtet ...
libelf-dev:armhf (0.188-2.1) wird eingerichtet ...
linux-headers-current-rockchip (24.2.5) wird eingerichtet ...
Armbian 'linux-headers-current-rockchip' for '6.6.22-current-rockchip': 'postinst' starting.
Compiling kernel-headers tools (6.6.22-current-rockchip) using 4 CPUs - please wait ...
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
  YACC    scripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/menu.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTCC  scripts/kconfig/util.o
  HOSTLD  scripts/kconfig/conf
*
* Restart config...
*
*
* Kernel Features
*
Symmetric Multi-Processing (SMP) [Y/n/?] y
  Allow booting SMP kernel on uniprocessor systems (SMP_ON_UP) [Y/n/?] y
Support cpu topology definition (ARM_CPU_TOPOLOGY) [Y/n/?] y
  Multi-core scheduler support (SCHED_MC) [N/y/?] n
  SMT scheduler support (SCHED_SMT) [N/y/?] n
Architected timer support (HAVE_ARM_ARCH_TIMER) [Y/?] y
Multi-Cluster Power Management (MCPM) [N/y/?] n
big.LITTLE support (Experimental) (BIG_LITTLE) [N/y/?] n
Memory split
  1. 3G/1G user/kernel split (VMSPLIT_3G)
> 2. 3G/1G user/kernel split (for full 1G low memory) (VMSPLIT_3G_OPT)
  3. 2G/2G user/kernel split (VMSPLIT_2G)
  4. 1G/3G user/kernel split (VMSPLIT_1G)
choice[1-4?]: 2
Maximum number of CPUs (2-32) (NR_CPUS) [4] 4
Support for hot-pluggable CPUs (HOTPLUG_CPU) [Y/?] y
Support for the ARM Power State Coordination Interface (PSCI) (ARM_PSCI) [Y/n/?] y
Timer frequency
  1. 100 Hz (HZ_100)
  2. 200 Hz (HZ_200)
> 3. 250 Hz (HZ_250)
  4. 300 Hz (HZ_300)
  5. 500 Hz (HZ_500)
  6. 1000 Hz (HZ_1000)
choice[1-6?]: 3
Compile the kernel in Thumb-2 mode (THUMB2_KERNEL) [N/y/?] n
Runtime patch udiv/sdiv instructions into __aeabi_{u}idiv() (ARM_PATCH_IDIV) [Y/n/?] y
Use the ARM EABI to compile the kernel (AEABI) [Y/?] y
  Allow old ABI binaries to run with this kernel (EXPERIMENTAL) (OABI_COMPAT) [N/y/?] n
High Memory Support (HIGHMEM) [Y/n/?] y
  Allocate 2nd-level pagetables from highmem (HIGHPTE) [N/y/?] n
Enable use of CPU domains to implement privileged no-access (CPU_SW_DOMAIN_PAN) [Y/n/?] y
Use PLTs to allow module memory to spill over into vmalloc area (ARM_MODULE_PLTS) [Y/n/?] y
Order of maximal physically contiguous allocations (ARCH_FORCE_MAX_ORDER) [11] 11
Use kernel mem{cpy,set}() for {copy_to,clear}_user() (UACCESS_WITH_MEMCPY) [N/y/?] n
Enable paravirtualization code (PARAVIRT) [N/y/?] n
Paravirtual steal time accounting (PARAVIRT_TIME_ACCOUNTING) [N/y/?] n
Xen guest support on ARM (XEN) [N/y/?] n
Use a unique stack canary value for each task (STACKPROTECTOR_PER_TASK) [Y/n/?] (NEW)
*
* BPF based packet filtering framework (BPFILTER)
*
BPF based packet filtering framework (BPFILTER) (BPFILTER) [Y/n/?] y
  bpfilter kernel module with user mode helper (BPFILTER_UMH) [M/n/y/?] (NEW)
*
* Memory initialization
*
Initialize kernel stack variables at function entry
> 1. no automatic stack variable initialization (weakest) (INIT_STACK_NONE)
  2. pattern-init everything (strongest) (INIT_STACK_ALL_PATTERN) (NEW)
  3. zero-init everything (strongest and safest) (INIT_STACK_ALL_ZERO) (NEW)
choice[1-3?]:
Enable heap memory zeroing on allocation by default (INIT_ON_ALLOC_DEFAULT_ON) [N/y/?] n
Enable heap memory zeroing on free by default (INIT_ON_FREE_DEFAULT_ON) [N/y/?] n
Enable register zeroing on function exit (ZERO_CALL_USED_REGS) [N/y/?] n
#
# configuration written to .config
#
  SYNC    include/config/auto.conf.cmd
  HOSTCC  scripts/dtc/dtc.o
  HOSTCC  scripts/dtc/flattree.o
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/srcpos.o
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/dtc/util.o
  LEX     scripts/dtc/dtc-lexer.lex.c
  YACC    scripts/dtc/dtc-parser.tab.[ch]
  HOSTCC  scripts/dtc/libfdt/fdt.o
  HOSTCC  scripts/dtc/libfdt/fdt_ro.o
  HOSTCC  scripts/dtc/libfdt/fdt_wip.o
  HOSTCC  scripts/dtc/libfdt/fdt_sw.o
  HOSTCC  scripts/dtc/libfdt/fdt_rw.o
  HOSTCC  scripts/dtc/libfdt/fdt_strerror.o
  HOSTCC  scripts/dtc/libfdt/fdt_empty_tree.o
  HOSTCC  scripts/dtc/libfdt/fdt_addresses.o
  HOSTCC  scripts/dtc/libfdt/fdt_overlay.o
  HOSTCC  scripts/dtc/fdtoverlay.o
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTLD  scripts/dtc/fdtoverlay
  HOSTLD  scripts/dtc/dtc
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/sorttable
  HOSTCC  scripts/asn1_compiler
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  CC      scripts/mod/devicetable-offsets.s
  UPD     scripts/mod/devicetable-offsets.h
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  MODPOST scripts/mod/Module.symvers
Done compiling kernel-headers tools (6.6.22-current-rockchip).
Done compiling kernel-headers tools (6.6.22-current-rockchip).
Armbian 'linux-headers-current-rockchip' for '6.6.22-current-rockchip': 'postinst' finishing.
Trigger für man-db (2.11.2-2) werden verarbeitet ...
[INFO] Installing pivccu-devicetree-armbian
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Die folgenden NEUEN Pakete werden installiert:
  pivccu-devicetree-armbian
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 4.432 B an Archiven heruntergeladen werden.
Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
Holen:1 https://apt.pivccu.de/piVCCU stable/main armhf pivccu-devicetree-armbian all 1.0.37 [4.432 B]
Es wurden 4.432 B in 0 s geholt (21,3 kB/s).
Preconfiguring packages ...
Vormals nicht ausgewähltes Paket pivccu-devicetree-armbian wird gewählt.
(Lese Datenbank ... 63200 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../pivccu-devicetree-armbian_1.0.37_all.deb ...
Entpacken von pivccu-devicetree-armbian (1.0.37) ...
pivccu-devicetree-armbian (1.0.37) wird eingerichtet ...
piVCCU: Patching DTB rk3288-tinker.dtb
piVCCU: Patching DTB rk3288-tinker-s.dtb
Configuring pivccu-devicetree-armbian
-------------------------------------

WARNUNG: Ein Neustart ist erforderlich um die Module zu aktivieren.

[INFO] Building and installing homematic kernel modules...
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Die folgenden NEUEN Pakete werden installiert:
  pivccu-modules-dkms
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 43,1 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
Holen:1 https://apt.pivccu.de/piVCCU stable/main armhf pivccu-modules-dkms all 1.0.84 [43,1 kB]
Es wurden 43,1 kB in 0 s geholt (155 kB/s).
Preconfiguring packages ...
Vormals nicht ausgewähltes Paket pivccu-modules-dkms wird gewählt.
(Lese Datenbank ... 63222 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../pivccu-modules-dkms_1.0.84_all.deb ...
Entpacken von pivccu-modules-dkms (1.0.84) ...
pivccu-modules-dkms (1.0.84) wird eingerichtet ...
Create kernel modules ... Done
Enable DKMS service ... Done
Configuring pivccu-modules-dkms
-------------------------------

WARNUNG: Ein Neustart ist erforderlich um die Module zu aktivieren.

piVCCU: DTB rk3288-tinker.dtb was already patched
piVCCU: DTB rk3288-tinker-s.dtb was already patched
[INFO] Checking correct cgroup kernel settings...
[INFO] Getting available RaspberryMatic versions...
[INFO] Selected 3.75.7.20240502-ac635c as target version
[INFO] Entering userfs storage location
[INFO] Using '/var/lib/raspberrymatic/userfs' as userfs storage location.
[INFO] Entering container name
[INFO] Using 'raspberrymatic' as container name.
[INFO] Chosen CPU core number is 2.
[INFO] Chosen memory limit is 1024 MiB.
[INFO] Downloading disk image...
[INFO] Creating LXC container config...
[INFO] Creating LXC container...
Unpacking the rootfs
[INFO] Completed Successfully. New LXC container is: (raspberrymatic).
- Start container via "sudo lxc-start raspberrymatic"
- Access console via "sudo lxc-console raspberrymatic"
- Connect to WebUI via http://homematic-raspi/
- Stop container via "sudo lxc-stop raspberrymatic"
- Destroy container via "sudo lxc-destroy raspberrymatic"
- Uninstall LXC host dependencies via "sudo ./install-lxc-bx.sh uninstall"
- Update LXC container later via "sudo ./install-lxc-bx.sh update"
root@tinkerboard:~#

Sieht m.E. soweit gut aus und läuft sauber durch.

from raspberrymatic.

jens-maus avatar jens-maus commented on June 12, 2024

Ja, sieht gut aus, nur die deutschen Ausgaben sind nervig. Bei einem Linux System gehört es sich dieses mit englischen Ausgaben aufzusetzen 😜

Danke dir, werd ich dann später mir anschauen und dann die Änderungen einbongen...

from raspberrymatic.

Related Issues (20)

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.