Contents

OrangePi4SDR

The goal was to get a single-board computer able to execute Gnuradio tools quite smoothly with various SDR devices (USB dongles, HackRF, USRP development boards). Unfortunately, the RaspberryPi family (both PiB+ and Pi2) did not met such requirements due to a lack of throughput in the USB controller. This tutorial introduces another solution based on a Chinese alternative called OrangePi [1]. For the operating system, Debian Jessie (8.2 version) is used: https://www.debian.org/releases/stable/

Requirements

Hardware

  • An OrangePiMini2 (bought from Aliexpress [2]). Main features :
    • Allwinner H3 CPU (quad-core Cortex-A7 @ 1.6GHz)
    • 1GB RAM memory
  • A 5V/2A power supply such as [3]. Otherwise, the OrangePi kit comes with an USB cable that works fine (an external computer is required)
  • A µSD card: class 10 is the best
  • (of course, video and Ethernet cables)

Software

All OrangePi software parts are available from a Google Drive directory (click here). You need to get:

It is assumed that you decompress .xz files somewhere on your computer. Other OS images can be downloaded from this Google Drive or directly from OrangePi website: http://www.orangepi.org/downloadresources/

Creating µSD image

This step was tested on Windows. Similar results are expected on Linux using fdisk and dd commands.

OS image

First of all, format your SD card:

  • Connect your µSD card and open SDFormatter
  • Take care of the drive letter (it will erase everything in the device)
  • Open Option menu and select Yes for Format size adjustment
  • Click on Format and answer Yes in the next popups => Your card is ready !

Then, you can copy the Debian minimal image using Win32DiskImager: check the device letter and look for the Debian_jessie_mini.img OS image on your computer. Confirm and wait a few minutes…

Kernel and boot stuff

Once this step is done, disconnect and reconnect your µSD card. You should see a device called BOOT coming up: it contains the kernel image and boot-related stuff. These files are replaced with the latest ones available from OrangePi. Open the BOOT device in your explorer and erase everything inside. Then, from your scriptbin_kernel decompressed folder:

  • Copy script.bin.OPI-2_1080p60 and rename it as script.bin
  • Copy uImage_OPI-2 and rename it as uImage

Your µSD card is ready to boot on the OrangePiMini2 !

../img/opi-img1.jpg

First boot

At first power-up, when asked for login/password, just use orangepi/orangepi (be careful, it is configured with a QWERTY keyboard layout by default). You should see a terminal like this:

../img/opi-img2.jpg

Disk resize

The first step is to resize partitions to fit the maximum capacity of your µSD card. OrangePi already prepared a tool. Type sudo fs_resize:

../img/opi-img2.jpg

Then, reboot using sudo reboot.

Desktop install

As this is a minimal Debian image, it does not come with a GUI but you can install whatever you want. In this tutorial, LXDE has been chosen for installation. Thanks to OrangePi, there are already some scripts to install some GUIs such as LXDE, XFCE or Mate (a Gnome2 fork).

../img/opi-img4.jpg

  • Type cd /usr/local/bin.
  • Type sudo install_lxde_desktop and wait a few minutes…

../img/opi-img5.jpg

Reboot one last time…

Result

Tada ! After the login screen (still orangepi/orangepi), you get a fully functional desktop: you can install whatever you want. In the above figure, the goal was to install GQRX, Gnuradio and some other tools: it run quite smoothly ! (especially compared to RaspberryPis).

../img/opi-img6.jpg

In this configuration, following binaries were installed:

1
sudo apt-get install gnuradio gnuradio-dev rtl-sdr librtlsdr* hackrf gpredict gqrx-sdr libhackrf*

References

  1. Orangepi website. http://www.orangepi.org/.
  2. Orangepimini2.
  3. 5v/2a power supply.