aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-05-03Bump version: 0.3.0-dirty → 0.4.00.4.0Pau Espin Pedrol2-3/+125
Change-Id: Ifc469bce89d52012e1f876c847b4535360a602ad
2018-05-02git-version-gen: Take into account tags not in masterPau Espin Pedrol1-2/+1
Latest tag 0.3.0 was created in a release branch instead of master. As a result, git describe doesn't show them. Let's instead reuse git command used in osmo-ci to get latest tag from tag list when OBS latest repository is built. Change-Id: I3e461d4270b5e6d4c42126df4deef5651dca1e27
2018-05-02doc: add example config for usrp B200 seriesPhilipp Maier1-0/+20
Change-Id: I1a80ddd9ca9b143e9c89618616f30fe3f3547d7b
2018-04-28osmo-trx: s/GSM Core Address/GSM BTS Address/Harald Welte1-1/+1
The TRX connects to the BTS, not to the "Core". The Core network is miles away... Change-Id: I6de2f708fc7a7df7dea16314b7dfa4ab82f15b2c
2018-04-28update .gitignore for new executable namesHarald Welte1-1/+2
Change-Id: Id698024485176e5201ca92c72b1bd1d5914aff32
2018-04-28debian/control: Add build dependency to libusrp-devHarald Welte1-0/+1
Change-Id: I9593c9e45d304b7ffc94474e94450da418838513
2018-04-28debian: Ensure USRP1 firmware is part of osmo-trx-usrp1Harald Welte1-0/+2
The std_inband.rbf files are required to operate USRP1 with timestamps Change-Id: I9b3e937ea1941953dcdcaf57cfec9575cd5a8a9c
2018-04-28debian/rules: Make sure we always require libusrpHarald Welte1-0/+3
Change-Id: Id9c9188a24617f83efa0e1fcf54f9e0dd223e365
2018-04-28debian/control: Remove "Maintainer" from binary package sectionHarald Welte1-1/+0
This resolves the following warning: dpkg-source: warning: unknown information field 'Maintainer' in input data in package's section of control info file Change-Id: I7a8d8c54eabccc5cedf7ad0a2bccf91f32f1bfdf
2018-04-28Revert "debian: Remove osmo-trx-usrp1 until we can build libusrp1.deb"Harald Welte1-0/+1
This reverts commit 295b938d51889d6db39251130642d45262ca039a, as we now have libusrp built in OBS Change-Id: Ia1311f1e236e6aea4acc08d3f234d53e46789cf9
2018-04-28build: Fix OBS build for ARMPau Espin Pedrol1-2/+3
Change-Id: Ic6b408d684e2bb58af71ec04ced7e73e0d38ffcd
2018-04-28debian: Fix OBS buildPau Espin Pedrol1-17/+9
osmo-trx is a metapackage, no need for .install file. Debug files are always put into osmo-trx-dbg, no osmo-trx-*-dbg. Change-Id: I160dd83b265dcda52762a9f9c7eac9337928da35
2018-04-28debian: Remove osmo-trx-usrp1 until we can build libusrp1.debPau Espin Pedrol1-1/+0
Change-Id: I43163755a29014fe1f098e994f8df79d853c90f8
2018-04-28jenkins.sh: Enable build of osmo-trx-usrp1Pau Espin Pedrol1-1/+2
Change-Id: I44a978fdd7fac683520be3586d84783e5e13de5f
2018-04-28build: More OBS build failure fixesPau Espin Pedrol1-4/+4
It seems the order in which static code and -lfoo is passed to the linker matters. Change-Id: I3b25be0154053ae8eb5f0a24c39fb9a229130fcf
2018-04-27build: Fix make distcheckPau Espin Pedrol6-12/+9
Change-Id: I1fa5e34b44331cd56408ea7ad4483dcf6443b259
2018-04-25Transceiver: log timing info of stale burstsPau Espin Pedrol1-1/+2
Change-Id: I043fd8199253bdf3912c7aec2ccf98f8cbe54251
2018-04-25Logger: Print correct source file and line numberPau Espin Pedrol3-10/+13
Before this commit, always Logger.cpp:53 was being printed. Change-Id: Ie5c64b4961c7c41d23484784a93eda5e08331f08
2018-04-24Build one osmo-trx binary for each device support enabledPau Espin Pedrol7-18/+64
Same way as we do in osmo-bts. After this commit, osmo-trx no longer exists. Instead, osmo-trx-uhd and osmo-trx-usrp1 are generated based on configure flags enabled. A new flag --with(out)-uhd has been added to enable/disable build of osmo-trx with UHD backend. It is left enabled by default to keep compatibility with older build scripts. Binary with USRP1 backend must still be manually enabled with --with-usrp1 flag. Change-Id: Iea8c0d7434762713a53440d29bf3ebd84accb262
2018-04-24Transceiver: Move device specific code to radioDevice classPau Espin Pedrol6-7/+26
Change-Id: Ibcf258d8bf8595e286682e0bc59391b239ea7642
2018-04-24Move device specific code out of radioInterfacePau Espin Pedrol6-28/+36
This way code of radioInterface is independent of the device and doesn't need to be rebuild for each device. Change-Id: Id104e1edef02f863b6465ced5b4241050dc188f9
2018-04-24Change configure define USRP1 to DEVICE_USRP1Pau Espin Pedrol5-7/+7
Similar as we do for ARCH_*, it's easier to find those are related to device support features. Change-Id: Iba238bff689b8f944af76120402c0fa2e29a70de
2018-04-24Move device specific files to device subdirPau Espin Pedrol9-21/+51
Change-Id: Ib42fef14bf4c7b779f44d99711a35c18b32a4c21
2018-04-24Move arch specific fiels to arch subdirPau Espin Pedrol36-22/+26
Take the chance to update some includes using files available in that subdir to have them ina more uniform way. Change-Id: Ibda3c54fd4dc3f6b845cc373f1a1e6b758c1ea82
2018-04-16configure.ac: Add --enable-sanitize optionPau Espin Pedrol2-2/+19
Change-Id: I1b5154a47bb2f66103ac254a0f422e8a80b2d3e0
2018-04-16tests: Makefile.am: Fix typo in include pathPau Espin Pedrol1-1/+1
Change-Id: I036f1f587f2a5eaf93ec8fb619bf76b571c1633a
2018-04-16use osmo_init_logging2()Pau Espin Pedrol2-2/+7
Change-Id: I2c28e6e6e3eb9f587680b34330e03408e32c2b94
2018-04-12jenkins.sh: change qemu-img default location to $HOME/qemu-img instead of ↵Alexander Couzens1-1/+1
/opt/qemu-img Change-Id: I56f314d78c0ca968b1fef9a91ecd540a7cc8fa86
2018-04-08configure.ac: Fix typoMartin Hauke1-1/+1
Unbreak git-version-gen when used with .tarball-version Change-Id: Id836c6822daf1f6835a8c869624b4b40dde47f3a
2018-03-27jenkins.sh: cleanup always the workspaceAlexander Couzens1-3/+1
It was broken before becaues of checking emptyness against literal string will never be zero. However it should be cleaned always because the script is executed recursive which would also end up, never being executed. Change-Id: Ib228ff247a72b21b12e8dd4cbe3afe3e858c89d3
2018-03-14Transceiver.cpp: prevent out-of-range array accessVadim Yanitskiy1-8/+16
There was no a simple range check for both (NO)HANDOVER commands, so an out-of-range access was possible. For example, a command: CMD HANDOVER 0 -3 might enable EDGE at run-time, because: a[i] == *(a + i) Let's fix this. Change-Id: I24a5f70e8e8097f218d7cbdef8cb10df2c35416f
2018-03-14Transceiver.cpp: fix incorrect format string for SETTSCVadim Yanitskiy1-1/+1
Change-Id: If69a478121a31aa7df945548cc17271c476d6a6b
2018-03-14Transceiver.cpp: use pointer arithmetics for CMD parsingVadim Yanitskiy1-51/+64
It looks like the author of control command parsing code was not familar with simple pointer arithmetics, so excessive amount of memory and useless memcopying was used to parse a single command. Let's introduce two pointers, one of which will point to the beginning of a command, another to the beginning of its arguments. Also, let's simplify the command matching by using a separate function called 'MATCH_CMD'. Change-Id: I226ca0771e63228cf5e04ef9766057d4107fdd11
2018-03-14Transceiver.cpp: properly zero-terminate received commandsVadim Yanitskiy1-9/+9
Previously it was assumed that a sender should zero-terminate each command being sent. Otherwise, this could cause to printing garbage. Let's do this manually, using the length of received data as a position for '\0'. Change-Id: I69f413f33156c38a853efc5a8cdc66fbfb0ca6af
2018-03-14Transceiver.cpp: use a define for the MAX_PACKET_LENGTHVadim Yanitskiy1-2/+2
No need to keep this value on stack. Change-Id: If9ffb03b9e7b642f45732ba5938977bca271f1c7
2018-03-08Build Transceiver52M/common as an .la libPau Espin Pedrol5-14/+24
Stop picking files from that directory on different places as it causes dependency issues during make distclean/maintainer-clean. Fixes: OS#3029 Change-Id: I81bb4251d18fce978d27849b621b20f541caab0b
2018-03-07Makefile.am: Avoid using subdir if arch is not requiredPau Espin Pedrol3-5/+5
There's no need in going a level deeper if we already know nothing's going to be done. This way we also get cleaner make outputs. Reference: https://www.gnu.org/software/automake/manual/html_node/Conditional-Subdirectories.html#Conditional-Subdirectories Related: OS#3029 Change-Id: I3ff57ab14edc575904e8137929a0ef02c95e03af
2018-03-06osmo-trx: Re-introduce -l cmd line parameterPau Espin Pedrol1-1/+6
Parameter -l to set the terminal logging levle was removed in 3da1f8352e337fb032bf7a58c2909d3ba918e237, but afterwards it was decided to keep the cmd line options for a bit more to easy migration to VTY cfg. The command line no longer accepts keywords ("DEBUG", "INFO", etc.) but log level numbers, due to libosmocore APIs log_parse_level and log_level_str being marked as deprecated and for internal use only. Keep in mind the log level is overridden by VTY cfg if any line sets log levels for log stderr in there. Explicit cast to unsigned int for loglvel is issued to avoid iostream printing it as a char. Change-Id: I91c35ecded177b7976045d9b693855adb9e18f8a
2018-03-05osmo-trx: Use VTY cfg structures while still allowing cmd line optionsPau Espin Pedrol1-269/+187
Existing cmd line options are kept for a while to give people some time to move to use VTY cfg. All new cfg options should be set only through VTY. VTY options take preference (override) over cmd line options. Deprecated options are removed from help message to dissuade users from keep using them. Steps to drop cmd line options in the future: - Drop comma_delimited_to_vector, print_deprecated - Drop all options in handle_options marked with print_deprecated. - Set "-c" param to do the same as "-C", to keep compatibility with old param and still use same naming as all other osmocom projects. - Remove the hack in main() to set 1 channel implicitly by default. Change-Id: Ib8de1a5da4b3c0b6a49e00033f616e1d66656adf
2018-03-05doc: Add sample cfg file for LimeSDRPau Espin Pedrol1-0/+20
Change-Id: I16de70eac0fd79107b8317af37201e6da834c169
2018-03-05vty: Implement VTY cfg parsing for current parametersPau Espin Pedrol3-2/+469
At this stage, osmo-trx still uses the cmdline parameters top run the device, but it is already able to parse all the same parameters from a cfg file through the VTY and filling a trx_ctx structure which will be later used to drive the device. Device config can be printed in the VTY with "show trx". Change-Id: Ie084c1b30b63f91c6e7640832ec1797d9e813832
2018-03-05Move enums required by VTY to a separate headerPau Espin Pedrol6-41/+56
This patch is a preparation for next patches, which add full VTY cfg support. Change-Id: I3d5b0576aa96869756f1629a40306c0043b6304b
2018-03-05osmo-trx.cpp: Move trx start and stop to helper functionsPau Espin Pedrol1-52/+66
Make main() smaller, and make it easier to replace cmdline parameters in following commits. Change-Id: I10eaaafe38ace2b7bb095a0ad1db70d6c06ee03b
2018-03-02jenkins.sh: fix the download url if the qemu image wasn't setupAlexander Couzens1-1/+2
Download the image from yesterday because linuxcontainers only contains the images of the last 3 days. Change-Id: I75e270b7255c1cd7fca1674111b0f19fc7bba74f
2018-02-27Fix USRP1 build with support for setting Rx/TxAntennaAlexander Huemer1-0/+1
The USRP1 build was broken by commit 77ce99ac6720896f504a0581a5c57b2929a13cef. Commit 77ce99ac6720896f504a0581a5c57b2929a13cef broke the USRP1 build Change-Id: I28585947d5662cdd580a814cce54a5d9aa30eeb8
2018-02-27Logger: Use libosmocore logging systemPau Espin Pedrol8-192/+67
We still need an intermediate class Logger due to osmo-trx being multi-threaded and requiring to have a lock to use libosmocore, which is not thread safe. Change-Id: I30baac89f53e927f8699d0586b43cccf88ecd493
2018-02-27Add initial support for logging, vty, ctrlPau Espin Pedrol8-6/+269
Up to this point, the logging system, vty and ctrl are initialized and can be used fine, though they don't have a lot of use yet. Depends on libosmocore Change-Id Ib79cdb62d45d8c78445c7b064e58eb7e9faeccf9 Related: OS#2184 Change-Id: I08982c37b4f873966304b3cfb38a10ee86eb3dad
2018-02-26debian: Depend on libtalloc and libosmocorePau Espin Pedrol1-1/+3
Change-Id: If4bf03d164e9d19a8a21399a2c74b2984c48cc70
2018-02-22osmo-trx: Set up talloc ctxPau Espin Pedrol1-0/+14
Change-Id: I67f1980fc615ab74371cbe1c4f83e987381299bc
2018-02-22osmo-trx: set up signals using libosmocore helpersPau Espin Pedrol1-12/+20
Change-Id: I86e78cd6054d0deff1b1aa061299d9f307e2a352