Giter Club home page Giter Club logo

Comments (7)

mariusmue avatar mariusmue commented on June 26, 2024

Hi, this issue was described already here: #4

Albeit closed, it has the answer for you: Everything worked as expected, you arrive at Arrived at main loop, demo is over .

The issue is in the avatar2 teardown. Have you tried running the script unbuffered (python3 -u qemu_uboot_avatar2.py)? Maybe it fixes at least the race condition between logging and throwing of the exception.

from avatar2-examples.

bukeyong avatar bukeyong commented on June 26, 2024

It's the same result of running python3 -u qemu_uboot_avatar2.py . But why do I get an error when I try to read the value of memory or register?

from avatar2-examples.

mariusmue avatar mariusmue commented on June 26, 2024

Heya, taking a second loop at the timestamps, and may indeed be the case that QEMU errors straight-away. Can you retry with the PANDA target for the time being, instead of the qemu target? I think something may have gone wrong during our yearly sync with upstream qemu, resulting into these errors.

from avatar2-examples.

rawsample avatar rawsample commented on June 26, 2024

Hi,

There is more debugging info within /tmp/myavatar directory. What is the output of cat /tmp/myavatar/{QemuTarget0_err.txt,QemuTarget0_out.txt}?

from avatar2-examples.

bukeyong avatar bukeyong commented on June 26, 2024

cat QemuTarget0_err.tx
qemu-system-arm: RemoteMemoryRead failed (-1)!

cat QemuTarget0_out.txt
Configurable: Adding memory region interrupts (size: 0x1000) at address 0x0
Configurable: Adding memory region init_mem (size: 0x1000) at address 0xfdd000
Configurable: Adding memory region heap (size: 0x22000) at address 0xfde000
Configurable: Adding peripheral[avatar-rmemory] region after_code at address 0x1019000
Configurable: Adding peripheral[pl011] region serial at address 0x101f1000
Configurable: Adding peripheral[avatar-rmemory] region before_code at address 0x1000
Configurable: Adding memory region text_data_bss (size: 0x19000) at address 0x1000000
Configurable: Inserting 0x15144 bytes of data in memory region text_data_bss
Configurable: Copying 0x15144 byte of data from file /home/desh0ng/Desktop/bishe/Avatar/avatar2/examples/qemu_uboot/u-boot.bin beginning at offset 0x0 to address 0x1000000
Configurable: Adding peripheral[avatar-rmemory] region after_serial at address 0x101f2000

from avatar2-examples.

bukeyong avatar bukeyong commented on June 26, 2024

Well, my current goal is to simulate the stm32 development board, so I didn't consider using Panda.

from avatar2-examples.

mariusmue avatar mariusmue commented on June 26, 2024

Panda is under the hood qemu based, and is currently more used by the avatar2-developers (and, hence, better testing).
Additionally, the framework can serve as drop-in for Qemu! Please try:

AVATAR2_QEMU_EXECUTABLE=panda-system-arm python3 qemu_uboot_avatar2.py

(assuming you are in the docker or have panda installed locally.)

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.