在 ArchLinux 上運行 BladeRF x40 還滿簡單的。bladerf
在 Arch 的 community 庫中,包含了 driver, userspace, fpga & firmware 等東西
1 |
yaourt –S bladerf |
接著使用 bladerf command line tool 打開畫面
1 2 3 4 5 6 7 8 |
$ sudo bladeRF–cli –i bladeRF> version bladeRF–cli version: 1.4.0–git–096984a4 libbladeRF version: 1.7.1–git Firmware version: 1.8.0 FPGA version: Unknown (FPGA not loaded) |
接著要下載 firmware 以及 fpga image:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
$ wget http://www.nuand.com/fx3/bladeRF_fw_latest.img $ wget https://www.nuand.com/fpga/hostedx40-latest.rbf 寫入最新版的 firmware <pre class=“lang:default decode:true “> $ sudo bladeRF–cli –i bladeRF> open bladeRF> load fx3 bladeRF_fw_latest.img Flashing firmware from bladeRF_fw_latest.img... [INFO @ usb.c:498] Erasing 3 blocks starting at block 0 [INFO @ usb.c:503] Erased block 2 [INFO @ usb.c:511] Done erasing 3 blocks [INFO @ usb.c:705] Writing 464 pages starting at page 0 [INFO @ usb.c:709] Writing page 463 [INFO @ usb.c:718] Done writing 464 pages [INFO @ flash.c:110] Verifying 464 pages, starting at page 0 [INFO @ usb.c:603] Reading 464 pages starting at page 0 [INFO @ usb.c:606] Reading page 463 [INFO @ usb.c:617] Done reading 464 pages Done. Cycle power on the device. bladeRF> exit |
接著寫入最新版的 fpga image
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
$ sudo bladeRF–cli –L hostedx40–latest.rbf Writing FPGA to flash for autoloading... [INFO @ usb.c:498] Erasing 55 blocks starting at block 4 [INFO @ usb.c:503] Erased block 58 [INFO @ usb.c:511] Done erasing 55 blocks [INFO @ usb.c:705] Writing 1 pages starting at page 1024 [INFO @ usb.c:709] Writing page 1024 [INFO @ usb.c:718] Done writing 1 pages [INFO @ usb.c:705] Writing 4656 pages starting at page 1025 [INFO @ usb.c:709] Writing page 5680 [INFO @ usb.c:718] Done writing 4656 pages [INFO @ flash.c:110] Verifying 1 pages, starting at page 1024 [INFO @ usb.c:603] Reading 1 pages starting at page 1024 [INFO @ usb.c:606] Reading page 1024 [INFO @ usb.c:617] Done reading 1 pages [INFO @ flash.c:110] Verifying 4656 pages, starting at page 1025 [INFO @ usb.c:603] Reading 4656 pages starting at page 1025 [INFO @ usb.c:606] Reading page 5680 [INFO @ usb.c:617] Done reading 4656 pages Done. |
再次打開 cli,確認版本
1 2 3 4 5 6 7 8 9 10 |
$ sudo bladeRF–cli –i bladeRF> version bladeRF–cli version: 1.4.0–git–096984a4 libbladeRF version: 1.7.1–git Firmware version: 1.9.0 FPGA version: 0.5.0 bladeRF> |
Leave a Reply