Re: MinGW

williamssimonp at gmail.com williamssimonp at gmail.com
Fri Aug 9 08:08:35 UTC 2013


Thanks for that Chris, using this build set gave me working a compiler.  I hadn't been able to get RTEMS source Builder to work on Windows, but I didn’t try very hard as your build set removed the need.  I built the Raspberry Pi BSP and all appears to be well.

 

I am trying to get RKI to build, but this is early days.  I eventually need to use C++ and I like to use the Eclipse IDE and so I have imported the source into Eclipse with a view to getting the original C code to work, prior to porting it to C++ as a base for my project.  I am getting undefined references in the link, but I can sort this out, I just need to find which libraries are missing.

 

The project I am working on is for a Raspberry Pi based autopilot.  I have designed an avionics board containing the sensors.  This board will interface to the Pi using I2C.  I had made a small and insignificant start to writing the autopilot code, but it was a huge job!  Linux is not suitable for this kind of application and so I was going to use my own microkernel.  Doing this is insanely complicated however.  Using RTEMS will save me a huge amount of time as I can concentrate on writing an autopilot and leave the details of memory management, scheduling, etc. to a proven RTOS.  Once the autopilot code is in a suitable form, I will be making it, along with the avionics design, available under GPL.  Any RTEMS device drivers that I write for the generic Pi peripherals, I will make available as soon as I am happy they work so that they can be considered for inclusion in the BSP.

 

Please don’t expect miracles.  Although I have a lot of experience with low level programming, most of it was a while ago (early 90’s) and I have not used RTEMS before.  Also, this is very much a hobby and I do have a life!


 

Sent from Windows Mail

 


From: Chris Johns
Sent: ‎Thursday‎, ‎8‎ ‎August‎ ‎2013 ‎02‎:‎04
To: rtems-users at rtems.org

 
Sebastian Huber wrote:
>
> you can use the RTEMS Source Builder (RSB) for this:
>
> http://wiki.rtems.org/wiki/index.php/RTEMS_Source_Builder
>
> I normally build the MinGW tools on Linux.
>

I just built a new ARM compiler for MinGW using the RSB on FreeBSD using ...

../source-builder/sb-set-builder --host=mingw32 --trace --log=log_arm 
--prefix=/opt/rtems/4.11 --no-install --bset-tar-file 4.11/rtems-arm

You can find the tar file with the binaries at ...

http://www.rtems.org/ftp/pub/rtems/people/chrisj/source-builder/4.11/mingw32/

I will add more architectures as they become available. These tools 
contain all required patches and should work on RTEMS 4.11 master.

Using autoconf and automake in MSYS may require 'mount c:/opt/rtems/4.11 
/opt/rtems/4.11" where "c:/opt/rtems/4.11" is the path to where you 
unpacked the tar file. The tool such as arm-rtems4.11-as, 
arm-rtems4.11-gcc should be relocatable.

Chris
_______________________________________________
rtems-users mailing list
rtems-users at rtems.org
http://www.rtems.org/mailman/listinfo/rtems-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20130809/5dacb2f2/attachment-0001.html>


More information about the users mailing list