summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2012-06-18[SAP] disable sap socket if it does not exist, otherwise it interrupts ↵nion/sapNico Golde1-0/+2
normal SIM operations
2012-03-20[SAP] remove sap socket command from vty, instead rely on mobile instance ↵Nico Golde4-34/+7
configuration and initialize sap from app_mobile
2011-07-14* move inital SAP connect to sim sap-socket command as otherwise all sim ↵Nico Golde1-11/+11
actions would have to wait for the connect to complete
2011-06-30* fix immature assignment of settings before ms has been acquired ↵Nico Golde1-1/+2
(vty_interface/sim reader)
2011-05-23[SAP] implement simple SAP client to be used with the SAP server in the ↵Nico Golde9-67/+570
softsim repository - this also introduces a new vty command to set the socket path before issueing sim reader ms
2011-05-05target/boards: add infrastructure for loaders for Mediatek platformsWolfram Sang11-1/+1495
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-05uart.h: move header out of calypso-directoryWolfram Sang11-13/+13
Everything defined is a pretty generic interface and can be used by mediatek, too. Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
2011-05-05cfi_flash: delete unused definesWolfram Sang1-5/+0
Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
2011-05-05lib: move delay.c from calypso to libWolfram Sang3-2/+2
Nothing calypso-related in there and needed for Mediatek, too. Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
2011-05-05comm: msgb: don't set backlight on errorWolfram Sang1-1/+0
Removes the dependency to calypso and makes place for a generic board_panic to be added later. Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
2011-05-02[sim] Fixed path handling in sim client and mobile app.Nico Golde2-2/+2
2011-05-02linuxlist.h: silence a noisy warningWolfram Sang1-1/+1
Fixes a couple of warnings like this: In file included from ../../shared/libosmocore/include/osmocom/core/msgb.h:24:0, from include/comm/sercomm.h:6, from apps/loader/main.c:41: ../../shared/libosmocore/include/osmocom/core/linuxlist.h: In function 'prefetch': ../../shared/libosmocore/include/osmocom/core/linuxlist.h:10:41: warning: unused parameter 'x' Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
2011-04-28target/firmware: make build less verbose like the rest of the treeWolfram Sang1-6/+17
As usual V=1 will give the full output. Signed-off-by: Wolfram Sang <wolfram@the-dreams.de> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-04-26src: use new libosmogsm and include/osmocom/[gsm|core] path to headersPablo Neira Ayuso88-208/+210
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-26Merge commit '28dbfe9bf7a799ab1da2563fd5e007d007b54168'Pablo Neira Ayuso106-337/+1153
2011-04-24fw/calypso: Add a new driver for the buzzer controlSylvain Munaut3-1/+121
Written-by: Jose Luis Pereira <onaips@gmail.com> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-04-23target: Hint configure we don't have a select.hHolger Hans Peter Freyther1-1/+1
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-18misc: Remove the sys/types.h include from various filesHolger Hans Peter Freyther6-6/+0
We used this include for the u_int{8,16,32}_t types but we do not need this anymore.
2011-04-18stats: Fix the compiler warningsHolger Hans Peter Freyther2-3/+3
Do not remove the const, include strings.h for strcmp
2011-04-09Add a function to search for a counter by nameDaniel Willmann1-0/+10
2011-04-09Add functions to search for rate counters by nameDaniel Willmann1-0/+34
* rate_ctr_get_group_by_name_idx, rate_ctr_get_by_name
2011-03-29logging: Add the 'all' category back to the log level commandHolger Hans Peter Freyther1-1/+1
This is required to be able to set a global log level. The all command is emitted by the VTY logging code.
2011-03-29vty: Fix a memory leak in the vty description commandHolger Hans Peter Freyther1-0/+2
Before assigning a new string, free the previous one. This assume that it was allocated with talloc which should be true for the osmocom users.
2011-03-28utils: move OSMO_SNPRINT_RET() macro definition to osmocom/core/utils.hPablo Neira Ayuso1-18/+8
This is used by the logging to vty conversion functions by now, but it may be of help for other functions that plan to use snprintf().
2011-03-28bitvec: add bitvec_find_first_bit_pos() from gsm/rxlev_stat.cPablo Neira Ayuso2-12/+14
This patch adds bitvec_find_bit_pos() to bitvec.c where it really belongs to. Before this patch used to be part of gsm/rxlev_stat.c
2011-03-23include: reorganize headers file to include/osmocom/[gsm|core]Pablo Neira Ayuso35-87/+87
This patch moves all GSM-specific definitions to include/osmocom/gsm. Moreover, the headers in include/osmocore/ have been moved to include/osmocom/core. This has been proposed by Harald Welte and Sylvain Munaunt. Tested with `make distcheck'. Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
2011-03-23This patch moves the GSM-specific functions to the new libraryPablo Neira Ayuso14-30/+71
libosmogsm which is provided by libosmocore. I have also moved generate_backtrace() to backtrace.c instead of gsm_utils.c, otherwise the timer and msgfile tests depend on libosmogsm. Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
2011-03-20fw/layer1: Adding TAO loop to correct TPU window offsetAndreas Eversberg8-2/+111
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-03-19vty: integration with logging frameworkPablo Neira Ayuso2-72/+122
The logging categories are registered by the applications, like osmo-nitb, during startup. Thus, the VTY have to provide the logging commands according to the logging categories that the application has registered. Before this patch, the VTY contained the logging categories hardcoded. Thus, any change in the logging categories by the application would not be shown by the VTY. So far, this was not a problem because all applications used the same logging categories. However, according to what Harald told me, this may be a problem in the future. This patch resolve the lack of integration between the logging framework and the VTY by generating the VTY logging commands from the logging categories registered. Since this patch changes one function of the libosmocore API, it follows another patch for the openbsc application to get in sync with the new function layout. I have reworked and renamed the functions: * log_vty_category_string() * log_vty_level_string() to provide the new ones that generate the exact output that VTY requires. This patch does not release the memory allocated by talloc_zero_size() to store the VTY strings for the commands and the description. I found no exit function that can clean up resources that were allocated.
2011-03-19target/fw/dsp: add delay as workaround for dsp_dumpSteve Markgraf1-0/+3
Without the delay we would fill the sercomm buffer faster than its content can be sent, and the phone would end up in a panic and hang. Signed-off-by: Steve Markgraf <steve@steve-m.de>
2011-03-12Allow top-level Makefile to use arm-none-eabi toolchainPeter Stuge1-4/+7
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-09[PATCH] Added runtime selection of gps device.Dario Lombardo6-132/+177
2011-03-03Merge branch 'master' of git.osmocom.org:libosmocoreHarald Welte1-1/+4
2011-03-02mobile: Store N.ba files in same directory as config fileHarald Welte3-7/+13
This should remove the last dependency to hard-coded system-wide /etc/osmocom
2011-03-02mobile: Use config file in ~/.osmocom/bb/mobile.cfgHarald Welte2-10/+25
We don't need root permission and a system-wide config file in /etc/osmocom Based on a patch by Pierre Pronchery <khorben@defora.org>
2011-02-24LOGGING: Use host.app_info->name instead of FIXMEHarald Welte1-1/+4
This should put a useful syslog identity in place.
2011-02-19rxlev_stat: Fix compiler warningHarald Welte1-1/+1
2011-02-19vty: Revert Makefile.am change for libosmocore dependencyHarald Welte1-1/+1
2011-02-18LOGGING: remove duplicated code between vty-logging and cfg-loggingHarald Welte1-123/+60
2011-02-18LOGGING: Add missing 'nat' subsystemHarald Welte1-1/+2
2011-02-18LOGGING: configure logging from the vtyHarald Welte7-26/+415
We can now configure logging to (multiple) files, stderr and syslog from the vty command line in a persistent way (config file)
2011-02-17LOGGING: Add syslog log targetHarald Welte2-2/+75
2011-02-17LOGGING: Pass the log level down to the log target output functionHarald Welte2-6/+8
This will be required for mapping osmocore log levels to syslog priorities.
2011-02-16Added gpsd support.Dario Lombardo5-4/+182
2011-02-16Renamed gps_* functions to osmo_gps_* functions to avoid overlap with libgps ↵Dario Lombardo5-24/+24
functions.
2011-02-15write_queue: Only pop the queue if it is not emptyHolger Hans Peter Freyther1-8/+10
It is possible that the queue is cleared after the select and before the callback for writable is called. Check if the list is not empty brefore taking an item out of it.
2011-02-08[utils] introduce ubit_dump to dump buffers of unpacked bitsHarald Welte1-1/+1
2011-02-08[utils] add 'bitdump' function for bitfieldsHarald Welte1-0/+30
2011-02-06target/fw: correct IO_CNTL_REG name and small cosmetic fixesSteve Markgraf5-17/+16
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2011-01-27[l1ctl] Adding missing msgb_free()Andreas.Eversberg1-0/+1
When a corrupt frame cannot be delivered, it is dropped. Also it must be freed.