osmocom-bb.git
14 years agoMerge commit '52b4abdcb351830f5493a50c4181ef3947f3feab'
Harald Welte [Thu, 25 Mar 2010 04:18:14 +0000 (12:18 +0800)]
Merge commit '52b4abdcb351830f5493a50c4181ef3947f3feab'

Conflicts:
src/shared/libosmocore/src/utils.c

14 years agoreplace rsl_rlm_cause_strs with rsl_rlm_cause_name()
Harald Welte [Thu, 25 Mar 2010 04:11:38 +0000 (12:11 +0800)]
replace rsl_rlm_cause_strs with rsl_rlm_cause_name()

14 years agoreplace gsm48_cc_msg_names[] with gsm48_cc_msg_name()
Harald Welte [Thu, 25 Mar 2010 04:00:54 +0000 (12:00 +0800)]
replace gsm48_cc_msg_names[] with gsm48_cc_msg_name()

and implement the backend using value_string

14 years agouse more value_string in gsm48 and rsl
Harald Welte [Thu, 25 Mar 2010 03:44:57 +0000 (11:44 +0800)]
use more value_string in gsm48 and rsl

14 years agoget_value_string(): return "unknown 0x..." instead of "unknown"
Harald Welte [Thu, 25 Mar 2010 03:37:04 +0000 (11:37 +0800)]
get_value_string(): return "unknown 0x..." instead of "unknown"

14 years agoCreate a dummy m4 directory to make autoreconf --install --force work
Holger Hans Peter Freyther [Wed, 24 Mar 2010 01:55:33 +0000 (02:55 +0100)]
Create a dummy m4 directory to make autoreconf --install --force work

Even when removing AC_CONFIG_MACRO_DIR aclocal insisted that it
needs to have a m4 directory. Make it happy by providing one. As git
is not tracking directories I needed to add a dummy file.

14 years agoadd git-version-gen magic to automatically generate package version
Harald Welte [Mon, 22 Mar 2010 16:30:19 +0000 (00:30 +0800)]
add git-version-gen magic to automatically generate package version

14 years agobump version to 0.1.0
Harald Welte [Mon, 22 Mar 2010 16:23:23 +0000 (00:23 +0800)]
bump version to 0.1.0

14 years agoosmocore: Add a direct l4h to the union of l4h pointers
Holger Hans Peter Freyther [Mon, 22 Mar 2010 02:11:10 +0000 (03:11 +0100)]
osmocore: Add a direct l4h to the union of l4h pointers

This is needed for the BSSAP code of the On Waves/BSC master branch

14 years agoMerge commit 'cbc8062ef8ba10690aa64b433d0efdccb46f496a'
Harald Welte [Mon, 22 Mar 2010 00:30:11 +0000 (08:30 +0800)]
Merge commit 'cbc8062ef8ba10690aa64b433d0efdccb46f496a'

14 years agofix compiler warnings (itsme <itsme@xs4all.nl>)
Harald Welte [Mon, 22 Mar 2010 00:28:44 +0000 (08:28 +0800)]
fix compiler warnings (itsme <itsme@xs4all.nl>)

 * added several 'const' for strings.
 * added 'extern' to declarations of rsl_rlm_cause_strs

14 years agomisc compiler warning fixes
Harald Welte [Mon, 22 Mar 2010 00:26:04 +0000 (08:26 +0800)]
misc compiler warning fixes

* added missing param in call to gsm48_rx_bcch
* added 'extern' to declarations of rsl_rlm_cause_strs and target_board
* added several 'const' for strings
* removed useless 'bufptr,' from hexdump
(From: itsme <itsme@xs4all.nl>)

14 years agocalypsu UART: add additional debug output in UART RX error case
Harald Welte [Sun, 21 Mar 2010 15:46:35 +0000 (23:46 +0800)]
calypsu UART: add additional debug output in UART RX error case

14 years agohello_world app: print L1CTL messages as hexdump to console
Harald Welte [Sun, 21 Mar 2010 15:45:27 +0000 (23:45 +0800)]
hello_world app: print L1CTL messages as hexdump to console

14 years agoL1A/L23 interface (L1CTL) cleanup
Harald Welte [Sun, 21 Mar 2010 04:57:28 +0000 (12:57 +0800)]
L1A/L23 interface (L1CTL) cleanup

* introduce a new 'l1ctl_hdr' structure common to all messages
  on this interface
* use struct l1ctl_hdr in both the firmware and layer23
* add a new L1CTL_PM_REQ request for performing layer23-initiated
  power measurements (firmware does not implement them yet)

14 years agoMerge remote branch 'origin/master'
Harald Welte [Fri, 19 Mar 2010 10:45:42 +0000 (18:45 +0800)]
Merge remote branch 'origin/master'

14 years agoTwo more small patches
Erik Ekman [Thu, 18 Mar 2010 22:21:27 +0000 (23:21 +0100)]
Two more small patches

Hi

Found a spelling error while testing my C139, and also fixed the
warning discussed in my earlier patch.

/Erik

From 9d8a7454367f3d095e6d4c046e84a22126ff887a Mon Sep 17 00:00:00 2001
From: Erik Ekman <yarrick@kryo.se>
Date: Wed, 17 Mar 2010 22:48:57 +0100
Subject: [PATCH 1/2] Remove operand which has no effect

Signed-off-by: Ingo Albrecht <prom@berlin.ccc.de>
14 years agoremove 'l1s.task' value for local DSP task checking
Harald Welte [Wed, 17 Mar 2010 11:21:46 +0000 (19:21 +0800)]
remove 'l1s.task' value for local DSP task checking

As the check no longer works with our higher-levle schedulers,
we can remove this field from the l1s structure and all references
to it.

14 years agoWork on Radio Ressource
Andreas Eversberg [Tue, 16 Mar 2010 19:18:45 +0000 (20:18 +0100)]
Work on Radio Ressource

14 years agoWork on Radio Ressource
Andreas Eversberg [Mon, 15 Mar 2010 19:15:40 +0000 (20:15 +0100)]
Work on Radio Ressource

- SI 5, 5bis, 5ter

14 years agoWork on Radio Ressource.
Andreas Eversberg [Mon, 15 Mar 2010 17:57:52 +0000 (18:57 +0100)]
Work on Radio Ressource.

- Decode of Mobile Allocation for frequency hopping list

14 years agoClassmark 3 encoding (Radio Ressource) now uses bit-vector API.
Andreas Eversberg [Sun, 14 Mar 2010 19:51:55 +0000 (20:51 +0100)]
Classmark 3 encoding (Radio Ressource) now uses bit-vector API.

14 years agoWork on Radio Ressource layer.
Andreas Eversberg [Sun, 14 Mar 2010 18:23:45 +0000 (19:23 +0100)]
Work on Radio Ressource layer.

14 years agoMerge branch 'master' of gitosis@git.osmocom.org:osmocom-bb
Andreas Eversberg [Sun, 14 Mar 2010 17:10:46 +0000 (18:10 +0100)]
Merge branch 'master' of gitosis@git.osmocom.org:osmocom-bb

14 years agoWork on Radio Ressource layer.
Andreas Eversberg [Sun, 14 Mar 2010 17:08:16 +0000 (18:08 +0100)]
Work on Radio Ressource layer.

- SI 1-4 parsing
- decoding of all frequency list types

14 years agofirmware: fixed bootrom disabling
Ingo Albrecht [Tue, 9 Mar 2010 04:35:27 +0000 (05:35 +0100)]
firmware: fixed bootrom disabling

14 years agofirmware: watchdog-based system reset
Ingo Albrecht [Sun, 7 Mar 2010 08:34:36 +0000 (09:34 +0100)]
firmware: watchdog-based system reset

14 years agoMakefile.inc: Use the right $(AR) command for the target
Holger Hans Peter Freyther [Sun, 14 Mar 2010 15:01:07 +0000 (16:01 +0100)]
Makefile.inc: Use the right $(AR) command for the target

Reported on the mailinglist, proposed by Sylvain Munaut.

14 years agoMerge branch 'master' of gitosis@git.osmocom.org:osmocom-bb
Andreas Eversberg [Sat, 13 Mar 2010 14:42:56 +0000 (15:42 +0100)]
Merge branch 'master' of gitosis@git.osmocom.org:osmocom-bb

14 years agoWork on Radio Ressource layer.
Andreas Eversberg [Sat, 13 Mar 2010 14:40:35 +0000 (15:40 +0100)]
Work on Radio Ressource layer.

Added MS support structure for classmark messages.

14 years agoIntroduce LCD display_driver infrastructure
Harald Welte [Fri, 12 Mar 2010 04:18:17 +0000 (12:18 +0800)]
Introduce LCD display_driver infrastructure

* introduce display_driver layer
* port st7558 and ssd1783 drivers to display_driver
* allow for run-time selection of display driver from board/init.c
* replace st7558_puts() calls with display_puts() calls

14 years agouwire: add a chip-select for CS0, needed by the J100i display
Steve Markgraf [Thu, 11 Mar 2010 21:16:22 +0000 (22:16 +0100)]
uwire: add a chip-select for CS0, needed by the J100i display

Signed-off-by: Steve Markgraf <steve@steve-m.de>
14 years agoremove bogus source files in top level src directory
Harald Welte [Thu, 11 Mar 2010 23:18:23 +0000 (07:18 +0800)]
remove bogus source files in top level src directory

14 years agoapps/loader: remove #include reference to file that doesn't exist
Harald Welte [Thu, 11 Mar 2010 20:15:07 +0000 (04:15 +0800)]
apps/loader: remove #include reference to file that doesn't exist

14 years agogsm48.h: Make the array extern to a silence a linker warning
Holger Hans Peter Freyther [Thu, 11 Mar 2010 13:42:41 +0000 (14:42 +0100)]
gsm48.h: Make the array extern to a silence a linker warning

/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../../i686-pc-linux-gnu/bin/ld:
Warning: size of symbol `rsl_rlm_cause_strs' changed from 8 in ./openbsc/src/libbsc.a(abis_rsl.o)
to 120 in /usr/local/lib/libosmocore.so

spotted and sent to the list by Andreas

14 years agolayer23: fill in signal level and dBm fields of gsmtap
Harald Welte [Tue, 9 Mar 2010 22:05:58 +0000 (23:05 +0100)]
layer23: fill in signal level and dBm fields of gsmtap

14 years agosome work on radio ressource
Andreas Eversberg [Tue, 9 Mar 2010 18:31:30 +0000 (19:31 +0100)]
some work on radio ressource

14 years agoWork on radio ressource: basics of channel assignment procedure
root [Mon, 8 Mar 2010 19:27:31 +0000 (20:27 +0100)]
Work on radio ressource: basics of channel assignment procedure

14 years agowrite_queue: Make the bfd cb public so it can be used in a different context
Holger Hans Peter Freyther [Fri, 5 Mar 2010 18:42:09 +0000 (19:42 +0100)]
write_queue: Make the bfd cb public so it can be used in a different context

* I'm doing a nonblocking connect and for this I need to select
  on writable and the first thing I need to do is to check the
  SOL_SOCKET SO_ERROR state. I realize this by setting a different
  cb on the embedded bfd during setup and then go back to the real
  implementation.

14 years agolayer23: Use the write_queue instead of directly writing data to the socket
Holger Hans Peter Freyther [Mon, 8 Mar 2010 10:08:23 +0000 (11:08 +0100)]
layer23: Use the write_queue instead of directly writing data to the socket

14 years agolayer23: Remove inacucrate comment as this was addresses in osmocom
Holger Hans Peter Freyther [Mon, 8 Mar 2010 09:59:47 +0000 (10:59 +0100)]
layer23: Remove inacucrate comment as this was addresses in osmocom

14 years agodisable TX by default again
Harald Welte [Mon, 8 Mar 2010 10:50:37 +0000 (11:50 +0100)]
disable TX by default again

14 years agoreadme update
Harald Welte [Mon, 8 Mar 2010 09:18:57 +0000 (10:18 +0100)]
readme update

14 years agouse gsm48_ie code which is now in libosmocore
Harald Welte [Mon, 8 Mar 2010 08:37:41 +0000 (09:37 +0100)]
use gsm48_ie code which is now in libosmocore

14 years agoMake it compile on my toolchain...
Holger Hans Peter Freyther [Mon, 8 Mar 2010 04:02:38 +0000 (05:02 +0100)]
Make it compile on my toolchain...

Include stdlib.h to introduce NULL to the compiler.

14 years agoFix some compiler warnings...
Holger Hans Peter Freyther [Fri, 5 Mar 2010 18:27:40 +0000 (19:27 +0100)]
Fix some compiler warnings...

Some real issues are still left and we need to act on them.

14 years agostdint.h: Make it work with my GCC 4.3.3/GLIBC 2.9 toolchain
Holger Hans Peter Freyther [Fri, 5 Mar 2010 17:41:29 +0000 (18:41 +0100)]
stdint.h: Make it work with my GCC 4.3.3/GLIBC 2.9 toolchain

The compiler complains about seing two conflicting definitions
for int32_t and the compile will stop. One definitions comes from
here and the other is coming from sys/types.h.

One option would be to try to use unsigned int and signed int
instead of using a long and see if that is matching, the other
option is to include the real libc stdint.h header and see if
it has defined a uint32_t for us.

14 years agoimport GSM04.08 encode/decode functions and mncc.h from openbsc
Harald Welte [Sun, 7 Mar 2010 22:39:54 +0000 (23:39 +0100)]
import GSM04.08 encode/decode functions and mncc.h from openbsc

14 years agoimport alpha3 code from andreas eversberg as of 2010-03-07
Harald Welte [Sun, 7 Mar 2010 21:48:52 +0000 (22:48 +0100)]
import alpha3 code from andreas eversberg as of 2010-03-07

14 years agofix framenumber byte-ordering
Harald Welte [Sun, 7 Mar 2010 20:17:24 +0000 (21:17 +0100)]
fix framenumber byte-ordering

14 years agoadd missing inet.h
Harald Welte [Sun, 7 Mar 2010 20:04:36 +0000 (21:04 +0100)]
add missing inet.h

14 years agostart to use libosmocore within the firmware
Harald Welte [Sun, 7 Mar 2010 19:42:17 +0000 (20:42 +0100)]
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

14 years agoMerge commit 'f8b2ba7dc850396c5910e8c76875e75d37479d34'
Harald Welte [Sun, 7 Mar 2010 19:34:24 +0000 (20:34 +0100)]
Merge commit 'f8b2ba7dc850396c5910e8c76875e75d37479d34'

14 years agoadd option --disable-tests to disable building of test binaries
Harald Welte [Sun, 7 Mar 2010 19:33:59 +0000 (20:33 +0100)]
add option --disable-tests to disable building of test binaries

14 years agoMerge commit 'cbb29f7c94ad2a7cb0ebe7d43cbef5fb9d11d62e'
Harald Welte [Sun, 7 Mar 2010 19:24:53 +0000 (20:24 +0100)]
Merge commit 'cbb29f7c94ad2a7cb0ebe7d43cbef5fb9d11d62e'

14 years agoadd --disable-talloc option to build without talloc support
Harald Welte [Sun, 7 Mar 2010 19:24:30 +0000 (20:24 +0100)]
add --disable-talloc option to build without talloc support

14 years agoremove __force macro references
Harald Welte [Sun, 7 Mar 2010 18:17:08 +0000 (19:17 +0100)]
remove __force macro references

14 years agoMerge remote branch 'origin/master'
Harald Welte [Sun, 7 Mar 2010 18:05:54 +0000 (19:05 +0100)]
Merge remote branch 'origin/master'

14 years agoimport byte-ordering defines/macros from linux
Harald Welte [Sun, 7 Mar 2010 18:05:13 +0000 (19:05 +0100)]
import byte-ordering defines/macros from linux

14 years agoMerge commit 'd3ff15fc818887be3720265b297ca7f1ec28c458'
Harald Welte [Sun, 7 Mar 2010 17:26:40 +0000 (18:26 +0100)]
Merge commit 'd3ff15fc818887be3720265b297ca7f1ec28c458'

14 years agouse strtol instead of atoi
Harald Welte [Sun, 7 Mar 2010 17:23:47 +0000 (18:23 +0100)]
use  strtol instead of atoi

14 years agoMerge commit '48e17f895187100ae7331afa2cbb81594557823f'
Harald Welte [Sun, 7 Mar 2010 17:04:10 +0000 (18:04 +0100)]
Merge commit '48e17f895187100ae7331afa2cbb81594557823f'

14 years agomsgb: Buffer formatting and scanning functions.
Ingo Albrecht [Sun, 7 Mar 2010 17:03:41 +0000 (18:03 +0100)]
msgb: Buffer formatting and scanning functions.

14 years agoMerge commit '622b718195d607d7cfc8b9ec96f943ea0ce2d1dd'
Harald Welte [Sun, 7 Mar 2010 16:51:35 +0000 (17:51 +0100)]
Merge commit '622b718195d607d7cfc8b9ec96f943ea0ce2d1dd'

14 years agoimport some gsm band/arfcn/time related utilities from OsmocomBB
Harald Welte [Sun, 7 Mar 2010 16:50:21 +0000 (17:50 +0100)]
import some gsm band/arfcn/time related utilities from OsmocomBB

14 years agofirmware: changed dependency suffix to .p for better shell completion
Ingo Albrecht [Sun, 7 Mar 2010 16:01:47 +0000 (17:01 +0100)]
firmware: changed dependency suffix to .p for better shell completion

14 years agofirmware: include board.h in board.c
Ingo Albrecht [Sun, 7 Mar 2010 14:13:02 +0000 (15:13 +0100)]
firmware: include board.h in board.c

14 years agolayer1: allocate large enough msgb's for the payload we send over L1CTL
Harald Welte [Sun, 7 Mar 2010 15:57:09 +0000 (16:57 +0100)]
layer1: allocate large enough msgb's for the payload we send over L1CTL

14 years agoadd comment on why using cons_puts() from msgb.h
Harald Welte [Sun, 7 Mar 2010 15:36:30 +0000 (16:36 +0100)]
add comment on why using cons_puts() from msgb.h

14 years agoactually link against libosmocore for the target
Harald Welte [Sun, 7 Mar 2010 15:20:53 +0000 (16:20 +0100)]
actually link against libosmocore for the target

14 years agobuild libosmocore for the target with "-Os -ffunction-sections"
Harald Welte [Sun, 7 Mar 2010 15:19:12 +0000 (16:19 +0100)]
build libosmocore for the target with "-Os -ffunction-sections"

14 years agofirmware: Added an e99 board and fixed e99 init code build.
Ingo Albrecht [Sun, 7 Mar 2010 14:07:17 +0000 (15:07 +0100)]
firmware: Added an e99 board and fixed e99 init code build.

14 years agofirmware: multi-board build support
Ingo Albrecht [Sun, 7 Mar 2010 14:04:03 +0000 (15:04 +0100)]
firmware: multi-board build support

14 years agofix even more compiler warnings
Harald Welte [Sun, 7 Mar 2010 12:44:52 +0000 (13:44 +0100)]
fix even more compiler warnings

14 years agofix compiler warnings
Harald Welte [Sun, 7 Mar 2010 12:37:52 +0000 (13:37 +0100)]
fix compiler warnings

14 years agofix compiler warnings
Harald Welte [Sun, 7 Mar 2010 12:35:18 +0000 (13:35 +0100)]
fix compiler warnings

14 years agoremove unused variables
Harald Welte [Sun, 7 Mar 2010 12:33:56 +0000 (13:33 +0100)]
remove unused variables

14 years agofix stdint.h to remove bogus warnings of printf format strings
Harald Welte [Sun, 7 Mar 2010 12:32:43 +0000 (13:32 +0100)]
fix stdint.h to remove bogus warnings of printf format strings

14 years agofix misc.h header file logic
Harald Welte [Sun, 7 Mar 2010 12:32:26 +0000 (13:32 +0100)]
fix misc.h header file logic

14 years agoadd FIXME's to RFFE
Harald Welte [Sun, 7 Mar 2010 12:27:33 +0000 (13:27 +0100)]
add FIXME's to RFFE

14 years agofix compiler warnings
Harald Welte [Sun, 7 Mar 2010 12:27:06 +0000 (13:27 +0100)]
fix compiler warnings

14 years agolinuxlist.h: use __unused
Harald Welte [Sun, 7 Mar 2010 12:22:05 +0000 (13:22 +0100)]
linuxlist.h: use __unused

14 years agolayer1/sync: denote unused function arguments with __unused
Harald Welte [Sun, 7 Mar 2010 12:21:03 +0000 (13:21 +0100)]
layer1/sync: denote unused function arguments with __unused

14 years agoadd __unused #define to indicate unused function arguments
Harald Welte [Sun, 7 Mar 2010 12:20:36 +0000 (13:20 +0100)]
add __unused #define to indicate unused function arguments

14 years agoAdded Solomon SSD1783 display driver for Motorola C155
Harald Welte [Sun, 7 Mar 2010 11:14:11 +0000 (12:14 +0100)]
Added Solomon SSD1783 display driver for Motorola C155

Signed-off-by: Steve Markgraf <steve@steve-m.de>
Conflicts:

src/target/firmware/Makefile

14 years agoHandle EAGAIN. Print errors properly.
Ingo Albrecht [Sun, 7 Mar 2010 05:49:57 +0000 (06:49 +0100)]
Handle EAGAIN. Print errors properly.

14 years agoFixed transmit path of osmocon in various ways.
Ingo Albrecht [Sun, 7 Mar 2010 05:04:10 +0000 (06:04 +0100)]
Fixed transmit path of osmocon in various ways.

14 years agoLoader communications support in osmocon. Generalized tool connections.
Ingo Albrecht [Sun, 7 Mar 2010 04:57:48 +0000 (05:57 +0100)]
Loader communications support in osmocon. Generalized tool connections.

14 years agoSkeleton of bootloader.
Ingo Albrecht [Sun, 28 Feb 2010 19:17:41 +0000 (20:17 +0100)]
Skeleton of bootloader.

14 years agoRenamed layer2_connection -> tool_connection.
Ingo Albrecht [Sun, 7 Mar 2010 03:58:49 +0000 (04:58 +0100)]
Renamed layer2_connection -> tool_connection.

14 years agoClean listings.
Ingo Albrecht [Sun, 7 Mar 2010 03:20:44 +0000 (04:20 +0100)]
Clean listings.

14 years agoAdd a GIT_REVISION define for firmware code.
Ingo Albrecht [Sun, 7 Mar 2010 02:50:40 +0000 (03:50 +0100)]
Add a GIT_REVISION define for firmware code.

14 years agoNormalize some var names.
Ingo Albrecht [Sun, 7 Mar 2010 02:15:26 +0000 (03:15 +0100)]
Normalize some var names.

14 years agoMade dependency compiles silent.
Ingo Albrecht [Sun, 7 Mar 2010 01:35:10 +0000 (02:35 +0100)]
Made dependency compiles silent.

14 years agoFixed firmware buildsys dependencies.
Ingo Albrecht [Sun, 7 Mar 2010 01:28:22 +0000 (02:28 +0100)]
Fixed firmware buildsys dependencies.

14 years agoMade cross-compile prefixes work normally.
Ingo Albrecht [Sun, 7 Mar 2010 01:02:44 +0000 (02:02 +0100)]
Made cross-compile prefixes work normally.

14 years agoDummy distclean for new firmware buildsys.
Ingo Albrecht [Sun, 7 Mar 2010 01:01:51 +0000 (02:01 +0100)]
Dummy distclean for new firmware buildsys.

14 years agoBuffer formatting and scanning functions.
Ingo Albrecht [Sun, 28 Feb 2010 07:35:48 +0000 (08:35 +0100)]
Buffer formatting and scanning functions.

14 years agoAllow use of uart driver without interrupts.
Ingo Albrecht [Wed, 24 Feb 2010 01:37:04 +0000 (02:37 +0100)]
Allow use of uart driver without interrupts.

14 years agoAllow use of keypad driver without interrupts.
Ingo Albrecht [Wed, 24 Feb 2010 01:33:14 +0000 (02:33 +0100)]
Allow use of keypad driver without interrupts.