diff options
| author | dangofactory <root@dangofactory.net> | 2026-11-22 04:09:02 +0000 |
|---|---|---|
| committer | dangofactory <root@dangofactory.net> | 2026-11-22 04:09:02 +0000 |
| commit | 1f61487e5c4931e00f5702b6016222ffaa4276d4 (patch) | |
| tree | acf451f7b47758e8d4c722b655d1772113fc0dcc /tools/verify_build.sh | |
| download | ckb01-master.tar.gz ckb01-master.zip | |
Diffstat (limited to 'tools/verify_build.sh')
| -rwxr-xr-x | tools/verify_build.sh | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/tools/verify_build.sh b/tools/verify_build.sh new file mode 100755 index 0000000..b2da53b --- /dev/null +++ b/tools/verify_build.sh @@ -0,0 +1,47 @@ +#!/bin/sh +# Verify the Wi-Fi-enabled build inside the bhyve guest (ckb01 / deb@10.1.0.4). +# Run: sh ~/ckb01/tools/verify_build.sh +set -u +cd "$HOME/openwrt" || exit 1 + +echo "=== 1. images ===" +ls -l bin/targets/qualcommax/ipq807x/*oppo_ckb01* 2>/dev/null + +echo +echo "=== 2. ITB size (limit 38 MB) ===" +ITB=$(ls bin/targets/qualcommax/ipq807x/*initramfs-uImage.itb 2>/dev/null | head -1) +if [ -n "$ITB" ]; then + SZ=$(stat -c%s "$ITB") + echo "$ITB $SZ bytes ($((SZ / 1024 / 1024)) MiB)" + if [ "$SZ" -lt 39845888 ]; then echo "OK: < 38 MiB"; else echo "NG: >= 38 MiB"; fi + sha256sum "$ITB" +else + echo "no ITB" +fi + +echo +echo "=== 3. manifest: ath11k / board-2 / ipq-wifi ===" +grep -E "ath11k|ipq-wifi|board-2" bin/targets/qualcommax/ipq807x/*.manifest | head -20 || echo "none" + +echo +echo "=== 4. rootfs: firmware files ===" +for p in build_dir/target-*/root-*/lib/firmware/ath11k/IPQ8074/hw2.0; do + [ -d "$p" ] || continue + echo "-- $p" + ls -l "$p" | head -10 +done + +echo +echo "=== 5. hotplug script contains oppo,ckb01 ===" +grep -n -A3 "oppo,ckb01" target/linux/qualcommax/ipq807x/base-files/etc/hotplug.d/firmware/11-ath11k-caldata + +echo +echo "=== 6. DTB: partitions + wifi node ===" +DTB=$(ls build_dir/target-*/linux-qualcommax_ipq807x/image/*ckb01*.dtb 2>/dev/null | head -1) +if [ -n "$DTB" ]; then + echo "-- $DTB" + dtc -I dtb -O dts "$DTB" 2>/dev/null | grep -n -E "0:ART|fixed-partitions|wifi@|wifi: wifi" | head -20 +else + echo "dtb not found; searching" + find build_dir -name '*ckb01*.dtb' 2>/dev/null | head +fi |
