<div dir="ltr">Now I have a problem with console-io.c file.<div>The problem is with csr macros - there is no more such a register "tohost".</div><div>Here it is described a little:</div><div><a href="https://github.com/riscv/riscv-pk/issues/25">https://github.com/riscv/riscv-pk/issues/25</a><br></div><div><br></div><div>Could you explain what should be done here and what for was mtohost register?</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-06-02 2:22 GMT+03:00 Hesham Almatary <span dir="ltr"><<a href="mailto:heshamelmatary@gmail.com" target="_blank">heshamelmatary@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, Jun 2, 2017 at 9:12 AM, Denis Obrezkov <<a href="mailto:denisobrezkov@gmail.com">denisobrezkov@gmail.com</a>> wrote:<br>
> So, am I understand right, that I should make my repo, submit commits to it,<br>
> produce patches and send them to your repo as pool requests?<br>
> And should I make my repo by cloning yours?<br>
><br>
</span>Correct. Make sure your work with priv-1.10 (as a base) branch since<br>
this is the one that should end up upstream. Ideally, you would<br>
fork/clone my repo, checkout priv-1.10 branch, create your own branch<br>
based on it, and submit pull requests to my priv-1.10 branch.<br>
Regularly, you'd want to rebase against priv-1.10 when I make changes<br>
to it.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
> 2017-06-02 2:02 GMT+03:00 Hesham Almatary <<a href="mailto:heshamelmatary@gmail.com">heshamelmatary@gmail.com</a>>:<br>
>><br>
>> Hi Denis,<br>
>><br>
>> On Fri, Jun 2, 2017 at 1:27 AM, Denis Obrezkov <<a href="mailto:denisobrezkov@gmail.com">denisobrezkov@gmail.com</a>><br>
>> wrote:<br>
>> > Hello Hesham,<br>
>> ><br>
>> > should I apply your patches? or should I paste all of them to<br>
>> > some directory (rsb has several 'patches' folders).<br>
>> ><br>
>> You only need to apply this patch [1] to RSB and build the tools again.<br>
>><br>
>> [1] <a href="https://lists.rtems.org/pipermail/devel/2017-May/017951.html" rel="noreferrer" target="_blank">https://lists.rtems.org/<wbr>pipermail/devel/2017-May/<wbr>017951.html</a><br>
>> > Also, could you describe our workflow? In the context of with what<br>
>> > repository<br>
>> >  I should work and where I should direct my pull requests.<br>
>> ><br>
>> Since the port is not upstream yet, you can submit PRs to my GitHub<br>
>> repo in the time being until we get it upstreamed. After this you can<br>
>> submit patches for review to this mailing list.<br>
>><br>
>> > 2017-06-01 5:09 GMT+03:00 Hesham Almatary <<a href="mailto:heshamelmatary@gmail.com">heshamelmatary@gmail.com</a>>:<br>
>> >><br>
>> >> Hi Denis,<br>
>> >><br>
>> >> I submitted two patches for the tools, please use the latest only and<br>
>> >> rebuild the tools. This should avoid the newlib issues you had above<br>
>> >> as it uses main riscv patches.<br>
>> >><br>
>> >> I'll look into the port this weekend and submit fixes unless you beat<br>
>> >> me to it. Meanwhile, you can submit error messages and I'll see if I<br>
>> >> can help.<br>
>> >><br>
>> >> Keep the good work.<br>
>> >><br>
>> >> Cheers,<br>
>> >> Hesham<br>
>> >><br>
>> >> On Thu, Jun 1, 2017 at 12:04 AM, Denis Obrezkov<br>
>> >> <<a href="mailto:denisobrezkov@gmail.com">denisobrezkov@gmail.com</a>><br>
>> >> wrote:<br>
>> >> > 2017-05-31 16:39 GMT+03:00 Denis Obrezkov <<a href="mailto:denisobrezkov@gmail.com">denisobrezkov@gmail.com</a>>:<br>
>> >> >><br>
>> >> >> Thanks, I downloaded it.<br>
>> >> >> There was a mistake also that _JBLEN wasn't defined in<br>
>> >> >> machine/setjmp.h<br>
>> >> >> I don't know the exact value, so I did the following:<br>
>> >> >> #ifdef __riscv<br>
>> >> >><br>
>> >> >> /* TBD: not the exact number */<br>
>> >> >><br>
>> >> >> #define _JBLEN 16<br>
>> >> >><br>
>> >> >> #endif<br>
>> >> >><br>
>> >> >> Now, it compiles further. But then I get the error:<br>
>> >> >> riscv32-rtems4.12-gcc --pipe -B../../../lib/<br>
>> >> >> -B../../../riscv_generic/lib/<br>
>> >> >> -specs bsp_specs -qrtems -DPACKAGE_NAME=\"rtems-c-src\"<br>
>> >> >> -DPACKAGE_TARNAME=\"rtems-c-<wbr>src\" -DPACKAGE_VERSION=\"4.11.99.0\<wbr>"<br>
>> >> >> -DPACKAGE_STRING=\"rtems-c-<wbr>src\ 4.11.99.0\"<br>
>> >> >> -DPACKAGE_BUGREPORT=\"<a href="https://devel.rtems.org/newticket\" rel="noreferrer" target="_blank">https://<wbr>devel.rtems.org/newticket\</a>"<br>
>> >> >> -DPACKAGE_URL=\"\"<br>
>> >> >> -I.<br>
>> >> >><br>
>> >> >><br>
>> >> >> -I/home/reprofy/Projects/<wbr>riscv/rtems/development/rtems/<wbr>kernel/rtems-riscv/c/src/<wbr>libchip<br>
>> >> >> -isystem ../../../riscv_generic/lib/<wbr>include   -O0 -g -Wall<br>
>> >> >> -Wmissing-prototypes -Wimplicit-function-<wbr>declaration<br>
>> >> >> -Wstrict-prototypes<br>
>> >> >> -Wnested-externs -MT display/libdisplay_a-disp_<wbr>hcms29xx.o -MD -MP<br>
>> >> >> -MF<br>
>> >> >> display/.deps/libdisplay_a-<wbr>disp_hcms29xx.Tpo -c -o<br>
>> >> >> display/libdisplay_a-disp_<wbr>hcms29xx.o `test -f<br>
>> >> >> 'display/disp_hcms29xx.c'<br>
>> >> >> ||<br>
>> >> >> echo<br>
>> >> >><br>
>> >> >><br>
>> >> >> '/home/reprofy/Projects/riscv/<wbr>rtems/development/rtems/<wbr>kernel/rtems-riscv/c/src/<wbr>libchip/'`display/disp_<wbr>hcms29xx.c<br>
>> >> >> riscv32-rtems4.12-gcc: error: bsp_specs: No such file or directory<br>
>> >> >><br>
>> >> >> So, I inserted it manually. But I can't figure out, why it wasn't<br>
>> >> >> copied<br>
>> >> >> automatically.<br>
>> >> >><br>
>> >> >> Now I have an error:<br>
>> >> >> riscv32-rtems4.12-gcc --pipe -B../../../lib/<br>
>> >> >> -B../../../riscv_generic/lib/<br>
>> >> >> -specs bsp_specs -qrtems -DPACKAGE_NAME=\"rtems-c-src\"<br>
>> >> >> -DPACKAGE_TARNAME=\"rtems-c-<wbr>src\" -DPACKAGE_VERSION=\"4.11.99.0\<wbr>"<br>
>> >> >> -DPACKAGE_STRING=\"rtems-c-<wbr>src\ 4.11.99.0\"<br>
>> >> >> -DPACKAGE_BUGREPORT=\"<a href="https://devel.rtems.org/newticket\" rel="noreferrer" target="_blank">https://<wbr>devel.rtems.org/newticket\</a>"<br>
>> >> >> -DPACKAGE_URL=\"\"<br>
>> >> >> -I.<br>
>> >> >><br>
>> >> >><br>
>> >> >> -I/home/reprofy/Projects/<wbr>riscv/rtems/development/rtems/<wbr>kernel/rtems-riscv/c/src/<wbr>libchip<br>
>> >> >> -isystem ../../../riscv_generic/lib/<wbr>include   -O0 -g -Wall<br>
>> >> >> -Wmissing-prototypes -Wimplicit-function-<wbr>declaration<br>
>> >> >> -Wstrict-prototypes<br>
>> >> >> -Wnested-externs -MT display/libdisplay_a-disp_<wbr>hcms29xx.o -MD -MP<br>
>> >> >> -MF<br>
>> >> >> display/.deps/libdisplay_a-<wbr>disp_hcms29xx.Tpo -c -o<br>
>> >> >> display/libdisplay_a-disp_<wbr>hcms29xx.o `test -f<br>
>> >> >> 'display/disp_hcms29xx.c'<br>
>> >> >> ||<br>
>> >> >> echo<br>
>> >> >><br>
>> >> >><br>
>> >> >> '/home/reprofy/Projects/riscv/<wbr>rtems/development/rtems/<wbr>kernel/rtems-riscv/c/src/<wbr>libchip/'`display/disp_<wbr>hcms29xx.c<br>
>> >> >><br>
>> >> >><br>
>> >> >><br>
>> >> >> /home/reprofy/Projects/riscv/<wbr>rtems/development/rtems/<wbr>kernel/rtems-riscv/c/src/<wbr>libchip/display/disp_hcms29xx.<wbr>c:26:10:<br>
>> >> >> fatal error: bsp.h: No such file or directory<br>
>> >> >>  #include <bsp.h><br>
>> >> >><br>
>> >> >> It seems that configure scripts should be modified.<br>
>> >> >><br>
>> >> >> 2017-05-31 8:46 GMT+03:00 Hesham Almatary<br>
>> >> >> <<a href="mailto:heshamelmatary@gmail.com">heshamelmatary@gmail.com</a>>:<br>
>> >> >>><br>
>> >> >>> Hi Denis,<br>
>> >> >>><br>
>> >> >>> Please use priv-1.10 branch. I rebased it (against master) and<br>
>> >> >>> added<br>
>> >> >>> some fixes to make the build progress. Still, there's more work<br>
>> >> >>> needed. Your contributions are welcomed.<br>
>> >> >>><br>
>> >> >>> Cheers,<br>
>> >> >>> Hesham<br>
>> >> >>> .<br>
>> >> >>><br>
>> >> >><br>
>> >> >><br>
>> >> >> --<br>
>> >> >> Regards, Denis Obrezkov<br>
>> >> ><br>
>> >> > I think I worked it out. In a few days I will produce patches.<br>
>> >> > Now I am trying to compile .S files. Seems that some instructions are<br>
>> >> > missing.<br>
>> >> ><br>
>> >> ><br>
>> >> > --<br>
>> >> > Regards, Denis Obrezkov<br>
>> >><br>
>> >><br>
>> >><br>
>> >> --<br>
>> >> Hesham<br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > Regards, Denis Obrezkov<br>
>><br>
>><br>
>><br>
>> --<br>
>> Hesham<br>
><br>
><br>
><br>
><br>
> --<br>
> Regards, Denis Obrezkov<br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Hesham<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Regards, Denis Obrezkov</div>
</div>