Hi everyone,
I'm following up on this conversation:
http://comments.gmane.org/gmane.comp.mobile.osmocom.baseband.devel/1796
It seems like there was no movement in this topic in the last couple of years, so I decided to go ahead and integrate Nico's SAP client into the current master branch and created a patch from it.
I tested it (with Kevin's softSIM and a pcsc reader), it worked for me, however it is currently quite ugly: it kind of hand crafts the msgb structure (in l1ctl.c, patch line 121), sorry for that, but I kept getting extra bytes stuffed into the msg that was passed to the sap_interface so I decided to manually go around the problem.
I'm of course open to any suggestions to get it cleaner, and then if you think and decide so it could be merged into the master (as far as I see.
One thing however that I think is strange, and worth mentioning: I'm not sure why Nico decided to implement the switch between phone and SAP-client inside of l1ctl.c, for me it would feel better to do it in sim.c (since sim.c deals with SIM activities, l1ctl should deal only with L1 stuff...also the current SAP client calls back to sim.c, but receives data from l1ctl - little bit confusing), but I left it as is because of not knowing exactly the thoughts behind it.
Regards,
Domi
Hi all,
Was starting to work on making a usable phone again and wondered about the status of nuttx-bb git on osmocom.org versus nuttx source. It seems nuttx source is more up-to-date and has configs for my device: compal_e86/c139. Wondering if there is something in nuttx-bb that is unique that I should pay attention to? Should nuttx-bb be rebased from nuttx upstream?
I was able to cobble together a nuttx.bin but on loading it always stops at 88% with the chainloader. The nuttx.bin is 148K which would seem plenty of room since the C139 has 4000K flash (32MBit) (am I doing that calculation correctly)?
I had to fiddle with the MEMORY section of the ld.script in order to make space for nuttx, I'm not too familiar with this sort of thing so may have done something wrong...
/* E86 stacked flash 32mbit flash, 4mbit sram, DBB internal 256kb SRAM */
/* 0x800000-0x87ffff */ /* bump up because we have 32mbit instead of 16mbit */
/* compal-loaded binary: our text, initialized data */
LRAM (rw) : ORIGIN = 0x00800000, LENGTH = 0x00020000
TRAM (rw) : ORIGIN = 0x00820000, LENGTH = 0x00040000
/* compal-loaded binary: our unitialized data, stacks, heap */
IRAM (rw) : ORIGIN = 0x00860000, LENGTH = 0x00020000
Originally TRAM was 20000 long and gave me an error on building. Not sure if I can fiddle with these values or not.
Thanks,Craig
Signed-off-by: Max <max.suraev(a)fairwaves.co>
---
debian/README.source | 1 +
debian/control | 17 ++++++++++++++---
debian/copyright | 15 ++-------------
3 files changed, 17 insertions(+), 16 deletions(-)
create mode 100644 debian/README.source
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..982a696
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1 @@
+We do some Debian-specific source patching magic. See debian/patches for clarification.
diff --git a/debian/control b/debian/control
index 7de6358..1470e73 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: libosmocore
Section: libs
Priority: optional
Maintainer: Harald Welte <laforge(a)gnumonks.org>
-Build-Depends: debhelper (>= 9), autotools-dev, autoconf, automake, libtool, dh-autoreconf, libdpkg-perl, git, doxygen, libpcsclite-dev, pkg-config
+Build-Depends: debhelper (>= 9), autotools-dev, autoconf, automake, libtool, dh-autoreconf, libdpkg-perl, git, doxygen, libpcsclite-dev, pkg-config, quilt
Standards-Version: 3.9.6
Homepage: http://bb.osmocom.org/trac/wiki/libosmocore
Vcs-Git: git://git.osmocom.org/libosmocore.git
@@ -14,6 +14,7 @@ Architecture: any
Depends: libosmocodec0, libosmocore6, libosmogb3, libosmogsm5, libosmovty1, ${misc:Depends}
Multi-Arch: foreign
Description: Open Source MObile COMmunications CORE library
+ Metapackage for Open Source MObile COMmunications CORE library.
Package: libosmocodec0
Section: libs
@@ -21,6 +22,7 @@ Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Multi-Arch: same
Description: Osmo codec library
+ Open Source MObile COMmunications codec library.
Package: libosmocore6
Section: libs
@@ -28,6 +30,7 @@ Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Multi-Arch: same
Description: Osmo Core library
+ Open Source MObile COMmunications CORE library.
Package: libosmogb3
Section: libs
@@ -35,6 +38,7 @@ Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Multi-Arch: same
Description: Osmo GPRS GB library
+ Open Source MObile COMmunications library containing GPRS support functions.
Package: libosmogsm5
Section: libs
@@ -42,6 +46,7 @@ Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Multi-Arch: same
Description: Osmo GSM utility library
+ Open Source MObile COMmunications library implementing various GSM routines.
Package: libosmovty1
Section: libs
@@ -49,6 +54,7 @@ Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Multi-Arch: same
Description: Osmo VTY library
+ Open Source MObile COMmunications library implementing VTY interface.
Package: libosmoctrl0
Section: libs
@@ -56,6 +62,7 @@ Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Multi-Arch: same
Description: Osmo control library
+ Open Source MObile COMmunications control library.
Package: libosmosim0
Section: libs
@@ -63,19 +70,22 @@ Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Multi-Arch: same
Description: Osmo SIM library
-
+ Open Source MObile COMmunications SIM library.
+
Package: libosmocore-dev
Section: libdevel
Architecture: any
-Depends: ${misc:Depends}, libosmocore
+Depends: ${misc:Depends}, libosmocore, libjs-jquery
Multi-Arch: same
Description: Development headers for Open Source MObile COMmunications CORE library
+ Open Source MObile COMmunications library development files.
Package: libosmocore-utils
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libosmocore
Multi-Arch: same
Description: Utilities for gsm
+ Open Source MObile COMmunications library utilities.
Package: libosmocore-dbg
Architecture: any
@@ -84,3 +94,4 @@ Priority: extra
Depends: libosmocore (= ${binary:Version}), ${misc:Depends}
Multi-Arch: same
Description: Debug symbols for Open Source MObile COMmunications CORE library
+ Debug version of Open Source MObile COMmunications CORE library.
diff --git a/debian/copyright b/debian/copyright
index c450be5..c2bfe66 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -6,7 +6,7 @@ It was downloaded from:
git://git.osmocom.org/libosmocore.git
-Upstream Author(s):
+Upstream Authors:
Harald Welte <laforge(a)gnumonks.org>
Holger Hans Peter Freyther <zecke(a)selfish.org>
@@ -36,19 +36,8 @@ Copyright:
License:
GNU General Public License, Version 2 or later
+ see "/usr/share/common-licenses/GPL-2"
The Debian packaging is:
Copyright (C) 2010 Harald Welte <laforge(a)gnumonks.org>
-
-# Please chose a license for your packaging work. If the program you package
-# uses a mainstream license, using the same license is the safest choice.
-# Please avoid to pick license terms that are more restrictive than the
-# packaged work, as it may make Debian's contributions unacceptable upstream.
-# If you just want it to be GPL version 3, leave the following lines in.
-
-and is licensed under the GPL version 3,
-see "/usr/share/common-licenses/GPL-3".
-
-# Please also look if there are files or directories which have a
-# different copyright/license attached and list them here.
--
2.1.0