Commit graph

49 commits

Author SHA1 Message Date
Ryan Thompson
15b7d9c3b6 host: squashed cmake warnings
updated cmake requirement from 2.8 to 2.8.12
2023-02-13 03:28:19 -08:00
Robert Ghilduta
7740242c7b add bladeRF 2.0 micro xA5 support to libbladeRF and FPGA 2022-04-03 19:39:10 -07:00
Robert Ghilduta
1ad47b96ee docker: add focal and eoan Dockerfiles 2020-05-24 00:11:52 -05:00
Robert Ghilduta
055c7dfb29 docker: add recent distribution 2019-08-02 01:39:16 -05:00
Brian Glod
b2f3072060 host/windows/build: Add '--recursive' to git clone
The --recursive option also fetches all submodules.
2018-12-11 17:24:24 -05:00
Brian Glod
efe4a32707 host/arch/PKGBUILD: Add '--recursive' to git clone
The --recursive option also fetches all submodules.
2018-12-11 17:23:59 -05:00
Rey Tucker
5077b6d0c5 host: udev: split up rules files by hardware platform
The underlying driver for this: Debian/Ubuntu's libbladerf1
package installs the udev rules itself, instead of having a
separate libbladerf-udev package like our PPA does. So,
having libbladerf1 installed creates a conflict with installing
libbladerf2, which is not good.

End result is that we either need to conflict libbladerf1, or
put the udev rules from libbladerf-udev somewhere else, and
there are fewer side effects with the latter option.
2018-12-07 17:43:20 -05:00
Rey Tucker
e098b3c1a5 host: docker: quality-of-life tweaks
freshen now cleans up old containers

parallel build temp dir has a template
2018-11-12 16:12:00 -05:00
Rey Tucker
4a61cfb568 docker: add opensuse-latest build test 2018-10-31 16:43:17 -04:00
Rey Tucker
98414e862b docker: allow specifying targets, omitting _base 2018-10-31 16:42:55 -04:00
Rey Tucker
adf4ebbc5b docker: add builds for ubuntu:cosmic 2018-09-12 17:20:54 -04:00
Rey Tucker
981ba75102 docker: allow build.sh to build the _base image 2018-09-12 17:20:54 -04:00
Rey Tucker
7fea96a88b docker: use libedit for centos/fedora builds 2018-09-05 12:34:22 -04:00
Rey Tucker
85fd6da22a
host: fix builds on 32-bit platforms (#573)
Builds were failing in various ways on 32-bit platforms, due to various assumptions (and the fact that pretty much everything is 64-bit nowadays). This PR should fix all of them so that it builds clean.

* host: libbladeRF/thirdparty/adi: fix build error on 32-bit systems

sizeof(void*) is not necessarily equal to sizeof(uint64_t)

* host: libbladeRF/doc: fix 32-bit build failure on doc example

sizeof(size_t) does not always equal sizeof(uint64_t)

* host: docker: remove centos-7-i386 build

it doesn't work, and this is an edgy-enough case that i think we'll be
okay with the ubuntu i386 builds

* host: libbladeRF/bladerf2: explicitly note constant types

On non-64-bit platforms, these integer constants can be ambiguous, which
throws compiler warnings.

* host: libbladeRF_test: explicitly note constant types

On non-64-bit platforms, these integer constants can be ambiguous, which
throws compiler warnings.
2018-08-16 18:57:52 -04:00
Rey Tucker
f918ea49e1
host: docker: fixes for non-linux systems (e.g. macos) (#574)
Gracefully handle situations where there's no nproc command or /proc/loadavg file when doing parallel builds.
2018-08-16 18:49:32 -04:00
Rey Tucker
e958cf154a host: docker: add i386 tests 2018-08-16 02:30:42 -04:00
Rey Tucker
92a9e6bf12 host: docker: build optimization, add automated test script (#37)
* host: docker: clean up the base build process a bit

* host: docker: reduce build context size

We don't need the entire tree (since the _base image has that), so we
can just build from the same dir as the Dockerfile and not transfer
everything to the daemon over and over again.

* host: docker: WIP: script for automated Dockerized testing

* host: docker: use git clean when building base image

* host: docker: add script to automatically freshen base images

* host: docker: auto-detect build dir when testing

* host: docker: build arg for make -j parameter

* host: docker: refactor build script

* host: docker: add parallel run script

* host: docker: adjust make -j settings for builds

* host: docker: test: WIP commit

* host: docker: add usb product check, rfic loopback only for micros

* host: docker: copy the FPGA images from the base
2018-05-22 13:00:21 -04:00
Rey Tucker
c14ec8d042
host: misc: general docker build improvements (#22)
- new build distinguishers:
  - compiler: gcc or clang
  - buildtype: Release or Debug
  - taggedrelease: NO or YES

- add com.nuand.ci.* labels for image metadata

- create a base image with a pruned checkout, to reduce disk consumption
  and to snapshot the working directory's state at the start of a build
  spree

- add -j$(nproc) to the make invocation

- reorganize Dockerfiles to improve build cache hits

- build.bash: iterate over rel, compiler, and buildtype, for a
  combination of 6 builds per distro version

- build.bash: general restructuring for DRY
2018-04-03 18:21:05 -04:00
Brian Glod
a8b283d2f0 host: misc: Add Python file conversion scripts
Add two Python scripts to convert between SC16Q11 binary and ASCII CSV.
2018-04-03 16:45:20 -04:00
Rey Tucker
fba7d40ba6 host: misc: add Dockerfiles for multi-distro test builds (#552)
* host: misc: add Dockerfiles for multi-distro test builds

It is now possible to perform test builds automatically across various
releases of Arch, CentOS, Debian, Fedora, and Ubuntu with:

bash host/mis/docker/build.bash

* host: docker: fix ld.so.conf for centos-7
2018-03-30 14:05:15 -04:00
Robert Ghilduta
d2c0e55be6 Add bladeRF2.0's USB PID to udev rules 2017-12-21 12:54:56 -05:00
Rey Tucker
18568ab51d host: misc/arch: update destdir for file search paths
file_ops.c looks in /usr/share/Nuand/bladeRF, so if we put the files
there, it can auto-load.
2017-12-08 13:31:20 -05:00
Rey Tucker
e4efdca3a4 host: misc/arch: update for FPGA v0.7.1, fw v2.0.0 2017-12-08 13:29:47 -05:00
Rey Tucker
037e2886f2 udev: fix CMakeLists syntax error (#509) 2017-08-01 15:29:56 -04:00
Ian Frasch
d7b7eb3d15 host/misc/matlab: Fixed clamping on q samples.
Range should be [-2048,2047].
2016-06-06 11:30:14 -04:00
Jon Szymaniak
9f59594c63 udev: Updated udev rules to include new VID/PID 2016-04-06 23:22:39 -04:00
Jon Szymaniak
9b143d2d03 host/misc: Fixed incorrect clamping in save_sc16q11.m script 2015-12-10 16:07:44 -05:00
Jon Szymaniak
91b5c474da lms: Further relaxed VCO4 upper limit
We were still seeing some boards that wind up a bit too near the
upper edge of the VCO4 range. This change resolves this on the boards
we've tested.
2015-08-25 13:28:05 -04:00
Jon Szymaniak
d919a173be lms: Adjusted upper limit of VCO4 range
With the addition of a warning to the lms.c code, we've been seeing
some codes hit a max VCOCAP value before hitting a VCO limit, indicating
that we're too close to the edge of a band.
2015-08-25 13:28:05 -04:00
Jon Szymaniak
cddfaf4f5f host/misc/matlab: Added load/save_grcomplex.m 2015-07-08 13:00:28 -04:00
Jon Szymaniak
c6fb26e203 host/misc/matlab: Corrected indexing
This worked, but wasn't technically correct.
2015-07-08 13:00:28 -04:00
Jon Szymaniak
a9b90f6bd3 lms: Fixed VCO4 limit that was yielding bad VCOCAP values
This change ensures we are able to hit VCO_LOW on the upper
range of VCO4 (as verified by a handful of boards).
2015-06-18 18:34:29 -04:00
Jon Szymaniak
f4badb2e44 host/misc/matlab: Touched up load/save_sc16q11 routines
Use j instead of i for consistency.

Clamp values when saving file.
2015-04-18 16:39:48 -04:00
Jon Szymaniak
2c4c839fa7 host/misc/matlab: Added load/save_csv routines 2015-04-18 16:36:04 -04:00
Jon Szymaniak
485612caab host/misc/scripts: Added MATLAB scripts to load/save samples 2015-03-24 23:26:32 -04:00
Jon Szymaniak
ee2a6c32ab libbladeRF: Updated LMS FREQSEL table to avoid PLL instability
Some of the changes in the table entry occur close to the end of
a VCO's freq range (per the plot in the LMS6002D FAQ, section 5.24).

As such, it was observed that the PLLs could lose lock over temperature
fluctuations.

The table entries have been updated and made more conservative with
respect where the VCO selection and/or divider ("FREQRANGE") change is
made.

Additionally, the table format has been changed to make it clear which
VCO and associated divider is being used.

A big thanks goes out to the Yate.ro team for their efforts in
identifying and resolving PLL instability issues.
2015-03-19 13:09:00 -04:00
Jon Szymaniak
41e3427ed1 host/misc: Added a Windows build script 2014-07-22 02:10:04 -04:00
Jon Szymaniak
0b139ca2bb host: Added UDEV_RULES_PATH CMake option
This allows alternative paths, such as /usr/lib/udev/rules.d, to be
specified.
2014-07-04 11:11:06 -04:00
Jon Szymaniak
74980ad1e6 udev: Default install option to sane default (Linux=ON, else=FALSE)
This fixes issues #145.
2013-10-21 23:32:59 -04:00
Jon Szymaniak
6343982cd6 cmake: Copyright/attibution cleanup
Most of these files had inaccurate copy-paste headers, as the files are
now vastly different than those mentioned. These will all just fall under
the "meta-data" category in upcoming licenses.

Per discussion with FindLibBladeRF.cmake author, the text in
FindLibTecla.cmake was unnecessary, and has been removed.
2013-10-21 21:00:15 -04:00
Jon Szymaniak
46c30d12df misc: Group associated with device in udev rule is now configurable
This is simpler than trying to automagically detect and choose
a default for the myriad of distros, and should hopefully avoid
confusion.
2013-10-19 11:01:20 -04:00
Nuand
16e65c7273 Corrected bootloader PID. 2013-10-16 23:51:24 -04:00
Keith Rothman
d36f91cb7d Initial JUMP_TO_BOOTLOADER support
- Added method to libbladeRF
 - Added new VID/PID pair to udev rule to prevent requiring root access
 - Added jump_to_boot bladeRF-cli command
 - Fixed most warnings in FX3 firmware
2013-09-15 05:32:04 +00:00
Keith Rothman
1c4fa232eb [libbladeRF/bladeRF-cli] Added support booting directly from the FX3 bootloader 2013-09-15 05:31:57 +00:00
Guido Paliot
80a66e9f48 PKGBUILD scripts for Arch Linux AUR 2013-09-05 22:30:06 +02:00
Jon Szymaniak
b6453c1305 udev: Single rule for both libusb and Linux driver-based support. 2013-08-22 21:26:22 -04:00
Jon Szymaniak
2c00ef3894 udev: For *nix hosts, udev rule installation is enabled by default. 2013-08-22 21:14:42 -04:00
Jon Szymaniak
df05b174ec libbladeRF & bladeRF-CLI: Fixed build issues. Moved backend config info.
From henceforth, all backend selection should live in the
backend_config.h.in file, so backend.c or backend.h doesn't get muddied
with #ifdef's.
2013-08-13 23:44:42 -04:00
Jon Szymaniak
96618b8479 udev_rules: bladeRF rules that should have been in previous commit 2013-08-13 01:33:28 -04:00