Project

General

Profile

Compile-without-sercomm » History » Version 11

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

1 8 acassis
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 2 gnutoo
 * compal_e88/nsh_highram : for the gta02 using the osmocon for the romloader
6 2 gnutoo
 * compal_e99/nsh_highram : for the c155 using osmocon + loader.compalram.bin as a loader
7 2 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 3 gnutoo
11 3 gnutoo
== standalone nuttx ==
12 3 gnutoo
if you want a standalone nuttx(without linking to osmocombb for the drivers) do the following:
13 11 gnutoo
configure nuttx:
14 8 acassis
{{{
15 8 acassis
$ cd nuttx/tools
16 1 gnutoo
$ ./configure.sh compal_e99/nsh_highram
17 1 gnutoo
}}}
18 8 acassis
19 8 acassis
Compile NuttX:
20 8 acassis
{{{
21 8 acassis
$ cd nuttx
22 8 acassis
$ make
23 8 acassis
}}}
24 8 acassis
25 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:
26 8 acassis
{{{
27 8 acassis
./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
28 8 acassis
}}}
29 9 acassis
30 9 acassis
After loading you will receive this message:
31 9 acassis
{{{
32 9 acassis
Checksum on phone side matches, let's branch to your code
33 9 acassis
Branching to 0x00820000
34 9 acassis
Received branch ack, your code is running now!
35 9 acassis
}}}
36 9 acassis
37 10 acassis
Then press Ctrl+C and use a serial terminal of your preference, i.e:
38 10 acassis
39 10 acassis
Picocom:
40 1 gnutoo
{{{
41 1 gnutoo
picocom -b 115200 /dev/ttyUSB0
42 10 acassis
}}}
43 9 acassis
44 10 acassis
Minicom:
45 9 acassis
{{{
46 9 acassis
$ minicom -s
47 9 acassis
}}}
48 9 acassis
49 9 acassis
{{{
50 9 acassis
                                                                             
51 9 acassis
            +-----[configuration]------+                                     
52 9 acassis
            | Filenames and paths      |                                     
53 9 acassis
            | File transfer protocols  |                                     
54 9 acassis
            | Serial port setup        | <<-- Choose this option                                     
55 9 acassis
            | Modem and dialing        |                                     
56 9 acassis
            | Screen and keyboard      |
57 9 acassis
            | Save setup as dfl        |
58 9 acassis
            | Save setup as..          |
59 9 acassis
            | Exit                     |
60 9 acassis
            | Exit from Minicom        |
61 9 acassis
            +--------------------------+
62 9 acassis
}}}
63 9 acassis
64 9 acassis
Then:
65 9 acassis
66 9 acassis
{{{
67 9 acassis
    +-----------------------------------------------------------------------+
68 9 acassis
    | A -    Serial Device      : /dev/ttyUSB0                              |
69 9 acassis
    | B - Lockfile Location     : /var/lock                                 |
70 9 acassis
    | C -   Callin Program      :                                           |
71 9 acassis
    | D -  Callout Program      :                                           |
72 9 acassis
    | E -    Bps/Par/Bits       : 115200 8N1                                |
73 9 acassis
    | F - Hardware Flow Control : No                                        |
74 9 acassis
    | G - Software Flow Control : No                                        |
75 9 acassis
    |                                                                       |
76 9 acassis
    |    Change which setting?                                              |
77 9 acassis
    +-----------------------------------------------------------------------+
78 9 acassis
}}}
Add picture from clipboard (Maximum size: 48.8 MB)