Wind River Support Network

HomeDefectsLIN1021-6021
Acknowledged

LIN1021-6021 : NXP S32G rdb2 : cannot find device "llcecan0" when following README instructions to setup LLCE

Created: Jul 6, 2023    Updated: Mar 17, 2024
Found In Version: 10.21.20.18
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: BSP, Kernel

Description

When following README instructions (layers/nxp-s32g2xx/README) to configure LLCE, we notice that llcecan interfaces can't be found, hence the first instructions fails with :

root@nxp-s32g2xx:~# ip link set up llcecan0 type can bitrate 500000 dbitrate 5000000 fd on
Cannot find device "llcecan0"
Although the modules are properly loaded :

root@nxp-s32g2xx:~# lsmod
Module                  Size  Used by
8021q                  28672  0
llce_mailbox           24576  0
llce_core              16384  0
llce_can               20480  0
pfeng                 528384  0
sch_fq_codel           20480  2
openvswitch           139264  0
nsh                    16384  1 openvswitch
nf_conncount           20480  1 openvswitch
nf_nat                 36864  1 openvswitch
nf_conntrack           94208  3 nf_nat,openvswitch,nf_conncount
nf_defrag_ipv6         20480  2 nf_conntrack,openvswitch
nf_defrag_ipv4         16384  1 nf_conntrack
fuse                  114688  1
root@nxp-s32g2xx:~#
root@nxp-s32g2xx:~# zcat /proc/config.gz | grep -i llce
CONFIG_CAN_LLCE=y
CONFIG_CAN_LLCE_CONTROLLER=m
CONFIG_CAN_LLCE_LOGGER=m
CONFIG_LLCE_CORE=m
CONFIG_NXP_LLCE_MBOX=m

Here are the available interfaces :

 

root@nxp-s32g2xx:~# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN mode DEFAULT group default qlen 10
    link/can
3: can1: <NOARP,ECHO> mtu 16 qdisc noop state DOWN mode DEFAULT group default qlen 10
    link/can
4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether ca:ab:6f:3d:e5:34 brd ff:ff:ff:ff:ff:ff
5: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/sit 0.0.0.0 brd 0.0.0.0 

Test has been done on S32G RDB2 with RCPL18 wic image configured with llce 1.0.3 firmware as documented in the readme

6.4 LLCE
6.4.1 LLCE firmwares
6.4.2 LLCE CAN verify steps

Steps to Reproduce

 ./wrlinux-x/setup.sh --machine nxp-s32g2xx --dl-layers --all-layers --base-branch WRLINUX_10_21_LTS_RCPL0018

source environment-setup-x86_64-wrlinuxsdk-linux

source oe-init-build-env 

conf/local.conf

# PFE/HSE
IMAGE_INSTALL_append_nxp-s32g = " pfe"
PFE_LOCAL_FIRMWARE_DIR = "/yow-lpggp31/aelmahra/FORD/firmware"
HSE_LOCAL_FIRMWARE_EVB_BIN = "${PFE_LOCAL_FIRMWARE_DIR}/s32g2xx_hse_fw_0.1.0_1.0.4_pb220308.bin.pink"
HSE_LOCAL_FIRMWARE_RDB2_BIN = "${PFE_LOCAL_FIRMWARE_DIR}/s32g2xx_hse_fw_0.1.0_1.0.4_pb220308.bin.pink"PFE_LOCAL_FIRMWARE_DIR_CLASS_BIN = "${PFE_LOCAL_FIRMWARE_DIR}/s32g_pfe_class.fw"
PFE_LOCAL_FIRMWARE_DIR_UTIL_BIN = "${PFE_LOCAL_FIRMWARE_DIR}/s32g_pfe_util.fw"

# LLCE
PNWHITELIST_wr-nxp-s32g += "llce"
PNWHITELIST_wr-nxp-s32g2xx += 'llce'
IMAGE_INSTALL_append_nxp-s32g = " llce"
IMAGE_INSTALL_append_nxp-s32g2xx = " llce"
#LLCE_LOCAL_FIRMWARE_DIR = "/yow-lpggp31/aelmahra/FORD/firmware/llce-1.0.5_s32g2"
LLCE_LOCAL_FIRMWARE_DIR = "/yow-lpggp31/aelmahra/FORD/firmware/llce-1.0.3_s32g2/ghs/enablement"
WRLINUX_SUPPORTED_RECIPE_pn-llce = '2'   
*Note that i tested with llce firmware version 1.0.5 as well

bitbake wrlinux-image-small

flash tmp-glibc/deploy/images/nxp-s32g2xx/wrlinux-image-small-nxp-s32g2xx-rdb2.wic image to SD card and boot the target

Follow readme instructions

layers/nxp-s32g2xx/README instructions : 6.4.2 LLCE CAN verify steps
Live chat
Online