Commit Graph

30 Commits

Author SHA1 Message Date
Harald Welte 05d95a46fd Merge 'fixeria/trx' into master
Change-Id: I5586fd8c9eb281285f4a59e63cb17dbc3641e1c1
2018-04-07 19:35:24 +02:00
Luca Melette e357646ed7 Import gprsdecode utility from SRLabs
This change introduces a modified version of gprsdecode utility,
which is intended to decode the GPRS burst captures and forward
decoded packets to the GSMTAP sink.

The following modifications were made:

  - use shared libosmocoding library for GSM 05.03 coding;
  - use optget for command line options parsing;
  - use a single application select loop;
  - use GNU automake as the build system;
  - add regression tests (GNU autotest);
  - clean up and comment the code;
  - add license headers;

The code is based on work of SRLabs:

  https://srlabs.de/
  git://git.srlabs.de/gprsdecode.git

Related: OS#1672
Change-Id: I12234d37c66b83b8abd60f7511fa1d7837db1856
2018-02-06 14:05:17 +07:00
Max 4ee98c9db6 cosmetic: fix Makefile whitespace
Change-Id: Ia55d54d7ec7ec04e122d2e5250037c2d166abeb5
2018-01-22 17:18:31 +01:00
Vadim Yanitskiy 8975b437ed host/trxcon: introduce a new 'trxcon' application
This app is similar to the osmocon, but designed to
connect L2 & L3 apps with SDR transceiver insted of
obsolete Calypso based hardware.

Change-Id: Ie3c17f19aad9c26f3c49966a7c96b65911f62369
2017-11-19 17:35:07 +07:00
Sebastian Stumpf 2e265c897a VIRT-PHY: Cleanup dirs, makefile, dependencies and formatting code.
Change-Id: Ibd68a03bcc439c262ba513782936c6b62937eaaa
2017-07-12 23:26:26 +02:00
Sebastian Stumpf a4aaa14878 VIRT-PHY: Initial commit of virt-phy to work with osmo-bts virt-phy.
This patch implements a virtual physical layer replacing the air
interface. The purpose is to get rid of the hardware requirements
and be able to start testing and implementing layer 2 communication
functionality on one machine. Multicast sockets are used to enable
bidirectional communication between the BTS and the MS process.
The GSMTAP protocol designed for wireshark capturing is used to
encapsulate the payload on the virtual physical layer.
The virtual physical layer on the osmocom-bb side implements the
L1CTL interface to the layer23 apps like mobile.

* Working mcast socket communication and extraction of its
  functionality.
* Basic handlers for file descriptor callbacks from incoming L1CTL
  messages and extraction of that functionality to a l1ctl socket class.
* Multiplexing to different routines depending on incoming L1CTL
  message type.
* Uses virt_um and osmocom_mcast_sock implementation from osmo-bts
  virt-phy.
* Ecapsulation and parsing methods to and from GSMTAP messages.
* Basic handlers for file descriptor callbacks from incoming mcast
  messages on the virtual um.
* Multiplexing to different channel routines based on GSMTAP header
  channel type.
* Example configuration for l23 app mobile using virtual test sim.

Change-Id: I203c8ec58326e52a09603a37232fce7ae3641415
2017-07-12 23:26:26 +02:00
Vadim Yanitskiy c1cdd3b5a4 Makefile: add forgotten gsmmap to (dist)clean section
Change-Id: I14abe8a061d218ca81dd2d101b218d3030324aa2
2017-05-25 03:10:50 +03:00
Sylvain Munaut 439738df43 build: Use the system wide libosmocore for host applications
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-01-02 20:44:10 +01:00
Sylvain Munaut 8241fe4818 build: Make use of the new --enable-embedded option on libosmocore
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-09-02 22:25:18 +02:00
Andreas.Eversberg 1a5461fb2b layer23: Add mobile support for sending / receiving voice frame through MNCC
Support GSM FR codec only so far.

Written-by: Andreas Eversberg <jolly@eversberg.eu>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-07-28 21:30:51 +02:00
Harald Welte 41d84e08bb Makefile: disable the check for sys/socket.h in the libosmocore target build 2011-05-29 17:01:26 +02:00
Sylvain Munaut 2743496f8a src/Makefile: The configure.in was renamed configure.ac -> update Makefile
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-05-29 15:55:24 +02:00
Wolfram Sang a5611f9555 target/boards: add infrastructure for loaders for Mediatek platforms
We are just interested in the loaders here, no other applications needed.
Split it from the compal-based phones. Add mt62xx as first user.

Based on a patch by steve-m, but cleaned up and seperated from compal/calypso.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
2011-05-05 09:52:47 +02:00
Pablo Neira Ayuso ade79a0083 src: use new libosmogsm and include/osmocom/[gsm|core] path to headers
This patch changes include paths to get osmocom-bb working with
the current libosmocore tree.

Among all these renames, you can notice several tweaks that I
added on purpose, and that require some explanation, they are:

* hexdump() in osmocon.c and osmoload.c has been renamed to avoid
clashing with hexdump() defined in libosmocore.

* gsmmap now depends on libosmogsm. Actually I had to cleanup
Makefile.am because I was experiencing weird linking problems,
probably due to a bug in the autotools. With the change included
in this patch, I got it compiled and linked here correctly.

This patch has been tested with the phone Motorola C123 and the
following images files:

* firmware/board/compal_e88/hello_world.compalram.bin
* firmware/board/compal_e88/layer1.compalram.bin

Using the osmocon, bcch_scan and mobile tools.

Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
2011-04-26 02:55:30 +02:00
Holger Hans Peter Freyther 03ce0a402c target: Hint configure we don't have a select.h
People using a GNU/Linux toolchain can end up in trouble when
gsmtap_util.c is including network header files. Hint autoconf
that there is no sys/select.h
2011-04-23 21:11:08 +02:00
Peter Stuge b22c05dc6d Allow top-level Makefile to use arm-none-eabi toolchain
The gnuarm.com toolchain works fine but is very old. And although
it is based on newlib, the tuple that we used to configure for was
arm-elf-linux, which is bogus since we aren't building for Linux.

This patch optimizes for the CodeSourcery G++ Lite 2010.09 ARM EABI
toolchain instead, and for libosmocore installation it assumes that
the new toolchain was unpacked next to the old one. Download it here:

http://www.codesourcery.com/sgpp/lite/arm/portal/release1592

(The Linux Installer seems not to work reliably so I recommend the
 TAR.)

Since CC is detected by configure when the host tuple points to a sane
toolchain we shouldn't hard-code the gnuarm.com compiler.

The patch autodetects arm-elf-gcc installed in PATH, and uses arm-elf
as prefix if it is found. Otherwise, it defaults to arm-none-eabi.

make CROSS_HOST=arm-xyzzy can be used to override on the command line.

Author: Peter Stuge <peter@stuge.se>
Acked-by: Sylvain Munaut <tnt@246tNt.com>
2011-03-12 14:38:08 +01:00
Michael Grzeschik 4cd3bb7858 Makefile: be more robust against toolchains without syscalls
Several toolchains are missing syscalls provided by the libc used. For example,
if the newlib was build with the configure flag "--disable-newlib-supplied-syscalls".
To prevent the configure check for things like "_exit" in osmocom
the CFLAGS+="-nostartfiles -nodefaultlibs" helps a lot.

Signed-off-by: Michael Grzeschik <mgr@xviews.de>
Acked-by: Wolfram Sang <wolfram@the-dreams.de>
Acked-by: Peter Stuge <peter@stuge.se>
2011-01-18 13:11:00 +01:00
Sylvain Munaut 733c894c18 build: Use absolute path in the CFLAGS for libosmocore target build
There is now subdirectories to build !

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-28 14:28:42 +01:00
Harald Welte 641f40cecc Makefile: introduce 'make nofirmware' target to build host-only tools 2010-11-21 18:24:10 +01:00
Alex Badea 56f990976c toplevel Makefile: accept arguments for host ./configure calls
Append $(HOST_CONFARGS) to ./configure scripts for 'host' applications.

This allows e.g. cross-compiling on an x86 build system for an OpenMoko
gta0x host, using an invocation such as:

$ make HOST_CONFARGS="--host=arm-angstrom-linux-gnueabi"

Signed-off-by: Alex Badea <vamposdecampos@gmail.com>
2010-11-17 23:39:46 +01:00
Andreas.Eversberg a8ac4bb2df Introducing "gsmmap" to convert SYSTEM INFORMATION log into a KML map 2010-10-24 14:12:58 +00:00
Sylvain Munaut 3573380908 shared/libosmocore: Make sure to use the 'infinite loop' abort handler
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-27 20:51:07 +02:00
Andreas.Eversberg d6b1a9b10e [layer23] Removed cloned VTY and replaced it by libosmovty. 2010-06-26 14:00:29 +00:00
Harald Welte eec93af7d1 [build scripts] Make sure libosmocore for the target uses --disable-vty
The vty code cannot be cross-compiled to the target yet, we need to
disable building it.
2010-06-25 03:01:57 +02:00
Harald Welte 97c8b6f33b start to use libosmocore within the firmware
* remove linuxlist.h copy and use osmocore
 * don't put 'struct gsm_time' into l1ctl packets
 * include rx_level and snr for each burst in l1ctl
 * properly build libosmocore.a for target
 * move gsmtime functions into libosmocore
 * move ctype.h to standard location
2010-03-07 20:56:12 +01:00
Harald Welte 98cc91c44a build libosmocore for the target with "-Os -ffunction-sections" 2010-03-07 16:19:12 +01:00
Ingo Albrecht 2ff5ca0458 Made cross-compile prefixes work normally. 2010-03-07 11:47:10 +01:00
Harald Welte a5927b6503 pass the correct cross compiler path name from master Makefile to firmware 2010-03-07 00:49:30 +01:00
Harald Welte 219c9d5a6e fix master Makefile with layer23 rename 2010-03-03 14:41:16 +01:00
Harald Welte e61df0c60e add new master Makefile
using the Makefile in the 'src' directory, we nwo build everything
2010-02-20 23:13:25 +01:00