<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class="">I’ll take a look at this soon. I built a set of 4.11 tools and the 4.11 branch of RTEMS, then I verified that I can still build and run the RKI image on the Raspberry Pi. </div><div class="">Next, I’m going to tag RKI as a 4.11 branch, then try to fix it for the 4.12/head of RTEMS. </div><div class=""><br class=""></div><div class="">I should have some additions to the RKI after that. I have been writing some i2c device drivers for the Raspberry Pi Sense Hat ( new linux i2c API ) , and I was trying to get an SPI device to work on the Pi. </div><div class=""><br class=""></div><div class="">Alan</div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On Apr 22, 2016, at 12:35 PM, Olufowobi, Habeeb <<a href="mailto:habeeb.olufowobi@bison.howard.edu" class="">habeeb.olufowobi@bison.howard.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class="">Hi,<br class=""><br class=""></div>I applied the fix that Pavel suggested but got the error below.<br class=""><br class=""> arm-rtems4.12-gcc  -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mtune=cortex-a7  --pipe -B/home/dipupo/development/rtems/kernel/builds/b-rpi/arm-rtems4.12/raspberrypi/lib -specs bsp_specs -qrtems -Wall   -o legacy-build/arm-rtems4.12-raspberrypi/rki.elf legacy-build/arm-rtems4.12-raspberrypi/init.o legacy-build/arm-rtems4.12-raspberrypi/rtems_net.o legacy-build/arm-rtems4.12-raspberrypi/rtems_net_svc.o legacy-build/arm-rtems4.12-raspberrypi/local_shell_cmds.o legacy-build/arm-rtems4.12-raspberrypi/filesys.o legacy-build/arm-rtems4.12-raspberrypi/ramdisk.o legacy-build/arm-rtems4.12-raspberrypi/nvramdisk.o legacy-build/arm-rtems4.12-raspberrypi/task_cmd.o legacy-build/arm-rtems4.12-raspberrypi/hello_cmd.o legacy-build/arm-rtems4.12-raspberrypi/dhrystone_cmd.o legacy-build/arm-rtems4.12-raspberrypi/whetstone_cmd.o legacy-build/arm-rtems4.12-raspberrypi/benchmarks.o legacy-build/arm-rtems4.12-raspberrypi/tarfile.o -lm<br class="">/home/dipupo/development/rtems/4.12/lib/gcc/arm-rtems4.12/6.0.0/../../../../arm-rtems4.12/bin/ld: error: legacy-build/arm-rtems4.12-raspberrypi/rki.elf uses VFP register arguments, /home/dipupo/development/rtems/kernel/builds/b-rpi/arm-rtems4.12/raspberrypi/lib/librtemsbsp.a(libbsp_a-bootcard.o) does not<br class="">/home/dipupo/development/rtems/4.12/lib/gcc/arm-rtems4.12/6.0.0/../../../../arm-rtems4.12/bin/ld: failed to merge target specific data of file /home/dipupo/development/rtems/kernel/builds/b-rpi/arm-rtems4.12/raspberrypi/lib/librtemsbsp.a(libbsp_a-bootcard.o)<br class=""><br class=""></div>Kindly advice.<br class=""><br class=""></div>Regards,<br class=""></div>Habeeb<br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, Apr 21, 2016 at 6:51 AM, Alan Cudmore <span dir="ltr" class=""><<a href="mailto:alan.cudmore@gmail.com" target="_blank" class="">alan.cudmore@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I should be able to update my RKI repository soon.. I’m building the latest tools and RTEMS repo now.<br class="">
<br class="">
Alan<br class="">
<div class=""><div class="h5"><br class="">
> On Apr 21, 2016, at 6:14 AM, Pavel Pisa <<a href="mailto:ppisa4lists@pikron.com" class="">ppisa4lists@pikron.com</a>> wrote:<br class="">
><br class="">
> Hello Habeeb,<br class="">
><br class="">
> rtems_clock_get() has been obsoleted long time ago<br class="">
> and has been removed in<br class="">
><br class="">
>    e65c45c4b6cf6dfb485bef48385e39969de8b361<br class="">
>    Obsolete rtems_clock_get() directive.<br class="">
><br class="">
>    This service was marked as deprecated long prior to the 4.11 release<br class="">
>    series and is now being removed.<br class="">
><br class="">
>    closes #2676.<br class="">
><br class="">
><br class="">
> You should rewrite code as<br class="">
><br class="">
>   rtems_interval ticks;<br class="">
> -  rtems_clock_get(RTEMS_CLOCK_GET_TICKS_SINCE_BOOT,&ticks);<br class="">
> +  ticks = rtems_clock_get_ticks_since_boot();<br class="">
><br class="">
><br class="">
> If you need to be compatible even with very old RTEMS versions, probably<br class="">
> pre-4.9, you can use<br class="">
><br class="">
>   rtems_interval ticks;<br class="">
>  #ifndef RTEMS_CLOCK_GET_TICKS_SINCE_BOOT<br class="">
>   ticks = rtems_clock_get_ticks_since_boot();<br class="">
>  #else /*RTEMS_CLOCK_GET_TICKS_SINCE_BOOT*/<br class="">
>   rtems_clock_get(RTEMS_CLOCK_GET_TICKS_SINCE_BOOT,&ticks);<br class="">
>  #endif /*RTEMS_CLOCK_GET_TICKS_SINCE_BOOT*/<br class="">
><br class="">
> Best wishes,<br class="">
><br class="">
>               Pavel<br class="">
><br class="">
><br class="">
> On Thursday 21 of April 2016 02:50:55 Olufowobi, Habeeb wrote:<br class="">
>> Hi,<br class="">
>><br class="">
>> I am trying to build RKI for Raspberrypi but I have been getting this error<br class="">
>> message:<br class="">
>><br class="">
>><br class="">
>> arm-rtems4.12-gcc<br class="">
>> -Wa,-a=legacy-build/arm-rtems4.12-raspberrypi/task_cmd.lis -march=armv7-a<br class="">
>> -mthumb -mfpu=neon -mfloat-abi=hard -mtune=cortex-a7 -D__ARM__   --pipe<br class="">
>> -B/home/dipupo/development/rtems/kernel/builds/b-rpi/arm-rtems4.12/raspberr<br class="">
>> ypi/lib -specs bsp_specs -qrtems -Wall  -I. -Iinclude/  -I. -g -O2  -c -o<br class="">
>> legacy-build/arm-rtems4.12-raspberrypi/task_cmd.o task_cmd.c<br class="">
>> task_cmd.c: In function 'get_ticks_per_second':<br class="">
>> task_cmd.c:23:10: warning: implicit declaration of function<br class="">
>> 'rtems_clock_get' [-Wimplicit-function-declaration]<br class="">
>>   (void) rtems_clock_get( RTEMS_CLOCK_GET_TICKS_PER_SECOND,<br class="">
>> &ticks_per_second );  return ticks_per_second;<br class="">
>>          ^~~~~~~~~~~~~~~<br class="">
>> task_cmd.c:23:27: error: 'RTEMS_CLOCK_GET_TICKS_PER_SECOND' undeclared<br class="">
>> (first use in this function)<br class="">
>>   (void) rtems_clock_get( RTEMS_CLOCK_GET_TICKS_PER_SECOND,<br class="">
>> &ticks_per_second );  return ticks_per_second;<br class="">
>>                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br class="">
>><br class="">
>><br class="">
>> The line associated with this message in the task_cmd.c is<br class="">
>><br class="">
>> {<br class="">
>>  rtems_interval ticks_per_second;<br class="">
>>  (void) rtems_clock_get( RTEMS_CLOCK_GET_TICKS_PER_SECOND,<br class="">
>> &ticks_per_second );  return ticks_per_second;<br class="">
>> }<br class="">
>><br class="">
>><br class="">
>> Any ideas on how I can fix this?<br class="">
>><br class="">
>> Thanks.<br class="">
>><br class="">
>> Best regards,<br class="">
>> Habeeb<br class="">
><br class="">
</div></div>> _______________________________________________<br class="">
> devel mailing list<br class="">
> <a href="mailto:devel@rtems.org" class="">devel@rtems.org</a><br class="">
> <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank" class="">http://lists.rtems.org/mailman/listinfo/devel</a><br class="">
<br class="">
_______________________________________________<br class="">
devel mailing list<br class="">
<a href="mailto:devel@rtems.org" class="">devel@rtems.org</a><br class="">
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank" class="">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></body></html>