Project

General

Profile

Compile-without-sercomm » History » Version 3

gnutoo, 02/19/2016 10:49 PM

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