Ubuntu Touch – USB串行驱动程序/模块

我有一个BQ Aquarius E4.5并想将它连接到各种外围设备,因此我可以将它用于远程监控/遥测。 如果我可以使USB串行适配器工作,这将很容易做到。

我有一个移动USB电缆,可以插入USB记忆棒,它将按预期工作。 到现在为止还挺好。

我试过插入一个标准的Aten USB /串口适配器,我看到一个usbdev1.x设备出现在/ dev /中,但没有/ dev / serial和/ dev / ttyUSB0,因为当我将它插入普通的Debian机器时。

同样,插入Arduino Nano(使用Future Devices USB UART)的工作原理如下:Nano获得电源并出现/dev/usbdev1.x设备 – 但没有/ dev / serial和no / dev / ttyUSB0。

除“已连接USB设备”外,/ var / log / syslog中不会显示任何消息。

我错过了什么? 它只是“USB”串行模块吗? 然后 – 如何安装?

手机正在运行Ubuntu Touch 15.04(r23)。

感谢ubuntu获得该function,您将不得不重新编译内核。 如果你仍然感兴趣请阅读下面:)

默认情况下,所有usb串行适配器都在任何UT内核中禁用。 (谢谢你ubuntu是如此不酷)[讽刺]因为你应该只使用这个设备socio * webapps(推特,fazebook,凝视UT日历),不敢做任何酷[讽刺关闭] 。 查看内核源代码https://github.com/bq/aquaris-E4.5/tree/aquaris-E4.5/更改配置文件以启用USB UART设备,然后交叉编译它(我认为最好最新的指示是如何做到这一点: https : //sturmflut.github.io/ubuntu/bq/2015/07/02/hacking-the-bq-part-4-building-and-booting-a-kernel / )您应该在上面链接的教程中描述的步骤3中添加支持您自己的USB UART设备的行。 要知道写入它的确切位置,最好先查看主线默认内核(3.4)树,然后添加相应的行。 或者看下面……

E.5源代码树是如此混乱,我找不到这个设备的确切defconfigs,但我熟悉bq M10的defconfigs(注意它是内核3.10而不是3.4,如E4.5,一些设备驱动程序可以在3.4树中不可用,我提供下面的摘录。 找到您的设备,并将确切的字符串复制到之前给出的链接中提到的“项目”配置文件中,取消注释并在步骤3将其设置为“y”:

# # USB port drivers # CONFIG_USB_SERIAL=y # CONFIG_USB_SERIAL_CONSOLE is not set # CONFIG_USB_SERIAL_GENERIC is not set # CONFIG_USB_SERIAL_AIRCABLE is not set # CONFIG_USB_SERIAL_ARK3116 is not set # CONFIG_USB_SERIAL_BELKIN is not set # CONFIG_USB_SERIAL_CH341 is not set # CONFIG_USB_SERIAL_WHITEHEAT is not set # CONFIG_USB_SERIAL_DIGI_ACCELEPORT is not set # CONFIG_USB_SERIAL_CP210X is not set # CONFIG_USB_SERIAL_CYPRESS_M8 is not set # CONFIG_USB_SERIAL_EMPEG is not set # CONFIG_USB_SERIAL_FTDI_SIO is not set # CONFIG_USB_SERIAL_FUNSOFT is not set # CONFIG_USB_SERIAL_VISOR is not set # CONFIG_USB_SERIAL_IPAQ is not set # CONFIG_USB_SERIAL_IR is not set # CONFIG_USB_SERIAL_EDGEPORT is not set # CONFIG_USB_SERIAL_EDGEPORT_TI is not set # CONFIG_USB_SERIAL_F81232 is not set # CONFIG_USB_SERIAL_GARMIN is not set # CONFIG_USB_SERIAL_IPW is not set # CONFIG_USB_SERIAL_IUU is not set # CONFIG_USB_SERIAL_KEYSPAN_PDA is not set # CONFIG_USB_SERIAL_KEYSPAN is not set # CONFIG_USB_SERIAL_KLSI is not set # CONFIG_USB_SERIAL_KOBIL_SCT is not set # CONFIG_USB_SERIAL_MCT_U232 is not set # CONFIG_USB_SERIAL_METRO is not set # CONFIG_USB_SERIAL_MOS7720 is not set # CONFIG_USB_SERIAL_MOS7840 is not set # CONFIG_USB_SERIAL_MOTOROLA is not set # CONFIG_USB_SERIAL_NAVMAN is not set # CONFIG_USB_SERIAL_PL2303 is not set # CONFIG_USB_SERIAL_OTI6858 is not set # CONFIG_USB_SERIAL_QCAUX is not set # CONFIG_USB_SERIAL_QUALCOMM is not set # CONFIG_USB_SERIAL_SPCP8X5 is not set # CONFIG_USB_SERIAL_HP4X is not set # CONFIG_USB_SERIAL_SAFE is not set # CONFIG_USB_SERIAL_SIEMENS_MPI is not set # CONFIG_USB_SERIAL_SIERRAWIRELESS is not set # CONFIG_USB_SERIAL_SYMBOL is not set # CONFIG_USB_SERIAL_TI is not set # CONFIG_USB_SERIAL_CYBERJACK is not set # CONFIG_USB_SERIAL_XIRCOM is not set CONFIG_USB_SERIAL_WWAN=y CONFIG_USB_SERIAL_OPTION=y # CONFIG_USB_SERIAL_OMNINET is not set # CONFIG_USB_SERIAL_OPTICON is not set # CONFIG_USB_SERIAL_VIVOPAY_SERIAL is not set # CONFIG_USB_SERIAL_XSENS_MT is not set # CONFIG_USB_SERIAL_ZIO is not set # CONFIG_USB_SERIAL_WISHBONE is not set # CONFIG_USB_SERIAL_ZTE is not set # CONFIG_USB_SERIAL_SSU100 is not set # CONFIG_USB_SERIAL_QT2 is not set # CONFIG_USB_SERIAL_DEBUG is not set 

没有瘫痪的linux只能用于缺少内核模块编译。但是在这个类似android的内核中,我很不确定它是否适用于模块,至少我找不到任何指示显示如何在这些mediatek-android设备上执行此操作。

似乎Ubuntu从内核中削减了许多好东西,可能试图通过统一隐藏非常大的RAM使用量。 这种默认设置使得无法使用带有UT的平板电脑/手机,除了阅读邮件,发推,登上UT日历和计算1 + 1以外的任何其他内容。 没有什么是默认的酷。