On 8/17/19 8:23 PM, Joel Sherrill wrote: > > > On Sat, Aug 17, 2019, 1:07 PM Jiri Gaisler <j...@gaisler.se > <mailto:j...@gaisler.se>> wrote: > > > On 8/16/19 11:03 PM, Juan Rafael García Blanco wrote: >> Hi, >> >> AFAIK, the last qemu major version includes support for leon3. >> But I dont't know if that work was based on these patches. > > Indeed. Qemu git head now includes leon3 plug&play and should be > able to run RTEMS images unpatched. Is there a reason why the qemu > version built by RSB is from June 2015 ..? > > > Sadly no one has updated it. Beyond Leon, Zynq and PC, what should be > tested? > > Riscv status in head? > > Beagle? > > Any other bsps we use with Qemu? > > I'd love to see it updated. It's a pain to test across all the hosts > and get working.
Unfortunately, qemu HEAD cannot execute RTEMS leon3 images unpatched. The startup code needs a (simple) tweak, and the implementation of the plug&play is not quite correct. An RTEMS binary fails to detect the interrupt controller and subsequently terminates. I have spent a few hours on it but the bug is rather elusive and I am not sure I will be able to track it down. Debugging low-level target code on qemu is not exactly user friendly :-) ... > > Jiri. > >> >> Regards, >> Juan. >> >> On Fri, Aug 16, 2019, 11:00 PM Jiri Gaisler <j...@gaisler.se >> <mailto:j...@gaisler.se>> wrote: >> >> >> On 8/15/19 12:09 AM, Joel Sherrill wrote: >> > On Wed, Aug 14, 2019 at 4:42 PM Chris Johns >> <chr...@rtems.org <mailto:chr...@rtems.org>> wrote: >> >> On 15/8/19 12:46 am, Joel Sherrill wrote: >> >>> Qemu isn't building due to a checksum error. >> >>> >> >>> These patches are at gaisler.org <http://gaisler.org>. I >> don't know where to move them but >> >>> eventually they should be moved. >> >> You can post them to qemu's patchworks and then get them >> from there. The RSB >> >> supports fetching from patchworks. >> > Jiri: Are these already on patchworks by any chance? >> >> Not that I am aware of. The checksum probably changed because >> the original patches were lost during a server rehost, and I >> recovered some earlier version from a backup disk. The >> patches do not apply cleanly to the latest version of qemu: >> >> + /bin/cat >> >> /home/jiri/ibm/src/rtems/rtems-source-builder/bare/patches/0001-LEON3-Add-emulation-of-AMBA-plug-play.patch >> + /usr/bin/patch -p1 >> patching file hw/sparc/Makefile.objs >> patching file hw/sparc/grlib_ambapnp.c >> patching file hw/sparc/leon3.c >> Hunk #1 succeeded at 207 (offset -7 lines). >> patching file include/hw/sparc/grlib.h >> Hunk #1 FAILED at 117. >> 1 out of 1 hunk FAILED -- saving rejects to file >> include/hw/sparc/grlib.h.rej >> >> Could be that qemu has moved since the patches were make, I >> will try to take a look ... >> >> Jiri. >> >> >> >> _______________________________________________ >> devel mailing list >> devel@rtems.org <mailto:devel@rtems.org> >> http://lists.rtems.org/mailman/listinfo/devel >>
_______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel