FreeCalypso > hg > fc-magnetite
annotate doc/C1xx-Howto @ 411:ee49b250774f
tpudrv10.c: initial rf_path[] reconstruction
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 19 Jan 2018 07:38:43 +0000 |
parents | 43dbedde9d80 |
children | 6530fc550836 |
rev | line source |
---|---|
383
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 Running FreeCalypso firmware on Motorola C1xx phones |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 ==================================================== |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 Before we begin, it needs to be noted that running FreeCalypso fw on a C1xx |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 phone is very much akin to xenotransplantation: Mot C1xx hardware is an alien |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 to our FreeCalypso family (our native hw targets are those made by TI, Openmoko |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 and us, not Motorola or Compal), and our non-Compal-based, non-Mot-based |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 FreeCalypso fw is equally alien to the C1xx phones. The xenotransplantation |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 procedure of converting a C1xx phone to FreeCalypso is highly unnatural, and |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 involves a large number of cumbersome manual steps - you've been warned. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 Preparing the host system |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 ========================= |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 Firmware flashing on Mot C1xx phones is accomplished through the headset jack |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 via a special cable. There is no need to disassemble the phone in any way or |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 to do any soldering or other hardware surgery, but you will need a host system |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 to run the multitude of special software tools that are involved in the |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 procedure. You will need to begin by installing FreeCalypso host tools, and |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 the current version of the FC-C1xx xenotransplantation procedure (the additions |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 from the previous version are RF calibration data migration and battery |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 charging configuration) requires the use of some new features that (as of this |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 writing) have not yet made it in a packaged release of FC host tools - hence |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 you will need to install and use the current "bleeding edge" development |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 version from: |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 https://bitbucket.org/falconian/freecalypso-tools |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 You will also need the battery charging configuration files: |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
30 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
31 https://bitbucket.org/falconian/fc-battery-conf |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
32 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
33 Run 'make install' in the fc-battery-conf tree to add the battery charging |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
34 configuration files to your FC host tools installation under /opt/freecalypso. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
35 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
36 Flash backup and data gathering |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
37 =============================== |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
38 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
39 Before you begin the actual conversion of your C1xx phone to FreeCalypso, you |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
40 will need to gather the following pieces of information: |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
41 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
42 * The phone's IMEI - we don't know how to extract it out of Mot/Compal's non-TI |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
43 flash data structures, so you will have to reset it manually after the |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
44 firmware change. Of course you can set your "new" FreeCalypso IMEI to |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
45 whatever you feel like, but if you wish to keep the original factory-assigned |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
46 one, you will need to note it down manually, either from the sticker inside |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
47 the battery compartment (*very* hard to read!) or by booting the phone up |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
48 with its original fw prior to the conversion, entering *#06# and reading it |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
49 from the display. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
50 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
51 * Your specific phone's factory RF calibration values: you will need to make a |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
52 dump of your phone's flash memory (also serves as a backup, always a good |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
53 thing to have) with fc-loadtool and extract the numbers of interest with our |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
54 c1xx-calextr utility, which is part of the new FC host tools. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
55 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
56 * You need to know whether your phone has 900+1800 MHz or 850+1900 MHz bands - |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
57 you will need to communicate this information to the new fw after the |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
58 conversion. To the best of our knowledge, all C11x/12x and C140 phones have |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
59 900+1800 MHz bands, but C139 phones have been made in both versions. On the |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
60 phones that have passed through our hands so far, the first two digits of the |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
61 IMEI have been 35 on 900+1800 MHz phones and 01 on 850+1900 MHz ones. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
62 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
63 * You need to know whether your phone has 2 MiB or 4 MiB flash. To the best of |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
64 our knowledge, all C139/140 phones have 4 MiB flash, but C11x have been seen |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
65 with both 2 MiB and 4 MiB flashes. The flash memory size will be autodetected |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
66 by fc-loadtool as part of making the flash dump. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
67 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
68 The Mother's method for keeping track of these per-phone bits of information is |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
69 to create a separate directory for each phone with the IMEI as the directory |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
70 name; the flash dump and the RF calibration bits extracted from it will then |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
71 reside in that directory, while the IMEI is in the name of the directory itself. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
72 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
73 Once you have created your per-phone directory and cd'ed into it, you are ready |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
74 to run fc-loadtool to capture the flash dump. The phone needs to be off, but |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
75 the battery needs to be present and have some charge in it; with the phone off, |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
76 connect the serial cable between your host computer and the phone's headset |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
77 jack, and run fc-loadtool as follows: |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
78 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
79 fc-loadtool -h compal -c 1004 /dev/ttyXXX |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
80 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
81 Change /dev/ttyXXX to the serial or USB-serial device corresponding to your |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
82 serial cable. The -c 1004 option (adds a little inefficiency which is required |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
83 for C139/140) phones can be omitted if your phone is C11x/12x, but it is also |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
84 harmless to always add it. With the serial cable connected, the phone in the |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
85 powered-off state and the fc-loadtool process running and waiting for the phone, |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
86 press the red power button on the phone - a momentary press is sufficient and |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
87 recommended. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
88 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
89 Once the phone boots the loadagent code fed to it serially by fc-loadtool and |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
90 you land at the loadtool> prompt, issue the following command: |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
91 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
92 flash dump2bin flashdump.bin |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
93 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
94 Given this command, fc-loadtool will autodetect whether your phone has 2 MiB or |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
95 4 MiB flash, then make a dump of the complete content of this flash memory and |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
96 save it in a file named flashdump.bin in the current directory. When this |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
97 operation completes, exit the loadtool session with the exit command - it will |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
98 also cleanly power the phone off. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
99 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
100 The next step is to extract the RF calibration values. Run a command of the |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
101 following form: |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
102 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
103 c1xx-calextr -b rfbin flashdump.bin <offset> |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
104 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
105 Change <offset> to 0x1FC000 if your phone has 2 MiB flash (the size of |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
106 flashdump.bin is 2097152 bytes) or 0x3FC000 if it has 4 MiB flash (the size of |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
107 flashdump.bin is 4194304 bytes). The stdout scribbles from c1xx-calextr will |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
108 indicate which per-band calibration records it finds (from which you can tell |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
109 if the phone has 900+1800 MHz or 850+1900 MHz bands if you didn't have this |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
110 knowledge already), and a directory named rfbin will be created, containing the |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
111 correct subtree of directories and files which will need to be uploaded into |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
112 the new FreeCalypso flash file system (FFS) under /gsm/rf after the firmware |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
113 change. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
114 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
115 Selecting and building the desired firmware config |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
116 ================================================== |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
117 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
118 There is only one FC Magnetite firmware configuration for C11x/12x phones, but |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
119 for the better C139/140 phones there are 3 to choose from: |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
120 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
121 hybrid-vpm This config is available for both C11x/12x and C139/140 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
122 subfamilies, although the actual fw images are different |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
123 between the two. In this configuration the converted phone |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
124 acts not as an end user phone, but as a voice pseudo-modem that |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
125 needs to be controlled by a host computer via a serial cable to |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
126 do anything interesting. See the Voice-pseudo-modem article |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
127 for more information. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
128 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
129 l1reconst-chg This config is available only for the C139/140 subfamily - its |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
130 XRAM usage won't fit into C11x's 256 KiB even if your phone has |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
131 4 MiB flash. This config is also a voice pseudo-modem just like |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
132 hybrid-vpm, but it uses the older TCS2 version of the G23M PS |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
133 and ACI firmware components, which may be needed for debugging. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
134 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
135 2092 This config is not a voice pseudo-modem, but includes the demo |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
136 or prototype or proof-of-concept UI code we've got with our |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
137 version of TI's TCS211 fw. However, please be warned that this |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
138 proof-of-concept UI is nowhere close to being practically |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
139 usable - see the Handset-goal article for more info. Like |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
140 l1reconst-chg, this config is only available for the C139/140 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
141 subfamily, not for C11x/12x: not only does it has the same |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
142 issue of needing large flash and XRAM, but also we have the LCD |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
143 driver implemented only for the SPI/MicroWire LCD on the C139, |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
144 not for the I2C one on C11x. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
145 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
146 Thus we have a total of 4 possible build configurations, one for the C11x |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
147 target and 3 for the C139: |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
148 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
149 ./configure.sh c11x hybrid-vpm |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
150 ./configure.sh c139 hybrid-vpm |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
151 ./configure.sh c139 l1reconst-chg |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
152 ./configure.sh c139 2092 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
153 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
154 See the Compiling article for more information on how to compile your own |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
155 firmware image in one of the above configurations. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
156 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
157 If this is your first time converting a given C1xx phone from its original |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
158 firmware to FreeCalypso (as opposed to updating from an earlier FC firmware |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
159 version), you will also need the compal-flash-boot-for-fc.bin bootloader image |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
160 in addition to the main fw image you just built: |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
161 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
162 ftp://ftp.freecalypso.org/pub/GSM/FreeCalypso/compal-flash-boot-for-fc.bin |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
163 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
164 Mot C1xx phones are brickable - because the Calypso boot ROM is disabled by PCB |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
165 wiring, the ability to reflash a phone with new firmware critically depends on |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
166 there being a particular kind of boot code in flash sector 0 at all times - a |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
167 particular kind of boot code that allows the boot process to be interrupted and |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
168 diverted to external code loaded via the headset jack serial port. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
169 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
170 The FreeCalypso family of projects has adopted one specific version of the |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
171 flash sector 0 boot code (produced by applying a binary patch to one of |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
172 Compal/Motorola's original versions) for use with all of our firmwares for |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
173 these phones. We use the same FC-C1xx bootloader on both C11x/12x and C139/140 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
174 phones: the official bootloader versions are different between the two (and |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
175 moreover, each particular official fw version comes with its own bootloader |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
176 version), but the simpler bootloader version which we took from one particular |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
177 C11x fw version works perfectly well on the C139 as well, hence we've adopted |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
178 it for all combinations. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
179 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
180 Once you have our compal-flash-boot-for-fc.bin image flashed in sector 0, you |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
181 can then flash whichever FC firmware image you like at offset 0x10000 without |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
182 having to touch the dangerous boot sector. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
183 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
184 Converting the phone to FreeCalypso fw |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
185 ====================================== |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
186 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
187 If you are starting with an unhacked C1xx phone running one of the official |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
188 firmware versions, the procedure for flashing and bringing up FreeCalypso for |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
189 the first time is as follows - *after* you have done all of the preparatory |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
190 steps described in the preceding sections: |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
191 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
192 * Have your phone's battery fully charged - although you will regain the |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
193 ability to charge it with FreeCalypso fw when the conversion is fully |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
194 complete (not just the flashing part, but also the subsequent FFS |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
195 initialization), your phone will not have this charging ability while you are |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
196 in the middle of the xenotransplantation procedure. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
197 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
198 * Get in with fc-loadtool just like you did when you made the dump of your |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
199 phone's flash memory for backup and RF calibration data extraction. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
200 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
201 * Once you are in with fc-loadtool, i.e., at the loadtool> prompt, reflash the |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
202 boot sector with the FreeCalypso version: |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
203 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
204 loadtool> flash erase-program-boot compal-flash-boot-for-fc.bin |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
205 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
206 * To flash whichever FreeCalypso firmware image you would like to play with, |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
207 execute the flashing script which the fw build system produced along with the |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
208 actual image: |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
209 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
210 loadtool> exec flash-script |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
211 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
212 * Erase the flash sectors to be used for the FFS (flash file system) by |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
213 FreeCalypso firmwares; the specific command depends on whether your phone has |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
214 2 MiB or 4 MiB flash. On 2 MiB flash phones: |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
215 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
216 loadtool> flash erase 0x1C0000 0x30000 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
217 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
218 Or on 4 MiB flash phones: |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
219 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
220 loadtool> flash erase 0x3C0000 0x30000 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
221 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
222 * Exiting fc-loadtool cleanly will cause it to power off the phone: |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
223 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
224 loadtool> exit |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
225 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
226 Reflashing between different FreeCalypso firmwares |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
227 ================================================== |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
228 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
229 By the conventions established in the FreeCalypso family of projects, all of |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
230 our firmwares for C11x and C139 targets have the following in common: |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
231 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
232 * They all stay out of the boot sector and expect to receive control from the |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
233 boot code in the same manner (boot entry point at 0x10058, exception vectors |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
234 at 0x10000), thus there is no need to reflash the dangerous boot sector when |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
235 going from one FC firmware to another. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
236 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
237 * They all use the same aftermarket FFS configuration of 3 sectors of 64 KiB |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
238 each (64x3) at 0x3C0000 on 4 MiB flash phones, or at 0x1C0000 on 2 MiB flash |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
239 phones. This FFS location is deliberately different from the one used by |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
240 Mot/Compal's firmwares, eliminating the possibility of one fw trying to use |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
241 the FFS created by the other, and by putting our FFS toward the end of the |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
242 flash we maximize the amount of flash space available for our firmware code |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
243 images. But even though we don't share our FFS with Mot/Compal's official |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
244 firmwares, we do share the same FFS between all of FreeCalypso firmware |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
245 projects - thus once you have initialized your FFS (see below) with one FC |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
246 firmware version, it will work with the others as well. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
247 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
248 If you need to reflash your C1xx phone from one FC firmware version to another, |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
249 simply get in with fc-loadtool -h compal (no more need for the inefficient |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
250 -c 1003 or -c 1004 options or for tfc139) and reflash just the fw image part: |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
251 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
252 loadtool> exec flash-script |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
253 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
254 First boot of the firmware |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
255 ========================== |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
256 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
257 Connect the serial cable, but instead of running fc-loadtool, run rvinterf. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
258 Press the red power button on the phone briefly just like you would for |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
259 fc-loadtool entry. Because there is no fc-loadtool running on the host end of |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
260 the serial cable, the boot path will *not* be diverted in the bootloader, and |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
261 the main fw image will run - and this time it will be the FreeCalypso firmware |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
262 you have compiled and flashed. If the fw you have flashed is the UI demo |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
263 configuration, the phone must have *NO* SIM in it the first time you boot it. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
264 UI-enabled fw configurations automatically bring up the GSM radio and try to |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
265 connect to the default network on boot if there is a SIM present, and you don't |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
266 want your firmware trying to connect to a real live GSM network when you haven't |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
267 initialized your FFS yet. If the fw you have flashed is one of the AT-command- |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
268 controlled pseudo-modem configurations, then you don't need to worry if the SIM |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
269 is there or not on your first boot - just don't command it to connect to a |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
270 network until you have initialized the FFS. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
271 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
272 If you have flashed a non-UI firmware version, the phone's LCD will remain dark |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
273 as there is no LCD driver code in this firmware, but you will see trace output |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
274 in the rvinterf window, telling you that the fw is running. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
275 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
276 Before you do anything else, you will need to run fc-fsio and initialize the |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
277 aftermarket FFS for our firmware: |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
278 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
279 fsio> format / |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
280 fsio> mk-std-dirs |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
281 fsio> set-imeisv fc XXXXXXXX-YYYYYY-ZZ (punctuation optional, place anywhere) |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
282 fsio> set-rfcap dual-eu (if you have 900+1800 MHz hardware) |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
283 or |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
284 fsio> set-rfcap dual-us (if you have 850+1900 MHz hardware) |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
285 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
286 then additionally: |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
287 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
288 fsio> upload-subtree rfbin /gsm/rf |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
289 fsio> write-charging-config /opt/freecalypso/charging/c1xx/standard |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
290 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
291 The last two commands are new with the 2018-01 revision of the FC-to-C1xx |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
292 xenotransplantation procedure. The upload-subtree command uploads the RF |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
293 calibration values which you had extracted earlier with c1xx-calextr (the |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
294 instructions assume that you are running from the same directory where the |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
295 rfbin directory subtree had been created earlier), and this step is necessary |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
296 in order for your phone to continue to transmit at the correct power levels |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
297 after the conversion. The write-charging-config command uploads the |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
298 configuration settings for the FCHG battery charging driver, without which it |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
299 cannot charge the battery; you must have the charging config files from the |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
300 fc-battery-conf tree installed under /opt/freecalypso in order for this command |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
301 to work as given. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
302 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
303 It needs to be noted that the battery charging config settings uploaded with |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
304 fc-fsio write-charging-config take effect only on the next boot cycle of the |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
305 firmware, i.e., until the next reboot after the write-charging-config operation, |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
306 the firmware won't charge the battery even if there is a charging power source |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
307 plugged in. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
308 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
309 After you've initialized your FFS as above, you should exit fc-fsio, and your |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
310 next steps will depend on which fw configuration you are playing with. If it's |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
311 the sans-UI pseudo-modem configuration, run fc-shell and try some AT commands: |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
312 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
313 AT+CMEE=2 -- enable verbose error responses |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
314 AT+CFUN=1 -- enable radio and SIM interfaces |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
315 AT+COPS=0 -- register to the default GSM network |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
316 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
317 When you are done, you can power the phone off by sending a 'poweroff' command |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
318 through fc-shell, or you can kill rvinterf and wait for the firmware to power |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
319 off by the keepalive timeout after some 60 to 80 s. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
320 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
321 If you are playing with the UI demo firmware, after you have initialized your |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
322 FFS, you can power the phone off with the power button, insert a SIM, power it |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
323 back on and play with the primitive UI. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
324 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
325 Updating from previous versions |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
326 =============================== |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
327 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
328 If you had previously initialized your aftermarket FFS using an earlier version |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
329 of these instructions, before we added the RF calibration and charging config |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
330 upload steps, you need to add these bits to your FFS. Update to the latest FC |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
331 host tools, extract the factory RF calibration values from a dump of your |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
332 phone's flash with c1xx-calextr, add the battery charging config files to your |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
333 /opt/freecalypso installation, boot the phone with rvinterf, get in with fc-fsio |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
334 and run the last two upload-subtree and write-charging-config commands as above. |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
335 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
336 Recalibration |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
337 ============= |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
338 |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
339 In the interest of completeness, it needs to be noted that extracting Motorola's |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
340 original factory RF calibration values and reusing them for FreeCalypso is not |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
341 the only way: the other alternative is to perform a fresh calibration using a |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
342 Rohde&Schwarz CMU200 RF test machine and FreeCalypso RF calibration software |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
343 (fc-rfcal-tools). This approach will yield superior results, but the |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
344 requirement of having a CMU200 instrument which is itself properly calibrated |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
345 and a cabling setup with the right adapters whose insertion loss at particular |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
346 GSM frequencies is precisely known makes this approach feasible only for |
43dbedde9d80
doc/C1xx-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
347 professional FreeCalypso service shops, not for ordinary individual users. |