Coder Social home page Coder Social logo

plutosdr-fw's Introduction

plutosdr-fw

PlutoSDR Firmware for the ADALM-PLUTO Active Learning Module

Latest binary Release : GitHub release

Instructions from the Wiki: Building the image

  • Build Instructions
     sudo apt-get install git build-essential fakeroot libncurses5-dev libssl-dev ccache 
     sudo apt-get install dfu-util u-boot-tools device-tree-compiler libssl1.0-dev mtools
     git clone --recursive https://github.com/analogdevicesinc/plutosdr-fw.git
     cd plutosdr-fw
     export CROSS_COMPILE=arm-xilinx-linux-gnueabi-
     export PATH=$PATH:/opt/Xilinx/SDK/2017.2/gnu/arm/lin/bin
     export VIVADO_SETTINGS=/opt/Xilinx/Vivado/2017.4/settings64.sh
     make

The project may build also using Vivado 2017.2, 2016.4 or 2016.2. However 2017.4 is the current tested FPGA systhesis toolchain. For comatibility reasons with existing targeting workflows we continue to use the arm-xilinx-linux-gnueabi-gcc toolchain íncluded in the SDK 2017.2.

If you want to use the arm-linux-gnueabihf-gcc hard-float toolchain included in SDK 2017.4. Following variables should be exported:

export CROSS_COMPILE=arm-linux-gnueabihf-
export PATH=$PATH:/opt/Xilinx/SDK/2017.4/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin

This patch must be applied to the buildroot zynq_pluto_defconfig.

diff --git a/configs/zynq_pluto_defconfig b/configs/zynq_pluto_defconfig
index 483ddbe..21cd959 100644
--- a/configs/zynq_pluto_defconfig
+++ b/configs/zynq_pluto_defconfig
@@ -1,13 +1,13 @@
BR2_arm=y
BR2_cortex_a9=y
BR2_ARM_ENABLE_NEON=y
+BR2_ARM_ENABLE_VFP=y
BR2_ARM_FPU_NEON=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
-BR2_TOOLCHAIN_EXTERNAL_PATH=""
-BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="arm-xilinx-linux-gnueabi"
-BR2_TOOLCHAIN_EXTERNAL_GCC_4_9=y
-BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_19=y
+BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="arm-linux-gnueabihf"
+BR2_TOOLCHAIN_EXTERNAL_GCC_6=y
+BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_9=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y
BR2_TOOLCHAIN_EXTERNAL_CXX=y
BR2_TARGET_GENERIC_HOSTNAME="pluto"

If you receive an error similar to the following:

Starting SDK. This could take few seconds... timeout while establishing a connection with SDK
   while executing
"error "timeout while establishing a connection with SDK""
   (procedure "getsdkchan" line 108)
   invoked from within
"getsdkchan"
   (procedure "createhw" line 26)
   invoked from within
"createhw {*}$args"
   (procedure "::sdk::create_hw_project" line 3)
   invoked from within
"sdk create_hw_project -name hw_0 -hwspec build/system_top.hdf"
   (file "scripts/create_fsbl_project.tcl" line 5)

you may be able to work around it by preventing eclipse from using GTK3 for the Standard Widget Toolkit (SWT). Prior to running make, also set the following environment variable:

export SWT_GTK3=0

This problem seems to affect Ubuntu 16.04LTS only.

  • Updating your local repository
     git pull
     git submodule update --init --recursive
  • Build Artifacts
     michael@HAL9000:~/devel/plutosdr-fw$ ls -AGhl build
   total 55M
   -rw-rw-r-- 1 michael   69 Okt  9 14:24 boot.bif
   -rw-rw-r-- 1 michael 446K Okt  9 14:24 boot.bin
   -rw-rw-r-- 1 michael 446K Okt  9 14:24 boot.dfu
   -rw-rw-r-- 1 michael 575K Okt  9 14:24 boot.frm
   -rw-rw-r-- 1 michael 8,8M Okt  9 14:24 pluto.dfu
   -rw-rw-r-- 1 michael 8,8M Okt  9 14:24 pluto.frm
   -rw-rw-r-- 1 michael   33 Okt  9 14:24 pluto.frm.md5
   -rw-rw-r-- 1 michael 8,8M Okt  9 14:24 pluto.itb
   -rw-rw-r-- 1 michael  17M Okt  9 14:24 plutosdr-fw-v0.23.zip
   -rw-rw-r-- 1 michael 466K Okt  9 14:24 plutosdr-jtag-bootstrap-v0.23.zip
   -rw-r--r-- 1 michael 4,7M Okt  9 14:23 rootfs.cpio.gz
   drwxrwxr-x 6 michael 4,0K Okt  9 14:24 sdk
   -rw-rw-r-- 1 michael 940K Okt  9 14:24 system_top.bit
   -rw-rw-r-- 1 michael 358K Okt  9 14:23 system_top.hdf
   -rwxrwxr-x 1 michael 409K Okt  9 14:24 u-boot.elf
   -rw-rw---- 1 michael 128K Okt  9 14:24 uboot-env.bin
   -rw-rw---- 1 michael 129K Okt  9 14:24 uboot-env.dfu
   -rw-rw-r-- 1 michael 4,6K Okt  9 14:24 uboot-env.txt
   -rwxrwxr-x 1 michael 3,2M Okt  9 14:23 zImage
   -rw-rw-r-- 1 michael  17K Okt  9 14:23 zynq-pluto-sdr.dtb
   -rw-rw-r-- 1 michael  17K Okt  9 14:23 zynq-pluto-sdr-revb.dtb
  • Main targets

    File Comment
    pluto.frm Main PlutoSDR firmware file used with the USB Mass Storage Device
    pluto.dfu Main PlutoSDR firmware file used in DFU mode
    boot.frm First and Second Stage Bootloader (u-boot + fsbl + uEnv) used with the USB Mass Storage Device
    boot.dfu First and Second Stage Bootloader (u-boot + fsbl) used in DFU mode
    uboot-env.dfu u-boot default environment used in DFU mode
    plutosdr-fw-vX.XX.zip ZIP archive containg all of the files above
    plutosdr-jtag-bootstrap-vX.XX.zip ZIP archive containg u-boot and Vivao TCL used for JATG bootstrapping
  • Other intermediate targets

    File Comment
    boot.bif Boot Image Format file used to generate the Boot Image
    boot.bin Final Boot Image
    pluto.frm.md5 md5sum of the pluto.frm file
    pluto.itb u-boot Flattened Image Tree
    rootfs.cpio.gz The Root Filesystem archive
    sdk Vivado/XSDK Build folder including the FSBL
    system_top.bit FPGA Bitstream (from HDF)
    system_top.hdf FPGA Hardware Description File exported by Vivado
    u-boot.elf u-boot ELF Binary
    uboot-env.bin u-boot default environment in binary format created form uboot-env.txt
    uboot-env.txt u-boot default environment in human readable text format
    zImage Compressed Linux Kernel Image
    zynq-pluto-sdr.dtb Device Tree Blob for Rev.A
    zynq-pluto-sdr-revb.dtb Device Tree Blob for Rev.B

plutosdr-fw's People

Contributors

af7ss avatar commodo avatar mhennerich avatar rgetz avatar tfcollins avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.