Discussion:
RTEMS/LEON3 on Qemu
Karel Gardas
2014-09-26 19:54:47 UTC
Permalink
Folks,

I've seen this thread: RTEMS simulation of LEON3 over QEMU -- here
http://lists.rtems.org/pipermail/users/2014-February/027560.html and I'm
curious if anybody here already has given a try to LEON3/RTEMS on Qemu.

Particularly I would appreciate just a note if LEON3/Qemu required
patches are already merged into Qemu head or not.. The patches are
mentioned here by Sebastian:
http://lists.rtems.org/pipermail/users/2014-February/027561.html

Also Sebastian mentions special LEON3 Qemu BSP is needed in his email
here: http://lists.rtems.org/pipermail/users/2014-February/027562.html

The link is no longer valid but perhaps originally pointed here:
http://lists.rtems.org/pipermail/devel/2014-February/005283.html --
[PATCH] bsp/leon3_qemu: New BSP variant

At the end of the thread it looks like BSP originally submitted and
committed is reverted and the project hangs kind of in the air waiting
for Qemu to merge some patches but also mentioning that Qemu development
process is not well managed and that it takes a lot of effort to push
even simplest patches in.

So is real closure of all this that RTEMS/LEON3 is not runable on Qemu
HEAD? If so, then I'm happy to patch Qemu with required patches but I'm
kind of confused by a state of RTEMS on Leon3: may I use or rather not
Sebastian's LEON_QEMU BSP? Is it uptodate or already sources diverted a
lot so it's not applicable anymore? Or shall I use some el-cheapo FPGA
board supporting LEON3 and use that for running RTEMS? What's current
recommended way for RTEMS/LEON3 development?

Thanks!
Karel
Jiri Gaisler
2014-09-27 19:43:35 UTC
Permalink
You can run the regular leon3 bsp on qemu if you apply these two
patches on qemu git head:

http://gaisler.org/qemu/

Configure qemu with --target-list=sparc-softmmu --enable-debug, and
execute the RTEMS binaries with:

qemu-system-sparc -no-reboot -nographic -M leon3_generic -m 64M -kernel ticker.exe

Note, there is no support for MMU, SMP or networking in the leon3 port of qemu.

Jiri.

PS. Somebody with write access might want to add this to the RTEMS wiki ...
Post by Karel Gardas
Folks,
I've seen this thread: RTEMS simulation of LEON3 over QEMU -- here http://lists.rtems.org/pipermail/users/2014-February/027560.html and I'm curious if anybody here already has given a try to LEON3/RTEMS on Qemu.
Particularly I would appreciate just a note if LEON3/Qemu required patches are already merged into Qemu head or not.. The patches are mentioned here by Sebastian: http://lists.rtems.org/pipermail/users/2014-February/027561.html
Also Sebastian mentions special LEON3 Qemu BSP is needed in his email here: http://lists.rtems.org/pipermail/users/2014-February/027562.html
http://lists.rtems.org/pipermail/devel/2014-February/005283.html -- [PATCH] bsp/leon3_qemu: New BSP variant
At the end of the thread it looks like BSP originally submitted and committed is reverted and the project hangs kind of in the air waiting for Qemu to merge some patches but also mentioning that Qemu development process is not well managed and that it takes a lot of effort to
push even simplest patches in.
So is real closure of all this that RTEMS/LEON3 is not runable on Qemu HEAD? If so, then I'm happy to patch Qemu with required patches but I'm kind of confused by a state of RTEMS on Leon3: may I use or rather not Sebastian's LEON_QEMU BSP? Is it uptodate or already sources
diverted a lot so it's not applicable anymore? Or shall I use some el-cheapo FPGA board supporting LEON3 and use that for running RTEMS? What's current recommended way for RTEMS/LEON3 development?
Thanks!
Karel
_______________________________________________
users mailing list
http://lists.rtems.org/mailman/listinfo/users
Karel Gardas
2014-09-27 19:51:19 UTC
Permalink
Hello Jiri,

this sounds fantastic. I hope I'll get to test it next weekend and if
successful I'll deal with RTEMS Wiki for it. I will certainly keep you
posted.

Thanks!
Karel
Post by Jiri Gaisler
You can run the regular leon3 bsp on qemu if you apply these two
http://gaisler.org/qemu/
Configure qemu with --target-list=sparc-softmmu --enable-debug, and
qemu-system-sparc -no-reboot -nographic -M leon3_generic -m 64M -kernel ticker.exe
Note, there is no support for MMU, SMP or networking in the leon3 port of qemu.
Jiri.
PS. Somebody with write access might want to add this to the RTEMS wiki ...
Post by Karel Gardas
Folks,
I've seen this thread: RTEMS simulation of LEON3 over QEMU -- here http://lists.rtems.org/pipermail/users/2014-February/027560.html and I'm curious if anybody here already has given a try to LEON3/RTEMS on Qemu.
Particularly I would appreciate just a note if LEON3/Qemu required patches are already merged into Qemu head or not.. The patches are mentioned here by Sebastian: http://lists.rtems.org/pipermail/users/2014-February/027561.html
Also Sebastian mentions special LEON3 Qemu BSP is needed in his email here: http://lists.rtems.org/pipermail/users/2014-February/027562.html
http://lists.rtems.org/pipermail/devel/2014-February/005283.html -- [PATCH] bsp/leon3_qemu: New BSP variant
At the end of the thread it looks like BSP originally submitted and committed is reverted and the project hangs kind of in the air waiting for Qemu to merge some patches but also mentioning that Qemu development process is not well managed and that it takes a lot of effort to
push even simplest patches in.
So is real closure of all this that RTEMS/LEON3 is not runable on Qemu HEAD? If so, then I'm happy to patch Qemu with required patches but I'm kind of confused by a state of RTEMS on Leon3: may I use or rather not Sebastian's LEON_QEMU BSP? Is it uptodate or already sources
diverted a lot so it's not applicable anymore? Or shall I use some el-cheapo FPGA board supporting LEON3 and use that for running RTEMS? What's current recommended way for RTEMS/LEON3 development?
Thanks!
Karel
_______________________________________________
users mailing list
http://lists.rtems.org/mailman/listinfo/users
Joel Sherrill
2014-09-27 19:56:09 UTC
Permalink
Are those patches in the couverture project's qemu repository?

Their repo has coverage reporting and covoar can analyze it.

Also these could be added to the RSB build of qemu.
Post by Karel Gardas
Hello Jiri,
this sounds fantastic. I hope I'll get to test it next weekend and if
successful I'll deal with RTEMS Wiki for it. I will certainly keep you
posted.
Thanks!
Karel
Post by Jiri Gaisler
You can run the regular leon3 bsp on qemu if you apply these two
http://gaisler.org/qemu/
Configure qemu with --target-list=sparc-softmmu --enable-debug, and
qemu-system-sparc -no-reboot -nographic -M leon3_generic -m 64M
-kernel ticker.exe
Post by Jiri Gaisler
Note, there is no support for MMU, SMP or networking in the leon3
port of qemu.
Post by Jiri Gaisler
Jiri.
PS. Somebody with write access might want to add this to the RTEMS
wiki ...
Post by Jiri Gaisler
Post by Karel Gardas
Folks,
I've seen this thread: RTEMS simulation of LEON3 over QEMU -- here
http://lists.rtems.org/pipermail/users/2014-February/027560.html and
I'm curious if anybody here already has given a try to LEON3/RTEMS on
Qemu.
Post by Jiri Gaisler
Post by Karel Gardas
Particularly I would appreciate just a note if LEON3/Qemu required
patches are already merged into Qemu head or not.. The patches are
http://lists.rtems.org/pipermail/users/2014-February/027561.html
Post by Jiri Gaisler
Post by Karel Gardas
Also Sebastian mentions special LEON3 Qemu BSP is needed in his
http://lists.rtems.org/pipermail/users/2014-February/027562.html
Post by Jiri Gaisler
Post by Karel Gardas
http://lists.rtems.org/pipermail/devel/2014-February/005283.html --
[PATCH] bsp/leon3_qemu: New BSP variant
Post by Jiri Gaisler
Post by Karel Gardas
At the end of the thread it looks like BSP originally submitted and
committed is reverted and the project hangs kind of in the air waiting
for Qemu to merge some patches but also mentioning that Qemu
development process is not well managed and that it takes a lot of
effort to
Post by Jiri Gaisler
Post by Karel Gardas
push even simplest patches in.
So is real closure of all this that RTEMS/LEON3 is not runable on
Qemu HEAD? If so, then I'm happy to patch Qemu with required patches
but I'm kind of confused by a state of RTEMS on Leon3: may I use or
rather not Sebastian's LEON_QEMU BSP? Is it uptodate or already sources
Post by Jiri Gaisler
Post by Karel Gardas
diverted a lot so it's not applicable anymore? Or shall I use some
el-cheapo FPGA board supporting LEON3 and use that for running RTEMS?
What's current recommended way for RTEMS/LEON3 development?
Post by Jiri Gaisler
Post by Karel Gardas
Thanks!
Karel
_______________________________________________
users mailing list
http://lists.rtems.org/mailman/listinfo/users
_______________________________________________
users mailing list
http://lists.rtems.org/mailman/listinfo/users
Karel Gardas
2014-10-06 08:31:51 UTC
Permalink
Jiri,

thanks a lot for your hint and patches to qemu. Indeed, using your way
I've been able to run LEON3 bsp on Qemu. For now I've pointed from Wiki
just to your email. Later hopefully I'll find some time to enhance this
to independent page.

BTW: Do you plan to enhance Qemu support to include some of the missing
functionality? (MMU/SMP/Networking)

Thanks!
Karel
Post by Jiri Gaisler
You can run the regular leon3 bsp on qemu if you apply these two
http://gaisler.org/qemu/
Configure qemu with --target-list=sparc-softmmu --enable-debug, and
qemu-system-sparc -no-reboot -nographic -M leon3_generic -m 64M -kernel ticker.exe
Note, there is no support for MMU, SMP or networking in the leon3 port of qemu.
Jiri.
PS. Somebody with write access might want to add this to the RTEMS wiki ...
Post by Karel Gardas
Folks,
I've seen this thread: RTEMS simulation of LEON3 over QEMU -- here http://lists.rtems.org/pipermail/users/2014-February/027560.html and I'm curious if anybody here already has given a try to LEON3/RTEMS on Qemu.
Particularly I would appreciate just a note if LEON3/Qemu required patches are already merged into Qemu head or not.. The patches are mentioned here by Sebastian: http://lists.rtems.org/pipermail/users/2014-February/027561.html
Also Sebastian mentions special LEON3 Qemu BSP is needed in his email here: http://lists.rtems.org/pipermail/users/2014-February/027562.html
http://lists.rtems.org/pipermail/devel/2014-February/005283.html -- [PATCH] bsp/leon3_qemu: New BSP variant
At the end of the thread it looks like BSP originally submitted and committed is reverted and the project hangs kind of in the air waiting for Qemu to merge some patches but also mentioning that Qemu development process is not well managed and that it takes a lot of effort to
push even simplest patches in.
So is real closure of all this that RTEMS/LEON3 is not runable on Qemu HEAD? If so, then I'm happy to patch Qemu with required patches but I'm kind of confused by a state of RTEMS on Leon3: may I use or rather not Sebastian's LEON_QEMU BSP? Is it uptodate or already sources
diverted a lot so it's not applicable anymore? Or shall I use some el-cheapo FPGA board supporting LEON3 and use that for running RTEMS? What's current recommended way for RTEMS/LEON3 development?
Thanks!
Karel
_______________________________________________
users mailing list
http://lists.rtems.org/mailman/listinfo/users
Jiri Gaisler
2014-10-06 20:28:49 UTC
Permalink
Jiri,
thanks a lot for your hint and patches to qemu. Indeed, using your way I've been able to run LEON3 bsp on Qemu. For now I've pointed from Wiki just to your email. Later hopefully I'll find some time to enhance this to independent page.
BTW: Do you plan to enhance Qemu support to include some of the missing functionality? (MMU/SMP/Networking)
No, not in the short time frame. Note that most of the leon3 port has been
written by others - I only contributed the plug&play support and initialization
of some hardware registers ...

Jiri.
Thanks!
Karel
Post by Jiri Gaisler
You can run the regular leon3 bsp on qemu if you apply these two
http://gaisler.org/qemu/
Configure qemu with --target-list=sparc-softmmu --enable-debug, and
qemu-system-sparc -no-reboot -nographic -M leon3_generic -m 64M -kernel ticker.exe
Note, there is no support for MMU, SMP or networking in the leon3 port of qemu.
Jiri.
PS. Somebody with write access might want to add this to the RTEMS wiki ...
Post by Karel Gardas
Folks,
I've seen this thread: RTEMS simulation of LEON3 over QEMU -- here http://lists.rtems.org/pipermail/users/2014-February/027560.html and I'm curious if anybody here already has given a try to LEON3/RTEMS on Qemu.
Particularly I would appreciate just a note if LEON3/Qemu required patches are already merged into Qemu head or not.. The patches are mentioned here by Sebastian: http://lists.rtems.org/pipermail/users/2014-February/027561.html
Also Sebastian mentions special LEON3 Qemu BSP is needed in his email here: http://lists.rtems.org/pipermail/users/2014-February/027562.html
http://lists.rtems.org/pipermail/devel/2014-February/005283.html -- [PATCH] bsp/leon3_qemu: New BSP variant
At the end of the thread it looks like BSP originally submitted and committed is reverted and the project hangs kind of in the air waiting for Qemu to merge some patches but also mentioning that Qemu development process is not well managed and that it takes a lot of effort to
push even simplest patches in.
So is real closure of all this that RTEMS/LEON3 is not runable on Qemu HEAD? If so, then I'm happy to patch Qemu with required patches but I'm kind of confused by a state of RTEMS on Leon3: may I use or rather not Sebastian's LEON_QEMU BSP? Is it uptodate or already sources
diverted a lot so it's not applicable anymore? Or shall I use some el-cheapo FPGA board supporting LEON3 and use that for running RTEMS? What's current recommended way for RTEMS/LEON3 development?
Thanks!
Karel
_______________________________________________
users mailing list
http://lists.rtems.org/mailman/listinfo/users
Loading...