Linux PORT

eric_boucher wrote on Monday, June 16, 2008:

Hi all,

I’d like to know if there is a linux port of FreeRTOS?
If not, what would be needed to port it to linux.

Many thanks,


rtel wrote on Monday, June 16, 2008:

This was something I was talking to a colleague about just the other day.  He is keen to create one but there is not time line set yet.  There is a POSIX wrapper for available on the net (you will have to Google it as I don’t have the link) - this would give a very good starting point.


eric_boucher wrote on Tuesday, June 17, 2008:

Thanks for your answer.
Please let me know when/if you get a working linux port.
Do you also have more precise keywords to search for as frertos, posix and wrapper doesn’t seem to give useful results.



vespaman2 wrote on Monday, August 18, 2008:

OK, so also I need this desperately now… :slight_smile:
Google did not help me to the solution…

Eric, did you ever find this wrapper?

If not:-
Richard can you give us some more detailed pointers?

david_farrell wrote on Wednesday, August 20, 2008:

As slick as FreeRTOS is running on embedded ARMs, why would one use it instead of
pthreads on linux?  Do you mean running linux as a task under FreeRTOS to
improve real time response of other tasks or wrapping FreeRTOS calls to pthreads
underneath?  I am being curious here, not critical…


neilbradley wrote on Wednesday, August 20, 2008:

I can think of a lot of reasons:

1) Sub microsecond boot times vs. minutes under Linux
2) Much smaller footprint, both in-memory and flash (10s of K vs. megabytes of each)
3) No need for anything Linux-like or any other UNIXish tools
4) No GPL hangups
5) Realtime reaspons (Linux isn’t realtime - it’s pseudo realtime)

vespaman2 wrote on Wednesday, August 20, 2008:

Well, for me, I just want to be able to run the firm/soft-ware on my (linux-) desktop and other boxes in order to test the firmware before having the real hardware, and also run large virtual interconnected systems. Hard realtime requirements is not that important for me, at least not for the test.
So POSIX wrappers are OK by my needs.

(my application is a multiple node set-up communicating over tcp)

rtel wrote on Wednesday, August 20, 2008:

Well I can’t find the WEB link anymore, but I have found the .tar file that contains all the files on my hard disk.  I can send it to you - but its 40MBytes.  It must be quite old now, and I have no idea if it is complete, but it might be of interest.  If you get it working then it would be good to include it in the ‘contributed ports’ section.


rtel wrote on Wednesday, August 20, 2008:

hang on a minute…now I’ve unzipped it it has given me some more key words to search for.  Check this out: Seems to be part of this:


rtel wrote on Wednesday, August 20, 2008:

Note - you have to remove the full stop (period) from the end of the URL for the links to work!


vespaman2 wrote on Wednesday, August 20, 2008:

Cheers, I have now downloaded the trunk, and will have a look into this. I’m sure I can use /some/all/parts/ of it!


hei5enb3rg wrote on Monday, December 03, 2018:

Hello all ,
Thanks to the Simulator by Mr. Davy now that freeRTOS works on linux.
I wanted to know if there is a FreeRTOS+TCP Demo for linux as well ?
I am not trying to port it onto any board , just as the FreeRTOS TCP demo for Windows, the same is available for Linux ?

If yes , please share the link or the Demo Project.

Thank you and Best Regards

rtel wrote on Monday, December 03, 2018:

I’m not aware of a demo for Linux. The Windows port uses WinPcap, which
is basically a Windows version of a Linux utility, so I would imagine
the same could be done on Linux.

k0ekk0ek wrote on Thursday, April 25, 2019:

Hi All,

There are a couple of UNIX/Linux ports maintained across the net. The port referred to by the FreeRTOS homepage seems outdated as it mentions version 6.0.4 in the filename. I’ve personally used the one maintained by megakilo (, but it seems to be archived now and switched to the one maintained by shlinym (, which seems to work just fine on Linux and supposedly works on macOS as well.

Any chance a Linux (UNIX) port will be part of the (official) distribution? Maybe just a version that is kept out-of-tree so there is a place where fixes etc can be upstreamed too?

Thank you.

rtel wrote on Thursday, April 25, 2019:

Hi - it is planned so far as while there are other ports available on
the web it is not really blocking anybody hence it never gets to the top
of the priority list. That said one of my colleagues actually created a
brand new Linux port recently that was using lower level Linux
functionality than the others on the web, but we didn’t publish it as we
realised it was using some deprecated features.

k0ekk0ek wrote on Friday, April 26, 2019:

Hi Richard,

Not to overstep my boundaries, but is the port still being worked on? If so, is there any kind of eta you can give?

I’m working on Eclipse Cyclone DDS, an open source middleware product, and I’ve made a port to FreeRTOS. I would very much like to use the simulator to verify FreeRTOS compatibility is still intact with every change.

Currently I’m planning on just using and pointing users towards on of the simulators that seems most active, but It would be great if I could just use the official distribution. If I were to grab one of the ports and ensure it’s neatly documented, working etc, would that be something that could enter the official distribution or is the preferred approach here to wait until the new simulator is ready?

  • Jeroen

rtel wrote on Friday, April 26, 2019:

Hi Jeroen - let me see if we can check it in - with the Caveat that its
new and seems to be using deprecated features… We can see where it
goes from there.

k0ekk0ek wrote on Friday, April 26, 2019:

Hi Richard - Sounds very, very good! Thank you.