快捷导航
13 31642

Kernel configuration problem

youngtaek 于 2020-10-26 21:58 发表 [复制链接]
Hi,

I just tried to attach a device using serial through USB.
I found out that it doesn't work on apex but does on xavier dev kit.
The problem was that the current kernel configuration of apex doesn't have CONFIG_USB_ACM set, which is set by default in recent L4T source.
I have no idea why this happens, but this definitely is a problem.

There probably would be more missings in current apex kernel, compared to default one.
Please check this and let me know.

举报 使用道具
| 回复

共 13 个关于本帖的回复 最后回复于 2020-11-3 14:49

youngtaek 会员 发表于 2020-10-26 22:01 | 显示全部楼层
BTW, please renew cert of the webserver.
Browser prevents me to access here all the time, due to expired https cert.
fengl 会员 发表于 2020-10-27 18:00 | 显示全部楼层
Thanks for your feedback, we will provide the driver files.
The attachment is the driver file provided,and you need to do the following instructions.

  1. sudo cp cdc-acm.ko /lib/modules/4.9.140+/kernel/drivers/usb/class/cdc-acm.ko
  2. sudo depmod
  3. sudo modprobe cdc-acm
复制代码

cdc-acm.rar

106.3 KB, 下载次数: 0

youngtaek 会员 发表于 2020-10-27 18:14 | 显示全部楼层
fengl 发表于 2020-10-27 18:00
Thanks for your feedback, we will provide the driver files.
The attachment is the driver file provid ...

Thanks, will take a look.

Hope that new images would not be that different from default xavier settings.
youngtaek 会员 发表于 2020-10-28 12:22 | 显示全部楼层
This helps, but other problems poped out.
We're using some IMU, which requires additional driver to be loaded, thus have been compiled and used it without any problem on dev kit.
Doing same thing, makes weird error, and driver couldn't be loaded successfully.
Below is part of syslog

Oct 28 12:44:37 miivii-tegra kernel: [    3.147733] usbcore: registered new interface driver cdc_wdm
Oct 28 12:44:37 miivii-tegra kernel: [    3.147763] usbcore: registered new interface driver uas
Oct 28 12:44:37 miivii-tegra kernel: [    3.147802] usbcore: registered new interface driver usb-storage
Oct 28 12:44:37 miivii-tegra kernel: [    3.147861] usbcore: registered new interface driver usbserial
Oct 28 12:44:37 miivii-tegra kernel: [    3.147886] usbcore: registered new interface driver xsens_mt
Oct 28 12:44:37 miivii-tegra kernel: [    3.147907] usbserial: USB Serial support registered for xsens_mt
Oct 28 12:44:37 miivii-tegra kernel: [    3.148413] tegra-usb-cd usb_cd: failed to allocate extcon device
Oct 28 12:44:37 miivii-tegra kernel: [    3.148685] tegra-usb-cd: probe of usb_cd failed with error -38

So I checked kernel config again, and found out that CONFIG_EXTCON and CONFIG_EXTCON_(GPIO/USB_GPIO) are missing in apex which dev kit has.
I'm not sure whether those can be also loaded as module.
Could you check?
fengl 会员 发表于 2020-10-28 16:30 | 显示全部楼层
I need you to provide the apex version。

  1. cat /etc/miivii_release
复制代码
youngtaek 会员 发表于 2020-10-28 20:39 | 显示全部楼层
fengl 发表于 2020-10-28 16:30
I need you to provide the apex version。

MIIVII APEX XAVIER 4.4-1.1.0
fengl 会员 发表于 2020-10-29 09:45 | 显示全部楼层
I made a mistake.
I will provide you with a driver file again, and you can test it again.
Thanks.


cdc-acm.rar

14.09 KB, 下载次数: 2

youngtaek 会员 发表于 2020-10-29 11:58 | 显示全部楼层
fengl 发表于 2020-10-29 09:45
I made a mistake.
I will provide you with a driver file again, and you can test it again.
Thanks.

cdc-adm is different from what i suffer right now, it's related to ublox gnss receiver not IMU.
I solved cdc-adm issue by copying module file from existing dev kit.
cdc-adm is relatively easy as loading module is quite straight-forward.
fengl 会员 发表于 2020-10-29 15:03 | 显示全部楼层
I checked our config file. We did not make any changes to the configuration of CONFIG_EXTCON and CONFIG_EXTCON_(GPIO/USB_GPIO).
But in addition to some of the options we added, we did remove some configuration options. In addition to CONFIG_USB_ACM, there are also CONFIG_USB_CHIPIDEA and CONFIG_USB_CHIPIDEA_UDC. Maybe this may affect your use.
In order to be consistent with the dev kit, we will compile these two options into the kernel, you need to replace the Image file in the /boot directory. Hope this will be useful to you.
thanks.

Image.rar

8.9 MB, 下载次数: 2

您需要登录后才可以回帖 登录 | 点我注册

精彩推荐

  • MIIVII EVO ORIN的最新镜像中米文的源报404
  • 求助,储存空间不够,如何解决
  • APEX AD 10问题见图片
  • 相机启动launch
  • APEX AD-10 GPS授时修改串口波特率

明星用户