mirror of
https://github.com/mbirth/tcl_ota_check.git
synced 2024-11-10 06:16:46 +00:00
Allow to specify from-version for tclcheck_allota.py. Updated README.
This commit is contained in:
parent
fb830f8dd1
commit
f324f4d283
18
README.md
18
README.md
@ -20,21 +20,16 @@ and abort the update.
|
|||||||
How to find available OTA updates
|
How to find available OTA updates
|
||||||
---------------------------------
|
---------------------------------
|
||||||
|
|
||||||
After downloading or cloning the repository, edit the `tclcheck_all.py` and change the `fc.fv`
|
After downloading or cloning the repository, make all tclcheck*.py scripts executable if needed.
|
||||||
variable to your current firmware version. Let's assume you have a UK BBB100-2, so your PRD would
|
Let's assume you have a UK BBB100-2, so your PRD would be `PRD-63117-003` and as of September
|
||||||
be `PRD-63117-003` and as of September 2017, your firmware version would be `AAM481`. So change the
|
2017, your firmware version would be `AAM481`. Just run the following script:
|
||||||
line with `fc.fv` to:
|
|
||||||
|
|
||||||
fc.fv = "AAM481"
|
./tclcheck_allota.py AAM481
|
||||||
|
|
||||||
Also change the `fc.mode` line to:
|
You'll get an output like this:
|
||||||
|
|
||||||
fc.mode = fc.MODE_OTA
|
|
||||||
|
|
||||||
Now run the script. You'll get an output like this:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
List of latest OTA (from AAM481) firmware by PRD:
|
List of latest OTA firmware from AAM481 by PRD:
|
||||||
...
|
...
|
||||||
PRD-63117-003 failed. (No update available.)
|
PRD-63117-003 failed. (No update available.)
|
||||||
PRD-63117-011: AAM481 ⇨ AAN358 d819919187b46793abeaeff60dd6deee17baac4b (QWERTZ BBB100-2 (Germany))
|
PRD-63117-011: AAM481 ⇨ AAN358 d819919187b46793abeaeff60dd6deee17baac4b (QWERTZ BBB100-2 (Germany))
|
||||||
@ -60,3 +55,4 @@ As you can see, our `PRD-63117-003` variant doesn't have the update yet, but oth
|
|||||||
|
|
||||||
You can use this info, to [install the update for a different variant](http://wiki.mbirth.de/know-how/hardware/blackberry-keyone/bb-keyone-ota-updates-for-different-variants.html).
|
You can use this info, to [install the update for a different variant](http://wiki.mbirth.de/know-how/hardware/blackberry-keyone/bb-keyone-ota-updates-for-different-variants.html).
|
||||||
Just make sure to use a variant that has the same model number (`63117` = BBB100-2).
|
Just make sure to use a variant that has the same model number (`63117` = BBB100-2).
|
||||||
|
|
||||||
|
0
tclcheck.py
Normal file → Executable file
0
tclcheck.py
Normal file → Executable file
0
tclcheck_all.py
Normal file → Executable file
0
tclcheck_all.py
Normal file → Executable file
0
tclcheck_allfull.py
Normal file → Executable file
0
tclcheck_allfull.py
Normal file → Executable file
16
tclcheck_allota.py
Normal file → Executable file
16
tclcheck_allota.py
Normal file → Executable file
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
# pylint: disable=C0111,C0326
|
# pylint: disable=C0111,C0326
|
||||||
|
|
||||||
|
import sys
|
||||||
import tcllib
|
import tcllib
|
||||||
from requests.exceptions import RequestException, Timeout
|
from requests.exceptions import RequestException, Timeout
|
||||||
|
|
||||||
@ -14,7 +15,13 @@ fc.serid = "3531510"
|
|||||||
fc.mode = fc.MODE_OTA
|
fc.mode = fc.MODE_OTA
|
||||||
fc.cltp = 10
|
fc.cltp = 10
|
||||||
|
|
||||||
print("List of latest OTA firmware by PRD:".format(fc.fv))
|
force_ver = False
|
||||||
|
force_ver_text = ""
|
||||||
|
if len(sys.argv) > 1:
|
||||||
|
force_ver = sys.argv[1]
|
||||||
|
force_ver_text = " from {}".format(force_ver)
|
||||||
|
|
||||||
|
print("List of latest OTA firmware{} by PRD:".format(force_ver_text))
|
||||||
|
|
||||||
with open("prds.txt", "r") as afile:
|
with open("prds.txt", "r") as afile:
|
||||||
prdx = afile.read()
|
prdx = afile.read()
|
||||||
@ -22,16 +29,15 @@ with open("prds.txt", "r") as afile:
|
|||||||
|
|
||||||
while len(prds) > 0:
|
while len(prds) > 0:
|
||||||
prd, lastver, model = prds[0].split(" ", 2)
|
prd, lastver, model = prds[0].split(" ", 2)
|
||||||
|
if force_ver != False:
|
||||||
|
lastver = force_ver
|
||||||
try:
|
try:
|
||||||
fc.reset_session()
|
fc.reset_session()
|
||||||
fc.curef = prd
|
fc.curef = prd
|
||||||
fc.fv = lastver
|
fc.fv = lastver
|
||||||
check_xml = fc.do_check()
|
check_xml = fc.do_check()
|
||||||
curef, fv, tv, fw_id, fileid, fn, fsize, fhash = fc.parse_check(check_xml)
|
curef, fv, tv, fw_id, fileid, fn, fsize, fhash = fc.parse_check(check_xml)
|
||||||
txt_tv = tv
|
print("{}: {} ⇨ {} {} ({})".format(prd, fv, tv, fhash, model))
|
||||||
if fc.mode == fc.MODE_OTA:
|
|
||||||
txt_tv = "{} ⇨ {}".format(fv, tv)
|
|
||||||
print("{}: {} {} ({})".format(prd, txt_tv, fhash, model))
|
|
||||||
prds.pop(0)
|
prds.pop(0)
|
||||||
except Timeout as e:
|
except Timeout as e:
|
||||||
print("{} failed. (Connection timed out.)".format(prd))
|
print("{} failed. (Connection timed out.)".format(prd))
|
||||||
|
0
tclcheck_new.py
Normal file → Executable file
0
tclcheck_new.py
Normal file → Executable file
Loading…
Reference in New Issue
Block a user