osmocom-bb.git
13 years agoMerge commit '28dbfe9bf7a799ab1da2563fd5e007d007b54168'
Pablo Neira Ayuso [Mon, 25 Apr 2011 22:28:18 +0000 (00:28 +0200)]
Merge commit '28dbfe9bf7a799ab1da2563fd5e007d007b54168'

13 years agofw/calypso: Add a new driver for the buzzer control
Sylvain Munaut [Sun, 24 Apr 2011 17:32:42 +0000 (19:32 +0200)]
fw/calypso: Add a new driver for the buzzer control

Written-by: Jose Luis Pereira <onaips@gmail.com>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
13 years agotarget: Hint configure we don't have a select.h
Holger Hans Peter Freyther [Sat, 23 Apr 2011 19:11:08 +0000 (21:11 +0200)]
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

13 years agomisc: Remove the sys/types.h include from various files
Holger Hans Peter Freyther [Mon, 18 Apr 2011 14:52:55 +0000 (16:52 +0200)]
misc: Remove the sys/types.h include from various files

We used this include for the u_int{8,16,32}_t types but we do
not need this anymore.

13 years agostats: Fix the compiler warnings
Holger Hans Peter Freyther [Mon, 18 Apr 2011 14:45:45 +0000 (16:45 +0200)]
stats: Fix the compiler warnings

Do not remove the const, include strings.h for strcmp

13 years agoAdd a function to search for a counter by name
Daniel Willmann [Fri, 8 Apr 2011 08:46:19 +0000 (10:46 +0200)]
Add a function to search for a counter by name

13 years agoAdd functions to search for rate counters by name
Daniel Willmann [Fri, 8 Apr 2011 08:46:18 +0000 (10:46 +0200)]
Add functions to search for rate counters by name

* rate_ctr_get_group_by_name_idx, rate_ctr_get_by_name

13 years agologging: Add the 'all' category back to the log level command
Holger Hans Peter Freyther [Tue, 29 Mar 2011 15:03:56 +0000 (17:03 +0200)]
logging: Add the 'all' category back to the log level command

This is required to be able to set a global log level. The all
command is emitted by the VTY logging code.

13 years agovty: Fix a memory leak in the vty description command
Holger Hans Peter Freyther [Thu, 24 Feb 2011 13:20:41 +0000 (14:20 +0100)]
vty: Fix a memory leak in the vty description command

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.

13 years agoutils: move OSMO_SNPRINT_RET() macro definition to osmocom/core/utils.h
Pablo Neira Ayuso [Mon, 28 Mar 2011 17:24:22 +0000 (19:24 +0200)]
utils: move OSMO_SNPRINT_RET() macro definition to osmocom/core/utils.h

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().

13 years agovty: move vty_out_rate_ctr_group prototype to osmocom/vty/misc.h
Pablo Neira Ayuso [Mon, 28 Mar 2011 17:24:21 +0000 (19:24 +0200)]
vty: move vty_out_rate_ctr_group prototype to osmocom/vty/misc.h

Before this patch, it was in osmocom/core/rate_ctr.h

13 years agowrite_queue: use full path of includes in osmocom/core/write_queue.h
Pablo Neira Ayuso [Mon, 28 Mar 2011 17:24:20 +0000 (19:24 +0200)]
write_queue: use full path of includes in osmocom/core/write_queue.h

13 years agobitvec: add bitvec_find_first_bit_pos() from gsm/rxlev_stat.c
Pablo Neira Ayuso [Mon, 28 Mar 2011 17:24:19 +0000 (19:24 +0200)]
bitvec: add bitvec_find_first_bit_pos() from gsm/rxlev_stat.c

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

13 years agocore/bits: Make sbit_t a signed type (so that the math works)
Sylvain Munaut [Sun, 27 Mar 2011 09:35:40 +0000 (11:35 +0200)]
core/bits: Make sbit_t a signed type (so that the math works)

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
13 years agoinclude: reorganize headers file to include/osmocom/[gsm|core]
Pablo Neira Ayuso [Tue, 22 Mar 2011 15:36:13 +0000 (16:36 +0100)]
include: reorganize headers file to include/osmocom/[gsm|core]

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>
13 years agoThis patch moves the GSM-specific functions to the new library
Pablo Neira Ayuso [Wed, 23 Mar 2011 17:08:08 +0000 (18:08 +0100)]
This patch moves the GSM-specific functions to the new library
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>
13 years agofw/layer1: Adding TAO loop to correct TPU window offset
Andreas Eversberg [Sun, 20 Mar 2011 13:59:16 +0000 (14:59 +0100)]
fw/layer1: Adding TAO loop to correct TPU window offset

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
13 years agovty: integration with logging framework
Pablo Neira Ayuso [Wed, 9 Mar 2011 12:05:08 +0000 (13:05 +0100)]
vty: integration with logging framework

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.

13 years agotarget/fw/dsp: add delay as workaround for dsp_dump
Steve Markgraf [Sat, 19 Mar 2011 01:56:25 +0000 (02:56 +0100)]
target/fw/dsp: add delay as workaround for dsp_dump

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>
13 years agoAllow top-level Makefile to use arm-none-eabi toolchain
Peter Stuge [Sat, 12 Mar 2011 13:38:08 +0000 (14:38 +0100)]
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>
13 years ago[PATCH] Added runtime selection of gps device.
Dario Lombardo [Wed, 9 Mar 2011 16:27:20 +0000 (16:27 +0000)]
[PATCH] Added runtime selection of gps device.

13 years agoTLV: Add tv_fixed_put() and msgb_tv_fixed_put()
Harald Welte [Sat, 5 Mar 2011 13:32:50 +0000 (14:32 +0100)]
TLV: Add tv_fixed_put() and msgb_tv_fixed_put()

This is for a Tag-Value type with fixed-length value (len > 1)

13 years agoMerge branch 'master' of git.osmocom.org:libosmocore
Harald Welte [Wed, 2 Mar 2011 23:27:15 +0000 (00:27 +0100)]
Merge branch 'master' of git.osmocom.org:libosmocore

13 years agomobile: Store N.ba files in same directory as config file
Harald Welte [Wed, 2 Mar 2011 10:00:59 +0000 (11:00 +0100)]
mobile: Store N.ba files in same directory as config file

This should remove the last dependency to hard-coded system-wide /etc/osmocom

13 years agomobile: Use config file in ~/.osmocom/bb/mobile.cfg
Harald Welte [Wed, 2 Mar 2011 09:35:04 +0000 (10:35 +0100)]
mobile: Use config file in ~/.osmocom/bb/mobile.cfg

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>

13 years agoLOGGING: Use host.app_info->name instead of FIXME
Harald Welte [Thu, 24 Feb 2011 22:47:57 +0000 (23:47 +0100)]
LOGGING: Use host.app_info->name instead of FIXME

This should put a useful syslog identity in place.

13 years agorxlev_stat: Fix compiler warning
Harald Welte [Sat, 19 Feb 2011 15:35:47 +0000 (16:35 +0100)]
rxlev_stat: Fix compiler warning

13 years agovty: Revert Makefile.am change for libosmocore dependency
Harald Welte [Sat, 19 Feb 2011 07:10:51 +0000 (16:10 +0900)]
vty: Revert Makefile.am change for libosmocore dependency

13 years agoLOGGING: remove duplicated code between vty-logging and cfg-logging
Harald Welte [Fri, 18 Feb 2011 20:03:27 +0000 (21:03 +0100)]
LOGGING: remove duplicated code between vty-logging and cfg-logging

13 years agoLOGGING: Add missing 'nat' subsystem
Harald Welte [Fri, 18 Feb 2011 19:39:36 +0000 (20:39 +0100)]
LOGGING: Add missing 'nat' subsystem

13 years agoLOGGING: configure logging from the vty
Harald Welte [Fri, 18 Feb 2011 19:37:04 +0000 (20:37 +0100)]
LOGGING: configure logging from the vty

We can now configure logging to (multiple) files, stderr and syslog
from the vty command line in a persistent way (config file)

13 years agoLOGGING: Add syslog log target
Harald Welte [Thu, 17 Feb 2011 14:56:56 +0000 (15:56 +0100)]
LOGGING: Add syslog log target

13 years agoLOGGING: Pass the log level down to the log target output function
Harald Welte [Thu, 17 Feb 2011 14:52:39 +0000 (15:52 +0100)]
LOGGING: Pass the log level down to the log target output function

This will be required for mapping osmocore log levels to syslog priorities.

13 years agoAdded gpsd support.
Dario Lombardo [Thu, 10 Feb 2011 13:24:53 +0000 (14:24 +0100)]
Added gpsd support.

13 years agoRenamed gps_* functions to osmo_gps_* functions to avoid overlap with libgps functions.
Dario Lombardo [Thu, 10 Feb 2011 08:56:33 +0000 (09:56 +0100)]
Renamed gps_* functions to osmo_gps_* functions to avoid overlap with libgps functions.

13 years agowrite_queue: Only pop the queue if it is not empty
Holger Hans Peter Freyther [Mon, 14 Feb 2011 23:42:19 +0000 (00:42 +0100)]
write_queue: Only pop the queue if it is not empty

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.

13 years ago[utils] introduce ubit_dump to dump buffers of unpacked bits
Harald Welte [Tue, 8 Feb 2011 15:56:23 +0000 (16:56 +0100)]
[utils] introduce ubit_dump to dump buffers of unpacked bits

13 years ago[utils] add 'bitdump' function for bitfields
Harald Welte [Tue, 8 Feb 2011 15:55:03 +0000 (16:55 +0100)]
[utils] add 'bitdump' function for bitfields

13 years agotarget/fw: correct IO_CNTL_REG name and small cosmetic fixes
Steve Markgraf [Sun, 6 Feb 2011 16:33:59 +0000 (17:33 +0100)]
target/fw: correct IO_CNTL_REG name and small cosmetic fixes

Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years agogsmtap: The TETRA_AACH was defined twice, remove one, renumber
Holger Hans Peter Freyther [Fri, 28 Jan 2011 09:13:41 +0000 (10:13 +0100)]
gsmtap: The TETRA_AACH was defined twice, remove one, renumber

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.

13 years ago[l1ctl] Adding missing msgb_free()
Andreas.Eversberg [Thu, 27 Jan 2011 16:33:04 +0000 (16:33 +0000)]
[l1ctl] Adding missing msgb_free()

When a corrupt frame cannot be delivered, it is dropped. Also it must be freed.

13 years agowireshark: update SMSCB dissector patch
Alex Badea [Wed, 26 Jan 2011 18:21:07 +0000 (20:21 +0200)]
wireshark: update SMSCB dissector patch

Add full support for reassembly, and dissection of Schedule messages.

Signed-off-by: Alex Badea <vamposdecampos@gmail.com>
13 years agocell_log: Added command line switches to change default gps device and baud rate.
Dario Lombardo [Wed, 26 Jan 2011 08:30:14 +0000 (09:30 +0100)]
cell_log: Added command line switches to change default gps device and baud rate.

13 years agofirmware: Add support for the Pirelli DP-L10 triband GSM/Wifi phone
Steve Markgraf [Mon, 24 Jan 2011 15:59:04 +0000 (16:59 +0100)]
firmware: Add support for the Pirelli DP-L10 triband GSM/Wifi phone

Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years agofw/app/layer1: unset the inverted attribute of the display after layer1_init()
Steve Markgraf [Tue, 18 Jan 2011 19:50:36 +0000 (20:50 +0100)]
fw/app/layer1: unset the inverted attribute of the display after layer1_init()

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>
13 years agofw/board/gta0x: move rffe configuration to board/gta0x
Steve Markgraf [Tue, 18 Jan 2011 16:18:11 +0000 (17:18 +0100)]
fw/board/gta0x: move rffe configuration to board/gta0x

Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years agofw/makefile: enable generation of Compal E86 images (Motorola C139/C140)
Steve Markgraf [Tue, 18 Jan 2011 15:51:41 +0000 (16:51 +0100)]
fw/makefile: enable generation of Compal E86 images (Motorola C139/C140)

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>
13 years agofw/board/gta0x: remove unused define in RFFE configuration
Steve Markgraf [Mon, 24 Jan 2011 15:53:47 +0000 (16:53 +0100)]
fw/board/gta0x: remove unused define in RFFE configuration

Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years agofw/board/gta0x: implement TX support for gta0x devices
Steve Markgraf [Tue, 18 Jan 2011 15:27:56 +0000 (16:27 +0100)]
fw/board/gta0x: implement TX support for gta0x devices

Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years agotarget/fw: set the TRF6151 tsp IDs from the rffe initialization
Steve Markgraf [Mon, 24 Jan 2011 15:48:56 +0000 (16:48 +0100)]
target/fw: set the TRF6151 tsp IDs from the rffe initialization

Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years agoccch: Print paging of tyep2
Holger Hans Peter Freyther [Sun, 23 Jan 2011 13:29:30 +0000 (14:29 +0100)]
ccch: Print paging of tyep2

13 years agoccch: Decode the paging1 type paging requests
Holger Hans Peter Freyther [Sun, 23 Jan 2011 13:16:54 +0000 (14:16 +0100)]
ccch: Decode the paging1 type paging requests

Th size checks are a bit messy and I have not seen an optional
MI yet. So this code path is not tested at all.

13 years agoccch: Print the decoded immediate assignment again, ignore two messages
Holger Hans Peter Freyther [Sun, 23 Jan 2011 11:20:31 +0000 (12:20 +0100)]
ccch: Print the decoded immediate assignment again, ignore two messages

Decode the immediate assignment and print the messages as a
notice, ignore the Notification for voice group services and
use a magic number for SI 2quater that I could not find in my
version of the spec.

13 years agoccch: Stop using fprintf for the SI
Holger Hans Peter Freyther [Sun, 23 Jan 2011 11:06:35 +0000 (12:06 +0100)]
ccch: Stop using fprintf for the SI

Stop using fprintf to print the System Information number of the
data we get. For the check use LOGP with LOGL_ERROR. There is
little use in this information.

13 years agologging: Move DRSL, DLAPDM, DL1C to LOGL_NOTICE as default
Holger Hans Peter Freyther [Sun, 23 Jan 2011 11:05:39 +0000 (12:05 +0100)]
logging: Move DRSL, DLAPDM, DL1C to LOGL_NOTICE as default

All these layers are mostly stable, increase the default log
level to LOGL_NOTICE.

13 years agomisc: Ignore two misc application binaries
Holger Hans Peter Freyther [Sun, 16 Jan 2011 10:30:31 +0000 (11:30 +0100)]
misc: Ignore two misc application binaries

13 years agoccch: Stop following assignment requests and sending LUs
Holger Hans Peter Freyther [Sun, 16 Jan 2011 10:28:23 +0000 (11:28 +0100)]
ccch: Stop following assignment requests and sending LUs

Make the ccch_scan only look at the immediate assignment
but do not follow it. The old behavior was dangerous as
it could interfere with the real receiver of the channel.

13 years agoccch: Fix the cast of the frequency list
Holger Hans Peter Freyther [Sun, 16 Jan 2011 10:22:58 +0000 (11:22 +0100)]
ccch: Fix the cast of the frequency list

13 years agoccch: Remove the app_phone.c, move it to the app_ccch_scan file
Holger Hans Peter Freyther [Sun, 16 Jan 2011 10:20:09 +0000 (11:20 +0100)]
ccch: Remove the app_phone.c, move it to the app_ccch_scan file

13 years agoccch: Add a copyright header to that file.
Holger Hans Peter Freyther [Sun, 16 Jan 2011 10:16:01 +0000 (11:16 +0100)]
ccch: Add a copyright header to that file.

13 years agolayer23: Rename layer23 to ccch_scan as discussed on the ml
Holger Hans Peter Freyther [Sun, 16 Jan 2011 10:14:37 +0000 (11:14 +0100)]
layer23: Rename layer23 to ccch_scan as discussed on the ml

13 years agologging: Add isup,m2ua,pcap from the cellmgr.
Holger Hans Peter Freyther [Sat, 22 Jan 2011 22:17:21 +0000 (23:17 +0100)]
logging: Add isup,m2ua,pcap from the cellmgr.

This is something that we should generate dynamically from
the log_info as well. This is adding bits from the cellmgr_ng.

13 years agoubit2pbit flushes at the wrong moment, added one note to bits.h
Christian Vogel [Sat, 22 Jan 2011 21:48:37 +0000 (22:48 +0100)]
ubit2pbit flushes at the wrong moment, added one note to bits.h

(e.g. input2[] test sequence from testra/crc_test
 decodes incorrectly to packed bits: 90 b0 3e 80 03 87 53 bd 6f 08,
 this patch fixes it)

13 years agobits: Add extended options version of pbit2ubit and ubit2pbit
Sylvain Munaut [Fri, 21 Jan 2011 11:22:30 +0000 (12:22 +0100)]
bits: Add extended options version of pbit2ubit and ubit2pbit

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
13 years ago[BITS] introduce new packed/unpacked bit conversion routines
Harald Welte [Wed, 19 Jan 2011 09:10:16 +0000 (10:10 +0100)]
[BITS] introduce new packed/unpacked bit conversion routines

13 years ago[gsmtap] extend GSMTAP for TETRA
Harald Welte [Wed, 19 Jan 2011 08:40:59 +0000 (09:40 +0100)]
[gsmtap] extend GSMTAP for TETRA

13 years agogsmtap.h: Add some more comments
Harald Welte [Tue, 18 Jan 2011 20:38:12 +0000 (21:38 +0100)]
gsmtap.h: Add some more comments

13 years agoupdate .gitignore
Steve Markgraf [Tue, 18 Jan 2011 12:24:28 +0000 (13:24 +0100)]
update .gitignore

Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years agoMakefile: be more robust against toolchains without syscalls
Michael Grzeschik [Tue, 18 Jan 2011 10:58:26 +0000 (11:58 +0100)]
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>
13 years agomsgb: Make sure at compile time that headroom is smaller than size
Holger Hans Peter Freyther [Sun, 16 Jan 2011 16:38:22 +0000 (17:38 +0100)]
msgb: Make sure at compile time that headroom is smaller than size

All current code is using constants to allocate the msgb with
headroom. Use a static_assert to make sure that the headroom
is smaller than the size. This makes API misusage unlikely to
happen.

13 years agomisc: Move the static_assert from logging to the utils
Holger Hans Peter Freyther [Sun, 16 Jan 2011 16:37:27 +0000 (17:37 +0100)]
misc: Move the static_assert from logging to the utils

This is just an ordinary macro, no specific reason to
have it in logging.h. This was compile tested with code
from our osmo family.

13 years agogsm 03.41: fix GSM341_MSG_CODE macro argument
Alex Badea [Sat, 15 Jan 2011 17:43:42 +0000 (19:43 +0200)]
gsm 03.41: fix GSM341_MSG_CODE macro argument

One usage of the "ms" argument is typoed as "msg".  Fix it to prevent
subtle future failures.  Also paranthesize the macro argument for good
measure.

Signed-off-by: Alex Badea <vamposdecampos@gmail.com>
13 years agodebian: Make the -dev package depend on the normal one
Holger Hans Peter Freyther [Thu, 13 Jan 2011 11:31:25 +0000 (12:31 +0100)]
debian: Make the -dev package depend on the normal one

Make libosmocore-dev depend on libosmocore. Otherwise
we only end up with the libosmocore.a files installed
and then have various issues with the link order when
linking OpenBSC and such.

13 years agodebian: Switch to the 3.0 git format, update version, fix depends
Holger Hans Peter Freyther [Thu, 13 Jan 2011 10:09:44 +0000 (18:09 +0800)]
debian: Switch to the 3.0 git format, update version, fix depends

Switch to the git format as this can generate the source directly
from the git checkout. Increase the version number to 0.1.27 as this
is the latest tag, depend on autoconf, automake and libtool and use
autoreconf when building to be able to directly build from a git
clone.

13 years agotarget/loader: disable bootrom mapping
Steve Markgraf [Wed, 12 Jan 2011 18:09:16 +0000 (19:09 +0100)]
target/loader: disable bootrom mapping

This is for being able to read the whole flash on devices that use the bootrom,
and also fixes flash detection on the C139/C140/J100i

Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years agofw/calypso/dsp: Add comment about meaning of bit 11 of ndb->d_tch_mode
Sylvain Munaut [Wed, 12 Jan 2011 14:39:25 +0000 (15:39 +0100)]
fw/calypso/dsp: Add comment about meaning of bit 11 of ndb->d_tch_mode

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
13 years agotarget/simtest: remove delay functions
Steve Markgraf [Tue, 11 Jan 2011 19:03:35 +0000 (20:03 +0100)]
target/simtest: remove delay functions

Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years agofixed typos in comments
Thomas Waldmann [Tue, 11 Jan 2011 18:38:59 +0000 (19:38 +0100)]
fixed typos in comments

Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years agodocumentation: fix some typos
Steve Markgraf [Sat, 8 Jan 2011 19:58:25 +0000 (20:58 +0100)]
documentation: fix some typos

Thanks to Thomas Waldmann who provided this patch

Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years agoFix flash chip detection by using a volatile pointer
Andreas Oberritter [Fri, 7 Jan 2011 22:50:04 +0000 (23:50 +0100)]
Fix flash chip detection by using a volatile pointer

* This might be a workaround for a compiler bug
  (gcc 4.5.2, binutils 2.21)

Signed-off-by: Andreas Oberritter <obi@saftware.de>
Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years agoMerge commit '4a4f96d1f67441e2902a0806f1d7c4b29a072ca3'
Steve Markgraf [Wed, 5 Jan 2011 22:48:06 +0000 (23:48 +0100)]
Merge commit '4a4f96d1f67441e2902a0806f1d7c4b29a072ca3'

13 years agovty: Fix typo testing return value of bind
Sylvain Munaut [Mon, 3 Jan 2011 21:19:40 +0000 (22:19 +0100)]
vty: Fix typo testing return value of bind

Thanks to playya__ (Dr. Fred) on IRC for pointing this out

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
13 years agodisplay/st7558: remove delays, since the bug in the i2c driver is fixed
Steve Markgraf [Sun, 2 Jan 2011 15:54:54 +0000 (16:54 +0100)]
display/st7558: remove delays, since the bug in the i2c driver is fixed

Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years agoTesting for the idle i2c bus was done backwards, we have
Christian Vogel [Mon, 4 Oct 2010 18:10:42 +0000 (20:10 +0200)]
Testing for the idle i2c bus was done backwards, we have
to wait for the bit to become 0, not 1.

13 years agodisplay/td014: add short delay after initializing uwire
Steve Markgraf [Sun, 2 Jan 2011 00:36:04 +0000 (01:36 +0100)]
display/td014: add short delay after initializing uwire

This should fix the initialization of the C139/C140 display

Signed-off-by: Steve Markgraf <steve@steve-m.de>
13 years agosmscb: Add definition of a warning message
Holger Hans Peter Freyther [Wed, 29 Dec 2010 20:14:20 +0000 (21:14 +0100)]
smscb: Add definition of a warning message

13 years agosmscb: Ignore the very simple test application.
Holger Hans Peter Freyther [Wed, 29 Dec 2010 20:13:44 +0000 (21:13 +0100)]
smscb: Ignore the very simple test application.

13 years agosmscb: Mention 23.041 and fix the size of the update number
Holger Hans Peter Freyther [Wed, 29 Dec 2010 11:00:01 +0000 (12:00 +0100)]
smscb: Mention 23.041 and fix the size of the update number

13 years agosmscb: Add some simple decoding routines for SMSCB.
Holger Hans Peter Freyther [Wed, 29 Dec 2010 10:57:48 +0000 (11:57 +0100)]
smscb: Add some simple decoding routines for SMSCB.

13 years ago[layer23] Enable half rate support in support.c
Andreas.Eversberg [Tue, 28 Dec 2010 12:22:39 +0000 (12:22 +0000)]
[layer23] Enable half rate support in support.c

13 years ago[layer23] Timer 3126 must be stopped even if starting time is given
Andreas.Eversberg [Tue, 28 Dec 2010 12:21:18 +0000 (12:21 +0000)]
[layer23] Timer 3126 must be stopped even if starting time is given

13 years agolayer2: Make it possible to disable or increase the number of RA bursts
Holger Hans Peter Freyther [Mon, 27 Dec 2010 19:03:27 +0000 (20:03 +0100)]
layer2: Make it possible to disable or increase the number of RA bursts

13 years agolayer23: Enable combining the long options
Holger Hans Peter Freyther [Mon, 27 Dec 2010 13:51:13 +0000 (14:51 +0100)]
layer23: Enable combining the long options

Combine the long options from the base and the application. Provide
the long option for the cell log application.

13 years agolayer23: Make the logfile configurable with cell_log
Holger Hans Peter Freyther [Mon, 27 Dec 2010 07:58:57 +0000 (08:58 +0100)]
layer23: Make the logfile configurable with cell_log

Be able to add extra (short) options from the 'applet' to
the main application. Use this to print the help mentioning
app specific options, pass the getopt string and handle the
command line parsing for it.

Change cell_log to keep the logname in the app_cell_log.c
and then access it from the cell_log.c implementation.

13 years agolayer23: Not every application supports every option add enum
Holger Hans Peter Freyther [Sun, 26 Dec 2010 20:29:51 +0000 (21:29 +0100)]
layer23: Not every application supports every option add enum

Allow each application to specify the options it is supporting.

13 years agolayer23: Create an l23_app_info for various information and cb's
Holger Hans Peter Freyther [Sun, 26 Dec 2010 18:15:48 +0000 (19:15 +0100)]
layer23: Create an l23_app_info for various information and cb's

Make it possible that each l23 app can inject the copyright string,
also prepare to have callbacks for the config handling and other
places. This will be useful to add app specific config options.

13 years ago[cell_log] Use GPS signal, even if it becomes valid during scanning
Andreas.Eversberg [Mon, 27 Dec 2010 17:11:28 +0000 (17:11 +0000)]
[cell_log] Use GPS signal, even if it becomes valid during scanning

13 years agofw/layer1: Resync TCH primitive on mode changes
Sylvain Munaut [Mon, 27 Dec 2010 15:07:30 +0000 (16:07 +0100)]
fw/layer1: Resync TCH primitive on mode changes

This is needed for audio to work properly in VEA mode

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
13 years agoUse the app_info->name instead of the hostname
Harald Welte [Fri, 24 Dec 2010 14:10:14 +0000 (15:10 +0100)]
Use the app_info->name instead of the hostname

This makes more sense in case you run BCS, SGSN and other components
on the same host.  Having multiple telnet sessions with the same
prompt can otherwise be confusing.

13 years agostdint.h: Next attempt at making this work with various compilers
Holger Hans Peter Freyther [Mon, 20 Dec 2010 20:01:22 +0000 (21:01 +0100)]
stdint.h: Next attempt at making this work with various compilers

Newer GCC with GNU LIBC do not like our minimalistic version of
stdint.h and will have conflicts. Older GCC with older C Libs do
not have a stdint.h yet and the #include_next trick is failing. To
make matters worse NEWLIB does not export its version via the
pre-processor.

We will have to guess once more about the compiler. This code now
assumes that if we have a GCC < 4 that it does not have a stdint.h
and we will not try to include the next stdint.h file.