Project

General

Profile

Compile-without-sercomm » History » Version 7

acassis, 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 acassis
Remove sercomm directories:
17
{{{
18
$ rm -rf drivers/sercomm
19
$ rm -rf include/nuttx/sercomm
20
}}}
21
22 6 acassis
Remove sercomm reference at drivers/Makefile:
23 5 acassis
{{{
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 7 acassis
-CONFIG_SERCOMM_CONSOLE=y
32
+CONFIG_SERCOMM_CONSOLE=n
33 3 gnutoo
-CONFIG_DISABLE_ENVIRON=y
34
+CONFIG_DISABLE_ENVIRON=n
35
+CONFIG_STDIO_LINE_BUFFER=y
36
}}}
37
And then remove the following lines from nuttx/Make.defs:
38
{{{
39
  OSMODIR                 = $(TOPDIR)/../../osmocom-bb
40
  EXTRA_LIBS              = $(OSMODIR)/src/target/firmware/comm/libcomm.a \
41
                            $(OSMODIR)/src/shared/libosmocore/build-target/src/.libs/libosmocore.a \
42
                            $(OSMODIR)/src/target/firmware/calypso/libcalypso.a \
43
                            $(OSMODIR)/src/target/firmware/comm/libcomm.a
44
                          # ^^^ Stupid hack! Why do I have to put it twice???
45
}}}
46 4 gnutoo
And then build as usual.
Add picture from clipboard (Maximum size: 48.8 MB)