Building RISC-V BSP

Denis Obrezkov denisobrezkov at gmail.com
Thu Jun 1 15:27:46 UTC 2017


Hello Hesham,

should I apply your patches? or should I paste all of them to
some directory (rsb has several 'patches' folders).

Also, could you describe our workflow? In the context of with what
repository
 I should work and where I should direct my pull requests.

2017-06-01 5:09 GMT+03:00 Hesham Almatary <heshamelmatary at gmail.com>:

> Hi Denis,
>
> I submitted two patches for the tools, please use the latest only and
> rebuild the tools. This should avoid the newlib issues you had above
> as it uses main riscv patches.
>
> I'll look into the port this weekend and submit fixes unless you beat
> me to it. Meanwhile, you can submit error messages and I'll see if I
> can help.
>
> Keep the good work.
>
> Cheers,
> Hesham
>
> On Thu, Jun 1, 2017 at 12:04 AM, Denis Obrezkov <denisobrezkov at gmail.com>
> wrote:
> > 2017-05-31 16:39 GMT+03:00 Denis Obrezkov <denisobrezkov at gmail.com>:
> >>
> >> Thanks, I downloaded it.
> >> There was a mistake also that _JBLEN wasn't defined in machine/setjmp.h
> >> I don't know the exact value, so I did the following:
> >> #ifdef __riscv
> >>
> >> /* TBD: not the exact number */
> >>
> >> #define _JBLEN 16
> >>
> >> #endif
> >>
> >> Now, it compiles further. But then I get the error:
> >> riscv32-rtems4.12-gcc --pipe -B../../../lib/
> -B../../../riscv_generic/lib/
> >> -specs bsp_specs -qrtems -DPACKAGE_NAME=\"rtems-c-src\"
> >> -DPACKAGE_TARNAME=\"rtems-c-src\" -DPACKAGE_VERSION=\"4.11.99.0\"
> >> -DPACKAGE_STRING=\"rtems-c-src\ 4.11.99.0\"
> >> -DPACKAGE_BUGREPORT=\"https://devel.rtems.org/newticket\"
> -DPACKAGE_URL=\"\"
> >> -I.
> >> -I/home/reprofy/Projects/riscv/rtems/development/rtems/
> kernel/rtems-riscv/c/src/libchip
> >> -isystem ../../../riscv_generic/lib/include   -O0 -g -Wall
> >> -Wmissing-prototypes -Wimplicit-function-declaration
> -Wstrict-prototypes
> >> -Wnested-externs -MT display/libdisplay_a-disp_hcms29xx.o -MD -MP -MF
> >> display/.deps/libdisplay_a-disp_hcms29xx.Tpo -c -o
> >> display/libdisplay_a-disp_hcms29xx.o `test -f
> 'display/disp_hcms29xx.c' ||
> >> echo
> >> '/home/reprofy/Projects/riscv/rtems/development/rtems/
> kernel/rtems-riscv/c/src/libchip/'`display/disp_hcms29xx.c
> >> riscv32-rtems4.12-gcc: error: bsp_specs: No such file or directory
> >>
> >> So, I inserted it manually. But I can't figure out, why it wasn't copied
> >> automatically.
> >>
> >> Now I have an error:
> >> riscv32-rtems4.12-gcc --pipe -B../../../lib/
> -B../../../riscv_generic/lib/
> >> -specs bsp_specs -qrtems -DPACKAGE_NAME=\"rtems-c-src\"
> >> -DPACKAGE_TARNAME=\"rtems-c-src\" -DPACKAGE_VERSION=\"4.11.99.0\"
> >> -DPACKAGE_STRING=\"rtems-c-src\ 4.11.99.0\"
> >> -DPACKAGE_BUGREPORT=\"https://devel.rtems.org/newticket\"
> -DPACKAGE_URL=\"\"
> >> -I.
> >> -I/home/reprofy/Projects/riscv/rtems/development/rtems/
> kernel/rtems-riscv/c/src/libchip
> >> -isystem ../../../riscv_generic/lib/include   -O0 -g -Wall
> >> -Wmissing-prototypes -Wimplicit-function-declaration
> -Wstrict-prototypes
> >> -Wnested-externs -MT display/libdisplay_a-disp_hcms29xx.o -MD -MP -MF
> >> display/.deps/libdisplay_a-disp_hcms29xx.Tpo -c -o
> >> display/libdisplay_a-disp_hcms29xx.o `test -f
> 'display/disp_hcms29xx.c' ||
> >> echo
> >> '/home/reprofy/Projects/riscv/rtems/development/rtems/
> kernel/rtems-riscv/c/src/libchip/'`display/disp_hcms29xx.c
> >>
> >> /home/reprofy/Projects/riscv/rtems/development/rtems/
> kernel/rtems-riscv/c/src/libchip/display/disp_hcms29xx.c:26:10:
> >> fatal error: bsp.h: No such file or directory
> >>  #include <bsp.h>
> >>
> >> It seems that configure scripts should be modified.
> >>
> >> 2017-05-31 8:46 GMT+03:00 Hesham Almatary <heshamelmatary at gmail.com>:
> >>>
> >>> Hi Denis,
> >>>
> >>> Please use priv-1.10 branch. I rebased it (against master) and added
> >>> some fixes to make the build progress. Still, there's more work
> >>> needed. Your contributions are welcomed.
> >>>
> >>> Cheers,
> >>> Hesham
> >>> .
> >>>
> >>
> >>
> >> --
> >> Regards, Denis Obrezkov
> >
> > I think I worked it out. In a few days I will produce patches.
> > Now I am trying to compile .S files. Seems that some instructions are
> > missing.
> >
> >
> > --
> > Regards, Denis Obrezkov
>
>
>
> --
> Hesham
>



-- 
Regards, Denis Obrezkov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20170601/f7ae3fbb/attachment-0002.html>


More information about the devel mailing list