-
Notifications
You must be signed in to change notification settings - Fork 145
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
Merge latest QEMU version #20
Comments
This is a great project, thank you. But today when I tried to build it on my ubuntu 18, it complained about g_log...., do you know where I should go first to fix this issue? |
Hello, I am glad that you find the project useful. No, I am not sure offhand where the issue is. What exactly is the error message? Is this Ubuntu 18.04 or 18.10? |
it is Ubuntu 18.04.02 on Wayland
|
Hello, Sorry for the delay in responding - I've had a lot of deadlines lately. I can try to look at it to see what the error is, but it may be a while before I get to it... Thank you, Andre |
You are welcome.
…On Sun, Mar 17, 2019 at 3:03 PM Andre Beckus ***@***.***> wrote:
Hello,
I'm not sure exactly what the issue is, but it seems that this is a
warning that is being treated as an error. One thing you could try is to
tell the compiler to ignore warnings. I don't remember exactly how to do
this offhand, but there is a flag that can be set... This does not fix the
underlying issue, but maybe will get it to compile.
Sorry for the delay in responding - I've had a lot of deadlines lately. I
can try to look at it to see what the error is, but it may be a while
before I get to it...
Thank you, Andre
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALFyik3IzKx69oheahQLDgkxw3QMGbCFks5vXejagaJpZM4VcOuH>
.
|
I installed Ubuntu 18.04, and received this error as well. I ran the configure command with the --disable-werror command, and it compiles (though I am not sure if there are any issues with running QEMU). So, to be specific, I ran these commands to compile: I see someone reported the error in 2016 here: I imagine this is an issue that was fixed in QEMU, but we are seeing it because QEMU_STM32 is based on an old version of QEMU - at some point I will try and resolve this by incorporating the latest QEMU version... |
Thank you very much
Andre Beckus <[email protected]> 於 2019年3月24日 週日 上午7:16寫道:
… I installed Ubuntu 18.04, and received this error as well. I ran the
configure command with the --disable-werror command, and it compiles
(though I am not sure if there are any issues with running QEMU). So, to be
specific, I ran these commands to compile:
./configure --enable-debug --target-list="arm-softmmu" --disable-werror
make
I see someone reported the error in 2016 here:
https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/%5Bqemu%5D-error-%27g_mem_set_vtable%27-is-deprecated-4175586499/
I imagine this is an issue that was fixed in QEMU, but we are seeing it
because QEMU_STM32 is based on an old version of QEMU - at some point I
will try and resolve this by incorporating the latest QEMU version...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALFyimastbG6SRMLSEQdk5EzA5X8LIjhks5vZrXCgaJpZM4VcOuH>
.
|
I just found this project. Is there any plan to push it to the main qemu project? |
No, it would be nice, but I don't have any plans to push it to the main qemu project. Some reasons for not doing so:
|
Hello. I started to port to the latest semi. Lot of work and don't know much about semi. |
Finished the initial port, it compiles but does not run yet. It's not easy as many things have changed. Qom is more and more used, so had to add more quem objects. The other difficult part is the clock. I'm not familiar with it, ans they have now a clock object. Maybe the best will be to rewrite RCC and clock tree to use the new clock system |
Hello @fariouche, thank you for the update, and thank you for working on this. I unfortunately have not updated the QEMU version in a long time, and it only becomes more and more difficult. I am not surprised that QOM is being used more - I liked the idea and would have started using it if I had more time. I am not familiar with the new clock object, but it does seem like rewriting RCC to use its functionality could make it more reliable. I am sorry that I am not able to be of more assistance, but I wish you the best in the update. |
No problem @beckus, your work is already a lot, and well, this is open source and free. I will help because I want it ;) |
ok, so new update: I have it working now. Good news, the zephyr blinky sample is now working (the original issue I wanted to solve). I still have one issue with clock PLL flag not being set in one of my examples using STM32 HAL (but simple baremetal blinky sample app is working). I will investigate that next week, but I'm glad to see good progress. :) |
Thank you again for the updates. It sounds like the ARMv7M code has been cleaned up in the main QEMU branch - I think that is good, though I realize it causes some difficulty. |
Hello! So now everything is working fine! |
Hello, thank you for the update, and sorry for the delay. Thanks for your efforts, and best of luck!
|
I am very concerned with the project since it relies on Python2 which is now being phased out from recent GNU/Linux distributions, meaning it can no longer be compiled on a fresh installation. I was struggling to merge the build scripts of qemu tag 4.2.0 when the transition from Python2 to Python3 seemed to occur -- and failing -- when I started reading the issue list and finding this https://github.com/fariouche/qemu_stm32
seems to hang, and there
or
which does not seem too good in getting the initialization completed. I am using the examples at https://github.com/jmfriedt/stm32 with the Makefile.stm32f1 configuration. |
Hello @jmfriedt, I never used any functional examples beyond the stm32 p103 demos that I developed, which are not comprehensive and do not use libopencm3. Unfortunately, due to other commitments, I do not expect to be able to work on this for the foreseeable future. I will add a link to this issue on the main page for general awareness. Thank you again for your efforts. I'm sorry I'm not of more help. |
I have had a couple discussions regarding merging the latest version of QEMU. I decided to open an issue to facilitate collaboration and avoid duplication of effort.
The last time I tried to merge the latest version of QEMU, it broke the unit tests (I don't recall if there were any other issues). While my original philosophy was to keep the unit tests working, I think it may be time to abandon them and let them break, and instead give priority to finishing the merge.
There was a pull request #16 opened for merging QEMU 2.7 - I did not finish looking at it, but it appeared that it was just a brute force merge that broke QEMU STM32 - i.e. the merge overwrote critical pieces, and the QEMU STM32 machine still needed to be re-incorporated. So, I never finished addressing this pull request. At this point, it is probably better to start a new merge process and close the pull request.
Incidentally, one thing I had hoped to do in tandem with the merge would be to update QEMU STM32 to use the QOM framework: the way I originally built the machine is kind of a hack, and using QOM seems to make things more elegant and scalable, and would also allow the peripherals to be viewed from within the device tree. But, the level of effort of doing this is probably too high (and would introduce risk of breaking things). But, this may be a worthwhile investment for anyone using QEMU for serious purposes, e.g. commercially.
The text was updated successfully, but these errors were encountered: