On 11/09/2018 21:25, Cudmore, Alan P. (GSFC-5820) wrote:

Sorry for the false alarm, but I found out why it did not work.

My leon3 BSP configure command had –enable-smp

Once I removed that, it worked on both QEMU and TSIM-LEON3.


At least on Qemu it used to work with SMP enabled some time ago. With the latest Qemu the BSP starts (with SMP enabled), but the timecounter seems not to work:

qemu-system-sparc -no-reboot -nographic -M leon3_generic -m 64M -kernel ./sparc-rtems5/c/leon3/testsuites/samples/ticker.exe


*** BEGIN OF TEST CLOCK TICK ***
*** TEST VERSION: 5.0.0.1fe1b820de02c274c2b2b3431340152734ee9fb6
*** TEST STATE: EXPECTED-PASS
*** TEST BUILD: RTEMS_NETWORKING RTEMS_POSIX_API RTEMS_SMP
*** TEST TOOLS: 7.3.0 20180125 (RTEMS 5, RSB 9670d7541e0621915e521fe76e7bb33de8cee661, Newlib d13c84eb07e35984bf7a974cd786a6cdac29e6b9)
TA1  - rtems_clock_get_tod - 09:00:00   12/31/1988
TA2  - rtems_clock_get_tod - 09:00:00   12/31/1988
TA3  - rtems_clock_get_tod - 09:00:00   12/31/1988
TA1  - rtems_clock_get_tod - 09:00:00   12/31/1988
TA2  - rtems_clock_get_tod - 09:00:00   12/31/1988
TA1  - rtems_clock_get_tod - 09:00:00   12/31/1988

The ut699 BSP worked as well.

Does an SMP enabled kernel/bsp only work on a system where there are > 1 cores?


A SMP enabled BSP should work also on systems with only one processor provided you use the right instruction set. I use for example the erc32 BSP with SMP enabled all the time for RTEMS development.

Thanks,

Alan

*From: *devel <devel-boun...@rtems.org> on behalf of Alan Cudmore <alan.p.cudm...@nasa.gov>
*Date: *Tuesday, September 11, 2018 at 3:01 PM
*To: *"rtems-de...@rtems.org" <devel@rtems.org>
*Subject: *sparc/leon3 in git master?

I use RTEMS 4.11 on several leon3 targets, and I have been starting to work with the git master to get ready for RTEMS 5.

With 4.11, I can run ticker, hello, and other samples on TSIM2-LEON3, QEMU with Jiri’s leon3 patches, or real Leon3 targets.

When I run the ticker or hello for RTEMS 5 (RSB toolchain and RTEMS built today) on QEMU or TSIM2 they immediately return with no output.

I tried ticker for the sparc/erc32 BSP on SIS and it works.

Before I start debugging, has anyone else used the generic Leon3 target on RTEMS 5 lately?

Thanks,

Alan


_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to