Build Gen AVB TSN stack for MIMXRT1180-EVK running Zephyr

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Build Gen AVB TSN stack for MIMXRT1180-EVK running Zephyr

923 Views
SDC
Contributor I

Aim:
I am trying to build Gen AVB TSN stack for MIMXRT1180-EVK board on CM7 target running Zephyr.

https://github.com/NXP/GenAVB_TSN


It has configuration file for FreeRTOS: config_freertos_rt1189_cm7.cmake
But not for Zephyr. It has the following for Zephyr:
config_zephyr_imx8mm_ca53.cmake
config_zephyr_imx8mn_ca53.cmake
config_zephyr_imx8mp_ca53.cmake
config_zephyr_imx93_ca55.cmake

Input needed in:
Can someone share how to build it for one of the Zephyr targets mentioned above for me to take as a reference.

Also it would be great if someone can have a look at my approach and see if I am on the right track


What I have tried:
The approach that I am taking is that I am trying to build Zephyr application inncluding the GEN AVB TSN stack as a library. In my workspace I have pulled the source codes from github:
|- workspace
| |- GenAVB_TSN
| |- rtos-abstraction-layer
| |- zephyrproject
| |- mcux_sdk_main
| |- zephyr-genavb-demo --> Zephyr application
| | |- CMakeLists.txt
| | |- local_config_mimxrt1180_evk_mimxrt1189_cm7.cmake
| | |- src
| | | |- main.c

Note, that Zephyr setup is already done and I am able to build hello_world application for CM7 target using the following commands:
cd ~/zephyrproject/zephyr
west build -p -b mimxrt1180_evk/mimxrt1189/cm7 samples/hello_world

The GenAVB_TSN is on 7_1 branch and I added config_zephyr_imxrt1189_cm7.cmake:

The Zephyr application has a 2 main files. CMakeLists.txt and local_config_mimxrt1180_evk_mimxrt1189_cm7.cmake


Command that I use for build:
cd ~/zephyrproject/zephyr
west build -p -b mimxrt1180_evk/mimxrt1189/cm7 ~/zephyr-genavb-demo/ --sysbuild

0 Kudos
Reply
2 Replies

903 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @SDC 

Thank you for reaching out. 

For i.MX MPU targets the only reference can be seen in  the the Harpoon project  https://github.com/NXP/GenAVB_TSN?tab=readme-ov-file#zephyr

Regarding the AVB TSN Zephyr integration for i.MX RT1180 , I am currently checking this topic, allow me to get back to you. 

Diego

0 Kudos
Reply

809 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @SDC 

Thank you for your patience, I have been consulting internally, let me share our comments below. 

At this moment:  we do not have any official and tested way to compile the GenAVB/TSN stack under Zephyr when targetting any MCU. Only the i.MX 8M variants and i.MX 93 are supported, for now, as indicated in the table in the README. (Supported hardware targets and configurations) Neither NXP guidelines support your development process, or timeline to add support from our side.

We  can not tell exactly the difference between, the i.MX 93 stack compiled for FreeRTOS and for Zephyr. Maybe it is technically feasible for  users to achieve successful compilation for i.MX RT1180 themselves (with great effort), but we strongly advise against it.

We are sorry for not being able to support you this time.

Diego

 

0 Kudos
Reply