Commit graph

87 commits

Author SHA1 Message Date
Robert Ghilduta
40762754d4 debian changelog 2022-04-03 19:39:10 -07:00
Robert Ghilduta
2f2549ee14 debian: add 2021.10 release 2022-04-03 19:39:10 -07: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
e09200c38e debian: update fpga and fx3 postinst 2021-02-16 00:57:35 -05:00
Robert Ghilduta
c56bc3264f debian: add 2021.03 release 2021-02-16 00:57:31 -05:00
Robert Ghilduta
3c362ee24e debian: update FX3 image postinst 2020-05-24 00:35:57 -05:00
Robert Ghilduta
b5b99f501e debian: update RBFs postinst 2020-05-24 00:11:58 -05:00
Robert Ghilduta
aa0df261a0 debian: add 2019.07 release 2019-08-02 01:38:38 -05:00
Rey Tucker
5f8d8bbfe8 bladeRF 2018.12-rc2 2018-12-21 17:47:47 -05:00
Rey Tucker
ecc8d6edfd debian: update pointers for fpga v0.10.2 2018-12-21 16:42:22 -05:00
Rey Tucker
48ec0a40a6
Move vendor library code for ad936x RFIC to /thirdparty; use git submodule (#689)
This PR creates a git submodule for the analogdevicesinc/no-OS code, moving it from host/libraries/libbladeRF/src/driver/thirdparty/adi/ to thirdparty/analogdevicesinc/no-OS and adjusting the build process accordingly.

The build process will handle the git submodule init / git submodule update as required, or it may be done manually before the build. It will then copy the necessary files to the build tree, apply a series of patches for local modifications, and then build it as libad936x.

There are no changes to the build steps, although the build will fail if git submodule init/update needs to happen but can't (e.g. if github is not reachable).

* thirdparty: add no-OS library submodule

Adds a submodule for https://github.com/analogdevicesinc/no-OS/, pinned
at commit 0bba46e.

* thirdparty: patch and build libad936x

Add cmake file for libad936x

Move our local mods into patch files

* host: libbladeRF: transition to libad936x

Transitions libbladeRF (particularly bladerf2.c) to use the libad936x
package, compiled separately.

This also adds ad936x.h, a driver header file that contains the
necessary things from libad936x.  This is cleaner than just importing
ad9361_api.h, due to the significant dependency/include challenges that
ensue...

* host: fix up libad936x build

Don't use ExternalProject, instead just add it as a subdirectory

Create a FindPatcher.cmake for the patch-or-git selector

Clean up and streamline the ad936x cmakelists

Clean up libbladeRF cmakelist formatting

* thirdparty: fix no-OS patch 0003

* host: ad936x: fixup build errors/warnings on macOS

* thirdparty/adi: patch to chop out ad9361_parse_fir

ad9361_parse_fir refers to sscanf, which is not readily available in the
Nios II library. We don't use this function, so it can go.

* libbladeRF: remove vestigial adi files

* debian: rm thirdparty ADI tree from license file

* host: thirdparty: fix git package handling

* host: thirdparty/ad936x: specify patches in order

It turns out that there's no guarantee that file(GLOB)
will output the patch files in the alphabetical order.

* Revert "debian: rm thirdparty ADI tree from license file"

This reverts commit 36cf335c0e.

* debian: update path in ADI copyright
2018-11-12 18:13:58 -05:00
Rey Tucker
db24d41023 bladeRF 2018.10-rc1
This release introduces new functionality and bug fixes, generally expanding
support for the bladeRF 2.0 Micro. It consists of the following versions:

    * FPGA bitstream                v0.9.0
    * FX3 firmware                  v2.3.1
    * libbladeRF                    v2.1.0
    * bladeRF-cli                   v1.7.0
    * MATLAB & Simulink bindings    v1.0.2
    * Python bindings               v1.1.0

Note to bladerf1 (x40/x115) users: AGC will not work with FPGA versions
older than v0.8.0, due to a change in the control register mapping. A warning
will be printed during device initialization if you are using an affected
FPGA version.

Summary of changes since 2018.08:

* FPGA
    - Support for the ADS-B core on bladeRF micro
    - Add metadata flags for miniexp{1,2} IO pin status
    - Fix race condition during FX3/Nios UART initialization
    - Fix bugs in bladeRF AGC control
    - Timing closure improvements
    - Build system fixes

* FX3
    - Fix USB device reset interrupting SPI flash autoloading of FPGA images
    - Add BLADE_USB_CMD_QUERY_FLASH_ID command
    - Add BLADE_USB_CMD_QUERY_FPGA_SOURCE command

* libbladeRF
    - API additions:
        - Add format macros for bladerf_frequency and bladerf_timestamp
        - Add 'manufacturer' and 'product' device description strings to
          bladerf_devinfo struct
        - Add bladerf_get_serial_struct() API function
        - Add bladerf_get_flash_size() API function
        - Add bladerf_trigger_signal values for J51-1 (bladerf2) and Miniexp-1
          (generic)
        - Add bladerf_get_fpga_source() API function
        - Add meta RX hardware flags for underflow, miniexp{1,2}
    - Fixes:
        - bladerf2: support TX frequencies down to 47 MHz
        - bladerf2: support sample rates down to 0.521 Msps
        - bladerf1: fix BLADERF_GPIO_AGC_ENABLE
        - bladerf2: fix bladerf_trigger_arm implementation
        - streaming: extend USB transfer timeout to match the configured stream
          timeout
    - Misc:
        - Install the doxygen docs, if generated
        - Adjust RX gain mode lists for clarity
        - bladerf1: implement bladerf_{get,set}_rf_port[s]
        - bladerf1: skip initialization if BLADERF_FORCE_NO_FPGA_PRESENT is set

* bladeRF-cli
    - Add libedit support
    - Ensure device is initialized after deferred open
    - info: display manufacturer, product, flash size
    - print: show RF routing on bladerf1
    - print: display supported ranges for sample rate, bandwidth, frequency
    - probe: handle already-open devices
    - version: display FPGA configuration source

* MATLAB & Simulink bindings
    - Add missing BB_TXVGA1_RXLPF loopback option
    - Fix tx_gain property handling in simulink

* Python
    - Fix rx_channel_count, tx_channel_count
    - Update with latest API functions

* Windows installer
    - install-drivers: install a driver for the bootloader VID/PID (04b4:00f3),
      allowing easier FX3 bootloader recovery operations
    - Upgrade to libusb 1.0.22
2018-10-30 17:12:29 -04:00
Rey Tucker
d69b71f396 debian: update firmware pointer to v2.3.1 2018-10-30 15:24:54 -04:00
Rey Tucker
238ac3a8e7 debian: update FPGA pointer v0.8.0 -> v0.9.0 2018-10-30 15:23:35 -04:00
Rey Tucker
601d8fe9e6 debian: update FPGA 0.7.3 -> 0.8.0 2018-09-12 19:15:14 -04:00
Rey Tucker
6b7d311e71 debian: add libbladerf-doc package
Create a libbladerf-doc package which installs the doxygen-generated
documentation.
2018-09-04 12:42:26 -04:00
Rey Tucker
ddbe087df6 debian: typo fix on model names 2018-08-30 18:46:35 -04:00
Rey Tucker
32058c4726 bladeRF 2018.08
This release introduces new functionality and bug fixes, particularly support
for the bladeRF 2.0 Micro product. It consists of the following versions:

    * FPGA bitstream                v0.7.3
    * FX3 firmware                  v2.2.0
    * libbladeRF                    v2.0.2
    * bladeRF-cli                   v1.6.1
    * MATLAB & Simulink bindings    v1.0.1
    * Python bindings               v1.0.1

*****************************************************************************
***      libbladeRF v2.0 introduces a number of breaking changes !!       ***
*****************************************************************************
*** Please see relnotes_2_0 in the Doxygen documentation for a full       ***
*** discussion of the changes in libbladeRF v2.0.                         ***
*****************************************************************************

Summary of changes since 2016.06:

* FPGA
    - Added support for Automatic Gain Control
    - Redesign build system to support multiple product models
    - Initial release with bladeRF Micro support
    - Refactoring, bug fixes, and other misc. improvements

* FX3
    - Add support for the bladeRF 2.0 (2cf0:5250).
    - Fix loading FPGA bitstreams from flash when there is nothing connected to
      the USB connector.
    - Move USB descriptor consts to .usbdscr section so the linker glomps them.

* libbladeRF
    - Added support for Automatic Gain Control
    - Added bladeRF.conf config option file
    - Refactor to support for multiple product lines
    - Add support for the bladeRF Micro product
    - API: replace bladerf_module with bladerf_channel, a reverse-compatible
      change to handle products with multiple independent RF paths in the same
      direction
    - API: BREAKING CHANGE - on bladerf_set_frequency, et al, the frequency
      parameter is now uint64_t instead of unsigned int
    - Add typedefs for common param types, e.g. bladerf_frequency -> uint64_t

* bladeRF-cli
    - Added support for Automatic Gain Control
    - No longer initializes the bladeRF before loading a new FPGA image, to
      avoid potential catch-22 problems
    - bladeRF 2.0 Micro support
    - Support for MIMO RX and TX using "channel=" parameter on rx/tx config
    - Various code quality fixups

* MATLAB & Simulink bindings
    - Add support for bladeRF 2.0 (Micro) products
    - Change "not supported" (-8) library errors to Matlab warnings
      temporarily, to permit some grace while others' scripts are updated.
    - Update bladeRF_XCVR to use new unified gain control
    - Add bladeRF_Misc for misc measurements and controls
    - Update bladeRF_rx_gui to support unified gain
    - Update Simulink block to match libbladeRF v2.0.0

* Python
    - New in 2018.08
2018-08-30 18:09:11 -04:00
Rey Tucker
3e2dc30d04
debian: update packaging files (#596)
Updates control file version from 3.9.5 to 4.1.4.

Replaces http: URLs with https: URLs where applicable.

Updates copyright file to match restructuring in libbladeRF 2.

Include COPYING and legal/* files when installing docs.

Fix maintainer name :)
2018-08-30 17:28:01 -04:00
Rey Tucker
4bcdd6ec53 debian: minor typo fixes in control file 2018-08-24 16:43:53 -04:00
Rey Tucker
3584d261ca bladeRF 2018.08-rc3
--------------------------------------------------------------------------------
 2018.08-rc3 (2018-08-24)
--------------------------------------------------------------------------------

Bugfix release candidate.

    * FPGA bitstream                v0.7.3
    * FX3 firmware                  v2.2.0
    * libbladeRF                    v2.0.1
    * bladeRF-cli                   v1.6.1
    * MATLAB & Simulink bindings    v1.0.1
    * Python bindings               v1.0.1

libbladeRF v2.0.1:
 * Detect and handle a bladeRF Micro that is running old firmware to allow
   re-flashing without recovery mode (#578)
 * bladeRF1: bladerf_set_gain_mode returning BLADERF_ERR_UNSUPPORTED is no
   longer fatal (#542)
 * bladeRF1: only check AGC DC LUT setting when enabling AGC
 * bladeRF1: typo fix in set_tx_gain (#580)
 * xb200: check for null xb_data before dereferencing it (#575)
 * bladeRF2: cache factory trimdac value at initialization; preserve trimdac
   disable state on bladerf2_trim_dac_write (#582)
 * bladeRF2: bladerf_clock_select: replace CLOCK_SELECT_VCTCXO with
   CLOCK_SELECT_ONBOARD for clarity (#585)
 * Improvements to the release notes (#583)
 * bladeRF-cli: Add 200 ms delay before probing PLL lock status (#587)
 * Windows: add a nanosleep() shim (#589)

bladeRF-cli v1.6.1:
 * "set loopback" help dialog aware of board type (#566)
 * host: libbladeRF: Rename clock select option
 * host: bladeRF-cli: Add 200 ms delay before probing PLL lock status (#587)
 * host: add nanosleep shim for Windows (#589)

MATLAB v1.0.1:
 * host: libbladeRF: Rename clock select option

Python v1.0.1:
 * host: libbladeRF: Rename clock select option
2018-08-24 16:22:13 -04:00
Rey Tucker
3f1db3ddba debian: add changelog entry for 2018.08-rc2 2018-08-16 19:56:02 -04:00
Rey Tucker
9d381a5be5 debian: lower-case the new FPGA package names (#570) 2018-08-16 02:04:55 -04:00
Rey Tucker
0fee2fa5bf debian: fix checksum of firmware image file (#568)
closes #568
2018-08-16 02:01:30 -04:00
Rey Tucker
3a1f80a260 debian: update changelog for 2017.12-rc1 and 2018.08-rc1 2018-08-15 21:16:50 -04:00
Rey Tucker
5362634aa6 debian: update for libbladeRF 2.0, new FPGA series 2018-08-15 21:02:01 -04:00
Rey Tucker
134ae20216 debian: update for firmware v2.2.0 2018-08-07 18:09:25 -04:00
Rey Tucker
3c8990ee62 debian: update FPGA images to 0.7.3 2018-08-07 17:48:18 -04:00
Ryan Tucker
8b19754b3f Update copyright date ranges to include 2017 2017-12-21 12:55:05 -05:00
Rey Tucker
70537aa0df debian: update FPGA pointers for fpga_v0.7.1 2017-12-08 13:21:18 -05:00
Rey Tucker
c66d7fe4d1 debian: update changelog w/r/t this fix 2017-07-25 15:51:18 -04:00
Rey Tucker
3b7b96055c debian: chmod 0444 downloaded fpga/fw images
The mktemp/wget workflow creates the data files chmod 0600, which breaks
loading of firmware for non-root users.  Explicitly chmod 0444 to allow
all users to read.
2017-07-25 15:07:54 -04:00
Robert Ghilduta
77c4c1b750 2017.07 release changelog 2017-07-06 08:27:47 -07:00
Oliver Jowett
00a83b8c6b Document why postinst should succeed if the FPGA download fails 2017-07-05 08:58:17 -07:00
Oliver Jowett
2fea0c78da Don't make postinst fail entirely (producing half-configured packages and
making the overall install operation fail) if the FPGA download fails.

(cherry picked from commit 13befc071b3cddb913ce961c3cd7b08216bba2e5)
2017-07-05 08:58:17 -07:00
Jon Szymaniak
ab12ebd3fb bladeRF 2016.06 release 2016-06-29 17:24:49 -04:00
Jon Szymaniak
a865682aca debian: Updated FX3 FW and FPGA bitstream post-install scripts 2016-06-29 16:45:06 -04:00
Ryan Tucker
25b463fcc7 debian: check for valid bitstream download
Don't overwrite the existing file if the new file fails
the md5sum test.
2016-02-13 12:38:32 -05:00
Ryan Tucker
54ce13ab13 debian: don't clobber rbf/img files on failed dl (#454)
If wget fails, it's clobbering the FPGA/firmware storage
in /usr/share/Nuand/bladeRF, leading to terrible results.

Download to a temp file, then copy that if wget was
successful.

An MITM where a trusted proxy is frobulating HTTPS is
still possible; checking the md5sum again is probably
a great idea.
2016-02-13 12:17:37 -05:00
Jon Szymaniak
35802e3e1b debian/changelog: Added missing distribution 2016-01-07 20:25:10 -05:00
Jon Szymaniak
9a2b6d8b1f bladeRF 2016.01-rc1 release 2016-01-07 17:04:10 -05:00
Ryan Tucker
8434f687c1 debian: firmware to v1.8.1, fpga to v0.4.1 2015-11-19 13:50:17 -05:00
Jon Szymaniak
c917d33dbc Updated top-level CHANGELOG and debian/changelog for 2015.07 release 2015-07-25 16:47:45 -04:00
Josh Blum
0f9900336c cmake, debian: Override CMAKE_INSTALL_LIBDIR with dpkg-architecture value
It looks like GNUInstallDirs, which determines CMAKE_INSTALL_LIBDIR, was
not working on Ubuntu 12.04.

This change introduces the use of a CMAKE_INSTALL_LIBDIR override, and
uses this in debian/rules to specify the value extracted from
dpkg-architecture.
2015-07-21 12:11:50 -04:00
Ryan Tucker
23c62d0d3d fixup debian/changelog
Bring 2015.02 entry back, run through dch to bump timestamp
and clean up formatting.

stray lines wander in
entire revisions gone
there's an app for this
2015-07-01 20:12:21 -04:00
Jon Szymaniak
0fe4e0266b debian/changelog: Fixed stray line 2015-06-30 22:12:50 -04:00
Jon Szymaniak
b6cf480fcd Updated top-level CHANGELOG and debian/ for 2015-06-RC1 release 2015-06-30 19:56:40 -04:00
Jon Szymaniak
f18831594c Updated top-level CHANGELOG and debian/changelog for 2015.02 release 2015-02-28 16:26:31 -05:00
Jon Szymaniak
4e78b0596f Updated top-level CHANGELOG and debian/changelog for 2015.01-rc2 release 2015-01-31 17:05:59 -05:00
Jon Szymaniak
66ee549790 Updated top-level CHANGELOG and debian/changelog for 2014.12-rc1 release 2014-12-23 14:09:06 -05:00