From 157d8364d41f4fda90d3a041da1a02d929a97b4a Mon Sep 17 00:00:00 2001 From: Marouen Ghodhbane Date: Mon, 20 Mar 2023 18:59:45 +0100 Subject: [PATCH] GenAVB/TSN SDK release 5.4.1 --- SCR_genavb-release.txt | 2 +- linux/scripts/avb.sh | 5 ++++- linux/scripts/tsn.sh | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/SCR_genavb-release.txt b/SCR_genavb-release.txt index 021c2a3..ee54634 100644 --- a/SCR_genavb-release.txt +++ b/SCR_genavb-release.txt @@ -1,7 +1,7 @@ NXP Software Content Register Release Name: genavb-sdk -Version: GenAVB/TSN 5_4_0 +Version: GenAVB/TSN 5_4_1 Date Created: March-2023 Release Location: https://github.com/NXP/GenAVB_TSN Description: GenAVB/TSN protocol stack for NXP MPUs and MCUs processors diff --git a/linux/scripts/avb.sh b/linux/scripts/avb.sh index 6163edd..3c77ea7 100755 --- a/linux/scripts/avb.sh +++ b/linux/scripts/avb.sh @@ -819,7 +819,7 @@ fi if [ "$NB_CPU" -gt 2 ];then MEDIA_APP_CPU_MASK=4 MEDIA_APP_CPU_CORE=2 -else +elif [ "$NB_CPU" -eq 2 ];then if [ $AVB_MODE -eq 1 ]; then MEDIA_APP_CPU_MASK=1 MEDIA_APP_CPU_CORE=0 @@ -828,6 +828,9 @@ else MEDIA_APP_CPU_MASK=2 MEDIA_APP_CPU_CORE=1 fi +else + MEDIA_APP_CPU_MASK=1 + MEDIA_APP_CPU_CORE=0 fi # Detect the platform we are running on and set $MACHINE accordingly, then set variables. diff --git a/linux/scripts/tsn.sh b/linux/scripts/tsn.sh index 5b8bed3..6d8638e 100755 --- a/linux/scripts/tsn.sh +++ b/linux/scripts/tsn.sh @@ -588,7 +588,7 @@ echo "Using ps = ${PS}" NB_CPU=$(grep -c processor /proc/cpuinfo) if [ "$NB_CPU" -gt 2 ];then CPU_MASK=2 -else +elif [ "$NB_CPU" -eq 2 ];then # On platforms with dual cores: # tsn processes are pinned to core#1 for avb endpoint, and core#0 for tsn endpoint if [ "$AVB_MODE" -eq 1 ];then @@ -596,6 +596,8 @@ else else CPU_MASK=1 fi +else + CPU_MASK=1 fi # Detect the platform we are running on and set $MACHINE accordingly, then set variables.