Device Drivers -> USB Support
Device Drivers -> USB Support -> USB announce new devices
Device Drivers -> USB Support -> USB Modem (CDC ACM) support
Device Drivers -> USB Support -> USB/IP
Device Drivers -> USB Support -> USB/IP -> VHCI HCD
Device Drivers -> USB Serial Converter Support
Device Drivers -> USB Serial Converter Support -> USB FTDI Single port Serial Driver
同时记得关闭 Device Drivers -> USB Support -> USB/IP -> Debug messages for USB/IP这一选项,否则调试信息会非常影响你的使用体验
另外也可以添加你具体所需的USB模块勾选上,保存退出后执行内核编译
1
$ sudo make -j8
内核编译期间发生报错:
screenshot_image.png
这主要是由于系统缺少dwarves软件包导致的,我们使用apt命令安装并继续执行编译:
1
2
3
$ sudo apt install dwarves
$ sudo make -j8 && sudo make modules_install -j8 && sudo make install -j8
发现又产生了报错:
screenshot_image.png
查找资料似乎说明的是这仅仅是个警告,我通过禁用BTF的调试信息解决了这个问题
1
2
3
$ sudo vi .config
# 找到宏`CONFIG_DEBUG_INFO_BTF`并将value改为 `n`