#!/bin/bash # B12P rollback - restore the B10 cache (c3732515, operational since 2026-10-04). Needs 9008 via HW EDL (D+->GND). boot/aboot/userdata untouched # (B10 init sets every eMMC device RO and never mounts userdata, so the ext4 Alpine there is inert). Deeper rollback: b10/b10b5/B10-rollback.sh (B9C). cd ~/doc/modem/jz08-aurora || exit 1 L=firehose/007050e100000000_394a2e47cf830150_fhprg_peek.bin ; O=logs/b12/b12p/rollback ; mkdir -p $O B=b10/b10b3/cache-v4/cache-extlinux-b10b5.img [ "$(sha256sum $B | cut -d' ' -f1)" = c37325156a6f4c013982cf01bcb5b2ddb026b0298e9c3ec0be87f57d693464b8 ] || { echo "STOP: rollback image hash"; exit 1; } lsusb | grep -q 05c6:9008 || { echo "STOP: no 9008"; exit 1; } edl --loader=$L printgpt > $O/00-printgpt.log 2>&1 edl --loader=$L w cache $B > $O/cache-w.log 2>&1 edl --loader=$L r cache $O/cache-rb.bin > /dev/null 2>&1 ; cmp $B $O/cache-rb.bin && echo CACHE_RESTORED_B10 sha256sum $B $O/cache-rb.bin