Sanitized research log, build/reproducibility docs, DTS, kernel configs, patches, initramfs sources, bootchain migration plans and test logs. B5 direct boot PASS; B6 modem lifecycle in progress. No dumps, NV/EFS, vendor firmware or device identifiers included.
16 lines
1.3 KiB
Python
16 lines
1.3 KiB
Python
import struct,sys
|
|
R="/home/q/doc/modem/jz08-aurora/"
|
|
src={"modem":"logs/b5a/A4pre/modem.bin","sbl1":"logs/b5a/A3/sbl1.bin","sbl1bak":"partitions/sbl1bak.bin","aboot":"b5a/aboot-lk1st-aurora-autoboot.pad1M",
|
|
"abootbak":"partitions/abootbak.bin","rpm":"logs/b5a/A3/rpm.bin","rpmbak":"partitions/rpmbak.bin","tz":"logs/b5a/A3/tz.bin","tzbak":"logs/b5a/A3/tzbak-305184.bin",
|
|
"hyp":"logs/b5a/A3/hyp.bin","hypbak":"partitions/hypbak.bin","pad":"partitions/pad.bin","modemst1":"logs/b5a/A3/modemst1.bin","modemst2":"logs/b5a/A3/modemst2.bin",
|
|
"misc":"partitions/misc.bin","fsc":"logs/b5a/A3/fsc.bin","ssd":"partitions/ssd.bin","splash":"partitions/splash.bin","DDR":"partitions/DDR.bin","fsg":"logs/b5a/A3/fsg.bin",
|
|
"sec":"partitions/sec.bin","boot":"b5a/boot-emmc1-16MiB.img","system":"logs/b5a/A4pre/system.bin","persist":"logs/b5a/A3/persist.bin",
|
|
"cache":sys.argv[1],"recovery":"logs/b5a/A3/recovery.bin","userdata":"logs/b5a/A4pre/userdata.bin"}
|
|
g=open(R+"logs/b5a/A3/gpt-primary-34.bin","rb").read()
|
|
print(0,34,R+"logs/b5a/A3/gpt-primary-34.bin")
|
|
for i in range(128):
|
|
e=g[1024+128*i:1024+128*(i+1)]
|
|
if e[:16]==bytes(16): continue
|
|
f,l=struct.unpack("<QQ",e[32:48]); n=e[56:128].decode("utf-16le").rstrip("\0")
|
|
p=src[n]; p=p if p.startswith("/") else R+p
|
|
print(f,l-f+1,p)
|