Project

General

Profile

Compile-without-sercomm » History » Version 4

gnutoo, 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 4 gnutoo
Then configure nuttx
17
18 3 gnutoo
Then apply manually the following pseudo-diff in nuttx/.config :
19
{{{
20
-CONFIG_DISABLE_ENVIRON=y
21
+CONFIG_DISABLE_ENVIRON=n
22
+CONFIG_STDIO_LINE_BUFFER=y
23
}}}
24
And then remove the following lines from nuttx/Make.defs:
25
{{{
26
  OSMODIR                 = $(TOPDIR)/../../osmocom-bb
27
  EXTRA_LIBS              = $(OSMODIR)/src/target/firmware/comm/libcomm.a \
28
                            $(OSMODIR)/src/shared/libosmocore/build-target/src/.libs/libosmocore.a \
29
                            $(OSMODIR)/src/target/firmware/calypso/libcalypso.a \
30
                            $(OSMODIR)/src/target/firmware/comm/libcomm.a
31
                          # ^^^ Stupid hack! Why do I have to put it twice???
32
}}}
33 4 gnutoo
And then build as usual.
Add picture from clipboard (Maximum size: 48.8 MB)