Skip to content

About

Kernel config, board DTS, patches and rootfs overlay for avio-link on the Carlinkit CP2A (GPL-2.0-only)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

avio-link-kernel

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-party cp2a-re/Kernel series (0027 BCM4358 SDIO support for brcmfmac, including the sr_capable fix). The series itself is not copied here. Patches 0001, 0004 and 0010 of 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 ports and network

  • USB-A (ci_hdrc.0) is host-only for the phone; see the usbotg1 comment in the DTS for why it is not otg.
  • USB-C (ci_hdrc.1) is the gadget port: rootfs/etc/init.d/avio-usb.sh builds one configfs gadget with a CDC-ACM serial console (first, always present) and CDC-NCM. The kernel's built-in android_usb gadget is released first, otherwise it holds the only UDC.
  • The dongle is 10.10.10.1 on ncm0 (rootfs/etc/udhcpd-ncm.conf hands the host an address in 10.10.10.100-200; the Wi-Fi AP side is 192.168.50.2). avio-bridge starts once ncm0 has 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.

USB id

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.

License

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.

About

Kernel config, board DTS, patches and rootfs overlay for avio-link on the Carlinkit CP2A (GPL-2.0-only)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages