summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2010-11-21host layer23: add a small cbch_sniff applicationAlex Badea2-3/+190
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-21layer23 sysinfo: fix parsing of CBCH Mobile AllocationAlex Badea1-1/+1
When calling gsm48_decode_mobile_alloc(), read the length byte from payload data[], rather than from si->data[].
2010-11-21layer23 sysinfo: store chan_nr when decoding CBCH Channel DescriptionAlex Badea1-0/+1
2010-11-21Makefile: introduce 'make nofirmware' target to build host-only toolsHarald Welte1-1/+2
2010-11-21rita_pll: Compute values for T-GSM 810Harald Welte2-0/+15
2010-11-20[layer23] VTY uses CAPITAL letters for all optional parameter namesAndreas.Eversberg1-9/+9
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[layer23] VTY supports "show this" to show current MS node onlyAndreas.Eversberg1-4/+15
2010-11-20[layer23] Adding LAC and TMSI (both optional) to test card (rplmn)Andreas.Eversberg6-17/+53
2010-11-20[layer23] Adding LAI to debug output of LOCATION UPDATING REQESTAndreas.Eversberg1-0/+3
2010-11-20[layer23] Bugfix: Exit, if init function failsAndreas.Eversberg1-1/+3
2010-11-17toplevel Makefile: accept arguments for host ./configure callsAlex Badea1-4/+4
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-17target uart: remove REG_OFFS() macro side-effectAlex Badea1-1/+1
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-17target uart: fix preservation of LCRAlex Badea1-4/+4
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-17osmocon: make beacon interval configurable via cmdlineAlex Badea1-10/+16
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-14fw/l1/mframe_sched: Fix the TCH_A entries to include the MF_F_SACCH flagSylvain Munaut1-4/+8
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-14fw/layer1: Use dbm2rxlev instead of just '+110' so that overflows are handledSylvain Munaut2-3/+3
Without this, we would sometime get +143 dBm reported ... which is obviously false. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-14[layer23/mobile] Better overview of "show ms" VTY commandAndreas.Eversberg1-61/+84
Combined "sh ms" and "sh states" to a more detailed "sh ms". The look-and-feel is more router like now.
2010-11-14[layer23] Cleanup of mobile applicationAndreas.Eversberg8-162/+245
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[layer23] Prevent layer23 apps from abort, if socket to layer1 failsAndreas.Eversberg2-6/+17
2010-11-13Merge commit '7f6615a37df0dadbe86fdfc980e0a8a15013a80e'Sylvain Munaut16-22/+113
2010-11-13Move the generate backtrace call from MSGB_ABORT to osmo_panic handlerSylvain Munaut2-2/+2
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[layer23] Added support for multiple MS instancesAndreas.Eversberg12-106/+646
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[layer23] msgb_free() must in l1ctl.c must called after reading its headerAndreas.Eversberg1-1/+1
2010-11-13panic: Fix type warning - osmo_panic_handler_t is already a pointer ...Sylvain Munaut2-2/+2
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-13gsm_utils: Define 4 upper bits as "flags" and mask them out in utility functionsSylvain Munaut2-2/+10
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-09add definitions for sciphone G2Harald Welte2-0/+40
2010-11-09add some header files about MTK GSM related peripheralsHarald Welte4-0/+226
2010-11-09msgb: fix printing of msgb pointer during MSGB_ABORT()Harald Welte1-1/+1
2010-11-09msgb: don't compare unsigned int with int (fix lcr build)Harald Welte1-2/+2
2010-11-07target_dsp/calypso: Makefile reworkSylvain Munaut1-4/+12
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-07target_dsp/calypso: Small updates bin2cfile.py scriptSylvain Munaut1-4/+11
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-07target/fw/dsp: Implement section loading with bootloaderSylvain Munaut1-0/+35
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-07target/fw/dsp: Create a common function to start running codeSylvain Munaut1-8/+10
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-07layer23/mobile: Enable half_v1 supportSylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-07target/fw/l1: Fix TCH/H1 by properly loading the TCH mode during TCH_A taskSylvain Munaut1-3/+3
Altough quite counterintuitive, the TCH_A task does some voice coding work ... at least during TCH/H subchannel 1 ... Go figure ... Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-07target/fw/l1: Fix TCH/H by properly scheduling the TCHD task during 'off' slotsSylvain Munaut3-0/+63
Apparently the DSP needs to be run even during the slots without actual bursts exchange. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-07[layer23] Call application sends CC Capability on incoming callAndreas.Eversberg1-0/+5
It is required to make DTMF work on incoming calls also.
2010-11-06layer23/misc: Update .gitignore for ./cell_logSteve Markgraf1-0/+1
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2010-11-06layer23/mobile: Fix 'implicit declaration' warning for mncc_answer()Steve Markgraf1-0/+1
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2010-11-05msgb_abort(): better formattingHarald Welte1-1/+1
2010-11-05generate backtrace in msgb_abort()Harald Welte1-0/+2
This helps us to debug where we encounter insufficient headroom...
2010-11-05Change msgb_abort() function in MSGB_ABORT argument with variable argumentsHarald Welte1-10/+9
This enables callers to provide format string and arguments to it Also, put conditionals into the macro, and remove them from the caller site.
2010-11-04gsm0808: Move the clear request from bsc_msc_ip to hereHolger Hans Peter Freyther2-0/+21
This method should use the msgb_tlv_put routines instead of the stuff it is doing. This will be cleaned up.
2010-11-04gsm0808: Add a method to create a new DTAP message with a msgbHolger Hans Peter Freyther2-0/+24
2010-10-31select.c: Change license terms from GPLv2 (from ulogd) to GPLv2+Harald Welte1-2/+3
2010-10-30layer23: Use the new rach_req format in l1ctl and update l23 apps to use itAndreas.Eversberg6-16/+17
This removes an old hack Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-10-30target/fw/layer1: Change L1CTL RACH req to properly use all slotsAndreas.Eversberg5-13/+36
Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-10-30[layer23] cell_log's scanning depth now depends on movement speedAndreas.Eversberg4-29/+51
2010-10-30[layer23] Fixed T3 value in RACH confirm messageAndreas.Eversberg1-1/+1
2010-10-27layer23/mobile: Add configuration option for automatically answering callsSteve Markgraf3-0/+31
Signed-off-by: Steve Markgraf <steve@steve-m.de>