<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 16, 2020, 5:22 AM <<a href="mailto:Jan.Sommer@dlr.de">Jan.Sommer@dlr.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I try to create a setup to run the rtems testsuite on a Xilinx Zynq device with u-boot.<br>
I built everything with the 5.0.0-m2006-2 pre-release.<br>
It now works in general, but quite a number of tests have a corrupted begin test marker (see below).<br>
This way, rtems-test does not recognize the test and counts it as timeout.<br>
The value of wrong characters is the same for multiple runs of the same test, but is different for different tests (or not present at all).<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Some setups have trouble getting all the characters from the loader out before the body of the ioctl support code in the console driver runs. This has been discussed a couple of times with no generally accepted resolution. The best bet may be waiting for the TX buffer to go empty in the console ioctl code. We tried disabling the ioctl support code and flushing at boot but I don't recall flushing in the ioctl support in the driver which would be more acceptable.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
If I execute the elf file via JTAG, everything works fine. <br>
Has someone encountered such behavior before?<br>
Looks like the something is going wrong during the handover from u-boot to rtems<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Exactly. It is fast enough where reprogramming the uart seems to cause issues with outstanding and early IO.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
> Load address: 0x10000000<br>
> Loading: ###<br>
> 2.9 MiB/s<br>
> done<br>
> Bytes transferred = 39140 (98e4 hex)<br>
> ## Booting kernel from Legacy Image at 10000000 ...<br>
> Image Name: RTEMS<br>
> Image Type: ARM RTEMS Kernel Image (gzip compressed)<br>
> Data Size: 39076 Bytes = 38.2 KiB<br>
> Load Address: 00104000<br>
> Entry Point: 00104000<br>
> Verifying Checksum ... OK<br>
> Uncompressing Kernel Image ... OK<br>
> CC** BEGIN OF TEST SP 16 ***<br>
> *** TEST VERSION: 5.0.0-m2006-2<br>
> *** TEST STATE: EXPECTED_PASS<br>
> *** TEST BUILD: RTEMS_POSIX_API<br>
<br>
Best regards,<br>
<br>
Jan<br>
<br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank" rel="noreferrer">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a><br>
</blockquote></div></div></div>