Acknowledged
Created: May 23, 2023
Updated: Jul 24, 2023
Found In Version: 10.23.30.1
Severity: Standard
Applicable for: Wind River Linux LTS 23
Component/s: BSP
root@nxp-s32g:~# cat /proc/version
Linux version 6.1.29-yocto-standard (oe-user@oe-host) (aarch64-wrs-linux-gcc (GCC) 12.2.0, GNU ld (GNU Binutils) 2.40.20230119) #1 SMP PREEMPT Fri May 19 14:46:35 UTC 2023
root@nxp-s32g:~# cat /proc/cmdline
console=ttyLF0,115200n8 earlycon nohz=off coherent_pool=64M root=/dev/mmcblk0p2 rw rootwait ip=128.224.178.170:128.224.178.20:128.224.178.1:255.255.254.0::eth0:off
root@nxp-s32g:~# gpioinfo -c 1
gpiochip1 - 24 lines:
line 0: unnamed input
line 1: unnamed input
line 2: unnamed input
line 3: unnamed input
line 4: unnamed input
line 5: unnamed input
line 6: unnamed input
line 7: unnamed input
line 8: unnamed input
line 9: unnamed input
line 10: unnamed input
line 11: unnamed input
line 12: unnamed input
line 13: unnamed input
line 14: unnamed input
line 15: unnamed input
line 16: unnamed input
line 17: unnamed input
line 18: unnamed input
line 19: unnamed input
line 20: unnamed input
line 21: unnamed input
line 22: unnamed input
line 23: unnamed input
root@nxp-s32g:~# gpioget -h
Usage: gpioget [OPTIONS] <line>...
Read values of GPIO lines.
Lines are specified by name, or optionally by offset if the chip option
is provided.
Options:
-a, --as-is leave the line direction unchanged, not forced to input
-b, --bias <bias> specify the line bias
Possible values: 'pull-down', 'pull-up', 'disabled'.
(default is to leave bias unchanged)
--by-name treat lines as names even if they would parse as an offset
-c, --chip <chip> restrict scope to a particular chip
-C, --consumer <name> consumer name applied to requested lines (default is 'gpioget')
-h, --help display this help and exit
-l, --active-low treat the line as active low
-p, --hold-period <period>
wait between requesting the lines and reading the values
--numeric display line values as '0' (inactive) or '1' (active)
-s, --strict abort if requested line names are not unique
--unquoted don't quote line names
-v, --version output version information and exit
Chips:
A GPIO chip may be identified by number, name, or path.
e.g. '0', 'gpiochip0', and '/dev/gpiochip0' all refer to the same chip.
Periods:
Periods are taken as milliseconds unless units are specified. e.g. 10us.
Supported units are 's', 'ms', and 'us'.
root@nxp-s32g:~# gpioget -c 1 10
"10"=active
root@nxp-s32g:~# gpioset -c 1 10=1
^C
root@nxp-s32g:~# gpioinfo -c 1
gpiochip1 - 24 lines:
line 0: unnamed input
line 1: unnamed input
line 2: unnamed input
line 3: unnamed input
line 4: unnamed input
line 5: unnamed input
line 6: unnamed input
line 7: unnamed input
line 8: unnamed input
line 9: unnamed input
line 10: unnamed output
line 11: unnamed input
line 12: unnamed input
line 13: unnamed input
line 14: unnamed input
line 15: unnamed input
line 16: unnamed input
line 17: unnamed input
line 18: unnamed input
line 19: unnamed input
line 20: unnamed input
line 21: unnamed input
line 22: unnamed input
line 23: unnamed input
root@nxp-s32g:~#
root@nxp-s32g:~# gpioset -c 1 10=0
^C
root@nxp-s32g:~# gpioinfo -c 1
gpiochip1 - 24 lines:
line 0: unnamed input
line 1: unnamed input
line 2: unnamed input
line 3: unnamed input
line 4: unnamed input
line 5: unnamed input
line 6: unnamed input
line 7: unnamed input
line 8: unnamed input
line 9: unnamed input
line 10: unnamed output
line 11: unnamed input
line 12: unnamed input
line 13: unnamed input
line 14: unnamed input
line 15: unnamed input
line 16: unnamed input
line 17: unnamed input
line 18: unnamed input
line 19: unnamed input
line 20: unnamed input
line 21: unnamed input
line 22: unnamed input
line 23: unnamed input
INFO: Shared image path: /net/pek-lpgtest7408/buildarea1/SharedImage/LTS23/BSP/nxp-s32g_standard_glibc-std/20230523_124334
/lpg-build/cdc/fast_prod/WRL10_23/WRL10_23_GIT/wrlinux-10/setup.sh --machines nxp-s32g --templates feature/docker --distro wrlinux --dl-layers=1 --accept-eula=yes
source environment-setup-x86_64-wrlinuxsdk-linux
source oe-init-build-env build
bitbake-layers add-layer /net/128.224.34.180/buildarea1/test_env/wassp-linux/testcases/wrlinux/wr-testing/bts-dev
OR
#####To Clone a whole new testcases layer#####
git clone --depth 1 -b WRLINUX_10_23_HEAD git://lxgit.wrs.com/wrlinux-testing/testcases.git ../layers/testcases/wrlinux/
bitbake-layers add-layer ../layers/testcases/wrlinux/wr-testing/bts-dev
#####End#####
echo 'require templates/feature/bts/template.conf' >> conf/local.conf
echo 'SHARED_IMAGE_BASE = "/net/pek-lpgtest7408/buildarea1/SharedImage"
FIRMWARE_DIR_BASE = "${SHARED_IMAGE_BASE}/wr-bsp-images/nxp-s32g/firmwares"
HSE_LOCAL_FIRMWARE_DIR = "${FIRMWARE_DIR_BASE}/hse"
HSE_FW_VERSION_S32G2 = "0.1.0.5"
HSE_FW_VERSION_S32G3 = "0.2.16.1"
HSE_FW_NAME_S32G2 = "s32g2xx_hse_fw_0.1.0_1.0.5_pb220413.bin.pink"
HSE_FW_NAME_S32G3 = "rev1.0_s32g3xx_hse_fw_0.20.0_2.16.1_pb221011.bin.pink"
LLCE_LOCAL_FIRMWARE_DIR = "${FIRMWARE_DIR_BASE}/llce/1.0.6/s32g2"
LLCE_LOCAL_FIRMWARE_DIR_S32G3 = "${FIRMWARE_DIR_BASE}/llce/1.0.6/s32g3"
IPCF_M7_APP_BIN_DIR = "${FIRMWARE_DIR_BASE}/ipcf"
PFE_LOCAL_FIRMWARE_DIR = "${FIRMWARE_DIR_BASE}/pfe/1.6.0"
WRL_RECIPES:wr-nxp-s32g += "llce"
IMAGE_INSTALL:append = " llce ipc-shm pkcs11-hse-examples pfe pfe-slave libfci-cli"' >> conf/local.conf
bitbake wrlinux-image-std