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