Code Monkey home page Code Monkey logo

m2k-fw's Introduction

M2k-fw

M2k Firmware for the ADALM-2000 Active Learning Module

Latest binary Release : GitHub Release Github Releases

Firmware License : Many Licenses Many License Many License Many License and many others.

  • 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 VIVADO_SETTINGS=/opt/Xilinx/Vivado/2022.2/settings64.sh
 make

Due to incompatibility between the AMD/Xilinx GCC toolchain supplied with Vivado/Vitis and Buildroot. This project switched to Buildroot external Toolchain: Linaro GCC 7.3-2018.05 7.3.1

https://releases.linaro.org/components/toolchain/binaries/7.3-2018.05/arm-linux-gnueabihf/

This toolchain is used to build: Buildroot, Linux and u-boot

  • Updating your local repository
     git pull --recurse-submodules
  • Build Artifacts
     michael@HAL9000:~/devel/m2k-fw$ ls -AGhl build
     total 536M
     -rw-rw-r-- 1 michael   69 Mär  1 09:30 boot.bif
     -rw-rw-r-- 1 michael 443K Mär  1 09:30 boot.bin
     -rw-rw-r-- 1 michael 443K Mär  1 09:30 boot.dfu
     -rw-rw-r-- 1 michael 572K Mär  1 09:31 boot.frm
     -rw-rw-r-- 1 michael 471M Mär  1 09:31 legal-info-v0.30.tar.gz
     -rw-rw-r-- 1 michael 560K Mär  1 09:28 LICENSE.html
     -rw-rw-r-- 1 michael 9,7M Mär  1 09:30 m2k.dfu
     -rw-rw-r-- 1 michael 9,7M Mär  1 09:30 m2k.frm
     -rw-rw-r-- 1 michael   33 Mär  1 09:30 m2k.frm.md5
     -rw-rw-r-- 1 michael  19M Mär  1 09:31 m2k-fw-v0.30.zip
     -rw-rw-r-- 1 michael 9,7M Mär  1 09:30 m2k.itb
     -rw-rw-r-- 1 michael 504K Mär  1 09:31 m2k-jtag-bootstrap-v0.30.zip
     -rw-r--r-- 1 michael 897K Mär  1 09:30 mtd2.dfu
     -rw-rw-r-- 1 michael 442K Mär  1 09:29 ps7_init.c
     -rw-rw-r-- 1 michael 443K Mär  1 09:29 ps7_init_gpl.c
     -rw-rw-r-- 1 michael 4,2K Mär  1 09:29 ps7_init_gpl.h
     -rw-rw-r-- 1 michael 3,6K Mär  1 09:29 ps7_init.h
     -rw-rw-r-- 1 michael 2,4M Mär  1 09:29 ps7_init.html
     -rw-rw-r-- 1 michael  31K Mär  1 09:29 ps7_init.tcl
     -rw-r--r-- 1 michael 4,8M Mär  1 09:28 rootfs.cpio.gz
     drwxrwxr-x 6 michael 4,0K Mär  1 09:29 sdk
     -rw-rw-r-- 1 michael 949K Mär  1 09:29 system_top.bit
     -rw-rw-r-- 1 michael 645K Mär  1 09:29 system_top.xsa
     -rwxrwxr-x 1 michael 761K Mär  1 09:31 u-boot.elf
     -rw-rw---- 1 michael 128K Mär  1 09:31 uboot-env.bin
     -rw-rw---- 1 michael 129K Mär  1 09:31 uboot-env.dfu
     -rw-rw-r-- 1 michael 7,0K Mär  1 09:31 uboot-env.txt
     -rwxrwxr-x 1 michael 3,9M Mär  1 09:27 zImage
     -rw-rw-r-- 1 michael  17K Mär  1 09:28 zynq-m2k-reva.dtb
     -rw-rw-r-- 1 michael  17K Mär  1 09:29 zynq-m2k-revb.dtb
     -rw-rw-r-- 1 michael  17K Mär  1 09:29 zynq-m2k-revc.dtb
     -rw-rw-r-- 1 michael  17K Mär  1 09:29 zynq-m2k-revd.dtb
     -rw-rw-r-- 1 michael  17K Mär  1 09:29 zynq-m2k-reve.dtb
     -rw-rw-r-- 1 michael  17K Mär  1 09:29 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

m2k-fw's People

Contributors

aandrisa avatar ccraluca avatar commodo avatar larsclausen avatar mhennerich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

m2k-fw's Issues

Spikes in Network Analyzer

After upgrading FW on ADML2000 to v0.32 , Network Analyzer always shows some sort of sporadic spikes in response.
The circuit is low pass RC filter, so nothing complicated..
image

I took another ADML2000 with the same FW (already upgraded to v0.32) from my colegue in the office and the result was simillar.

After checking the same setup with brand new one ADML (original FW version 0.25), result was OK
image

My question is how to proper downgrade our (already upgraded) ADMLs back to original 0.25 firmware?
Where I can get files and guidelines to do that ?

Thanks,
Borut

libssl1.0-dev is not available

Command is
$ sudo apt-get install dfu-util u-boot-tools device-tree-compiler libssl1.0-dev mtools
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libssl1.0-dev is not available, but is referred to by another package
This may mean that the package is missing, has been obsoleted, or is only available from another source

For now I delete the '1.0' in libssl1.0-dev and continue. But this is a problem.

Easy to lose connection

Hi,
I'm using the network analyzer module in scopy,but it is easy to lose connection after grabbing data for several times.
Please tell me the reason of losing connection or how to Positioning reasons,and how to fix this problem.
Thanks!
Here is the information of m2k module:
20231226-142155

Build error, I can't find LIBIIO_VERSION - 38483f31be391af66b35542f733e569febe13d3a

Hello,

When I build the firmware , I can't download the libiio-38483f31be391af66b35542f733e569febe13d3a-br1.tar.gz
So I have to change the libiio.mk , compiled with the previous version

LIBIIO_VERSION = 0.25
LIBIIO_SITE = $(call github,analogdevicesinc,libiio,v$(LIBIIO_VERSION))

# LIBIIO_VERSION = 38483f31be391af66b35542f733e569febe13d3a
# LIBIIO_SITE = https://github.com/analogdevicesinc/libiio.git
# LIBIIO_SITE_METHOD = git

and then , it can‘t find libaio dependency.

CMake Error at iiod/CMakeLists.txt:39 (message):
Unable to find libaio dependency.
If you want to disable async.  I/O support, set WITH_AIO=OFF.

How can I fix this ?

Thanks,
Tobey

Distribution toolchains are unsuitable for use by Buildroot,

Distribution toolchains are unsuitable for use by Buildroot,
as they were configured in a way that makes them non-relocatable,
and contain a lot of pre-built libraries that would conflict with
the ones Buildroot wants to build.
make[2]:***[package/pkg-generic.mk:240: /home/vivado/m2k-fw/buildroot/output/build/toolchain-external-custom/.stamp_configured] Error 1
make[1]: *** [Makefile:84: _all]Error 2
make[1]: Leaving directory '/home/vivado/m2k-fw/buildroot'
make: *** [Makefile:104: buildroot/output/images/rootfs.cpio.gz] Error 2

Ubuntu version 20.04LTS
Vivado version 2021.1

v0.31 release page on this repository has no instruction or a link to a firmware installation guide

I've only just recently purchased an ADALM2000 module.

The very first instruction shown on the webpage you load via the ADALM2000 media folder is "Upgrade your firmware".

This sends you straight to the release page of this repository, which provides a very basic change log (inside Summary section) and not much else. There is not even a readme file as part of the Assets or a readme file in any of the zip files.

I wish to get started quickly but having gone to the online wiki page, I could not find an obvious link or section that provides instruction.

So please can someone add a link on the release page that redirects to the correct details on the wiki and/or add in a readme file.

Thanks

Failure to install the latest firmware in the ADALM2000.

The downloaded firmware zip file ‘m2k-fw-0.29.zip ‘ does not contain the needed BOOT and M2K files.
How can I find these missing files?
Note: the same applies to plutosdr-fw-0.35.zip.

Details:
• Using ‘https://wiki.analog.com/university/tools/m2k/common/firmware’
• Clicking on the link ‘ADALM2000 (M2k) Release’ gets us to GitHub for firmware v0.29.
• Mouse click on CODE allows us to download the zip file ‘m2k-fw-0.29.zip’
• Back on the wiki.analog.com it says that “This zip file should include these files” which do not exist in the downloaded ‘m2k-fw-0.29.zip’ file.
• Back in the wiki.analog.com page under Main targets it states that the file ‘m2k-fw-vX.XX.zip contains all of the files that are missing.
• Further under the Main targets, it states that ‘m2k-jtag-bootstrap-vX.XX.zip’, which I cannot find, contains more.

ADALM2000 dac push function cause reset

I use ADALM2000 to drive galvanometer, it seems that the dac will output zero value, then output what I pushed value after I call push function to send some value to it's DAC output-channel. So, it will cause galvanometer shaking. Another issue is that push function of analog-out-put is too slow in python program. I wander that is there any way to avoid this? Maybe you can repair that problem. thanks!

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.