M2k Firmware for the ADALM-2000 Active Learning Module
- 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
sudo apt-get install bc python cpio zip unzip rsync file wget
git clone --recursive https://github.com/analogdevicesinc/m2k-fw.git
cd m2k-fw
export CROSS_COMPILE=arm-linux-gnueabihf-
export PATH=$PATH:/opt/Xilinx/SDK/2019.1/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin
export VIVADO_SETTINGS=/opt/Xilinx/Vivado/2019.1/settings64.sh
make
- Updating your local repository
git pull --recurse-submodules
- Build Artifacts
michael@HAL9000:~/devel/m2k-fw$ ls -AGhl build
total 318M
-rw-rw-r-- 1 michael 69 Okt 1 14:08 boot.bif
-rw-rw-r-- 1 michael 459K Okt 1 14:08 boot.bin
-rw-rw-r-- 1 michael 459K Okt 1 14:08 boot.dfu
-rw-rw-r-- 1 michael 588K Okt 1 14:08 boot.frm
-rw-rw-r-- 1 michael 252M Okt 1 14:08 legal-info-v0.28.tar.gz
-rw-rw-r-- 1 michael 490K Okt 1 13:48 LICENSE.html
-rw-rw-r-- 1 michael 9,8M Okt 1 14:08 m2k.dfu
-rw-rw-r-- 1 michael 9,8M Okt 1 14:08 m2k.frm
-rw-rw-r-- 1 michael 33 Okt 1 14:08 m2k.frm.md5
-rw-rw-r-- 1 michael 19M Okt 1 14:08 m2k-fw-v0.28.zip
-rw-rw-r-- 1 michael 9,8M Okt 1 14:08 m2k.itb
-rw-rw-r-- 1 michael 502K Okt 1 14:08 m2k-jtag-bootstrap-v0.28.zip
-rw-r--r-- 1 michael 897K Okt 1 14:08 mtd2.dfu
-rw-rw-r-- 1 michael 444K Okt 1 14:08 ps7_init.c
-rw-rw-r-- 1 michael 443K Okt 1 14:08 ps7_init_gpl.c
-rw-rw-r-- 1 michael 4,2K Okt 1 14:08 ps7_init_gpl.h
-rw-rw-r-- 1 michael 4,8K Okt 1 14:08 ps7_init.h
-rw-rw-r-- 1 michael 2,4M Okt 1 14:08 ps7_init.html
-rw-rw-r-- 1 michael 31K Okt 1 14:08 ps7_init.tcl
-rw-r--r-- 1 michael 5,2M Okt 1 13:57 rootfs.cpio.gz
drwxrwxr-x 6 michael 4,0K Okt 1 14:08 sdk
-rw-rw-r-- 1 michael 949K Okt 1 14:08 system_top.bit
-rw-rw-r-- 1 michael 412K Okt 1 14:08 system_top.hdf
-rwxrwxr-x 1 michael 438K Okt 1 14:08 u-boot.elf
-rw-rw---- 1 michael 128K Okt 1 14:08 uboot-env.bin
-rw-rw---- 1 michael 129K Okt 1 14:08 uboot-env.dfu
-rw-rw-r-- 1 michael 6,5K Okt 1 14:08 uboot-env.txt
-rwxrwxr-x 1 michael 3,7M Okt 1 13:45 zImage
-rw-rw-r-- 1 michael 17K Okt 1 13:57 zynq-m2k-reva.dtb
-rw-rw-r-- 1 michael 17K Okt 1 13:57 zynq-m2k-revb.dtb
-rw-rw-r-- 1 michael 17K Okt 1 13:57 zynq-m2k-revc.dtb
-rw-rw-r-- 1 michael 17K Okt 1 13:57 zynq-m2k-revd.dtb
-rw-rw-r-- 1 michael 17K Okt 1 13:58 zynq-m2k-reve.dtb
-rw-rw-r-- 1 michael 17K Okt 1 13:58 zynq-m2k-revf.dtb
-
Main targets
File Comment m2k.frm Main PlutoSDR firmware file used with the USB Mass Storage Device m2k.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 m2k-fw-vX.XX.zip ZIP archive containg all of the files above m2k-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 m2k.frm.md5 md5sum of the m2k.frm file m2k.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-m2k-reva.dtb Device Tree Blob for Rev.A zynq-m2k-revb.dtb Device Tree Blob for Rev.B zynq-m2k-revc.dtb Device Tree Blob for Rev.C