RTEMS ARMv8 Query

Gedare Bloom gedare at rtems.org
Tue Mar 1 12:37:50 UTC 2016


Hello Raghav,

You cannot compile RTEMS with an aarch64-gcc until there is an aarch64
architecture in RTEMS. See also,
https://docs.rtems.org/doc-current/share/rtems/html/cpu_supplement/Preface.html#Preface

Also, you did not provide enough information about how you 'configure'
RTEMS and whether config.log contains any relevant details.

Gedare

On Tue, Mar 1, 2016 at 4:55 AM, Raghav Nayak <raghav.nayak at nxp.com> wrote:
> Hi Joel,
>
>
>
> I tried build RTEMS with RSB ARMv8 Toolchain & getting following error:
>
> checking whether the C compiler works... no
>
> configure: error: in
> `/mnt/FSL/rtems/rtems-git/build/aarch64-rtems4.12/c/raspberrypi2':
>
> configure: error: C compiler cannot create executables
>
> See `config.log' for more details
>
>
>
> Could you please provide some info to resolve this error
>
>
>
> Thanks and With Regards
>
>   Raghav
>
>
>
>
>
>
>
> From: Joel Sherrill [mailto:joel at rtems.org]
> Sent: Monday, February 29, 2016 10:59 PM
>
>
> To: Raghav Nayak
> Cc: Chris Johns; Sebastian Huber; users at rtems.org
> Subject: Re: RTEMS ARMv8 Query
>
>
>
>
>
>
>
> On Mon, Feb 29, 2016 at 9:54 AM, Raghav Nayak <raghav.nayak at nxp.com> wrote:
>
> Hi Joel,
>
>
>
> After bootstrap if I want to add something for configure do you have any
> steps?
>
>
>
>
>
> Normally, I configure something like this in a separate build tree:
>
>
>
> mkdir b
>
> cd b
>
> ../rtems/configure --target=CPU-rtems4.12 --enable-rtemsbsp=XXX
> --enable-tests=samples --disable-networking
>
> make
>
>
>
> CPU and BSP get replaced appropriately.
>
>
>
> But there is NO aarch64 code in RTEMS right now. If you have a specific
> board in mind and do a BSP for it,
>
> you could use the arm-rtems4.12 tools and treat the CPU core on that BSP as
> an ARMv7.
>
>
>
> To do anything ARMv8 specific is going to require work somewhere. aarch64
> needs a port
>
> and a BSP. arm 32-bit armv8 will start with by treating the board as armv7
> and possibly
>
> adding a multilib variant to gcc to get access to specific instructions that
> are desirable.
>
>
>
> --joel
>
>
>
>
>
> With Regards
>
>   Raghav
>
>
>
> From: Joel Sherrill [mailto:joel at rtems.org]
> Sent: Monday, February 29, 2016 9:14 PM
> To: Raghav Nayak
> Cc: Chris Johns; Sebastian Huber; users at rtems.org
>
>
> Subject: Re: RTEMS ARMv8 Query
>
>
>
>
>
>
>
> On Mon, Feb 29, 2016 at 3:22 AM, Raghav Nayak <raghav.nayak at nxp.com> wrote:
>
> Hi,
>
> I could build the armv8 toolchain properly but do I need to do anything else
> to build RTEMS other than providing the toolchain path
>
>
>
> There is no 64-bit aarch64 port of RTEMS. One would have to be written.
>
>
>
> In the mean time, you can run 32-bit ARMv7 code on the same CPU but not take
> advantage of newer instructions in 32-bit ARMv8 mode.
>
>
>
> With Regards
>  Raghav
>
> -----Original Message-----
> From: users [mailto:users-bounces at rtems.org] On Behalf Of Chris Johns
> Sent: Saturday, February 27, 2016 9:12 AM
> To: joel at rtems.org; Sebastian Huber
> Cc: users at rtems.org
> Subject: Re: RTEMS ARMv8 Query
>
> On 27/02/2016 7:16 AM, Joel Sherrill wrote:
>>
>> Chris.. hopefully you have time this weekend to do some quick (for
>> you) RSB work. :)
>>
>
> Yes, I will do this once the next gcc snapshot is made which should be in a
> day or so.
>
>>   + Jeff Johnston just cut a newlib snapshot which includes two things
>> I wanted.  So the tools in general need to bump for this.
>>   + I sent you the two patches for binutils. Hopefully he can use them
>> to add the aarch64-rtems and x86_64-rtems targets to the RSB.
>
> I will add this to rtems-tools.git/tools/4.12.
>
> Chris
>
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
>
>
>
>
>
>
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users


More information about the users mailing list