Package: bladerf / 0.2017.12~rc1-2

Metadata

Package Version Patches format
bladerf 0.2017.12~rc1-2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 fx3 fix cmake invocation in README.md.patch | (download)

fx3_firmware/README.md | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 [patch 01/15] fx3: fix cmake invocation in readme.md

The cmake invocation was incorrect and pointed at a non-existant
filename.

Initial report: https://nuand.com/forums/viewtopic.php?f=4&t=3977

0003 host misc arch update for FPGA v0.7.1 fw v2.0.0.patch | (download)

host/misc/arch/bladerf-util-git/PKGBUILD | 14 7 + 7 - 0 !
1 file changed, 7 insertions(+), 7 deletions(-)

 [patch 03/15] host: misc/arch: update for fpga v0.7.1, fw v2.0.0


0004 host misc arch update destdir for file search paths.patch | (download)

host/misc/arch/bladerf-util-git/PKGBUILD | 12 6 + 6 - 0 !
1 file changed, 6 insertions(+), 6 deletions(-)

 [patch 04/15] 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.

0005 host libbladeRF doxygen fix dependencies for rebuild.patch | (download)

host/libraries/libbladeRF/CMakeLists.txt | 12 10 + 2 - 0 !
1 file changed, 10 insertions(+), 2 deletions(-)

 [patch 05/15] host: libbladerf: doxygen: fix dependencies for rebuild

Previously, cmake would only rebuild the doxygen output if libbladeRF.h
or the Doxyfile itself changed. Now, it will be rebuilt if any of the
examples, long-form documentations, or images change as well.

0006 host libbladeRF fix line endings on libusb.c log msg.patch | (download)

host/libraries/libbladeRF/src/backend/usb/libusb.c | 8 4 + 4 - 0 !
1 file changed, 4 insertions(+), 4 deletions(-)

 [patch 06/15] host: libbladerf: fix line endings on libusb.c log msgs


0007 Fix wrong usage of str2bool.patch | (download)

host/libraries/libbladeRF/src/config.c | 6 3 + 3 - 0 !
1 file changed, 3 insertions(+), 3 deletions(-)

 [patch 07/15] fix wrong usage of str2bool

This leads to AGC being disabled on every call of bladeRF-cli.
Please see https://github.com/Nuand/bladeRF/blob/master/host/utilities/bladeRF-cli/src/cmd/xb300.c#L117 for the proper usage.

I'm not sure if only checking LSB is the proper way to do it, as val (uint32_t) is uninitialized and str2bool sees it as bool (on my machine "off" is 2048 and "on" is 2049), but it would even work if those "else if's" are being
reordered, thus initialized by something else to a non-zero value, or you could zero it right before the str2bool call.
The printf call might not be needed anymore.

Notes:
With the latest changes in kalibrate-bladeRF (add win32 support), changing the buffer sizes of m_x_cb, m_y_cb, m_e_cb, the results of the program look even more odd. Were those changes intended? Either the outputs are correct
before and after the patch, or one BTS has the worst clock in history. I think it's the second one.
With the latest FPGA change (0.7.0 -> 0.7.1, using edge_detector instead of pulse_gen), even setting the sample rate can sometimes lead to a failure. (At least on my board, only shortly after power-on)

Have a nice weekend!

Signed-off-by: Christian Inci <chris.gh@broke-the-inter.net>

0008 host libbladeRF Add documentation and test program f.patch | (download)

host/libraries/libbladeRF/doc/doxygen/configfile.dox | 185 185 + 0 - 0 !
host/libraries/libbladeRF/doc/doxygen/mainpage.dox | 3 3 + 0 - 0 !
host/libraries/libbladeRF/doc/examples/example_bladeRF.conf | 45 45 + 0 - 0 !
host/libraries/libbladeRF/src/config.c | 4 2 + 2 - 0 !
host/libraries/libbladeRF_test/CMakeLists.txt | 1 1 + 0 - 0 !
host/libraries/libbladeRF_test/test_config_file/CMakeLists.txt | 43 43 + 0 - 0 !
host/libraries/libbladeRF_test/test_config_file/src/main.c | 375 375 + 0 - 0 !
7 files changed, 654 insertions(+), 2 deletions(-)

 [patch 08/15] host: libbladerf: add documentation and test program
 for config file handling (#539)

* host: libbladeRF: fix typo of "bandwidth" cfg file key

* host: libbladeRF: add documentation for config files

* host: libbladeRF: config.c: minor typo fix

* host: libbladeRF_test: add test case for config file parsing

0009 libbladeRF remove spurious printf.patch | (download)

host/libraries/libbladeRF/src/config.c | 1 0 + 1 - 0 !
1 file changed, 1 deletion(-)

 [patch 09/15] libbladerf: remove spurious printf


0010 host libbladeRF config.c fix type error 544 545.patch | (download)

host/libraries/libbladeRF/src/config.c | 9 6 + 3 - 0 !
1 file changed, 6 insertions(+), 3 deletions(-)

 [patch 10/15] host: libbladerf/config.c: fix type error (#544) (#545)


0011 host libbladeRF_test win32 fixes for test_config_fil.patch | (download)

host/common/include/host_config.h.in | 6 6 + 0 - 0 !
host/common/include/windows/mkdtemp.h | 59 59 + 0 - 0 !
host/common/src/windows/mkdtemp.c | 250 250 + 0 - 0 !
host/libraries/libbladeRF_test/test_config_file/CMakeLists.txt | 30 23 + 7 - 0 !
host/libraries/libbladeRF_test/test_config_file/src/main.c | 64 55 + 9 - 0 !
5 files changed, 393 insertions(+), 16 deletions(-)

 [patch 11/15] host: libbladerf_test: win32 fixes for test_config_file
 (#546)

* host: common: add mkdtemp implementation for Win32

Windows does not have mkdtemp, which is something used by at least one
test case. This is a simple-enough implementation thereof.

* host: common/host_config: add more defs on Win32

chdir, getcwd, rmdir, unlink, and mkdir are all somewhat special on
Win32, so they need special handling.

* host: test_config_file: fix builds on Win32

0012 Fix mutex handling for Windows in libusb backend. 55.patch | (download)

host/libraries/libbladeRF/src/backend/usb/libusb.c | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

 [patch 12/15] fix mutex handling for windows in libusb backend.
 (#550)

Calling ReleaseMutex without CloseHandle will let the mutex still exist until the process exists.
In such scenario, further calls to CreateMutex will succeed but GetLastError will return 183 (ERROR_ALREADY_EXISTS) causing libbladerf to fail opening the device. This can be assessed by running ```libbladeRF_test_open.exe -c 2 -v debug```.

Cypress backend is not affected as it systematically closes the handle after releasing the mutex.

0013 host libbladeRF_bindings matlab update libbladeRF_pr.patch | (download)

host/libraries/libbladeRF_bindings/matlab/libbladeRF_proto.m | 509 318 + 191 - 0 !
1 file changed, 318 insertions(+), 191 deletions(-)

 [patch 13/15] host: libbladerf_bindings: matlab: update
 libbladeRF_proto.m (#547)

* libbladeRF/matlab: change win64 bool type (#543)

This should fix an error in recent Thunk builds.  I am not sure what the
side effects of this will be (esp. with older Matlab versions) but this
seems to work now.

* host: libbladeRF_bindings: re-sort libbladeRF_proto.m to match recent MATLAB output

* host: matlab: update for libbladeRF 1.9.0

Add a few missing functions:

 bladerf_set_gain_mode
 bladerf_get_gain_mode
 bladerf_set_smb_mode
 bladerf_get_smb_mode
 bladerf_trigger_init
 bladerf_trigger_arm
 bladerf_trigger_fire
 bladerf_trigger_state
 bladerf_set_vctcxo_tamer_mode
 bladerf_get_vctcxo_tamer_mode
 bladerf_xb300_set_trx
 bladerf_xb300_get_trx
 bladerf_xb300_set_amplifier_enable
 bladerf_xb300_get_amplifier_enable
 bladerf_xb300_get_output_power
 bladerf_get_fw_log
 bladerf_init_stream
 bladerf_stream
 bladerf_submit_stream_buffer
 bladerf_submit_stream_buffer_nb
 bladerf_deinit_stream
 bladerf_read_trigger
 bladerf_write_trigger

Add a few missing structs and enums, related to above

Also remove the bool_ret/bool_arg vars, as they aren't really needed any
more.

* host: matlab: fixup uint64s, cleanup

Removed the 'pathsep' from the architecture case, since it's seemingly
set by matlab itself

Not pre-allocating ival, to avoid having to count that high

* host: matlab: comment out stream-related protos

Matlab doesn't support FcnPtrs (bladerf_stream_cb) or voidPtrPtrPtr
(void***), so bladerf_init_stream is not usable.  If bladerf_init_stream
isn't usable, then anything involving struct bladerf_stream isn't
usable.

0014 host test fix compile errors on test_config_file 551.patch | (download)

host/libraries/libbladeRF_test/test_config_file/src/main.c | 17 12 + 5 - 0 !
1 file changed, 12 insertions(+), 5 deletions(-)

 [patch 14/15] host: test: fix compile errors on test_config_file
 (#551)

On older compilers, 'for' loop initial declarations are not allowed by
default. So, use the old style for maximum compatibility.

h/t Christophe Devine

0015 host misc add Dockerfiles for multi distro test buil.patch | (download)

host/misc/docker/README.md | 54 54 + 0 - 0 !
host/misc/docker/archlinux.Dockerfile | 54 54 + 0 - 0 !
host/misc/docker/build.bash | 66 66 + 0 - 0 !
host/misc/docker/centos-7.Dockerfile | 69 69 + 0 - 0 !
host/misc/docker/debian-jessie.Dockerfile | 57 57 + 0 - 0 !
host/misc/docker/debian-stretch.Dockerfile | 57 57 + 0 - 0 !
host/misc/docker/fedora-latest.Dockerfile | 70 70 + 0 - 0 !
host/misc/docker/ubuntu-artful.Dockerfile | 57 57 + 0 - 0 !
host/misc/docker/ubuntu-bionic.Dockerfile | 57 57 + 0 - 0 !
host/misc/docker/ubuntu-trusty.Dockerfile | 57 57 + 0 - 0 !
host/misc/docker/ubuntu-xenial.Dockerfile | 57 57 + 0 - 0 !
11 files changed, 655 insertions(+)

 [patch 15/15]  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

spelling | (download)

host/common/include/dc_calibration.h | 2 1 + 1 - 0 !
host/libraries/libbladeRF/src/backend/usb/libusb.c | 4 2 + 2 - 0 !
host/libraries/libbladeRF/src/bladerf.c | 2 1 + 1 - 0 !
host/libraries/libbladeRF/src/bladerf_priv.h | 2 1 + 1 - 0 !
host/libraries/libbladeRF_bindings/matlab/CHANGELOG | 2 1 + 1 - 0 !
host/utilities/bladeRF-cli/src/cmd/doc/cmd_help.h.in | 8 4 + 4 - 0 !
host/utilities/bladeRF-cli/src/cmd/doc/cmd_help.man.in | 8 4 + 4 - 0 !
host/utilities/bladeRF-cli/src/cmd/doc/interactive-help.md | 8 4 + 4 - 0 !
host/utilities/bladeRF-cli/src/cmd/rxtx.c | 2 1 + 1 - 0 !
host/utilities/bladeRF-cli/src/input/input.h | 2 1 + 1 - 0 !
10 files changed, 20 insertions(+), 20 deletions(-)

 spelling


debian kfreebsd | (download)

host/cmake/modules/FindLibUSB.cmake | 19 8 + 11 - 0 !
host/libraries/libbladeRF/CMakeLists.txt | 5 3 + 2 - 0 !
host/libraries/libbladeRF/src/backend/usb/libusb.c | 5 5 + 0 - 0 !
3 files changed, 16 insertions(+), 13 deletions(-)

 handle debian kfreebsd architecture.
try hurd build | (download)

host/CMakeLists.txt | 2 2 + 0 - 0 !
host/cmake/modules/FindLibUSB.cmake | 2 1 + 1 - 0 !
2 files changed, 3 insertions(+), 1 deletion(-)

 try hurd build

Debian builds on GNU hurd-i386.


update bladerf udev rules | (download)

host/misc/udev/88-nuand.rules.in | 6 3 + 3 - 0 !
1 file changed, 3 insertions(+), 3 deletions(-)

---