Bintec W20XXax-Firmware in QEMU (Docker): Extraktion, generischer Kernel-Boot, Doku
This commit is contained in:
Executable
+22
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
# Phase 3: Bootversuch des Original-QSDK-Kernels (IPQ60xx) in QEMU -M virt.
|
||||
# Erwartung: frueher Crash/Stillstand, weil die IPQ60xx-Peripherie nicht emuliert wird.
|
||||
# Output -> /build/logs/boot-native.log
|
||||
set -uo pipefail
|
||||
WORK="${WORK:-/build/work}"
|
||||
LOGS="${LOGS:-/build/logs}"
|
||||
mkdir -p "$WORK" "$LOGS"
|
||||
|
||||
echo "Starte Original-QSDK-Kernel 4.4.60 in qemu-system-aarch64 -M virt (Timeout 60s)..."
|
||||
DTB=$(ls "$WORK"/*.dtb 2>/dev/null | head -1)
|
||||
timeout 60 qemu-system-aarch64 \
|
||||
-M virt -cpu cortex-a53 -m 512 \
|
||||
-kernel "$WORK/kernel.img" \
|
||||
-dtb "$DTB" \
|
||||
-nographic \
|
||||
-append "console=ttyAMA0,115200 earlycon" \
|
||||
> "$LOGS/boot-native.log" 2>&1
|
||||
RC=$?
|
||||
echo "Exit-Code: $RC (124 = Timeout erreicht, Kernel lief 60s ohne terminales Log)"
|
||||
echo "--- letzte 30 Zeilen ---"
|
||||
tail -30 "$LOGS/boot-native.log"
|
||||
Reference in New Issue
Block a user