Giter Club home page Giter Club logo

Comments (4)

rawsample avatar rawsample commented on September 24, 2024

Hi Peter,

For the first error, you should either try to set the environment variable AVATAR2_QEMU_EXECUTABLE or execute python -m avatar2.installer which let you save it under ~/.avatar2/settings.cfg.

For you second issue, could you give us a bit more context about your environment and the script you run? My understanding is that you want to run the Qemu U-Boot example within the avatar2 container. Did you check the u-boot binaries are in the container? IIRC it's not the case by default.

from avatar2-examples.

peterrakolcza avatar peterrakolcza commented on September 24, 2024

Hi, thanks for your input!

After setting the variables in the setting.cfg file, I still get the same error.

[DIST]
has_apt = True
default_install_path = /home/parallels/.avatar2/

[TARGETS]
openocd = /home/parallels/.avatar2/openocd/src/openocd
avatar-qemu = qemu-system-arm
panda = None
gdb (x86) = gdb
gdb (multiarch) = gdb-multiarch

For my second issue: I am running a docker-compose

version: "3"

services:
  avatar2:
    image: avatar2:latest
    privileged: true
    volumes:
      - ./files:/tmp

Under ./files, I have the following files:
image
test2.py contains the example which I want to run, see the docker-compose run command above.

from avatar2-examples.

rawsample avatar rawsample commented on September 24, 2024

For settings.cfg, try with the absolute path.

from avatar2-examples.

rawsample avatar rawsample commented on September 24, 2024

For the second issue, the script expects u-boot to be in the current working directory (i.e., /).
Something like this should work in your setup: docker-compose run --rm -e AVATAR2_QEMU_EXECUTABLE=qemu-system-arm avatar2 sh -c 'cd /tmp && python3 test2.py

You can replace qemu with panda-system-arm to avoid the #6

from avatar2-examples.

Related Issues (5)

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.