linuxptp and gptp stack into freertos

freertos99 wrote on Friday, September 14, 2018:

Hi Experts,
Can you pls let me know if linuxptp and gptp stacks can be ported into freertos for a samv71 xplained board.
Are there any restrictions/risks in porting the stacks?
https://github.com/richardcochran/linuxptp
https://github.com/AVnu/OpenAvnu

Thanks.

rtel wrote on Friday, September 14, 2018:

I’m not sure what these libs do and there is too much code to look
through - I would say though if they are designed to run on Linux and
make Linux system calls they are not going to run on FreeRTOS.

freertos99 wrote on Monday, September 17, 2018:

Thanks for the reply.
Yeah the code contains fopen, ioctls, open,close and socket calls.
So that confirms the code can be run on FreeRTOS, correct??
Thanks for your time.

rtel wrote on Monday, September 17, 2018:

Yeah the code contains fopen, ioctls, open,close and socket calls.
So that confirms the code can be run on FreeRTOS, correct??
Thanks for your time.

No, that confirms it cannot be run on FreeRTOS, although Amazon FreeRTOS
has a POSIX threading wrapper for FreeRTOS that will soon be part of the
FreeRTOS kernel download which may help.

freertos99 wrote on Tuesday, September 18, 2018:

Super. Thanks a lot for the help :slight_smile: