osmocom-bb.git
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 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 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.

14 years agoSome msgb formatting functions.
Ingo Albrecht [Wed, 24 Feb 2010 01:28:11 +0000 (02:28 +0100)]
Some msgb formatting functions.

14 years agoNew build system.
Ingo Albrecht [Sun, 7 Mar 2010 00:41:32 +0000 (01:41 +0100)]
New build system.

14 years agoMerge remote branch 'origin/master'
Harald Welte [Sun, 7 Mar 2010 10:43:07 +0000 (11:43 +0100)]
Merge remote branch 'origin/master'

14 years agoSome attribute macros, including placeholders for fast-memory attributes.
Ingo Albrecht [Sun, 7 Mar 2010 09:18:15 +0000 (10:18 +0100)]
Some attribute macros, including placeholders for fast-memory attributes.

14 years agoosmocon: drain the hdlc sercomm queue through select
Harald Welte [Sun, 7 Mar 2010 01:59:55 +0000 (02:59 +0100)]
osmocon: drain the hdlc sercomm queue through select

14 years agoadd 'struct timer_list' timer code similar to linux + OpenBSC
Harald Welte [Sun, 7 Mar 2010 00:29:47 +0000 (01:29 +0100)]
add 'struct timer_list' timer code similar to linux + OpenBSC

We now support arbitrary timers by means of 'struct timer_list'.
Any part of the program can register such a callback by means
of schedule_timer() on a millisecond-granularity.  However, there
is no guarantee on the timer precision.  It will not execute before
the timer expires - but it might expire quite a bit later than we
have asked it for, depending on how busy the cpu is with other work.

The timer code is in the 'comm/' directory, as it is intended to be
migrated into libosmocore soon.

Furthermore, as we currently don't yet have a scheduler or tasks,
the main() routine explicitly has to call update_timers() to check
for any expired timers and run them.

14 years agoosmocon: we don't want to write to serial FD after download completed
Harald Welte [Sun, 7 Mar 2010 00:17:11 +0000 (01:17 +0100)]
osmocon: we don't want to write to serial FD after download completed

14 years agosercomm: prevent DLCI array overflow
Harald Welte [Sun, 7 Mar 2010 00:07:48 +0000 (01:07 +0100)]
sercomm: prevent DLCI array overflow

14 years agodon't include trailing \0 termination in cons_puts()
Harald Welte [Sat, 6 Mar 2010 23:54:23 +0000 (00:54 +0100)]
don't include trailing \0 termination in cons_puts()

successive calls to cons_puts() writing to the same msgb resulted in
osmcoom printing null-characters while writing strings.  We don't
really need that...

14 years agoremove cons_memcpy(), as memcpy() is now fixed
Harald Welte [Sat, 6 Mar 2010 23:51:44 +0000 (00:51 +0100)]
remove cons_memcpy(), as memcpy() is now fixed

14 years agopass the correct cross compiler path name from master Makefile to firmware
Harald Welte [Sat, 6 Mar 2010 23:49:30 +0000 (00:49 +0100)]
pass the correct cross compiler path name from master Makefile to firmware

14 years agofix assembler memcpy() for little endian
Harald Welte [Sat, 6 Mar 2010 13:54:10 +0000 (14:54 +0100)]
fix assembler memcpy() for little endian

This makes our memcpy finally work in all cases, even unaligned

14 years agointroduce RxLev statistics module, an efficient way for power scan data
Harald Welte [Sat, 6 Mar 2010 10:34:27 +0000 (11:34 +0100)]
introduce RxLev statistics module, an efficient way for power scan data

14 years agosome more ip.access specific ABIS_NM defines
Harald Welte [Sat, 6 Mar 2010 10:29:07 +0000 (11:29 +0100)]
some more ip.access specific ABIS_NM defines

14 years agomark some occasions of bitvec as 'const' as appropriate
Harald Welte [Sat, 6 Mar 2010 10:28:49 +0000 (11:28 +0100)]
mark some occasions of bitvec as 'const' as appropriate

14 years agoadd new ARFCN flag to indicate that we're dealing with uplink
Harald Welte [Fri, 5 Mar 2010 10:15:06 +0000 (11:15 +0100)]
add new ARFCN flag to indicate that we're dealing with uplink

14 years agolayer23: correct byte ordering of IP address
Harald Welte [Fri, 5 Mar 2010 10:14:33 +0000 (11:14 +0100)]
layer23: correct byte ordering of IP address

14 years agolayer1/init.c: Pass 0 as arcfn to fix the compilation.
Holger Hans Peter Freyther [Thu, 4 Mar 2010 21:43:38 +0000 (22:43 +0100)]
layer1/init.c: Pass 0 as arcfn to fix the compilation.

14 years agol1a_l23_interface.h: struct gsm_time was not packed and had padding
Holger Hans Peter Freyther [Thu, 4 Mar 2010 21:35:13 +0000 (22:35 +0100)]
l1a_l23_interface.h: struct gsm_time was not packed and had padding

The following issue was found by Andreas Bogk. The l1ctl_info_dl
struct is supposed to be packed but we included the struct gsm_time
which was not packed and added three bytes of padding. Pack the
structure to avoid that.

14 years agoupdate wireshakr gsmtap patch with the 2nd version submitted to wireshark
Harald Welte [Thu, 4 Mar 2010 20:44:41 +0000 (21:44 +0100)]
update wireshakr gsmtap patch with the 2nd version submitted to wireshark

We now
 * properly decode the L1 header of SACCH frames
 * properly hand-off SACCH payload such as SI5/SI6
 * display the summary of the GSMTAP and SACCH_L1 dissectors in the protocol tree

14 years agoensure RF_ARFCN is part of l1ctl messages sent to host
Harald Welte [Thu, 4 Mar 2010 19:03:00 +0000 (20:03 +0100)]
ensure RF_ARFCN is part of l1ctl messages sent to host

14 years agoupdate wireshark GSMTAP patch for GSMTAP protocol version 0x02
Harald Welte [Thu, 4 Mar 2010 14:44:17 +0000 (15:44 +0100)]
update wireshark GSMTAP patch for GSMTAP protocol version 0x02

14 years agolayer23: GSMTAP update (gsmtap for uplink, DCCH and ACCH)
Harald Welte [Thu, 4 Mar 2010 14:41:11 +0000 (15:41 +0100)]
layer23: GSMTAP update (gsmtap for uplink, DCCH and ACCH)

* use GSMTAP for uplink frames (generated by layer23; sent to L1)
* only use GSMTAP if the user specifies the '-i dstip' arguments
* properly encode the GSMTAP channel type
* requires GSMTAP protocol version 0x02 (see next commit for wireshark patch)

14 years agoadd GSTMAP ARCFCN flag bits
Harald Welte [Thu, 4 Mar 2010 14:15:37 +0000 (15:15 +0100)]
add GSTMAP ARCFCN flag bits

14 years agolayer23: rsl_dec_chan_nr is now in libosmocore
Harald Welte [Thu, 4 Mar 2010 14:07:10 +0000 (15:07 +0100)]
layer23: rsl_dec_chan_nr is now in libosmocore

14 years agoMerge commit '8c8caaa1acaf4d863a219332f6a07cd70b6b5981'
Harald Welte [Thu, 4 Mar 2010 14:03:13 +0000 (15:03 +0100)]
Merge commit '8c8caaa1acaf4d863a219332f6a07cd70b6b5981'

14 years agoupdate GSMTAP to version 0x02
Harald Welte [Thu, 4 Mar 2010 14:02:54 +0000 (15:02 +0100)]
update GSMTAP to version 0x02

14 years agoMerge commit '6fec514d7bcf8e6fe469d31ccc13d5cd473058a4'
Harald Welte [Thu, 4 Mar 2010 13:58:44 +0000 (14:58 +0100)]
Merge commit '6fec514d7bcf8e6fe469d31ccc13d5cd473058a4'

14 years agofix CCCH parsing
Harald Welte [Thu, 4 Mar 2010 13:30:15 +0000 (14:30 +0100)]
fix CCCH parsing

14 years agoadd new rsl_dec_chan_nr() function
Harald Welte [Thu, 4 Mar 2010 13:27:48 +0000 (14:27 +0100)]
add new rsl_dec_chan_nr() function

14 years agoupdate to reflect libosmocore api change
Harald Welte [Thu, 4 Mar 2010 11:00:29 +0000 (12:00 +0100)]
update to reflect libosmocore api change

14 years agoMerge commit '61e2bfc5f44267a7a3b0b25ff3ab922fca2a199c'
Harald Welte [Thu, 4 Mar 2010 10:59:12 +0000 (11:59 +0100)]
Merge commit '61e2bfc5f44267a7a3b0b25ff3ab922fca2a199c'

14 years agoimport gsm48 utility functions from OpenBSC
Harald Welte [Thu, 4 Mar 2010 09:53:03 +0000 (10:53 +0100)]
import gsm48 utility functions from OpenBSC

* gsm48_generate_lai() gsm48_generate_mid_from_tmsi() gsm48_generate_mid_from_imsi()
* gsm48_cc_msg_names[]

14 years agoimport bcd2char() and char2bcd() from OpenBSC
Harald Welte [Thu, 4 Mar 2010 09:50:32 +0000 (10:50 +0100)]
import bcd2char() and char2bcd() from OpenBSC

14 years agoimport gsm_band_name() and gsm_band_parse() from OpenBSC
Harald Welte [Thu, 4 Mar 2010 09:39:17 +0000 (10:39 +0100)]
import gsm_band_name() and gsm_band_parse() from OpenBSC

14 years agoadd 'transparent' argument to rsl_rll_push_l3() and rsl_rll_push_l3()
Harald Welte [Thu, 4 Mar 2010 09:32:09 +0000 (10:32 +0100)]
add 'transparent' argument to rsl_rll_push_l3() and rsl_rll_push_l3()

this is required to make those functions useful for OpenBSC, nut just
OsmocomBB

14 years agofix rsl_enc_chan_nr() for SDCCH4
Harald Welte [Thu, 4 Mar 2010 09:12:50 +0000 (10:12 +0100)]
fix rsl_enc_chan_nr() for SDCCH4

14 years agofix master Makefile with layer23 rename
Harald Welte [Wed, 3 Mar 2010 13:39:58 +0000 (14:39 +0100)]
fix master Makefile with layer23 rename