Re: MinGW

williamssimonp at gmail.com williamssimonp at gmail.com
Fri Aug 9 23:03:57 UTC 2013


Well, the Eclipse plugin does work!  It took a bit of messing around, but ended up being quite simple, it was down to mis-specifying the msys location.  Persuading it to build the ram disk binary image was a bit of a challenge, but we got there.  At the moment I am assuming it’s going to work.  We’ll find out tomorrow, assuming I can find the UART to USB cable I bought six months ago!



Sent from Windows Mail



From: Alan Cudmore
Sent: ‎Friday‎, ‎9‎ ‎August‎ ‎2013 ‎12‎:‎37
To: williamssimonp at gmail.com
Cc: rtems-users at rtems.org


I can get my RKI project to build on windows ( from a command prompt , without a mingw or cygwin shell ) 
If you can build it in a command prompt, it should build in eclipse.
For my windows setup, I have the following lines in the makefile:
## 
## Windows paths
RTEMS_TOOL_BASE=c:\opt\rtems\4.11
RTEMS_BSP_BASE=e:\Projects\rtems\bsps\rtems-4.11


Your project sounds neat, I would love to find out more about your avionics board. Let me know if you make any progress with the I2C on the Raspberry Pi, I was going to tackle that when I get some free time.

Alan


On 8/9/2013 4:08 AM, williamssimonp at gmail.com wrote:



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



_______________________________________________
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/14b2fd98/attachment-0001.html>


More information about the users mailing list