aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
AgeCommit message (Collapse)AuthorFilesLines
2017-08-18Simplify jenkins build scriptsMax6-88/+36
* move duplicated code into separate functions in jenkins_common.sh * use that function in individual builds Change-Id: I4d09c5f2693b5ac0a4d8f2c840971e13d1ec58cf
2017-08-07lc15bts-mgr.service: Prepare dirs and sysctls for the processPau Espin Pedrol1-1/+18
Change-Id: I0a0a10ca9498318c48c81fa94faceb2ad4ac1de6
2017-07-31lc15: Tweak led colors used in service filePau Espin Pedrol1-3/+3
service sets led to orange before/while osmo-bts is being started. osmo-bts-lc15 sets led to green while operating. (unchanged in here) service sets led to red when osmo-bts stops running. Change-Id: If351f49d1ead359192d0d80bbc381afd3459c940
2017-07-21lc15bts-mgr: separate service fileMax2-2/+14
The sysmobts- and lc15bts- mgr have different semantics for the same command line option (-n: writing to EEPROM vs writing to ROM). and different default value. Hence it make sense to use separate files, similar to osmo-bts-*.service Change-Id: I645a81e30d7146ff26720391db763b6d585037e6 Related: SYS#3728
2017-07-17Unify *.service filesMax3-3/+5
* unify description * provide common BTS-independent aliases Change-Id: Ia067dc5b0bdef07b90ab57f89e8ba6b2a794eb4a
2017-07-10jenkins helpers: some minimal documentation/comments + print errorsHarald Welte7-0/+22
We should print meaningful error messages in case a user doesn't have the required local PATH set up, or doesn't specify a required command line argument. Change-Id: I30a2935f93ade69222b1e0c3e212ee10e17c1823
2017-06-22lc15: fix jenkins buildMax1-3/+3
* use proper fw headers include path * do not quote $PARALLEL_MAKE variable Change-Id: Ib67305ae858ce322f7ea4ac6c6ce5007ce8e7ab9 Related: SYS#3682
2017-06-22lc15: make jenkins helper executableMax1-0/+0
Change-Id: Icf06040d77180fb9d877ca52e00171b21b634ef8 Related: SYS#3682
2017-06-22Copy sysmobts.service to osmo-bts-sysmoMax2-0/+21
This way the name of systemd service file will match the name of the binary similar to lc15. Add aliases so the user can use both old and new names regardless of which file is installed. Once the corresponding changes to OE recipes are applied old file can be removed. Based on work by Pau Espin Pedrol <pespin@sysmocom.de> Change-Id: I08615eb625d488603aeb5962ad9f30869c0e77c5
2017-06-21Use generic L1 headers helperMax4-55/+10
Change-Id: I2253df3509595d7393ec6631ef846dbebae73ca4
2017-06-21lc15: add jenkins helperMax2-0/+41
Add jenkins build helper for lc15 and separate header with BTS-agnostic functions. Change-Id: Ib47f5a6cc88e784c5662b0dab4ddc03ce9a35132 Related: SYS#3682
2017-06-21Move common steps into common jenkins helperMax5-69/+36
Move value_string termination check and OpenBSC headers checkout into shared jenkins helper from BTS' model-specific helpers to get rid of copy-pasted code. While at it - also remove unnecessary bash dependency. Change-Id: Ic48b1f75179b9008d65219dd5a47c1ab3b886408
2017-06-14lc15: add example systemd service fileMax1-0/+20
Change-Id: I923b4220f98bb7bd9ec78a6804bdfa9ad988f473 Related: SYS#3686
2017-06-14Use systemd template specifiersMax1-2/+2
Use systemd template specifier for config name instead of hardcoding it. This will allow to specify different config file name depending on the name of the service file. By default sysmobts-mgr.cfg will be used preserving compatibilty with existing installations but if the unit is named lc15bts-mgr.service than lc15bts-mgr.cfg will be used. This gives us necessary flexibility to use BTS-specific configuration. Change-Id: I475df6a06691390120eea0bd8a61fa469df2bd2d Related: SYS#3686
2017-03-16jenkins: add value_string termination checkNeels Hofmeyr4-0/+10
Change-Id: Id4eb92924c03748563921e3f56cc0e5e0ffff502 Depends: libosmocore change-id I2bc93ab4781487e7685cfb63091a489cd126b1a8
2016-11-30jenkins: add jenkins_bts_model.shNeels Hofmeyr1-0/+33
Change-Id: Ie7c32e68f789414fdf3c407c0da06cbf983f751a
2016-11-30add jenkins_oct_and_bts_trx.shNeels Hofmeyr1-0/+65
Change-Id: Ib656d4592f5210e2c180f511a1c955d14397bd03
2016-11-30add jenkins_bts_trx.shNeels Hofmeyr1-0/+49
Change-Id: Ie27ffb72140cb37e6a05bffd90551197f1e9b5fc
2016-11-08dtx_check.gawk: add check for repetitive SID FIRSTMax1-0/+4
Change-Id: Id7acdfae7880fb488b65435ab8d33f2874499967
2016-11-08dtx_check.gawk: Fix false-positives in DTX checkMax1-3/+3
Previously, if ONSET happened exactly at the place where next SID FIRST or UPDATE should be it was incorrectly detected as error. Similarly, continuos FACCH was misinterpreted as error. Change-Id: I43fdbceea0dbdb0833c3b1cf0fc3b825803ed30e
2016-11-03DTX DL: add AMR HR support to scheduling checkMax2-19/+38
superfemto.sh: Expand log converter to use case-insensitive matching to accommodate for spelling differences in DSP logs. Add strings/events specific to AMR HR. dtx_check.gawk: Remove redundand variables from output. Add checks specific to AMR HR. Change-Id: Icce3178605f46bbf3cad15d4eaff18a4d164ad1a
2016-10-26Add tools to check DTX operationMax2-0/+176
* superfemto.sh can parse superfemto-compatible DSP log output to properly sort records into MT/MO and DL/UL parts * dtx_check.gawk can process output of superfemto.sh and check for common scheduling errors This allows to check lc15 and sysmo for errors in DTX DL scheduling. As dtx_check.gawk is generic it can be used with any other BTS hw (or virtual BTS) as long as raw logs from this hw can be converted to simple input format 'FN EVENT' per-line. Change-Id: Ib1c70c4543b24c2a05a7df8eec5ce3f4eda2c02e Related: OS#1801
2016-10-18jenkins-oct.sh: fix build: typo in deps pathNeels Hofmeyr1-1/+1
Change-Id: I05014e25ffc829fa2fc3973471baa28f7f5a62c9
2016-10-12jenkins.sh: use osmo-build-dep.sh, log test failuresNeels Hofmeyr2-52/+63
Like in libosmo-abis' and other jenkins.sh Change-Id: I6ad88bce18677b148af63ae8f6e0ab7e3b38b5a2
2016-09-06oct: Attempt to enable the Octphy for the osmo-bts-oct buildHolger Hans Peter Freyther1-2/+2
Change-Id: Ib41dfe35af1ed2ef270a436a8086a3120fe4d7d6
2016-08-08ci/spatch: Remove the "static" analysis handlingHolger Hans Peter Freyther2-28/+0
spatch on Debian 8.0 has already crashed twice and is likely to crash more and at the same time the value for this static checking is close to zero (nice idea but never blossomed). So let's remove it, have a more reliable build and let's coverity find those issues. Change-Id: Ic1004edf7f0bee8dda30b95554a0aaf0b116b6b8
2016-06-27sysmobts: screnrc/systemd-service: Use osmo-bts-sysmo instead of sysmobtsHarald Welte2-2/+2
Back in January in commit 634c3e46484a0932f8a04b894be215b9288eecff we changed the executable name from 'sysmobts' to 'osmo-bts-sysmo', which is a change that has not been propagated to the contributed screenrc and systemd init files. Change-Id: I875a0ce4f470226e1b06ed1b7c74ca9471ebb574
2016-04-13jenkins: Add the build script from jenkins hereHolger Hans Peter Freyther1-0/+68
This can be used to replicate a build issue more easily. Build specific to the Octphy.
2016-04-13jenkins: Add the build script from jenkins hereHolger Hans Peter Freyther1-0/+74
This can be used to replicate a build issue more easily.
2016-03-17Add utility to check proper scheduling of SIMax1-0/+91
There are several types of System Information messages with tricky scheduling rules described in 3GPP TS 05.02 ยง 6.3.1.3. This GNU Awk script takes in .csv file with sequence of scheduled SI messages (for example generated using tshark from GSMTAP capture - see usage note inside the script) and check the scheduling rules compliance.
2016-03-15misc: Attempt to fix make distcheck and dumping docsHolger Hans Peter Freyther1-1/+1
The file has been renamed, attempt to catch up
2016-01-11sysmobts-calib: Warn about firmware and header mismatchHolger Hans Peter Freyther1-1/+18
sysmobts-calib might be easily patched by a user that does not know that firmware and firmware headers form a contract that should be matched. Compare the version numbers and print a warning if it does not look correct. This should be enough for a user to see that something is not right. Continue anyway as the firmware might still be compatible (because the ABI has not changed). Fixes: SYS#1172
2016-01-11sysmobts-v2/eepromreader: Add userspace program to read EEPROMHolger Hans Peter Freyther1-0/+91
If using a too old kernel on newer devices the eeprom reading will fail and maybe it is not possible to update the kernel after the unit has been deployed. Add a utility to read the EEPROM of revD+ from userspace to be used to fix up the thing.
2014-08-21sysmobts: Add VTY support to the sysmobts-mgrHolger Hans Peter Freyther2-2/+2
Add VTY support to the manager. This way we can interactively inspect the state of the system and trigger events.
2014-05-25sysmobts: Revert all sysmobts-mgr related changesHolger Hans Peter Freyther1-1/+1
Harald is right and that the code is generally not ready for inclusion. I fell victim of trying to finish it while the code is not ready at all. It is better to re-introduce the patches in a smaller and more tested way. The right way would have been a branch were ready things are split-off the main/wip commit until everything is ready. Revert "sysmobts: Have a common prefix for the enum" This reverts commit 44980347f308fe5bbe48a933dbc81b82b53d310a. Revert "utils: Used the enum manuf_type_id in the parameter of add_manufacturer_id_label" This reverts commit 7d36e5ed46b630203167fc9d5d28e0087fdbd394. Revert "utils: Classify the OML message using the return type" This reverts commit afee0b7929a00500f9c204f3bc7e12f72451e832. Revert "sysmobts: Do not access out of bound string" This reverts commit f5f41e805195c8c3294a9e6a68b10f975fbabbbd. Revert "sysmobts: Separate IPA and OML check into two methods" This reverts commit 13a224063dfcee0be529fba1c8fb9be9c1fb261e. Revert "screenrc: osmobts-mgr now needs a config file" This reverts commit 0a1699ff8a5462c167c24e8b28186abb26331698. Revert "make sure osmobts-mgr.cfg file is included in tarballs" This reverts commit 14c60b425f8146f6a392d2d3de2979c817cd975e. Revert "sysmobts-mgr: Add VTY support for configuring it" This reverts commit c5fedd24c96a4ef6d7a0c0ed3c70d6ef0abd5c17. Revert "sysmobts: Add beginnings of an OML router and create Failure Messages in the sysmobts-manager" This reverts commit c6ab90b27006ff2d1fdfb0b1d7fc01e1dd4a696d.
2014-05-19screenrc: osmobts-mgr now needs a config fileHarald Welte1-1/+1
2014-03-21systemd: Provide the pcu direct modeHolger Hans Peter Freyther1-1/+1
2014-03-21systemd: Do not restart with a broken config file or suchHolger Hans Peter Freyther1-0/+1
Only restart in case of a crash or the exit(42) when the OML/RSL link is going down.
2014-02-04systemd: Disable colors in the stdout logHolger Hans Peter Freyther1-1/+1
For journald we should not output escape sequences as it is confusing the output.
2014-01-21sysmobts: Honor the LDFLAGS when building the sysmobts-calib utilityHolger Hans Peter Freyther1-1/+1
Address warning during system builds. Addresses: WARNING: QA Issue: No GNU_HASH in the elf binary...
2014-01-21sysmobts: Launch the sysmobts-mgr in the screen and add service fileHolger Hans Peter Freyther2-0/+13
Launch the sysmobts-mgr as well. It will monitor the temperature but it will not update the eeprom or act on any of the data. On top of that it will respond to ipaccess-find messages making it more easy to find the device.
2013-12-20contrib: Remove the stray "FIVE" print it doesn't make any senseHolger Hans Peter Freyther1-1/+0
2013-10-31pcu: Exit the PCU in case of loss of the sysmobts connectionHolger Hans Peter Freyther1-1/+1
The PCU is not capable of cleaning up properly. For now simply exit the PCU in case the sysmobts has exited. This requires osmo-pcu a30f47613abb7c22a26d534d66e478265a8c2c09 or later.
2013-07-26sysmobts-calib: For gps the sign/difference appears to be differentHolger Hans Peter Freyther1-0/+10
For the sysmoBTS 2050 this appears to have a different sign. We can't test this with NWL right now so we will need to see if this is a case of ping/pong.
2013-06-26sysmobts.service: Use multi-user.target as target to fix orderingHolger Hans Peter Freyther1-1/+1
2013-06-24sysmobts.service: Reset the firmware after the service exitedHolger Hans Peter Freyther1-2/+2
These should have been ExecStopPost from the beginning. Currently they reset the firmware while the software is starting. Reload the DSP and FPGA firmware.
2013-05-11sysmobts: Allow to enable realtime priority for the BTS processHolger Hans Peter Freyther1-1/+1
The latency to respond to a PH-READY_TO_SEND.ind may not be higher than 18ms. Currently we are using nice to increase our priority but for a heavily loaded cell this is not enough. Add an option to enable realtime scheduling and use it in the screenrc. Linux offers two realtime scheduling classes these are SCHED_FIFO and SCHED_RR. For SCHED_FIFO the process is running as long as possible (potentially taking all the CPU and never yielding it), for SCHED_RR the process can still be pre-empted at the end of the timeslice. Using SCHED_RR appears to be the more safe option as a run-a-way sysmobts process will not be able to take all the CPU time. For a very loaded cell we also require to use readv/writev to allow writing multiple primitives in one syscall.
2013-04-07sysmobts.service: Install the sysmobts.service at the default targetHolger Hans Peter Freyther1-0/+3
2013-03-16sysmobts: Name the screen and use '-X quit' to shut it downHolger Hans Peter Freyther3-2/+5
Use "kill -2 0" for the PCU as SIGTERM is not handled yet. With the current set of code the stop function will stop both the PCU and the BTS.
2013-03-16respawn: Adjust the oom score for the supervisor and bts/pcu, increase sleepHolger Hans Peter Freyther2-2/+20
Make the script mostly unkillable due to OOM and make sure that the process has a score of zero. Wait 10 seconds before re-launching. The combination of ( && exec ) & appears to save one sub-process. The script has been tested with bash and busybox's ash.