Hi @mamoru_kanou,
Here is an update on the kernel configuration request for the Verdin iMX95 (XR17V358 and LTC2983).
Our R&D team has implemented the change, and it is now under review:
CONFIG_SERIAL_8250_NR_UARTS=16: raises the maximum number of 8250 UART ports supported by the kernel to 16, which covers the XR17V358 with the 16-port expansion.
CONFIG_LTC2983=m: enables the LTC2983 driver as a kernel module. It loads automatically when the LTC2983 node is present in the device tree (through your overlay).
We intentionally left CONFIG_SERIAL_8250_RUNTIME_UARTS unchanged. That option sets how many ttyS ports are registered by default at boot, and changing it would add extra ttyS device nodes on every device running Torizon OS. Instead, you can enable the 16 ports on your devices with the kernel argument 8250.nr_uarts=16, which is easy to add with TorizonCore Builder (procedure below).
Once the change is merged, it will be included in upcoming Torizon OS builds. I recommend checking again the config for the nightly builds in around 1 week to see if the change has been implemented.
Please note that the kernel argument only takes full effect on an image that includes this change, because 8250.nr_uarts cannot exceed CONFIG_SERIAL_8250_NR_UARTS.
Procedure: adding 8250.nr_uarts=16 with TorizonCore Builder
Option A: tcbuild.yaml (recommended for production and CI)
Add the kernel argument to the customization section of your tcbuild.yaml. If you already have one (for example, for device tree overlays), add the kernel block to it:
yaml
customization:
kernel:
arguments:
- 8250.nr_uarts=16
Then build the image as usual:
$ torizoncore-builder build
Option B: standalone commands (useful during development)
$ torizoncore-builder images unpack <torizon-os-image>.tar
$ torizoncore-builder kernel set_custom_args "8250.nr_uarts=16"
$ torizoncore-builder kernel get_custom_args
$ torizoncore-builder union custom-branch
$ torizoncore-builder deploy custom-branch --remote-host <board-ip> --remote-username torizon --remote-password <password> --reboot
To generate a Toradex Easy Installer image instead of deploying over SSH, use deploy custom-branch --output-directory <output-dir>.
Note that kernel set_custom_args replaces any custom arguments set previously, so if you already use other kernel arguments, pass all of them in the same command. On Torizon OS 7.5.0 and later, custom kernel arguments are stored separately from device tree overlays, so overlay commands (dto apply/dto remove) will not affect them.
Verification on the device
# cat /proc/cmdline | grep -o "8250.nr_uarts=[0-9]*"
# cat /sys/module/8250/parameters/nr_uarts # expected: 16
# dmesg | grep -i ttyS # XR17V358 ports registered
# lsmod | grep ltc2983 # after applying the LTC2983 overlay
# ls /sys/bus/iio/devices/
Reference: Customizing Kernel Arguments in Torizon
Please let me know if you have any questions.
Thanks!
Alvaro