1. 概要
因为公司需要,所以在TX2上需要移植移远4G模块, 型号:EC25;
我之前也没做过这方面的工作, 结合移远提供的文档与网上各位大佬的资料,基本实现了移植工作;
当然还是有点问题, 不过只能以后有时间再研究了。
2. 具体步骤
2.1 获取内核源码
git clone https://github.com/jetsonhacks/buildJetsonTX2Kernel.git
cd buildJetsonTX2Kernel
./getKernelSources.sh
2.2 修改内核源码
在 [KERNEL]/drivers/usb/serial/option.c 文件中, 加入代码
static const struct usb_device_id option_ids[] = {
#if 1 //Added by Quectel
{
USB_DEVICE(0x05C6, 0x9090) }, /* Quectel UC15 */
{
USB_DEVICE(0x05C6, 0x9003) }, /* Quectel UC20 */
{
USB_DEVICE(0x2C7C, 0x0125) }, /* Quectel EC25 */
{
USB_DEVICE(0x2C7C, 0x0121) }, /* Quectel EC21 */
{