AgeCommit message (Collapse)AuthorFilesLines
2017-04-28WIP: DEVCFG to set baud ratelaforge/burst_indHarald Welte2-0/+80
Change-Id: Iaacc2427ef4ae371a26841f436efb5cc04b818b5
2017-01-15firmware: Introduce sercomm_change_speed() to change baudrateHarald Welte2-0/+35
The function will wait until the Tx queue is drained and then proceed to change the UARt baud rate.
2017-01-15fw/layer1: Replace multiframe scheduler for sniffing if CONFIG_BURST_IND is setHarald Welte2-2/+31
If the code is compiled with CONFIG_BURST_IND, we simply replace all dedicated multiframe scheduler sets with the dsp sniffer task. This way, a dedicated mode assign via L1CTL makes the firmware dump all the raw burst data.
2017-01-15Introduce CONFIG_BURST_IND for burst indicationsHarald Welte2-0/+5
The default build will not include burst_ind support, as it seems to break the FCCH tasks in an unepected way.
2017-01-15target/fw/dsp: Add & load the dsp sniffer patchSylvain Munaut2-2/+48
Signed-off-by: Sylvain Munaut <>
2017-01-15fw/l1: Add sniffing primitivesSylvain Munaut3-1/+284
Signed-off-by: Sylvain Munaut <>
2017-01-15l1ctl: Add definition for BURST INDICATION messagesSylvain Munaut2-2/+16
(as a side effect data_ind is no longer the biggest message, so need to update L3_MSG_SIZE) Signed-off-by: Sylvain Munaut <>
2017-01-15target_dsp/calypso: Add a custom DSP patch for burst sniffingSylvain Munaut3-1/+204
Load it, then set gprs_install_address to 0x015c and then task 23 will be a raw sniffer. Signed-off-by: Sylvain Munaut <>
2017-01-15WIP: Attempt to make linker scripts compatible with binutils 2.27Harald Welte2-4/+4
In binutils-2.27, one can no longer have linker sections with overlapping VMA addresses. Let's try to work around this. See for more details.
2017-01-15Support Early Classmark SendingHarald Welte2-1/+7
If SI3 rest octets indicate early CM Sending is allowed, and the 'support' indicates we support it (which we now do by default), then send the classmark change message every time a LAPDm link layer is established.
2017-01-15Fix encoding of padding at end of CLASSMARK 3 IEHarald Welte1-2/+2
Contrary to e.g. SI rest octets, the padding at the end of a CLASSMARK 3 Information Element is padded with zeros, not with L. There is no 0x2b padding in this case.
2017-01-15mobile.c: Don't register 'end' command to CONFIG_NODEHarald Welte1-1/+0
The CONFIG_NODE already has an 'end' command, and recent versions of libosmocore actualyl check for conflicting/duplicate command registrations and make the application crash in this case.
2017-01-15mobile: Finally fix copyright noticeHarald Welte1-2/+2
After 7 years it is about time...
2017-01-15Revert "trf6151: Fix setting of uplink ARFCN"Harald Welte1-1/+1
This reverts commit 17240037376169369b526ee8a8284961b85adbfa. For some reason the "obviously broken" code is working, but the fixed version is not. Let's go back to step 1 and analyze this in more detail, but meanwhile make the code work again.
2017-01-15define 'fprintf(stderr,' as a wrapper around printf(Harald Welte1-0/+1
This is in preparation to work with a more recent version of libosmocore, which wants to print to stderr in some cases.
2017-01-15Add an endian.h file as one step to build against later libosmocoreHarald Welte1-0/+12
2017-01-15Add libosmocore/build-target/include to include pathHarald Welte1-1/+1
Some header files are auto-generated and are thus in the build directory, not in the source directory. A cleaner way to handle this is most likely to install libosmocore to some directory, but I don't want to change the entire build process now.
2017-01-15fix various other compiler warningsHarald Welte3-5/+6
2017-01-15cfi_flash.c: Fix various format string compiler warningsHarald Welte1-6/+6
2017-01-15trf6151: Fix setting of uplink ARFCNHarald Welte1-1/+1
Somebody (me?) wrote exclamation marks instead of pipe symbols. Found by a modern gcc: rf/trf6151.c: In function 'trf6151_set_arfcn': rf/trf6151.c:439:8: warning: comparison is always true due to limited range of data type [-Wtype-limits] arfcn != ~ARFCN_UPLINK; ^ rf/trf6151.c:439:2: warning: statement with no effect [-Wunused-value] arfcn != ~ARFCN_UPLINK; ^
2017-01-15Avoid redefining __{packed,aligned,unused,section}Harald Welte1-0/+10
It seems modern version of newlib define those themselves, so we should avoid re-defining them. Removes tons of compiler warnings when compiling against libnewlib 2.4.0
2016-01-20fw: fix SPCA552 write timingSteve Markgraf1-0/+1
With GCC 4.9.3 the timing was broken and initializing the SPCA552 on the Pirelli DP-L10 did not work. Add a small delay which fixes that. Signed-off-by: Steve Markgraf <>
2016-01-18host/mobile: Improved SAP interface integrationЯницкий Ва дим7-22/+104
1) Now the SAP interface is selectable as SIM source using the 'sim sap' command in VTY. 2) SAP connection starts only if it is configured as SIM source. 3) Fixed sap_socket_path configuration r/w errors. Written-by: Яницкий Ва дим <> Signed-off-by: Sylvain Munaut <>
2016-01-18mobile: Fix for "Added runtime selection of gps device"Яницкий Ва дим1-5/+4
The 'gps host HOST:PORT' line in the config file now is generated correctly. So that it is parsed correctly when loading the config on next startup. Also the gpsd port now is parsed as it should without a colon. Written-by: Яницкий Ва дим <> Signed-off-by: Sylvain Munaut <>
2015-12-31modernize AM_INit_AUTOMAKEHarald Welte1-3/+2
according to
2015-12-31autoconf: Migrate from INCLUDES to AM_CPPFLAGSHarald Welte3-3/+3
2015-12-31cleanup some compile warningsMax6-24/+17
2015-07-21layer1: fix chan_nr2mf_task_mask for TCH/H channelFelix Domke1-1/+2
"multiframe", the frame layout (used to compute neighbor cell monitoring pattern) was uninitialized in TCH/H case. This, in combination with gcc optimizing the "switch(multiframe)"-statement into a LUT without bounds- checking (since using an uninitialized value is undefined behavior) caused neigh_task to be filled with an out-of- bounds value, eventually crashing the TDMA scheduler. Written-by: Felix Domke <> Signed-off-by: Sylvain Munaut <>
2015-04-28host/mobile: Finish working support for the SAP interfaceSylvain Munaut6-53/+545
Patch mostly written by Nico Golde and some cleanup/testing by Domonkos Tomcsanyi Signed-off-by: Sylvain Munaut <>
2014-09-06layer23: initialize l2h/l3h pointers in rx_l1_rach_confIgor Almeida1-0/+1
Signed-off-by: Igor Almeida <> Signed-off-by: Sylvain Munaut <>
2014-06-15mobile: Use osmocom auth API instead of direct callsMax3-28/+20
Submitted-by: Max <> Signed-off-by: Sylvain Munaut <>
2013-12-29fw: tell linker to add init_array to ctor sectionSteve Markgraf5-0/+5
Starting with version 4.8, gcc places functions with __attribute__ ((constructor)) in .init_array instead of .ctors by default. This broke firmware images built with gcc >= 4.8. Signed-off-by: Steve Markgraf <>
2013-12-24mobile/SS: Fixed bug in parsing of known supplemenary service codesAndreas Eversberg1-5/+5
Use correct variable to check if supplementary service code is known or not.
2013-09-26Fix wrong msgb_pull usageSylvain Munaut2-4/+4
Signed-off-by: Sylvain Munaut <>
2013-06-19osmocon: Improve performance by handling several serial bytes at a timeAndreas Eversberg1-8/+19
2013-05-23host/mobile: Add 'extern' qualifier to config_dir in app_mobile.hBhaskar1-1/+1
This prevents duplication definition with main.c From: Bhaskar <> Signed-off-by: Sylvain Munaut <>
2013-05-23host/mobile: Fixup in error checking path of l23_app_initBhaskar1-3/+6
From: Bhaskar <> Signed-off-by: Sylvain Munaut <>
2013-05-23host/osmocon: fix some printf format specifier in handle_write_dnloadBhaskar1-1/+1
From: Bhaskar <> Signed-off-by: Sylvain Munaut <>
2013-05-23host/mobile: Fix trans_assign_trans_id() users error checkingSylvain Munaut2-2/+2
The returned value of trans_assign_trans_id() must be stored into a 'int' rather than uint8_t to allow proper testing of negative return values (errors). Thanks to Bhaskar <> for the original patches. Signed-off-by: Sylvain Munaut <>
2013-05-23gsm48_mm.h: Added get_mm_name() to headerBhaskar1-0/+1
2013-05-23gsm48_mm.c: Bugfix: payload_len should be signed intBhaskar1-1/+1
As we later check if payload_len < 0, it should be signed, not unsigned.
2013-05-23osmoload: Fix fall-out from msgb_get() / msgb_pull() transitionBhaskar1-1/+1
Bugfix in Osmoload.c: Assigning correct value to data pointer in LOADER_MEM_READ. Wrong value was introduced in last update when msgb_get() was replaced by msgb_pull() which returns end of data instead of start of data.
2013-04-14host/mobile: Remove duplicate A5/1 support indication in vty 'show support'Sylvain Munaut1-1/+0
Patch-by: Martin Hauke <> Signed-off-by: Sylvain Munaut <>
2013-04-14host/mobile: Fix comment typoSylvain Munaut1-1/+1
Patch-by: Martin Hauke <> Signed-off-by: Sylvain Munaut <>
2013-04-13doc: Fix build readme with system-wide libosmocore detailsSylvain Munaut1-4/+12
Signed-off-by: Sylvain Munaut <>
2013-04-07fw: remove deprecated chainload appSteve Markgraf2-56/+1
Signed-off-by: Steve Markgraf <>
2013-04-07osmocon: embed chainloaderSteve Markgraf1-44/+65
This allows to directly load highram-images on compal phones with the commandline-switch -c. Signed-off-by: Steve Markgraf <>
2013-03-07support.c: fix typo in commentHarald Welte1-1/+1
2013-01-13layer23: Be sure to close mncc socket on exit of mobile instanceAndreas Eversberg1-5/+5
2013-01-12layer23: Send SIM APDUs via GSMTAP, if enabledAndreas Eversberg1-1/+18