changeset 714:e78c7ab3b0e6

loadtool.help: flash prot-reg and flash compal-imei additions documented
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 06 Jun 2020 17:36:13 +0000
parents cf7bd5e705ed
children 631b096108cd
files loadtools/loadtool.help
diffstat 1 files changed, 20 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/loadtools/loadtool.help	Fri Jun 05 07:54:33 2020 +0000
+++ b/loadtools/loadtool.help	Sat Jun 06 17:36:13 2020 +0000
@@ -163,14 +163,16 @@
 flash e-program-bin	Combined erase and program-bin
 flash e-program-m0	Combined erase and program-m0
 flash e-program-srec	Combined erase and program-srec
+flash prot-reg		Read Intel flash OTP protection register
 flash quickprog		Program a few flash words from the command line
 flash reset		Reset flash chip to read array mode
 flash sectors		Display the list of flash sector addresses and sizes
 flash status		Intel-style flash only: read Status Register
 flash unlock		Intel-style flash only: unlock flash sectors
 
-Additional operation for Compal targets only:
+Additional operations for Compal targets only:
 
+flash compal-imei		Read IMEI from OTP protection register
 flash erase-program-boot	Erase and reprogram the boot sector
 
 Substitute flash2 instead of flash when operating on the 2nd flash chip select
@@ -185,6 +187,17 @@
 Reports whether the checked region is blank or not.  Flash must be blank (FF in
 all bytes) before it can be programmed.
 
+=== flash:compal-imei
+flash compal-imei		Display the Compal phone's IMEI
+flash compal-imei <filename>	Display the Compal phone's IMEI, and also
+				save it in the named file
+
+Compal phones have their factory IMEI stored in the flash chip's OTP protection
+register.  This command reads the Intel flash protection register, checks its
+content for an IMEI formatted in Compal's particular way, and if a valid-looking
+IMEI is found, it is displayed on the terminal.  The extracted IMEI can also be
+saved into a text file.
+
 === flash:dump2bin
 flash[2] dump2bin outfile [offset [length]]
 
@@ -332,6 +345,12 @@
 TI's *.m0 files.  This command is provided only for the sake of symmetry - no
 practical use case is envisioned.
 
+=== flash:prot-reg
+This command is only applicable to Intel-style flash chips.  These flash chips
+have an OTP (one time programmable, then physically immutable afterward) area
+called "protection register"; this command reads the flash chip's protection
+register and displays its content as in lock word, factory words and user words.
+
 === flash:quickprog
 flash[2] quickprog hex-offset hex-data-string