Skip to content

Commit

Permalink
host: libbladeRF: temporary workaround for A9s
Browse files Browse the repository at this point in the history
To use an A9 board, simply:

BLADERF_FORCE_FPGA_A9=1 bladeRF-cli -i

(this is only important for the FPGA bitstream load after power-on)
  • Loading branch information
rtucker committed May 22, 2018
1 parent c456c88 commit a16a670
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion host/libraries/libbladeRF/src/board/bladerf2/bladerf2.c
Expand Up @@ -1298,7 +1298,13 @@ static int bladerf2_open(struct bladerf *dev, struct bladerf_devinfo *devinfo)

/* Get FPGA size */
/* TODO: Actually get FPGA size from flash */
board_data->fpga_size = BLADERF_FPGA_A4;
if (getenv("BLADERF_FORCE_FPGA_A9")) {
log_info("BLADERF_FORCE_FPGA_A9 is set, assuming A9 FPGA\n");
board_data->fpga_size = BLADERF_FPGA_A9;
} else {
log_debug("assuming A4 FPGA - set BLADERF_FORCE_FPGA_A9 if using A9\n");
board_data->fpga_size = BLADERF_FPGA_A4;
}

/* Skip further work if BLADERF_FORCE_NO_FPGA_PRESENT is set */
if (getenv("BLADERF_FORCE_NO_FPGA_PRESENT")) {
Expand Down

0 comments on commit a16a670

Please sign in to comment.