or1k build issues

Hesham Moustafa heshamelmatary at gmail.com
Fri Aug 22 16:27:40 UTC 2014


Hi,

On Fri, Aug 22, 2014 at 5:11 PM, Joel Sherrill
<joel.sherrill at oarcorp.com> wrote:
> Hi
>
> Some basic or1ksim BSP issues:
>
> (1) I can't build what is committed.
>
> gmake[7]: Entering directory
> `/users/joel/rtems-4.11-work/rtems-testing/rtems/build-or1k-or1k_or1ksim-rtems/or1k-rtems4.11/c/or1k_or1ksim/lib/libbsp/or1k'
> Makefile:731: *** missing separator.  Stop.
>
> I think this was an issue with the generated preinstall.am. I will be
> committing an updated version.
>
Did not have this problem before. I pulled the latests changes and run
./bootstrap -p and ./boostrap, and I was able to build the new BSP.

> (2) I built with networking on. I assume the soft float is normal
> GCC code and thus the format is IEEE 754. I set a conditional
> to indicate that in xdr_float.c
>
> (3) Can we rename or1k_or1ksim to just or1ksim?
>
> It seems redundant to have or1k in the name twice. Are you ok
> if I rename the make/custom file?
>
Sure I second this opinion.

> Does this impact anything else that would need to be updated?
>
> (4) Even with NOP addressed, spcache01 doesn't link. It is
> missing a few symbols from the cache manager.
>
> (5) tm27.h is not provided by the BSP so none of the tmtests
> or psxtmtests will compile. I added the stub version to the
> Makefile.am so the tests will at least compile EXCEPT for the
> spcache01 noted above.
>
It's provided >
https://github.com/RTEMS/rtems/blob/master/c/src/lib/libbsp/or1k/or1ksim/Makefile.am
line 33
> (6) Is the or1ksim built by RSB now? If so how?
>
I remember I sent Chris an old patch to do so, but I think he may be
too busy to check it. If it has any problems, I will sumbit a new one.

> (7) Is the simulator really just called sim? If so, that is a WAY too
> generic name. If that's the case, we need to suggest to Christian
> that it gets renamed something more or1k specific like or1ksim.
>
Depends where do you configured/built it. It's called or32-elf-sim
(from old last release?) and sim from github, or vise versa.

> (8) How do you debug with the simulator?
>
I run the following command:
"or32-elf-sim -f ~/sim.cfg $PATH_TO_EXE"

where ~/sim.cfg is in my home, it's also here (should I add it to
RTEMS and if yes where?)
https://github.com/heshamelmatary/or1k-rtems/blob/master/sim.cfg

And it should wait for gdb to remotely connect at port 50001

> I think I am close to being able to help investigate but this
> weekend is the Southern Brewers Festival so I probably shouldn't
> touch code too much. :)
>
I will fixup the other issues and submit the patch. I am just a little
busy with debugging the printf issue these days :)
> --
> Joel Sherrill, Ph.D.             Director of Research & Development
> joel.sherrill at OARcorp.com        On-Line Applications Research
> Ask me about RTEMS: a free RTOS  Huntsville AL 35805
> Support Available                (256) 722-9985
>


More information about the devel mailing list