osmocom-bb.git
14 years agoMerge commit 'fdd0a700930bdd04bc8827ef88dc5039ecc5b6ce'
Harald Welte [Tue, 2 Mar 2010 19:00:41 +0000 (20:00 +0100)]
Merge commit 'fdd0a700930bdd04bc8827ef88dc5039ecc5b6ce'

14 years agoadd msgb_l1() and msgb_l1len() inline functions
Harald Welte [Mon, 1 Mar 2010 21:30:51 +0000 (22:30 +0100)]
add msgb_l1() and msgb_l1len() inline functions

14 years agoImport value_string utilities and some RSL stuff from OpenBSC
Harald Welte [Mon, 1 Mar 2010 20:58:31 +0000 (21:58 +0100)]
Import value_string utilities and some RSL stuff from OpenBSC

14 years agoadd msgb_l1() and msgb_l1len() inline functions
Harald Welte [Mon, 1 Mar 2010 21:30:51 +0000 (22:30 +0100)]
add msgb_l1() and msgb_l1len() inline functions

14 years agoFix three more warnings
Erik Ekman [Mon, 1 Mar 2010 19:59:57 +0000 (20:59 +0100)]
Fix three more warnings

14 years agoFix some warnings in osmocon
Erik Ekman [Mon, 1 Mar 2010 19:26:18 +0000 (20:26 +0100)]
Fix some warnings in osmocon

14 years agoImport value_string utilities and some RSL stuff from OpenBSC
Harald Welte [Mon, 1 Mar 2010 20:58:31 +0000 (21:58 +0100)]
Import value_string utilities and some RSL stuff from OpenBSC

14 years ago[layer2] Remove symlink... it is now provided by libosmocore
Holger Hans Peter Freyther [Sat, 27 Feb 2010 07:52:33 +0000 (08:52 +0100)]
[layer2] Remove symlink... it is now provided by libosmocore

14 years agoadd small script with command that can be used to update libosmocore
Harald Welte [Mon, 1 Mar 2010 12:12:01 +0000 (13:12 +0100)]
add small script with command that can be used to update libosmocore

This uses git-subtree from http://github.com/apenwarr/git-subtree

14 years agoMerge commit '00096acb8fbbf76b4fd8a223a2684df6c370d9f9'
Harald Welte [Mon, 1 Mar 2010 11:59:34 +0000 (12:59 +0100)]
Merge commit '00096acb8fbbf76b4fd8a223a2684df6c370d9f9'

14 years agomsgb: add msgb->l1h member
Harald Welte [Mon, 1 Mar 2010 11:55:15 +0000 (12:55 +0100)]
msgb: add msgb->l1h member

14 years agoensure osmocom-bb builds with older gcc-3.x based toolchains
Harald Welte [Sun, 28 Feb 2010 19:01:47 +0000 (20:01 +0100)]
ensure osmocom-bb builds with older gcc-3.x based toolchains

14 years agoensure we always have 256bytes net data size, excluding 4 bytes headroom
Harald Welte [Sun, 28 Feb 2010 16:53:43 +0000 (17:53 +0100)]
ensure we always have 256bytes net data size, excluding 4 bytes headroom

14 years agoUse new multiframe scheduler for scheduling of normal bursts
Harald Welte [Sun, 28 Feb 2010 09:15:35 +0000 (10:15 +0100)]
Use new multiframe scheduler for scheduling of normal bursts

14 years agoAdd multiframe-level scheduler (mframe_sched.[ch])
Harald Welte [Sun, 28 Feb 2010 09:12:14 +0000 (10:12 +0100)]
Add multiframe-level scheduler (mframe_sched.[ch])

This scheduler enables us to schedule repeating events that occur
every multiframe.  It e.g. includes definitions for BCCH and CCCH
reading.

The mframe_sched is layered on top of the tdma_sched.

14 years agotdma_sched: Explicitly advance the bucket at end of l1_sync()
Harald Welte [Sun, 28 Feb 2010 09:06:19 +0000 (10:06 +0100)]
tdma_sched: Explicitly advance the bucket at end of l1_sync()

14 years agoexplicitly terminate the TDMA scheduler set with SCHED_END_SET()
Harald Welte [Sat, 27 Feb 2010 20:20:42 +0000 (21:20 +0100)]
explicitly terminate the TDMA scheduler set with SCHED_END_SET()

This has the advantage that any caller or other reference does not
need to know the size of the set, which makes it simpler to use the
sched_set as a constant initializer in some other const/static data
structure.

14 years ago[write_queue] Add a generic write queue class
Holger Hans Peter Freyther [Fri, 26 Feb 2010 19:30:32 +0000 (20:30 +0100)]
[write_queue] Add a generic write queue class

The write queue can be a dropin replacement for the bsc_fd. It
is featuring two callbacks. One for ready read and one for ready
write. Whenever there is a message in the queue the write_queue
will set the BSC_FD_WRITE flag and then call the write callback.

It will make sure to delete the msgb after the write function
has been called. This class is intended to be be used in the
osmocom, layer2, bsc_msc_ip, bsc_hack and other applications.

14 years ago[timer] Fix compile warning of the timer test
Holger Hans Peter Freyther [Fri, 26 Feb 2010 19:03:13 +0000 (20:03 +0100)]
[timer] Fix compile warning of the timer test

14 years agomsgb.c: Style cleanup in initialization
Sylvain Munaut [Wed, 24 Feb 2010 21:57:46 +0000 (22:57 +0100)]
msgb.c: Style cleanup in initialization

Don't assign the same var twice & init all from the same source.

14 years agofix msgb_talroom() calculation
Harald Welte [Wed, 24 Feb 2010 21:54:11 +0000 (22:54 +0100)]
fix msgb_talroom() calculation

14 years agoMerge remote branch 'origin/master'
Harald Welte [Wed, 24 Feb 2010 21:52:58 +0000 (22:52 +0100)]
Merge remote branch 'origin/master'

14 years agocalypso: Add experimental driver for uWire
Sylvain Munaut [Sun, 21 Feb 2010 17:59:21 +0000 (18:59 +0100)]
calypso: Add experimental driver for uWire

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
14 years agocfi_flash: Make the init message a debug output
Sylvain Munaut [Sun, 21 Feb 2010 17:30:51 +0000 (18:30 +0100)]
cfi_flash: Make the init message a debug output

Most likely console isn't even up so it doesn't print correctly
anyway.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
14 years agocalypso/dsp: Fix printf format string in dump
Sylvain Munaut [Sun, 21 Feb 2010 17:29:46 +0000 (18:29 +0100)]
calypso/dsp: Fix printf format string in dump

In commit 9a18ba40d940c9bf173504b941e10f9638032823 (old git), this
was changed to 'fix compiler warnings'.

But %ux is not a valid format specifier at all so that produces
wrong output !

%lx is the correct format AFAICT because uint32_t is typedef'd from
unsigned long in my toolchain (ARM GCC 4.3.3 - newlib 1.17.0). This
doesn't produce any warning here.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
14 years agocomm/msgb.c: Style cleanup in initialization
Sylvain Munaut [Sun, 21 Feb 2010 17:23:24 +0000 (18:23 +0100)]
comm/msgb.c: Style cleanup in initialization

Don't assign the same var twice & init all from the same source.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
14 years agoapps/compal_dsp_dump: Move board_init as first call
Sylvain Munaut [Sun, 21 Feb 2010 16:45:41 +0000 (17:45 +0100)]
apps/compal_dsp_dump: Move board_init as first call

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
14 years agoadd osmocon TPU debugger support
Harald Welte [Tue, 23 Feb 2010 00:39:44 +0000 (01:39 +0100)]
add osmocon TPU debugger support

Receives TPU RAM from target and prints it to console

14 years agoCalypso TPU: Introduce TPU debug mode
Harald Welte [Tue, 23 Feb 2010 00:32:52 +0000 (01:32 +0100)]
Calypso TPU: Introduce TPU debug mode

Using #define TPU_DEBUG, we can now send the full TPU RAM contents
to the host PC (using a sercomm DLCI) at the time of tpu_enable()
which is very helpful for TPU debugging.

14 years agoCalypso TPU: initialize TPU RAM to zero at tpu_init() time
Harald Welte [Tue, 23 Feb 2010 00:31:03 +0000 (01:31 +0100)]
Calypso TPU: initialize TPU RAM to zero at tpu_init() time

14 years agoCalyspo TPU: make add_mod5000() accept signed values
Harald Welte [Tue, 23 Feb 2010 00:29:18 +0000 (01:29 +0100)]
Calyspo TPU: make add_mod5000() accept signed values

Sometimes we want to 'add' a negative value but still want the
result to be correct!

14 years agoCalypso TPU: fix address of TSP TX 3 register
Harald Welte [Tue, 23 Feb 2010 00:26:42 +0000 (01:26 +0100)]
Calypso TPU: fix address of TSP TX 3 register

14 years agoTRF6151: move PLL and AGC configuration to right sequence in time
Harald Welte [Tue, 23 Feb 2010 00:23:50 +0000 (01:23 +0100)]
TRF6151: move PLL and AGC configuration to right sequence in time

14 years agofix typo in comment
Harald Welte [Tue, 23 Feb 2010 00:22:15 +0000 (01:22 +0100)]
fix typo in comment

14 years agoTRF6151: close the Rx (Downlink) window after ABB is closed
Harald Welte [Tue, 23 Feb 2010 00:20:19 +0000 (01:20 +0100)]
TRF6151: close the Rx (Downlink) window after ABB is closed

There is no point in keeping the receiver running after we have
told the ABB to no longer receive anything.

14 years agoTWL3025: Ensure we don't perform downlink calibration too early
Harald Welte [Tue, 23 Feb 2010 00:16:50 +0000 (01:16 +0100)]
TWL3025: Ensure we don't perform downlink calibration too early

If we perform the downlink calibration too early, the TRF6151 might
not yet provide a stable signal and we'll not be able to receive
anything.

From the desired "BDLENA" time, we subtract all the delays and
latencies to determine the point in time at which the calibration
process should start.

14 years agouse <gsm.h> instead of "gsm.h"
Harald Welte [Sun, 21 Feb 2010 21:43:07 +0000 (22:43 +0100)]
use <gsm.h> instead of "gsm.h"

14 years agoadd msgb and tlv support bits required for openbsc gprs branch
Harald Welte [Sun, 21 Feb 2010 18:03:41 +0000 (19:03 +0100)]
add msgb and tlv support bits required for openbsc gprs branch

14 years agosercomm: busy-wait in case we cannot allocate a msgb right now
Harald Welte [Sun, 21 Feb 2010 17:36:22 +0000 (18:36 +0100)]
sercomm: busy-wait in case we cannot allocate a msgb right now

14 years agosercomm_cons: allocate 252 bytes net data size plus 4 bytes headroom
Harald Welte [Sun, 21 Feb 2010 17:33:56 +0000 (18:33 +0100)]
sercomm_cons: allocate 252 bytes net data size plus 4 bytes headroom

14 years agofix msgb_talroom() calculation
Harald Welte [Sun, 21 Feb 2010 17:33:14 +0000 (18:33 +0100)]
fix msgb_talroom() calculation

14 years agosercomm_cons: Utilize msgb's better, don't always end at \n
Harald Welte [Sun, 21 Feb 2010 14:16:40 +0000 (15:16 +0100)]
sercomm_cons: Utilize msgb's better, don't always end at \n

In the sercomm_cons layer, ee used to enqueue a msgb for sending
every time there is an end-of-line.  However, if we send a number
of very short lines, we easily run out of msgbs.

Now we check how much msgb backlog there is in the transmit queue,
and decide to skip the end-of-line flushing if needed.

This still doesn't solve all our problems, but its still a useful
mechanism.

14 years agoadd GPL to project source
Harald Welte [Sun, 21 Feb 2010 08:21:30 +0000 (09:21 +0100)]
add GPL to project source

14 years agoupdate build instructions
Harald Welte [Sat, 20 Feb 2010 22:16:23 +0000 (23:16 +0100)]
update build instructions

14 years agoremove bogus autotools-generated makefile
Harald Welte [Sat, 20 Feb 2010 22:16:05 +0000 (23:16 +0100)]
remove bogus autotools-generated makefile

14 years agoadd new master Makefile
Harald Welte [Sat, 20 Feb 2010 22:13:25 +0000 (23:13 +0100)]
add new master Makefile

using the Makefile in the 'src' directory, we nwo build everything

14 years agoconvert osmocon to autotools
Harald Welte [Sat, 20 Feb 2010 22:12:29 +0000 (23:12 +0100)]
convert osmocon to autotools

this needs to temporarily disable the version magic, as I don't
know how to integrate that into automake...

14 years agoMerge commit '54844802115a1666496649cc43d3a01abd707bc0' into subtree-test1
Harald Welte [Sat, 20 Feb 2010 21:24:00 +0000 (22:24 +0100)]
Merge commit '54844802115a1666496649cc43d3a01abd707bc0' into subtree-test1

14 years agofix select.c build (config.h)
Harald Welte [Sat, 20 Feb 2010 21:23:08 +0000 (22:23 +0100)]
fix select.c build (config.h)

14 years agobuild of osmocon using libosmocore
Harald Welte [Sat, 20 Feb 2010 21:16:21 +0000 (22:16 +0100)]
build of osmocon using libosmocore

14 years agoadd master 'build script' to build everything in one go
Harald Welte [Sat, 20 Feb 2010 21:16:04 +0000 (22:16 +0100)]
add master 'build script' to build everything in one go

14 years agoMerge commit 'e94ad58e8e9515c4e5bddbb64f7333cacb26353e' into subtree-test1
Harald Welte [Sat, 20 Feb 2010 21:08:33 +0000 (22:08 +0100)]
Merge commit 'e94ad58e8e9515c4e5bddbb64f7333cacb26353e' into subtree-test1

14 years agofix config.h directory
Harald Welte [Sat, 20 Feb 2010 21:06:24 +0000 (22:06 +0100)]
fix config.h directory

14 years agoAdd 'src/shared/libosmocore/' from commit '3cae0398eaef6045de883849a236c38d1767cb41'
Harald Welte [Sat, 20 Feb 2010 20:09:43 +0000 (21:09 +0100)]
Add 'src/shared/libosmocore/' from commit '3cae0398eaef6045de883849a236c38d1767cb41'

git-subtree-dir: src/shared/libosmocore
git-subtree-mainline: e54eb7c17c648fe481053df9fea580b92a0a7701
git-subtree-split: 3cae0398eaef6045de883849a236c38d1767cb41

14 years agoadd missing automake / autoconf files
Harald Welte [Sat, 20 Feb 2010 20:09:24 +0000 (21:09 +0100)]
add missing automake / autoconf files

14 years agoupdate gitignore file
Harald Welte [Sat, 20 Feb 2010 20:07:42 +0000 (21:07 +0100)]
update gitignore file

14 years agostart using libosmocore instead of local osmocom copy
Harald Welte [Sat, 20 Feb 2010 19:39:52 +0000 (20:39 +0100)]
start using libosmocore instead of local osmocom copy

14 years agoadd missing Makefile.am in include/osmocore/protocol directory
Harald Welte [Sat, 20 Feb 2010 19:37:26 +0000 (20:37 +0100)]
add missing Makefile.am in include/osmocore/protocol directory

14 years agointial checkin of the libosmocore project
Harald Welte [Sat, 20 Feb 2010 19:34:29 +0000 (20:34 +0100)]
intial checkin of the libosmocore project

14 years agomigrate most osmocom code to new libosmocore
Harald Welte [Sat, 20 Feb 2010 17:58:12 +0000 (18:58 +0100)]
migrate most osmocom code to new libosmocore

libosmocore is a new library that has been created out of OpenBSC,
and it provides almost everything we've tried here with libosmocom.

The only remaining part is the 'debug' part

14 years agofix typo in README (Timo Juhani Lindfors)
Harald Welte [Sat, 20 Feb 2010 16:33:24 +0000 (17:33 +0100)]
fix typo in README (Timo Juhani Lindfors)

14 years agoUse ARFCN as specified from Layer2
Harald Welte [Fri, 19 Feb 2010 23:57:16 +0000 (00:57 +0100)]
Use ARFCN as specified from Layer2

with this commit, Layer2 can tell Layer1 to sync to a new CCCH on
a specified ARFCN.

14 years agogsmtap patch cleanup
Harald Welte [Fri, 19 Feb 2010 22:01:57 +0000 (23:01 +0100)]
gsmtap patch cleanup

* remove commented-out code
* explain what GSMTAP is and reference projects that can generate it
* update copyright notice

I will submit this to wireshark mainline now.

14 years agoadd symlink for gsmtap header
Harald Welte [Fri, 19 Feb 2010 21:50:33 +0000 (22:50 +0100)]
add symlink for gsmtap header

14 years agoadd UDP PORT definition to gsmtap.h
Harald Welte [Fri, 19 Feb 2010 21:50:18 +0000 (22:50 +0100)]
add UDP PORT definition to gsmtap.h

14 years agofinish GSMTAP output support (and enable it)
Harald Welte [Fri, 19 Feb 2010 21:43:51 +0000 (22:43 +0100)]
finish GSMTAP output support (and enable it)

Layer2 now sends GSMTAP packets to a UDP port on localhost, where
wireshark can pick them up in realtime and display them.

14 years agoimport wireshark GSMTAP patch
Harald Welte [Fri, 19 Feb 2010 19:22:34 +0000 (20:22 +0100)]
import wireshark GSMTAP patch

14 years agoadd (incomplete) gsmtap integration for feeding frames in wireshark
Harald Welte [Fri, 19 Feb 2010 19:21:04 +0000 (20:21 +0100)]
add (incomplete) gsmtap integration for feeding frames in wireshark

14 years agofrequency error is actually twice of what we thought.
Harald Welte [Thu, 18 Feb 2010 18:32:07 +0000 (19:32 +0100)]
frequency error is actually twice of what we thought.

The cause is really not clear.  The formual using 2*Pi to convert
from radians to frequency is perfectly correct.

However, measurements with various test equipment (including Racal 6103)
have shown our frequency error estimate is always off by a power of two...

14 years agoadd README on how to build the system
Harald Welte [Thu, 18 Feb 2010 18:28:49 +0000 (19:28 +0100)]
add README on how to build the system

14 years agoadd COPYING files to osmocon, firmware and layer2
Harald Welte [Thu, 18 Feb 2010 18:23:46 +0000 (19:23 +0100)]
add COPYING files to osmocon, firmware and layer2

14 years agoadd *.map files to .gitignore
Harald Welte [Thu, 18 Feb 2010 16:01:25 +0000 (17:01 +0100)]
add *.map files to .gitignore

14 years agoFix path names due to rename from hello_world to firmware
Harald Welte [Thu, 18 Feb 2010 15:52:10 +0000 (16:52 +0100)]
Fix path names due to rename from hello_world to firmware

14 years agoInitial import of OsmocomBB into git repository
Harald Welte [Thu, 18 Feb 2010 15:46:36 +0000 (16:46 +0100)]
Initial import of OsmocomBB into git repository