- LBC supervisor v1..v4 (linux/patches/b10b3-lbc-supervisor-v3.patch + b10/b10b3/lbc-v3-to-v4-fault-clamp.diff): CHARGING 4.20 V/450 mA -> HOLD 4.05 V after 60 min CV -> battery -> new cycle on USB insert; FAULT = VDD_MAX 4.00 V clamp - RAM tests C/B/D/D2/D3/D4 (safety timer only ends fast charge), B10B-4 actuator audit (VDD_MAX works, USB_SUSP does not), B10B-5 FAULT clamp regression, production run, warm reboot via PON reboot reason - cache = B10B-5 c3732515 (HW EDL write, readback + full partition verify), class-A persistent validation - test-only hooks/images are not part of the production kernel; images with the AP PSK are not published
27 lines
2.2 KiB
Bash
Executable file
27 lines
2.2 KiB
Bash
Executable file
#!/bin/bash
|
|
# B10B-5 cache CANDIDATE (v4 = v3 + FAULT safe clamp; NOT for writing without a separate GO): exact recipe of b10/b10b3/cache/mkfs-cache-b10b3.sh (86869061);
|
|
# differs only in the kernel file (Image.gz-dtb = kernel 7.2.7-aurora-b10b5 96b71ec3 + the same production DTB e47762d1),
|
|
# fdt (production DTB), file names, extlinux label, fs label and UUIDs. initrd and append = B9C unchanged. Runs on 480s (mke2fs 1.47.2). Offline only.
|
|
# The image contains the AP PSK (in the initramfs) - never publish it.
|
|
set -e
|
|
cd ~/doc/modem/jz08-aurora/b10/b10b3/cache-v4
|
|
OUT=${1:-cache-extlinux-b10b5.img}; F=../out-v4
|
|
echo "0fef41b262917c8ae308fa222da0017e2b3cb3ec5da1ca8ba18d0318476761a3 $F/cmdline.txt" | sha256sum -c
|
|
echo "b0ea04666c4ab979067fe9c0015bda0e9c8ac742678321e57b18e841c9c69f95 $F/Image.gz-dtb" | sha256sum -c
|
|
echo "e47762d1dcd0af6e2acb711fa47ecc13769cd6bcb81259ce50635e8b18b6514a $F/aurora-b10b3.dtb" | sha256sum -c
|
|
echo "ac518e27e2957ad5e4515969b9a3808024e11ef8d1a79433a899a67dbc644558 $F/initramfs.cpio.gz" | sha256sum -c
|
|
ST=$(mktemp -d); mkdir -p $ST/extlinux
|
|
cp $F/Image.gz-dtb $F/aurora-b10b3.dtb $ST/; cp $F/initramfs.cpio.gz $ST/initramfs-b9c.cpio.gz
|
|
printf "default b10b5\nlabel b10b5\n\tlinux /Image.gz-dtb\n\tfdt /aurora-b10b3.dtb\n\tinitrd /initramfs-b9c.cpio.gz\n\tappend %s\n" "$(cat $F/cmdline.txt)" > $ST/extlinux/extlinux.conf
|
|
cp $ST/extlinux/extlinux.conf extlinux-b10b5.conf
|
|
chmod 0644 $ST/*.* $ST/extlinux/extlinux.conf; chmod 0755 $ST $ST/extlinux
|
|
find $ST -exec touch -h -d @1790726400 {} +
|
|
rm -f $OUT; truncate -s 134217728 $OUT
|
|
E2FSPROGS_FAKE_TIME=1790726400 /sbin/mke2fs -F -q -t ext2 -O none,filetype,sparse_super \
|
|
-b 4096 -I 128 -N 64 -m 0 -L aurora-b10b5 -U 4a5a3038-b6f0-4000-8000-0000b10b5c00 \
|
|
-E root_owner=0:0,hash_seed=4a5a3038-b6f0-4000-8000-0000b10b5c01 -d $ST $OUT 32768
|
|
rm -rf $ST
|
|
for f in / /lost+found /extlinux /extlinux/extlinux.conf /Image.gz-dtb /aurora-b10b3.dtb /initramfs-b9c.cpio.gz; do for t in atime ctime mtime; do echo "sif $f $t @1790726400"; done; done > /tmp/b10b5-sif.$$
|
|
/sbin/debugfs -w -f /tmp/b10b5-sif.$$ $OUT >/dev/null 2>&1; rm -f /tmp/b10b5-sif.$$
|
|
/sbin/e2fsck -fn $OUT >/dev/null 2>&1 && echo "e2fsck -fn clean"
|
|
stat -c "%n %s" $OUT; sha256sum $OUT
|