view scripts/gtm900b-ffs-clean @ 921:74d284add54d

fc-fsio: guard against bogus readdir results from the target If the FFS being operated on contains SE K2x0 extended filenames, readdir will return strings that are bad for printing. We need to guard against this possibility, and also against possible other bogosity that could be sent by other alien firmwares.
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 31 Dec 2022 22:55:23 +0000
parents d5abcbbf7432
children
line wrap: on
line source

# This fc-fsio command script should be executed as part of the procedure
# for converting a Huawei GTM900-B (EU frequency bands) modem to FreeCalypso;
# it should be executed after FreeCalypso fw has been flashed with fc-loadtool,
# when the newly flashed fw is booted for the first time.

# delete Huawei files which are wrong for FreeCalypso fw
cleandir /aud
rm -f /gsm/com/baseprofile0
rm -f /gsm/com/cmdList
rm -f /gsm/com/profile0
rm -f /gsm/l3/rr_sc_arfcn
rm -f /pcm/BAUDRATE
rm -f /pcm/LDN
rm -f /pcm/LMN
rm -f /pcm/LRN
rm -f /pcm/SMS
cleandir /mmi

# new RF band configuration and ID string
set-rfcap dual-eu
set-pcm-string CGMM GTM900-B-FC