<div dir="ltr"><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;font-size:small;color:rgb(11,83,148)">I'm a little bit confusing. </div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;font-size:small;color:rgb(11,83,148)"><br>So, if I understand, The 1st part of the workflow ( ie building the RSB & generating the rtems bsp ) is only for compiling programs ( with as a target arm architectures ). This means , every time I have to launch an RTEMS program I have to recompile the program ( the part after ./bootstrap in the workflow ) ? </div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;font-size:small;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;font-size:small;color:rgb(11,83,148)">I Tought , the bsps we generate can be used like in this video i found ( it is for µC/OS II on Zynq ) : <a href="https://www.youtube.com/watch?v=omB7qVBQaIM">https://www.youtube.com/watch?v=omB7qVBQaIM</a></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;font-size:small;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;font-size:small;color:rgb(11,83,148)">Please can anybody else confirm that or give us a clarification. </div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;font-size:small;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;font-size:small;color:rgb(11,83,148)">Thank you </div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><font face="verdana, sans-serif" color="#073763">________<br></font></div><div><font face="verdana, sans-serif" color="#073763"><br></font></div><font face="verdana, sans-serif" color="#073763"><b>Badr EL HIOUEL</b> </font><div><div><font face="verdana, sans-serif" color="#073763">Mail :<a href="mailto:elh.badr@gmail.com" target="_blank"> elh.badr@gmail.com</a></font></div><div><br></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2016-03-22 11:16 GMT+01:00 Jan Sommer <span dir="ltr"><<a href="mailto:soja-lists@aries.uberspace.de" target="_blank">soja-lists@aries.uberspace.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Am 2016-03-22 09:45, schrieb Badr El Hiouel:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Jan ,<br>
<br>
Thank you for support.<br>
<br>
It finally success! For that , I had to delete all the project, then I<br>
rebuild RSB and then it went very fine.<br>
<br>
Now , I designed a Zynq HW on Vivado and I launched it on SDK. But now , in<br>
the labs ( you sent me one for the µZed , The same exists for Zedboard )<br>
they create a new bsp. I imagine that in this step I don't have to create<br>
one but import it from the rtems.<br>
<br>
</blockquote></span>
This part is a bit tricky. The term "bsp" is used in 2 different contexts here.<br>
First you have the rtems-bsp. That complements the generic parts of rtems with the things that depend on your intended target platform (i.e. Zedboard) like drivers for the global timer, etc. This generates the rtems-library for your platform which is linked to your application code to create your RTEMS-application (e.g. ticker.exe).<br>
<br>
Then you have the bsp in the Xilinx context. The Zync CPU consists of an ARM-CPU and an FPGA. In order to run any application on the CPU you also have to configure the FPGA, which you do with the bsp and the FSBL from the Xilinx-toolchain.<br>
I don't know too much about that configuration so far. I simply followed the tutorial where the FPGA is mainly responsible to connect the CPU to the RAM.<br>
<br>
In part 4 of the Tutorial for the MicroZed they build a boot image. If you take a look at Figure 6 (p. 7), I simply replaced the Periph_Test.elf with the test program generated by RTEMS and continued. The setup for the normal Zedboard should be pretty similar. The resulting boot image will boot, initialize the FPGA, load the RTEMS program into RAM and transfer control to it.<span class=""><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So, where I find the bsp ? It's a single file or a directory ? And then how<br>
can I to import it on SDK ?<br>
I read also that for ticker.exe we have to change the extension for .elfe ,<br>
is that what I'll have to do ?<br>
<br>
</blockquote></span>
It might be that the file dialog of the Xilinx tools expects *.elf-files, so renaming might be necessary.<br>
<br>
Best regards,<br>
<br>
   Jan<br>
<br>
PS: Please keep the rtems-users list as recipient, so other people might join the discussion and people with the same problem might benefit.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thank you!<div><div class="h5"><br>
<br>
<br>
________<br>
<br>
*Badr EL HIOUEL*<br>
Mail : <a href="mailto:elh.badr@gmail.com" target="_blank">elh.badr@gmail.com</a><br>
<br>
<br>
2016-03-19 11:57 GMT+01:00 Jan Sommer <<a href="mailto:soja-lists@aries.uberspace.de" target="_blank">soja-lists@aries.uberspace.de</a>>:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Am Friday 18 March 2016, 17:24:48 schrieb Badr El Hiouel:<br>
[...]<br>
> > Thank you for your support,<br>
> ><br>
> > I installed the devel environnement for Python27 and it builds (<br>
finally !<br>
> > )<br>
> > When I did :<br>
> > /mnt/D/development/rtems/kernel/rtems/configure --target=arm-rtems4.12<br>
> > --enable-rtemsbsp=xilinx_zynq_zedboard --enable-tests=samples<br>
> > --enable-posix --enable-cxx --prefix=/mnt/D/development/rtems/bsps/4.12<br>
> > BSP_ARM_A9MPCORE_PERIPHCLK=333333333U<br>
> > It worked but when running make && make install it shows me an error :<br>
> ><br>
> > checking for RTEMS_CPU_MODEL...<br>
> > checking for RTEMS_BSP_FAMILY... xilinx-zynq<br>
> > checking for CPU_CFLAGS... (cached) -march=armv7-a -mthumb -mfpu=neon<br>
> > -mfloat-abi=hard -mtune=cortex-a9<br>
> > checking for CFLAGS_OPTIMIZE_V... (cached) -O2 -g -ffunction-sections<br>
> > -fdata-sections<br>
> > checking for style of include used by gmake... GNU<br>
> > checking for arm-rtems4.12-gcc... no<br>
> > configure: error: no acceptable cc found in $PATH<br>
> > gmake[2]: *** [xilinx_zynq_zedboard] Error 1<br>
> > gmake[2]: Leaving directory<br>
> > `/mnt/D/development/rtems/kernel/zynq/arm-rtems4.12/c'<br>
> > gmake[1]: *** [all-recursive] Error 1<br>
> > gmake[1]: Leaving directory<br>
> > `/mnt/D/development/rtems/kernel/zynq/arm-rtems4.12/c'<br>
> > make: *** [all-recursive] Error 1<br>
> ><br>
<br>
So if I understand it correctly, the RSB finished sucessfully? Then you<br>
should have binaries like arm-rtems-4.12-* installed to the directory you<br>
passed to the RSB.<br>
Configure complains that it cannot find said binaries. That is probably<br>
because you haven't added them to your PATH environment variable.<br>
You can do that with (use the correct path to the bin-directory of your<br>
setup)<br>
export PATH=/mnt/D/development/rtems/compiler/4.12/bin:$PATH<br>
<br>
Try the configure command again after that.<br>
<br>
> > It's a problem of directories ? or the configuration I did ? ( I took<br>
the<br>
> > same configuration you did Jan , because I have no ideas what is those<br>
> > configurations and how to choose that if any body has an explanation<br>
for<br>
> > this part)<br>
<br>
The configure command is part of the autotools and very common in the<br>
Linux/Unix world when building programs from source.<br>
It checks if all the dependencies are met before you build it and gives<br>
you the ability to configure which features of the program you want to<br>
enable and where to install it.<br>
<br>
<br>
<br>
> ><br>
> ><br>
> > Thank you<br>
> ><br>
> ><br>
> ><br>
> > ________<br>
> ><br>
> > *Badr EL HIOUEL*<br>
> > Mail : <a href="mailto:elh.badr@gmail.com" target="_blank">elh.badr@gmail.com</a><br>
> ><br>
> ><br>
> > 2016-03-17 23:16 GMT+01:00 Chris Johns <<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</a>>:<br>
> ><br>
> >> On 18/03/2016 03:12, Jan Sommer wrote:<br>
> >><br>
> >>> Am 2016-03-17 16:31, schrieb Badr El Hiouel:<br>
> >>><br>
> >>>> I had this error that I can't found anywhere the solution for it. I<br>
> >>>> attached the report bug .. Can you please tell me what is going<br>
wrong ?<br>
> >>>><br>
> >>><br>
> >>> It seems to be the same error which occurs quite often here recently.<br>
> >>> Apparently you need to install the python-development packet.<br>
> >>> On a debian based distro it should be python-dev or libpython2.7-dev<br>
> >>><br>
> >><br>
> >> I have added a note about this in the up coming Getting Started Guide:<br>
> >><br>
> >><br>
> >><br>
<a href="https://ftp.rtems.org/pub/rtems/people/chrisj/docs/user/start/index.html#development-version" rel="noreferrer" target="_blank">https://ftp.rtems.org/pub/rtems/people/chrisj/docs/user/start/index.html#development-version</a><br>
> >><br>
> >> It is difficult for the RSB to track dependences for packages like<br>
this.<br>
> >> There are plans but they have not been implemented.<br>
> >><br>
> >> Chris<br>
> >> _______________________________________________<br>
> >> users mailing list<br>
> >> <a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
> >> <a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a><br>
> >><br>
> ><br>
> ><br>
<br>
<br>
</blockquote></div></div></blockquote>
</blockquote></div><br></div>