FreeCalypso > hg > fc-magnetite
annotate doc/Pirelli-Howto @ 248:35b17d54773d
helpers: build-date helper program written
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 03 Aug 2017 04:24:06 +0000 |
parents | 619a33e8425e |
children | 5b6159d76b09 |
rev | line source |
---|---|
94
596d86109e44
initial round of documentation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 Running FreeCalypso Magnetite firmware on the Pirelli DP-L10 |
596d86109e44
initial round of documentation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 ============================================================ |
596d86109e44
initial round of documentation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 |
97
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
4 The Pirelli DP-L10 is a neat target for playing with FreeCalypso for two |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
5 reasons: |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
6 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
7 1. It has a USB port connected to one of Calypso's UARTs through a built-in |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
8 CP2102 USB-serial adapter, eliminating the need for headset jack serial |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
9 cables. |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
10 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
11 2. The huge RAM on this phone (8 MiB) makes it possible to run experimental GSM |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
12 firmware images entirely in RAM without flashing - and we have successfully |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
13 implemented this capability in FC Magnetite similarly to Citrine. |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
14 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
15 There is, however, one difference between our Citrine and Magnetite firmwares |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
16 when it comes to running on the Pirelli without flashing: Citrine uses a |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
17 RAM-based fake FFS, whereas Magnetite always requires a real FFS in flash, even |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
18 when the firmware code image itself is entirely RAM-based. However, just like |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
19 on the C139, we do NOT use the same FFS which is used by Pirelli's official |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
20 firmwares - the latter contains nothing of use to our fw, hence it is best for |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
21 us to use our own separate FreeCalypso Magnetite FFS. |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
22 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
23 The flash location that's been chosen for Magnetite FFS on the Pirelli is |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
24 0x02480000 through 0x025FFFFF, i.e., offsets 0x480000 through 0x5FFFFF in the |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
25 second flash bank. Pirelli's official firmwares use this flash area as |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
26 temporary storage during OTA (over-the-air, probably WLAN in this case) fw |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
27 reloads and leave it untouched at all other times, therefore as long as you are |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
28 not doing firmware reloads over WLAN while in the "official mode", you can use |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
29 your Pirelli phone for FreeCalypso experiments via fc-xram and go back to the |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
30 regular fw in between, and the Magnetite FFS in the flash will be preserved |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
31 from one fc-xram session to the next, not disturbed by Pirelli's fw. |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
32 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
33 Compiling |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
34 ========= |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
35 |
223
619a33e8425e
doc/Pirelli-Howto: update for the availability of the hybrid config
Mychaela Falconia <falcon@freecalypso.org>
parents:
97
diff
changeset
|
36 When compiling our Magnetite firmware for the Pirelli target, you can select |
619a33e8425e
doc/Pirelli-Howto: update for the availability of the hybrid config
Mychaela Falconia <falcon@freecalypso.org>
parents:
97
diff
changeset
|
37 one of two configurations: l1reconst or hybrid; see the Modem-configs article |
619a33e8425e
doc/Pirelli-Howto: update for the availability of the hybrid config
Mychaela Falconia <falcon@freecalypso.org>
parents:
97
diff
changeset
|
38 for the explanation. In both cases the phone will act as an AT-command- |
619a33e8425e
doc/Pirelli-Howto: update for the availability of the hybrid config
Mychaela Falconia <falcon@freecalypso.org>
parents:
97
diff
changeset
|
39 controlled pseudo-modem: the LCD will stay dark and the buttons will do nothing, |
619a33e8425e
doc/Pirelli-Howto: update for the availability of the hybrid config
Mychaela Falconia <falcon@freecalypso.org>
parents:
97
diff
changeset
|
40 and you will need to control the GSM MS from your PC or other host system. |
97
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
41 |
223
619a33e8425e
doc/Pirelli-Howto: update for the availability of the hybrid config
Mychaela Falconia <falcon@freecalypso.org>
parents:
97
diff
changeset
|
42 Run './configure.sh pirelli l1reconst' or './configure.sh pirelli hybrid' |
619a33e8425e
doc/Pirelli-Howto: update for the availability of the hybrid config
Mychaela Falconia <falcon@freecalypso.org>
parents:
97
diff
changeset
|
43 depending on which configuration you would like to play with, then run |
619a33e8425e
doc/Pirelli-Howto: update for the availability of the hybrid config
Mychaela Falconia <falcon@freecalypso.org>
parents:
97
diff
changeset
|
44 'make ram' in the build directory created by the configure script - see the |
619a33e8425e
doc/Pirelli-Howto: update for the availability of the hybrid config
Mychaela Falconia <falcon@freecalypso.org>
parents:
97
diff
changeset
|
45 Compiling write-up for more details. |
97
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
46 |
223
619a33e8425e
doc/Pirelli-Howto: update for the availability of the hybrid config
Mychaela Falconia <falcon@freecalypso.org>
parents:
97
diff
changeset
|
47 Because we have not yet produced a configuration with FAX_AND_DATA and GPRS |
619a33e8425e
doc/Pirelli-Howto: update for the availability of the hybrid config
Mychaela Falconia <falcon@freecalypso.org>
parents:
97
diff
changeset
|
48 disabled, your Magnetite fw build will include those components. In the |
619a33e8425e
doc/Pirelli-Howto: update for the availability of the hybrid config
Mychaela Falconia <falcon@freecalypso.org>
parents:
97
diff
changeset
|
49 FreeCalypso environment where we are not doing WAP or MMS this functionality |
619a33e8425e
doc/Pirelli-Howto: update for the availability of the hybrid config
Mychaela Falconia <falcon@freecalypso.org>
parents:
97
diff
changeset
|
50 can only be exercised on targets that bring out a classic modem UART with the |
619a33e8425e
doc/Pirelli-Howto: update for the availability of the hybrid config
Mychaela Falconia <falcon@freecalypso.org>
parents:
97
diff
changeset
|
51 classic AT command interface to the external host, but the Pirelli is not one |
619a33e8425e
doc/Pirelli-Howto: update for the availability of the hybrid config
Mychaela Falconia <falcon@freecalypso.org>
parents:
97
diff
changeset
|
52 of those targets - hence on this target all FAX_AND_DATA and GPRS code is |
619a33e8425e
doc/Pirelli-Howto: update for the availability of the hybrid config
Mychaela Falconia <falcon@freecalypso.org>
parents:
97
diff
changeset
|
53 nothing but dead weight. We will only be able to remove this dead weight when |
619a33e8425e
doc/Pirelli-Howto: update for the availability of the hybrid config
Mychaela Falconia <falcon@freecalypso.org>
parents:
97
diff
changeset
|
54 we finish deblobbing L1: the few non-GPRS-specific L1 binary objects which we |
619a33e8425e
doc/Pirelli-Howto: update for the availability of the hybrid config
Mychaela Falconia <falcon@freecalypso.org>
parents:
97
diff
changeset
|
55 are still using have been built with IDS and L1_GPRS enabled, thus we cannot |
619a33e8425e
doc/Pirelli-Howto: update for the availability of the hybrid config
Mychaela Falconia <falcon@freecalypso.org>
parents:
97
diff
changeset
|
56 change these two configuration settings until those L1 modules have been |
619a33e8425e
doc/Pirelli-Howto: update for the availability of the hybrid config
Mychaela Falconia <falcon@freecalypso.org>
parents:
97
diff
changeset
|
57 deblobbed. We'll get there, but not yet. |
97
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
58 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
59 Running on the target |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
60 ===================== |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
61 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
62 1. Connect a USB cable from your GNU/Linux PC/laptop to the phone. If the |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
63 phone was off but the battery is present, it will go through a charger-plug |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
64 power-on event; if the flash contains Pirelli's original fw, it will boot in |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
65 the charging mode. If the battery is not present, the Calypso won't power |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
66 on (it needs VBAT and can't run on VCHG power instead), but the /dev/ttyUSBx |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
67 device will still show up, as the CP2102 USB-serial chip inside the phone is |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
68 powered strictly from the USB side. |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
69 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
70 2. Run a command like the following: |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
71 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
72 fc-xram -h pirelli /dev/ttyUSB0 ramimage.srec rvinterf |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
73 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
74 Adjust the paths to your /dev/ttyUSBx device and your ramimage.srec as |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
75 appropriate, and add rvinterf logging or other options as desired. |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
76 Specifying rvinterf on the fc-xram command line directs fc-xram to exec |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
77 rvinterf and pass the serial channel to it immediately as soon as the code |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
78 image has been loaded into target RAM and jumped to; this direct passing of |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
79 the serial channel from fc-xram to rvinterf is appropriate because the |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
80 loaded fw will immediately start emitting binary trace packets in TI's RVTMUX |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
81 format. |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
82 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
83 3. Induce the phone to execute its Calypso boot path: if the battery was |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
84 removed, insert it now; if Pirelli's regular fw is running, execute its |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
85 power-off sequence. |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
86 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
87 Once the Calypso chip in the Pirelli phone executes its boot path with fc-xram |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
88 running, the boot path will be diverted and our experimental firmware will be |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
89 loaded into target device RAM and jumped to. Our fw will now run, and the |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
90 rvinterf process on the host will maintain communication with it. |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
91 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
92 FFS initialization |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
93 ================== |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
94 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
95 When our Magnetite firmware boots, it will examine the state of the flash |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
96 sectors in the area we have allocated for our aftermarket FFS. If this flash |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
97 area is completely blank the first time Magnetite boots, as it should be if you |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
98 have a "virgin" Pirelli phone, the FFS code in our fw will automatically perform |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
99 what TI called the "preformat" operation: write undifferentiated FFS block |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
100 headers (0xBF in the flags byte) into each flash sector. However, it won't |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
101 automatically perform the "format" operation - instead you'll need to run |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
102 fc-fsio to do the format and to populate this FFS with some necessary content. |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
103 If you are not sure of the state of the Magnetite FFS flash area on your |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
104 Pirelli, you can also run fc-fsio to examine it - so run fc-fsio either way. |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
105 Run fc-fsio WITHOUT -p: let it connect to the rvinterf process you should |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
106 already have running from fc-xram. |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
107 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
108 NOTE: the following instructions are based on the new version of fc-fsio that |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
109 has not yet made its way into a packaged fc-host-tools release as of this |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
110 writing. Therefore, please get the latest development version here: |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
111 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
112 https://bitbucket.org/falconian/freecalypso-tools |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
113 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
114 Once you are in fc-fsio, check the status of your FFS like this: |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
115 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
116 fsio> ls -l / |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
117 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
118 If the FFS is already formatted, you will get a listing of the root directory; |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
119 if it is not formatted, you'll get an error like this: |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
120 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
121 opendir: FFS error 4 (EFFS_NOFORMAT: ffs not formatted) |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
122 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
123 To format and initialize your Pirelli Magnetite FFS, issue the following |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
124 commands: |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
125 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
126 fsio> format / |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
127 fsio> pirelli-magnetite-init |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
128 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
129 If you already have a formatted FFS from before, it is safe to rerun the |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
130 pirelli-magnetite-init command, but not format. The format command will *not* |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
131 work on an already formatted FFS; if you have a messed-up FFS and you would |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
132 like to restart from a clean slate, erase the Magnetite FFS sectors with |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
133 fc-loadtool: |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
134 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
135 loadtool> flash2 erase 480000 180000 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
136 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
137 Exercising the GSM functionality |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
138 ================================ |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
139 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
140 Once your FFS is good, open another terminal window on your driving PC/laptop |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
141 and run fc-shell. This program will connect to the already running rvinterf |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
142 process via a local socket, and it will enable you to send various commands to |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
143 the running fw on the target, the most important ones being standard AT |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
144 commands. Send the following sequence of AT commands to bring up GSM |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
145 functionality: |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
146 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
147 AT+CMEE=2 -- enable verbose error responses |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
148 AT+CFUN=1 -- enable radio and SIM interfaces |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
149 AT+COPS=0 -- register to the default GSM network |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
150 |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
151 When you are done playing with our experimental fw, you can either yank the |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
152 battery and kill the host side rvinterf and fc-shell processes, or you can |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
153 issue a 'tgtreset' command at the fc-shell prompt. The latter will cause the |
ffa25a27fa27
doc/Pirelli-Howto written
Mychaela Falconia <falcon@freecalypso.org>
parents:
94
diff
changeset
|
154 target to reset and boot back into its regular firmware. |