Getting started with HackRF Jawbreaker


Getting started with HackRF Jawbreaker

This was done on Ubuntu 13.04. We’ll assume that $ROOT is set to the directory within which you will be working. For this you’ll need (at very least) the build-essential and cmake packages.

Compiling libhackrf and hackrf-tools

By default cmake will install things in /usr/local. We’ll need this in PATH and LD_LIBRARY_PATH,

Compiling new firmware

To compile the firmware we’ll need mossmann’s libopencm3 branch as well as the gcc-arm-embedded toolchain available.

We’ll be compiling two separate firmware images. The image compiled by Makefile is compiled assuming the device will be booting the firmware directly from RAM while that built by Makefile_rom_to_ram will be built under the assumption that it was loaded from ROM.

Updating firmware

Fetching and installing gnuradio

As it turns out, Python 3 tends to confuse gnuradio’s cmake configuration. For this reason, we force cmake to build against Python 2.7,

You should check over the output of cmake at this point and find any missing dependencies (look for gr-* modules which are listed as disabled). I happened to lack the cheetah, sdl, and fftw packages,

After installing dependencies you should re-run cmake.

The build itself will take awhile,

Fetching and installing gr-osmosdr

The gr-osmosdr block provides an interface between the Jawbreaker hardware and GnuRadio,

Starting GnuRadio Companion

After starting GnuRadio Companion,

You should see an osmocom source and sink. This can be used to pull or push samples from the Jawbreaker.

To test, connect an osmocom source (Sources group) to a WX GUI FFT Sink (Instrumentation/WX group), press the “Generate flow graph” button and then “Execute flow graph”. You should see a window like,

Spectrum from HackRFSpectrum from HackRF

Press your thumb against the antenna to confirm a change in the spectrum.

Tuning to FM bands

See this graph for an example signal chain decoding a standard FM radio station (88.5 MHz, by default).

Posted in 新闻