Skip to content

main/postmarketos-mkinitfs: use NCM instead of RNDIS

Administrator requested to merge bye-rndis into master

As described in [0] let's switch away from RNDIS and use NCM instead.

Since we cannot force all kernels to switch at the same time, let's keep a fallback to RNDIS in the setup function.

We can also remove usb_f_rndis from modprobe as the module gets loaded automatically when needed.

[0] #1797 (closed)


Based on !3669

This is a very rough first draft. I've tested on FP2 (with kconfig adjusted) that ncm seems to be a drop-in replacement for our rndis usage.

All of these use cases need to be validated to still work after this MR:

  • Kernels without NCM (just RNDIS) get networking - test both =y and =m
  • Kernels with NCM get networking - test both =y and =m

Also pmbootstrap kconfig check (community) should get requirement for USB_CONFIGFS_NCM (and preferably USB_ETH=n, but this can come later and is kind of unrelated)

Edited by Administrator

Merge request reports

Loading