Bintec W20XXax-Firmware in QEMU (Docker): Extraktion, generischer Kernel-Boot, Doku

This commit is contained in:
2026-09-16 21:47:42 +02:00
commit 6ac7e6b305
20 changed files with 2779 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/bin/bash
# Interaktive OSDx-VM: Serial-Console direkt im Terminal (Strg+A x beendet QEMU).
# Webinterface nach dem Boot erreichbar unter:
# http://localhost:8080 / https://localhost:8443 (self-signed)
# Aufruf: docker run --rm -it -p 8080:8080 -p 8443:8443 -p 2222:2222 \
# -v "$PWD:/build" bintec-fw /build/boot-interactive.sh
set -uo pipefail
WORK="${WORK:-/build/work}"
KVER=$(ls "$WORK/deb-kernel/lib/modules" 2>/dev/null | head -1)
exec qemu-system-aarch64 \
-M virt -cpu cortex-a53 -m 1024 -smp 1 \
-kernel "$WORK/deb-kernel/boot/vmlinuz-$KVER" \
-initrd "$WORK/initramfs.img" \
-drive if=virtio,format=raw,file="$WORK/rootfs.ext4" \
-netdev user,id=n0,hostfwd=tcp::2222-:22,hostfwd=tcp::8080-:80,hostfwd=tcp::8443-:443 -device virtio-net-pci,netdev=n0 \
-no-reboot -nographic \
-append "root=/dev/vda rw console=ttyAMA0,115200"