Coder Social home page Coder Social logo

blackmagic-docker's Issues

Unsupported ARM toolchain

Hi!
I was looking for a docker container to build blackmagic probe, found your project, but it does not work for me (I am building for stlink hardware). It appears that ubuntu builtin arm-gcc is not supported by BMP and in fact, even ARM GCC versions are not supported except one - 12.2.rel1. Different gcc versions produce output of different sizes and the resulting binary is not even guaranteed to work:
blackmagic-debug/blackmagic#1589 (comment)
blackmagic-debug/blackmagic#1579 (comment)

Here is a Dockerfile that I came up with (with the help of this file: https://github.com/hardwario/gcc-arm-embedded-docker/blob/master/Dockerfile)

FROM ubuntu:22.04

RUN mkdir /workdir && \
    apt-get update && \
    apt-get install -y make xz-utils wget git python3

RUN  wget -O archive.tar.xz "https://developer.arm.com/-/media/Files/downloads/gnu/12.2.rel1/binrel/arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi.tar.xz" && \
    tar xf archive.tar.xz -C /opt && \
    rm archive.tar.xz

ENV PATH=/opt/arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi/bin:$PATH

WORKDIR /workdir

From that, I ran

git clone https://github.com/blackmagic-debug/blackmagic.git --depth 1 --branch v1.10.2
cd blackmagic/
make PROBE_HOST=stlink ENABLE_RTT=1

I didn't put it into Dockerfile as I want to branch and make options to be configurable.

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.