Buonasera a tutti, ho tra le mani un timhub , ho fatto già il root, adesso dovrei fare il Bank Planning, però prima di fare qualche cavolata preferisco essere sicuro
root@modemtim:~# find /proc/banktable -type f -print -exec cat {} ';' -exec echo ';'
/proc/banktable/notbootedoid
6267a767a05c1444ac37e39c
/proc/banktable/bootedoid
595b885abd3c1a55a7e453a4
/proc/banktable/passiveversion
19.4.0866-3401049-20220426100351-5bde4b5646ee7061e320c605e10e3aaa98af4706
/proc/banktable/activeversion
17.1.7812-0001019-20170704142146-f19db08ab5c86434318a24c8ee86cbce5ab51da6
/proc/banktable/inactive
bank_1
/proc/banktable/active
bank_2
/proc/banktable/notbooted
bank_1
/proc/banktable/booted
bank_2
root@modemtim:~#
vorrei sapere se già cosi è a posto, oppure se devo intervenire come in questa guida
https://hack-technicolor.readthedocs.io/en/stable/Hacking/PostRoot/#bank-planningse si, i comandi visualizzati vanno copiati da un asterisco all'altro?
# Ensure two banks match in sizes
[ $(grep -c bank_ /proc/mtd) = 2 ] && \
[ "$(grep bank_1 /proc/mtd | cut -d' ' -f2)" = \
"$(grep bank_2 /proc/mtd | cut -d' ' -f2)" ] && {
# Clone and verify firmware into bank_2 if applicable
[ "$(cat /proc/banktable/booted)" = "bank_1" ] && {
mtd -e bank_2 write /dev/$(grep bank_1 /proc/mtd | cut -d: -f1) bank_2 && \
echo Verifying ... && \
[ $(sha256sum /dev/$(grep bank_1 /proc/mtd | cut -d: -f1) /dev/$(grep bank_2 /proc/mtd | cut -d: -f1) | cut -d' ' -f1 | sort -u | wc -l ) -eq 1 ] || \
{ echo Clone verification failed, retry; exit; } }
# Make a temp copy of overlay for booted firmware
cp -rf /overlay/$(cat /proc/banktable/booted) /tmp/bank_overlay_backup
# Clean up jffs2 space by removing existing old overlays
rm -rf /overlay/*
# Use the previously made temp copy as overlay for bank_2
cp -rf /tmp/bank_overlay_backup /overlay/bank_2
# Activate bank_1
echo bank_1 > /proc/banktable/active
# Make sure above changes get written to flash
sync
# Erase firmware in bank_1
mtd erase bank_1;
# Emulate system crash to hard reboot
echo c > /proc/sysrq-trigger; }
# end
grazie per i chiarimenti