summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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 Freyther7-7/+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 Freyther3-4/+4
Do not remove the const, include strings.h for strcmp
2011-04-09Add a function to search for a counter by nameDaniel Willmann2-0/+12
2011-04-09Add functions to search for rate counters by nameDaniel Willmann2-0/+36
* 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 Ayuso2-18/+17
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-28vty: move vty_out_rate_ctr_group prototype to osmocom/vty/misc.hPablo Neira Ayuso3-4/+11
Before this patch, it was in osmocom/core/rate_ctr.h
2011-03-28write_queue: use full path of includes in osmocom/core/write_queue.hPablo Neira Ayuso1-2/+2
2011-03-28bitvec: add bitvec_find_first_bit_pos() from gsm/rxlev_stat.cPablo Neira Ayuso3-12/+16
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-27core/bits: Make sbit_t a signed type (so that the math works)Sylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-03-23include: reorganize headers file to include/osmocom/[gsm|core]Pablo Neira Ayuso89-144/+149
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 Ayuso23-36/+96
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 Ayuso4-77/+128
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-05TLV: Add tv_fixed_put() and msgb_tv_fixed_put()Harald Welte1-0/+15
This is for a Tag-Value type with fixed-length value (len > 1)
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 Welte2-123/+62
2011-02-18LOGGING: Add missing 'nat' subsystemHarald Welte1-1/+2
2011-02-18LOGGING: configure logging from the vtyHarald Welte11-27/+433
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 Welte3-2/+77
2011-02-17LOGGING: Pass the log level down to the log target output functionHarald Welte3-7/+10
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 Welte2-2/+2
2011-02-08[utils] add 'bitdump' function for bitfieldsHarald Welte2-0/+31
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-28gsmtap: The TETRA_AACH was defined twice, remove one, renumberHolger Hans Peter Freyther1-7/+6
The GSMTAP_TETRA_AACH was defined twice. On the tetra list we decided to remove the second entry and renumber the list as no one is using this yet.
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.
2011-01-26wireshark: update SMSCB dissector patchAlex Badea1-66/+302
Add full support for reassembly, and dissection of Schedule messages. Signed-off-by: Alex Badea <vamposdecampos@gmail.com>
2011-01-26cell_log: Added command line switches to change default gps device and baud ↵Dario Lombardo1-1/+16
rate.
2011-01-24firmware: Add support for the Pirelli DP-L10 triband GSM/Wifi phoneSteve Markgraf4-1/+316
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2011-01-24fw/app/layer1: unset the inverted attribute of the display after layer1_init()Steve Markgraf1-1/+2
This attribute is toggled with the RTC interrupt, which is disabled in layer1_init(). If an interrupt between rtc_init() and layer1_init() occured, the display of the E88 phones remained inverted Signed-off-by: Steve Markgraf <steve@steve-m.de>
2011-01-24fw/board/gta0x: move rffe configuration to board/gta0xSteve Markgraf2-4/+2
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2011-01-24fw/makefile: enable generation of Compal E86 images (Motorola C139/C140)Steve Markgraf2-1/+149
This target now has its own init.c which correctly initializes the display and the keypad backlight Signed-off-by: Steve Markgraf <steve@steve-m.de>
2011-01-24fw/board/gta0x: remove unused define in RFFE configurationSteve Markgraf1-1/+0
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2011-01-24fw/board/gta0x: implement TX support for gta0x devicesSteve Markgraf1-2/+16
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2011-01-24target/fw: set the TRF6151 tsp IDs from the rffe initializationSteve Markgraf6-17/+27
Signed-off-by: Steve Markgraf <steve@steve-m.de>