Closed peterrakolcza closed 2 years ago
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.
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:
test2.py
contains the example which I want to run, see the docker-compose run
command above.
For settings.cfg
, try with the absolute path.
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
Hey!
I have been trying to tinker with the above mentioned example. However, I got the following error message when I try to run the python file using the installer method of avatar2:
When I try to run with docker, I get the following output: docker command:
docker-compose run --rm -e AVATAR2_QEMU_EXECUTABLE=qemu-system-arm avatar2 python3 /tmp/test2.py
Any help is appreciated!