danielewood / sierra-wireless-modems

EM7565/EM7455/MC7455 - Modem Configuration
The Unlicense
457 stars 96 forks source link

Refactor script to make it modular and support switches and options. #28

Closed danielewood closed 5 years ago

danielewood commented 5 years ago
Usage: autoflash-7455.sh

Modem Modes:
 -h    Display usage instructions
 -u    Set AT!USBSPEED
         0 - High Speed USB 2 [Default]
         1 - SuperSpeed USB 3
 -m    Set AT!USBCOMP
         8 - MBIM mode (diag,nmea,modem,mbim) [Default]
         6 - QMI mode (diag,nmea,modem,rmnet0)
 -b    Set AT!SELRAT and AT!BAND
         9 - LTE Only [Default]
         0 - All Bands
 -e    Set AT!FASTENUMEN
         0 - Disable fast enumeration
         1 - Enable fast enumeration for cold boot and disable for warm boot
         2 - Enable fast enumeration for warm boot and disable for cold boot [Default]
         3 - Enable fast enumeration for warm and cold boot

Script Modes:
 -a    Enable All Script Functions [Default]
         Same as: autoflash-7455.sh -Mgcdfs
 -M    Use swi_setusbcomp.pl to set modem composition
 -g    Display Modem Settings
 -c    Clear Existing Modem Firmwares
 -d    Download and Unpack Modem Firmware from Sierra Wireless
 -f    Flash Modem Firmware
 -s    Change Modem Settings/Modes
 -l    Legacy Stable Firmware
         Set SWI9X30C_ZIP="SWI9X30C_02.30.01.01_GENERIC_002.045_001.zip"
 -q    Quiet Mode -- suppress most output
 -v    Verbose/Debug Mode