FreeCalypso > hg > freecalypso-sw
annotate loadtools/README @ 424:1ec83a5fa8b3
loadtools: README update
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Thu, 19 Jun 2014 05:50:43 +0000 |
parents | 3275c8881cb7 |
children | e61eacecd319 |
rev | line source |
---|---|
424
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
1 The set of host tools built in this directory consists of: |
97
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
2 |
424
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
3 fc-loadtool The tool for operating on Calypso GSM devices at a low |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
4 level. After "breaking" into the target GSM device in |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
5 its boot process and getting FreeCalypso loadagent |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
6 running on the target (out of Calypso internal RAM, aka |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
7 IRAM), loadtool presents an interactive command prompt |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
8 with commands for peeking and poking registers and most |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
9 importantly, reading and writing any part of the |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
10 device's non-volatile flash memory. |
97
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
11 |
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
12 fc-iram & fc-xram These utilities are intended for FreeCalypso developers |
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
13 only. They load an S-record code image into IRAM or |
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
14 XRAM, respectively, induce a transfer of control to the |
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
15 loaded code, and then drop into a serial line pass-thru |
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
16 mode for the operator to interact with the thus loaded |
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
17 target code. |
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
18 |
424
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
19 The currently supported target devices are the Compal family of basic |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
20 dumbphones, the Openmoko GTA0x GSM modem and the Pirelli DP-L10 feature phone. |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
21 |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
22 All tools in the FreeCalypso loadtools suite work by feeding pieces of code to |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
23 the target device as it boots, preventing the booting of its regular firmware |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
24 and diverting control to these externally-loaded code pieces. These pieces of |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
25 ARM7 target code need to be installed on the host system running loadtools, |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
26 normally in /usr/local/share/freecalypso: |
97
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
27 |
424
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
28 loadagent This is the "agent" code that runs on the target device when |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
29 fc-loadtool is operating on it: loadtool carries out its |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
30 operations by sending commands to loadagent. There is only one |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
31 version of loadagent for all currently supported Calypso |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
32 targets: loadagent does not access any resources outside of the |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
33 Calypso chip itself unless commanded to do so, and loadtool |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
34 supports different target devices with different hardware |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
35 configurations by sending different commands to loadagent as |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
36 appropriate. |
97
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
37 |
424
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
38 compalstage For Compal phones only: a little piece of code that is fed to |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
39 the original fw's bootloader via the serial download protocol |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
40 provided by the latter; it re-enables the Calypso chip boot ROM |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
41 and jumps to it, allowing our loadagent to be loaded in the |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
42 same way as on freedom-enabled devices. |
97
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
43 |
424
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
44 If you are working with a development snapshot of the freecalypso-sw source |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
45 tree, you will need to compile and install a GNU cross-compiler toolchain |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
46 targeting ARM7 (see ../toolchain) and then use that toolchain to compile |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
47 loadagent and compalstage (see ../target-utils) before you can successfully use |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
48 loadtools to operate on a target device. End-user oriented releases of |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
49 FreeCalypso host tools will include prebuilt loadagent and compalstage binaries |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
50 in the target-binaries subdirectory. |
97
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
51 |
424
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
52 Installing |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
53 ========== |
97
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
54 |
424
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
55 Just run 'make' and 'make install' as usual. If the target-binaries directory |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
56 is present, your installation will be complete and ready to use. If you are |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
57 building these pieces yourself from source, do a 'make' and 'make install' in |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
58 ../target-utils, after you have the ARM7 gcc toolchain installed and working. |
97
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
59 |
424
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
60 Basic usage |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
61 =========== |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
62 |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
63 The steps for bringing up fc-loadtool to operate on a target Calypso device are |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
64 as follows: |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
65 |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
66 1. If you are using a USB serial adapter, or operating on a Pirelli phone that |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
67 has one built in, connect the USB side first so that the necessary |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
68 /dev/ttyUSB* device node appears. |
97
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
69 |
424
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
70 2. Run fc-loadtool like this: |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
71 |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
72 fc-loadtool $TARGETOPT /dev/ttyXXX |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
73 |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
74 Change /dev/ttyXXX to the actual serial port you are using, and change |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
75 $TARGETOPT to: |
97
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
76 |
424
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
77 Device Needed options |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
78 ----------------------------------- |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
79 Mot C11x/123 -h compal |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
80 Mot C139/140 -h compal -c 1003 |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
81 Mot C155/156 -h c155 |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
82 Openmoko GTA02 -h gta02 |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
83 Pirelli DP-L10 -h pirelli |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
84 |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
85 3. Cause the target device to execute its boot path. Openmoko GTA0x and |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
86 Pirelli DP-L10 targets have the Calypso boot ROM enabled, and will interrupt |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
87 and divert their normal boot path when they "hear" the beacons which |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
88 fc-loadtool will be sending down the serial line. Compal phones have this |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
89 boot ROM disabled at the board level, but their standard firmware includes a |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
90 flash-resident bootloader that offers a different way of interrupting the |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
91 boot path and loading code over the serial line; fc-loadtool will be set up |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
92 to speak the latter protocol when run with the corresponding options from |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
93 the table above. |
97
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
94 |
424
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
95 You will see messages showing fc-loadtool's progress with feeding first |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
96 compalstage (if needed), then loadagent (always needed) to the target device, |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
97 followed by some target-specific initialization done via loadagent commands. |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
98 If all of the above succeeds, you will land at a loadtool> prompt. Type |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
99 'help', and it will guide you from there. Alternatively, you can familiarize |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
100 yourself with loadtool commands and operations without actually running it by |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
101 reading the loadtool.help text file. |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
102 |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
103 For other fc-loadtool options and fc-[ix]ram usage details, see the slightly |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
104 outdated README.old file. For newer options added since that file was written, |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
105 see the source code. I hope to write some real man pages eventually. |
107
8b44e806b6e1
loadtools/README: documentation for loadtools should now be complete
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
97
diff
changeset
|
106 |
424
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
107 Openmoko GTA0x |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
108 ============== |
97
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
109 |
424
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
110 All of the above instructions assume that you are running these loadtools on a |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
111 general-purpose host system such as a GNU/Linux PC or laptop, and will |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
112 potentially use them to operate on multiple Calypso targets of different kinds. |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
113 If instead you are building loadtools to run on the application processor of a |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
114 smartphone such as Openmoko GTA0x, then it makes no sense for that special build |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
115 of loadtools to support any target other than the specific modem in that |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
116 smartphone. Loadtools can be built with compalstage support excluded and with |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
117 GTA0x-specific modem power control included instead. This build will still |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
118 include a bunch of functions of no relevance to GTA0x, but oh well.. |
97
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
119 |
424
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
120 To build loadtools for the GTA0x AP, you'll need to make the following |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
121 modifications to the Makefile: |
97
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
122 |
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
123 * Change the CC= line to point to the appropriate cross-compiler (which you'll |
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
124 need to provide yourself); |
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
125 |
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
126 * Change the CFLAGS= line: add the right options to target the ARM920T core in |
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
127 the GTA0x AP (e.g., -march=armv4t -mtune=arm920t), and add -DGTA0x_AP_BUILD |
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
128 to enable some code that makes sense only when running on the GTA0x AP. |
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
129 |
424
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
130 * Change EXTRA_OBJ= from listing compalload.o to listing compaldummy.o and |
1ec83a5fa8b3
loadtools: README update
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
228
diff
changeset
|
131 gtapower.o instead. |
97
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
132 |
a2e793f6b8c4
some README files added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
133 See gta-ap-build.sed for an example. |