-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Device tree generation failed #20
Comments
#21 must fix it up. |
Checked last commit in "qtree_from_build" branch. In my case, machine creation can fail (one device return error in "realize" function via errp argument). Qdt output looks like this:
|
Firstly about: This is a normal warning. GUI and useful work occur in one thread. The work is divided into small pieces which should be fast enough the user will not noticed lags. This message informs that the work took a little longer than the current limit for each piece (50 ms). You can just ignore it. I think it’s a bad idea to build cache for nonstable QEMU version. You should set stable target QEMU version (GUI: File - Select Qemu target version) on which your work is based. Please configure QEMU with |
|
It still fails to build riscv device tree. Qemu configuration command (executed from the directory "build"): Error output:
|
Did you build qemu? I.e., is |
It fails in both cases. If the qemu is built, then qemu binary is executed, and it falls in qemu monitor and waits there forever.
At this point, the qemu application is running and waiting in monitor mode.
This line in error message looks suspicious: |
Your compiler duplicated code of some functions. I think, it is not the cause of the problem. But, we never faced this before.
|
Firstly please configure with |
All required breakpoints are set but not reached. Possible causes are:
Breakpoint positions (file:line) are defined relative to specific version (Git SHA1).
|
I used such flags to
|
There is yet another cause. This is a bug. |
After spending 5 hours rerunning qdt again and again (The definition of insanity meme) with different qemu configarition options i get the following list of configurations, which leads to successfull device tree build:
Last one gives a warning: "./build/riscv64-softmmu/qemu-system-riscv64 does not contain .debug_pubtypes section. Provide -gpubnames flag to the compiler"
There are also a few configurations (but not all of those that I tried) that lead to tree generation failure:
In all of the above attempts, I built the qemu after configuration with simple make command without additional arguments.
In all successful and unsuccessful attempts, the device boilerplate was added to the qemu source files. |
A recent QDT launch ended with following message about device tree creation:
Right now i have following folder organization for my additional qemu repository:
QDT did not build the device tree for riscv64 because it was looking for qemu-system-riscv64 in '/usr/local/bin/'.
May be it should also look for it in build directory.
(right now it is in the /home/user/qemu_top/qemu_build/riscv64-softmmu/qemu-system-riscv64)
QDT version: 1557a7e
The text was updated successfully, but these errors were encountered: