Kernel and board pieces for avio-link on the Carlinkit CP2A (U2AW, i.MX6ULL, BCM4358):
Linux 6.18.39 with the cp2a-re patch series, our board DTS and config, and our own patches.
The Rust side lives in avio-bridge.
kernel/patches/: our patches on top of the third-partycp2a-re/Kernelseries (0027BCM4358 SDIO support for brcmfmac, including thesr_capablefix). The series itself is not copied here. Patches0001,0004and0010of that series need hand-rebasing on 6.18.39 (details in the project wiki,kernel-upgrade).kernel/dts/imx6ull-avio-link-u2aw.dts: board device tree.kernel/config/avio-link.config: kernel config (ConfigFS ACM, HID, FunctionFS, NCM; brcmfmac).
Versioning: <kernel version>-avio.<n> for builds (for example 6.18.39-avio.1), with the repo
itself following Semantic Versioning and Conventional Commits. Nothing released yet.
Flashing is not automated here yet (see the wiki todo, one-command updater).
- USB-A (
ci_hdrc.0) is host-only for the phone; see theusbotg1comment in the DTS for why it is nototg. - USB-C (
ci_hdrc.1) is the gadget port:rootfs/etc/init.d/avio-usb.shbuilds one configfs gadget with a CDC-ACM serial console (first, always present) and CDC-NCM. The kernel's built-inandroid_usbgadget is released first, otherwise it holds the only UDC. - The dongle is
10.10.10.1onncm0(rootfs/etc/udhcpd-ncm.confhands the host an address in10.10.10.100-200; the Wi-Fi AP side is192.168.50.2).avio-bridgestarts oncencm0has its address and listens on that address only. /etc/avio-link/key(the pairing key) is on the jffs2 rootfs, so a rootfs flash erases it and the dongle must be paired again.
rootfs/etc/avio-link/usb-id holds <vid> <pid>. It is 1209:0001, the shared pid.codes test
id, for development only. Request a PID at https://pid.codes (pull request, open-source hardware
only) before sharing builds, then change that one file. Avio should match the device on
vendor id, product id and the product string Avio Link.
GPL-2.0-only (see LICENSE), because everything here is a patch, configuration or device tree for
the Linux kernel, which is GPL-2.0-only. Distributed modified versions must stay open.