This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF Command Line Tools for ARM aarch64?

Hi folks,

Looking at the nRF Command Line Tools download page, I can see versions of the nRF Command Line Tools for Linux, MacOS and Windows.  The Linux versions come as variants for 32- and 64-bit Intel.  Is there a build for ARM aarch64?  If not, is that something you might consider providing in the future?  ARM now provide their GNU ARM Embedded toolchain for these three platforms, and it would be very useful it it was possible to directly build and flash on aarch64.

If you don't provide binaries, is it possible to build the command line tools from source?

Thanks, Roger

Parents Reply
  • Super!

    I'll experimenting with the 32-bit binaries on the 64-bit architecture, but these requires CONFIG_COMPAT to be set in the kernel which won't always be the case.

    For the diligent reader (this is what you can do you in your docker):

    # Add support for armhf (32-bit arm binaries) required for nRF command line tools
    RUN echo "deb [arch=armhf] http://ports.ubuntu.com/ focal main universe" >> /etc/apt/sources.list
    RUN echo "deb-src [arch=armhf] http://ports.ubuntu.com/ focal main universe" >> /etc/apt/sources.list
    RUN dpkg --add-architecture armhf
    
    RUN apt-get update 
    
    # The 32-bit ARM dependencies of nRF command line tools
    RUN apt-get install -y libc6:armhf libudev1:armhf libusb-1.0-0:armhf

    Or the equivalent commands on your aarch64 itself. Not tested.

Children
No Data
Related