Commit Graph

1045 Commits

Author SHA1 Message Date
Harald Welte 9f30c97e4a [mtk] Add initial / unfinished MT6139 driver 2010-12-12 09:47:21 +01:00
Harald Welte b6156d3e3d add perl scripts to compute MTK RF Transceiver PLL settings 2010-12-11 05:23:58 +01:00
Harald Welte 155cbeab1d README update about transmit as well as development 2010-12-11 11:38:59 +08:00
David Wilson 80600c5a08 layer23: use correct sizeof(sockaddr) for connecting to L1CTL socket
connect's addrlen should be sizeof(local), not the contained path's length.

With the previous code, on OS X connect() will fail with ENOENT.

This permits layer23 to work on OS X using the pl2303 driver,
/dev/tty.usbserial , MacPorts arm-elf-gcc and RANLIB=arm-elf-ranlib

Signed-off-by: Harald Welte <laforge@gnumonks.org>
2010-12-11 11:31:57 +08:00
Sylvain Munaut cef26cd2f5 Merge commit 'ab1246e0b5ffa0ac8d7b8e8fbe7c51bc22c8e751' 2010-11-28 15:31:20 +01:00
Alex Badea ab1246e0b5 protocol: introduce gsm_03_41.h
This currently contains definitions for the BTS->MS SMSCB message.

Signed-off-by: Alex Badea <vamposdecampos@gmail.com>
2010-11-28 15:08:32 +01:00
Alex Badea 8493018f24 gsm_08_58: add struct and constants for RSL_IE_CB_CMD_TYPE
Signed-off-by: Alex Badea <vamposdecampos@gmail.com>
2010-11-28 15:06:13 +01:00
Alex Badea 3ba0a2bea0 gsm_04_12: fix 04.13 typos
There are two occurrences of "413" in the 04.12 header file.
These are probably typos; correct them to "412".

Signed-off-by: Alex Badea <vamposdecampos@gmail.com>
2010-11-28 15:05:01 +01:00
Alex Badea c2166dffae wireshark: fixes for the SMSCB dissector
Fix dissection of message ID, and cosmetic adjustments
to line up the bitfields.

Signed-off-by: Alex Badea <vamposdecampos@gmail.com>
2010-11-28 15:45:17 +02:00
Sylvain Munaut e3d7f499e3 fw/layer1: Fix reset of dedicated channel state
Thanks to Alex Badea <vamposdecampos@gmail.com> for pointing
this out.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-28 14:40:08 +01:00
Sylvain Munaut 733c894c18 build: Use absolute path in the CFLAGS for libosmocore target build
There is now subdirectories to build !

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-28 14:28:42 +01:00
Alex Badea f152eda1d3 wireshark: update SMSCB dissector patch
Now factored out to its own dissector module, and supporting
message block reassembly.

Signed-off-by: Alex Badea <vamposdecampos@gmail.com>
2010-11-27 18:31:49 +02:00
Sylvain Munaut 9c7c75a1c7 fw/layer1: Fix missing include in prim_pm.c
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-24 09:43:11 +01:00
Alex Badea e0f846faa2 wireshark: add CBS/SMSCB dissector patch [WIP]
Signed-off-by: Alex Badea <vamposdecampos@gmail.com>
2010-11-23 21:03:03 +02:00
Alex Badea 689c0e5f8d host layer23: add a small cbch_sniff application
Tune to the ARFCN specified on the commandline (-a).  Then, if
a CBCH Channel Description IE is found in System Information Type 4,
switch to dedicated mode on that particular channel to receive
the CBCH.
2010-11-21 23:33:27 +01:00
Alex Badea 30f17f5dd7 layer23 sysinfo: fix parsing of CBCH Mobile Allocation
When calling gsm48_decode_mobile_alloc(), read the length
byte from payload data[], rather than from si->data[].
2010-11-21 23:33:27 +01:00
Alex Badea ec7349f28b layer23 sysinfo: store chan_nr when decoding CBCH Channel Description 2010-11-21 23:33:27 +01:00
Harald Welte 641f40cecc Makefile: introduce 'make nofirmware' target to build host-only tools 2010-11-21 18:24:10 +01:00
Harald Welte 2303067ea1 rita_pll: Compute values for T-GSM 810 2010-11-21 18:10:46 +01:00
Andreas.Eversberg 7e29ca7006 [layer23] VTY uses CAPITAL letters for all optional parameter names
This makes it easier to understand the VTY help. Every parameter name
is shown in capital letters, every keyword is shown in lower case.
2010-11-20 08:58:44 +00:00
Andreas.Eversberg 8dbf60f581 [layer23] VTY supports "show this" to show current MS node only 2010-11-20 08:34:31 +00:00
Andreas.Eversberg f72baf40d5 [layer23] Adding LAC and TMSI (both optional) to test card (rplmn) 2010-11-20 08:32:32 +00:00
Andreas.Eversberg 633b611dc1 [layer23] Adding LAI to debug output of LOCATION UPDATING REQEST 2010-11-20 08:30:45 +00:00
Andreas.Eversberg ee4fe18cda [layer23] Bugfix: Exit, if init function fails 2010-11-20 08:19:38 +00:00
Holger Hans Peter Freyther 121f358de0 utils: Fix typo. It is ascii. 2010-11-19 19:21:42 +01:00
Harald Welte fe851ffc57 gsmtap.h: Add GSMTAP_TYPE_SIM 2010-11-18 23:54:20 +01:00
Alex Badea 56f990976c toplevel Makefile: accept arguments for host ./configure calls
Append $(HOST_CONFARGS) to ./configure scripts for 'host' applications.

This allows e.g. cross-compiling on an x86 build system for an OpenMoko
gta0x host, using an invocation such as:

$ make HOST_CONFARGS="--host=arm-angstrom-linux-gnueabi"

Signed-off-by: Alex Badea <vamposdecampos@gmail.com>
2010-11-17 23:39:46 +01:00
Alex Badea d45476dad9 target uart: remove REG_OFFS() macro side-effect
Don't assign to the variable given as argument.  This prevents
clobbering the local 'reg' variables in uart_reg_{read,write}(),
which would in turn prevent the latch bits from being restored
correctly.

Signed-off-by: Alex Badea <vamposdecampos@gmail.com>
2010-11-17 23:39:46 +01:00
Alex Badea 4ad8b730a0 target uart: fix preservation of LCR
Store old_lcr only when switching to LCR == 0xBF.  We don't want
to clobber old_lcr when switching back, otherwise we can't restore
the previous LCR value.

Signed-off-by: Alex Badea <vamposdecampos@gmail.com>
2010-11-17 23:39:46 +01:00
Alex Badea a69d67ec73 osmocon: make beacon interval configurable via cmdline
Beacons with the default 50 mS interval are too far apart to
be picked up by the OpenMoko gta0x Calypso chip.  Make them
configurable via a -i commandline argument.

As recommended in the OpenMoko wiki[1], an interval of 13 mS works.

[1] http://wiki.openmoko.org/wiki/GSM/Flashing (-od fluid argument)

Signed-off-by: Alex Badea <vamposdecampos@gmail.com>
2010-11-17 23:39:45 +01:00
Sylvain Munaut e801cee46b fw/l1/mframe_sched: Fix the TCH_A entries to include the MF_F_SACCH flag
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-14 17:09:54 +01:00
Sylvain Munaut 87b44798ef fw/layer1: Use dbm2rxlev instead of just '+110' so that overflows are handled
Without this, we would sometime get +143 dBm reported ... which is obviously
false.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-14 17:09:54 +01:00
Andreas.Eversberg 3a8e47430e [layer23/mobile] Better overview of "show ms" VTY command
Combined "sh ms" and "sh states" to a more detailed "sh ms". The
look-and-feel is more router like now.
2010-11-14 15:15:38 +00:00
Andreas.Eversberg f8903f06d1 [layer23] Cleanup of mobile application
All functions for handling mobile instances and mobile relevant parts are
moved to mobile/app_mobile.c, the mobile/main.c and mobile/mncc.c become a
simple out-of-the-box mobile application. (making calls)

The mobile/main.c can be replaced easily by a different application now.
this application may have it's own call control implementation (layer 4).
Full configurations via VTY is still possible and required in this case.
2010-11-14 11:52:57 +00:00
Andreas.Eversberg 2d8b427ef8 [layer23] Prevent layer23 apps from abort, if socket to layer1 fails 2010-11-14 11:50:14 +00:00
Sylvain Munaut 11316da173 Merge commit '7f6615a37df0dadbe86fdfc980e0a8a15013a80e' 2010-11-13 22:48:15 +01:00
Sylvain Munaut 7f6615a37d Move the generate backtrace call from MSGB_ABORT to osmo_panic handler
This has two benefits:
 - All people calling osmo_panic() will have the backtrace
 - It makes the thing build in 'target' mode in osmocom-bb

And one downside:
 - The osmo_panic handler is now in the backtrace
(I can live with that :)

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-13 22:47:47 +01:00
Andreas.Eversberg 6f2b172780 [layer23] Added support for multiple MS instances
To create another instance: 'ms <name> create'

To remove an instance: 'no ms <name>'

If no instance exists, 'ms 1' is created automatically on startup.

Each instance can be enabled / disabled by using 'shutdown' or
'no shutdown'. Multiple instances may share the same layer2 socket (same
phone hardware), but in this case only one instance can be enabled at the
same time. This makes it much easier to select different settings without
modifying them.

A 'shutdown' initiates the IMSI detach procedure before shutdown is
completed. A 'shutdown force' will immidiately shutdown.

There is no need to restart the software anymore, if fundamental settings
are changed. In this case, a 'shutdown' followed by a 'no shutdown' will
do the job.

If you already have an old osmocom.cfg, you need to "no shutdown" it.
Everything else behaves as before.
2010-11-13 18:45:09 +00:00
Andreas.Eversberg 4df881932c [layer23] msgb_free() must in l1ctl.c must called after reading its header 2010-11-13 18:23:57 +00:00
Sylvain Munaut c91d17b3d5 panic: Fix type warning - osmo_panic_handler_t is already a pointer ...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-13 18:00:25 +01:00
Sylvain Munaut 2a471ee25d gsm_utils: Define 4 upper bits as "flags" and mask them out in utility functions
This way those function don't care about the flags they don't know about

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-13 17:51:37 +01:00
Harald Welte 7a81d8777a add definitions for sciphone G2 2010-11-09 19:17:48 +01:00
Harald Welte fed69cd4a0 add some header files about MTK GSM related peripherals 2010-11-09 18:19:06 +01:00
Harald Welte dab0287b3f msgb: fix printing of msgb pointer during MSGB_ABORT() 2010-11-09 13:42:26 +01:00
Harald Welte 46a45a6c4f msgb: don't compare unsigned int with int (fix lcr build) 2010-11-09 13:41:48 +01:00
Sylvain Munaut 5aabab4861 target_dsp/calypso: Makefile rework
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-07 21:39:38 +01:00
Sylvain Munaut 4a00ee10a3 target_dsp/calypso: Small updates bin2cfile.py script
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-07 21:36:45 +01:00
Sylvain Munaut 59bc439886 target/fw/dsp: Implement section loading with bootloader
This works for both the default ROM bootloader and for our
custom one.

This will allow to implement easy patch loading.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-07 21:36:32 +01:00
Sylvain Munaut 379608d218 target/fw/dsp: Create a common function to start running code
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-07 21:36:17 +01:00
Sylvain Munaut da738824a0 layer23/mobile: Enable half_v1 support
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-07 10:34:10 +01:00