Project

General

Profile

Compile-without-sercomm » History » Version 6

Anonymous, 02/19/2016 10:49 PM

1 1 gnutoo
Nuttx can be configured differently depending on what we want.
2
The possible configs are:
3 2 gnutoo
 * compal_e88/nsh_highram : for the gta02 using the osmocon for the romloader
4
 * compal_e99/nsh_highram : for the c155 using osmocon + loader.compalram.bin as a loader
5
 * compal_e99/nsh_compalram : for the c155 using osmocon to load it
6 1 gnutoo
7
nsh is the nuttx shell(nuttx can also run standalone apps without a shell).
8 3 gnutoo
9
== standalone nuttx ==
10
if you want a standalone nuttx(without linking to osmocombb for the drivers) do the following:
11
{{{
12
make clean
13
make distclean
14
}}}
15
16 5 gnutoo
Remove sercomm directories:
17
{{{
18
$ rm -rf drivers/sercomm
19
$ rm -rf include/nuttx/sercomm
20
}}}
21
22 6 gnutoo
Remove sercomm reference at drivers/Makefile:
23 5 gnutoo
{{{
24
-include sercomm/Make.defs
25
}}}
26
27 4 gnutoo
Then configure nuttx
28
29 3 gnutoo
Then apply manually the following pseudo-diff in nuttx/.config :
30
{{{
31
-CONFIG_DISABLE_ENVIRON=y
32
+CONFIG_DISABLE_ENVIRON=n
33
+CONFIG_STDIO_LINE_BUFFER=y
34
}}}
35
And then remove the following lines from nuttx/Make.defs:
36
{{{
37
  OSMODIR                 = $(TOPDIR)/../../osmocom-bb
38
  EXTRA_LIBS              = $(OSMODIR)/src/target/firmware/comm/libcomm.a \
39
                            $(OSMODIR)/src/shared/libosmocore/build-target/src/.libs/libosmocore.a \
40
                            $(OSMODIR)/src/target/firmware/calypso/libcalypso.a \
41
                            $(OSMODIR)/src/target/firmware/comm/libcomm.a
42
                          # ^^^ Stupid hack! Why do I have to put it twice???
43
}}}
44 4 gnutoo
And then build as usual.
Add picture from clipboard (Maximum size: 48.8 MB)