Project

General

Profile

Compile-without-sercomm » History » Version 6

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