meta-digi/meta-digi-arm/recipes-kernel
Francisco Gil b3a84b1d4e linux-dey:RT: fix virtio_trans build on Cortex-A9 and enable mailbox support
This patch fixes build failures of the virtio_trans driver (Cortex-A9, 32-bit ARM)
when building a PREEMPT_RT-enabled kernel. The errors were caused by
unresolved 64-bit division symbols (__aeabi_uldivmod / __aeabi_ldivmod)
generated when the driver was compiled as a module.

Changes included:

* virtio_trans.c:
  - Replace 64-bit modulus operations (`idx % vt->{tx,rx}_vring_size`) with
    kernel-safe 64-bit division macros using `div_u64_rem()`.
    This prevents implicit calls to non-exported ARM EABI helpers that are not
    available to kernel modules on 32-bit ARM.

* fragment-nxp-rt.config:
  - Enable the mailbox framework (`CONFIG_MAILBOX=y`) required by virtio
    mailbox-based transports.
  - Build the virtio transport driver into the kernel (`CONFIG_VIRTIO_TRANS=y`)
    instead of as a module, ensuring proper symbol resolution
    during link time. Without this a license error is shown when building
    the kernel in yocto.

https://onedigi.atlassian.net/browse/DEL-9783

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2025-10-13 10:27:01 +02:00
..
kernel-module-qualcomm meta-digi: update revisions for dey-5.0-r2.2 2025-07-15 22:10:11 +02:00
linux linux-dey:RT: fix virtio_trans build on Cortex-A9 and enable mailbox support 2025-10-13 10:27:01 +02:00
linux-firmware Update Digi Copyright header 2024-07-15 09:28:58 +02:00
linux-libc-headers dey: cosmetic, mark patches as DEY specific 2024-10-22 15:48:00 +02:00