Project

General

Profile

Compile-without-sercomm » History » Version 12

gnutoo, 02/19/2016 10:49 PM
we don't use sercomm anymore for serial by default....

1 12 gnutoo
NuttX compilation was done using [[CodeSourcery]] arm-2010.09-51-arm-none-eabi.bin, other toolchain could fail.
2 8 acassis
3 8 acassis
NuttX can be configured differently depending on what we want.
4 1 gnutoo
The possible configs are:
5 12 gnutoo
* compal_e88/nsh_highram : for the gta02 using the osmocon for the romloader
6 12 gnutoo
* compal_e99/nsh_highram : for the c155 using osmocon + loader.compalram.bin as a loader
7 12 gnutoo
* compal_e99/nsh_compalram : for the c155 using osmocon to load it
8 1 gnutoo
9 1 gnutoo
nsh is the nuttx shell(nuttx can also run standalone apps without a shell).
10 1 gnutoo
11 12 gnutoo
12 12 gnutoo
h2. standalone nuttx
13 12 gnutoo
14 1 gnutoo
if you want a standalone nuttx(without linking to osmocombb for the drivers) do the following:
15 8 acassis
configure nuttx:
16 12 gnutoo
<pre>
17 1 gnutoo
$ cd nuttx/tools
18 1 gnutoo
$ ./configure.sh compal_e99/nsh_highram
19 12 gnutoo
</pre>
20 8 acassis
21 1 gnutoo
Compile NuttX:
22 12 gnutoo
<pre>
23 8 acassis
$ cd nuttx
24 1 gnutoo
$ make
25 12 gnutoo
</pre>
26 8 acassis
27 8 acassis
Load nuttx.bin into Motorola C155, because nuttx.bin is bigger than 64k, you should load chainload.compalram.bin together, use this command:
28 12 gnutoo
<pre>
29 1 gnutoo
./osmocom-bb/src/host/osmocon/osmocon -p /dev/ttyUSB0 -m c155 /osmocom-bb/src/target/firmware/board/compal_e99/chainload.compalram.bin -c nuttx.bin
30 12 gnutoo
</pre>
31 1 gnutoo
32 1 gnutoo
After loading you will receive this message:
33 12 gnutoo
<pre>
34 9 acassis
Checksum on phone side matches, let's branch to your code
35 9 acassis
Branching to 0x00820000
36 9 acassis
Received branch ack, your code is running now!
37 12 gnutoo
</pre>
38 9 acassis
39 10 acassis
Then press Ctrl+C and use a serial terminal of your preference, i.e:
40 10 acassis
41 10 acassis
Picocom:
42 12 gnutoo
<pre>
43 1 gnutoo
picocom -b 115200 /dev/ttyUSB0
44 12 gnutoo
</pre>
45 1 gnutoo
46 10 acassis
Minicom:
47 12 gnutoo
<pre>
48 1 gnutoo
$ minicom -s
49 12 gnutoo
</pre>
50 9 acassis
51 12 gnutoo
<pre>
52 9 acassis
                                                                             
53 9 acassis
            +-----[configuration]------+                                     
54 9 acassis
            | Filenames and paths      |                                     
55 9 acassis
            | File transfer protocols  |                                     
56 9 acassis
            | Serial port setup        | <<-- Choose this option                                     
57 9 acassis
            | Modem and dialing        |                                     
58 9 acassis
            | Screen and keyboard      |
59 1 gnutoo
            | Save setup as dfl        |
60 9 acassis
            | Save setup as..          |
61 9 acassis
            | Exit                     |
62 9 acassis
            | Exit from Minicom        |
63 9 acassis
            +--------------------------+
64 12 gnutoo
</pre>
65 9 acassis
66 9 acassis
Then:
67 9 acassis
68 12 gnutoo
<pre>
69 9 acassis
    +-----------------------------------------------------------------------+
70 9 acassis
    | A -    Serial Device      : /dev/ttyUSB0                              |
71 9 acassis
    | B - Lockfile Location     : /var/lock                                 |
72 9 acassis
    | C -   Callin Program      :                                           |
73 9 acassis
    | D -  Callout Program      :                                           |
74 9 acassis
    | E -    Bps/Par/Bits       : 115200 8N1                                |
75 9 acassis
    | F - Hardware Flow Control : No                                        |
76 9 acassis
    | G - Software Flow Control : No                                        |
77 9 acassis
    |                                                                       |
78 9 acassis
    |    Change which setting?                                              |
79 9 acassis
    +-----------------------------------------------------------------------+
80 12 gnutoo
</pre>
Add picture from clipboard (Maximum size: 48.8 MB)