│ Symbol: USB_SERIAL_FTDI_SIO [=n] │ │ Type : tristate │ │ Prompt: USB FTDI Single Port Serial Driver │ │ Defined at drivers/usb/serial/Kconfig:153 │ │ Depends on: USB_SUPPORT [=y] && USB_SERIAL [=y] │ │ Location: │ │ -> Device Drivers │ │ -> USB support (USB_SUPPORT [=y]) │ │ -> USB Serial Converter support (USB_SERIAL [=y])
刚才在/lib/modules/4.4.15-tegre/bulild/include/下新建立一个链接asm,指向/lib/modules/4.4.15-tegre/bulild/include/linux/
编译往错误更多了都是下面的错误,能有挺多我就粘出来一小点,是驱动的问题吗
gcc -Wall -D__KERNEL__ -DMODULE -I/lib/modules/4.4.15-tegra/build/include -D__SMP__ -DSMP -I/usr/src/linux-4.4.15-tegra/drivers/usb/serial/ -O -c -o ftdi_sio.o ftdi_sio.c
In file included from /lib/modules/4.4.15-tegra/build/include/uapi/linux/types.h:4:0,
from /lib/modules/4.4.15-tegra/build/include/linux/compiler.h:199,
from /lib/modules/4.4.15-tegra/build/include/linux/linkage.h:4,
from /lib/modules/4.4.15-tegra/build/include/linux/kernel.h:6,
from ftdi_sio.c:251:
/lib/modules/4.4.15-tegra/build/include/asm/types.h:12:9: error: unknown type name ‘__u32’
typedef __u32 __kernel_dev_t;
^
/lib/modules/4.4.15-tegra/build/include/asm/types.h:14:9: error: unknown type name ‘__kernel_fd_set’
typedef __kernel_fd_set fd_set;
^
/lib/modules/4.4.15-tegra/build/include/asm/types.h:16:9: error: unknown type name ‘__kernel_ino_t’
typedef __kernel_ino_t ino_t;
^
/lib/modules/4.4.15-tegra/build/include/asm/types.h:17:9: error: unknown type name ‘__kernel_mode_t’
#5
还想问一下,在内核里怎么直接编译啊,我刚刚接触linux不太明白
#6
你先接入usb转串口先, 然后查看下是否有这些文件: /dev/ttyUSB*
#7
Linux内核从3.0以上都应有这驱动了。
│ Symbol: USB_SERIAL_FTDI_SIO [=n] │ │ Type : tristate │ │ Prompt: USB FTDI Single Port Serial Driver │ │ Defined at drivers/usb/serial/Kconfig:153 │ │ Depends on: USB_SUPPORT [=y] && USB_SERIAL [=y] │ │ Location: │ │ -> Device Drivers │ │ -> USB support (USB_SUPPORT [=y]) │ │ -> USB Serial Converter support (USB_SERIAL [=y])
│ Symbol: USB_SERIAL_FTDI_SIO [=n] │ │ Type : tristate │ │ Prompt: USB FTDI Single Port Serial Driver │ │ Defined at drivers/usb/serial/Kconfig:153 │ │ Depends on: USB_SUPPORT [=y] && USB_SERIAL [=y] │ │ Location: │ │ -> Device Drivers │ │ -> USB support (USB_SUPPORT [=y]) │ │ -> USB Serial Converter support (USB_SERIAL [=y])
│ Symbol: USB_SERIAL_FTDI_SIO [=n] │ │ Type : tristate │ │ Prompt: USB FTDI Single Port Serial Driver │ │ Defined at drivers/usb/serial/Kconfig:153 │ │ Depends on: USB_SUPPORT [=y] && USB_SERIAL [=y] │ │ Location: │ │ -> Device Drivers │ │ -> USB support (USB_SUPPORT [=y]) │ │ -> USB Serial Converter support (USB_SERIAL [=y])
│ Symbol: USB_SERIAL_FTDI_SIO [=n] │ │ Type : tristate │ │ Prompt: USB FTDI Single Port Serial Driver │ │ Defined at drivers/usb/serial/Kconfig:153 │ │ Depends on: USB_SUPPORT [=y] && USB_SERIAL [=y] │ │ Location: │ │ -> Device Drivers │ │ -> USB support (USB_SUPPORT [=y]) │ │ -> USB Serial Converter support (USB_SERIAL [=y])
│ Symbol: USB_SERIAL_FTDI_SIO [=n] │ │ Type : tristate │ │ Prompt: USB FTDI Single Port Serial Driver │ │ Defined at drivers/usb/serial/Kconfig:153 │ │ Depends on: USB_SUPPORT [=y] && USB_SERIAL [=y] │ │ Location: │ │ -> Device Drivers │ │ -> USB support (USB_SUPPORT [=y]) │ │ -> USB Serial Converter support (USB_SERIAL [=y])
刚才在/lib/modules/4.4.15-tegre/bulild/include/下新建立一个链接asm,指向/lib/modules/4.4.15-tegre/bulild/include/linux/
编译往错误更多了都是下面的错误,能有挺多我就粘出来一小点,是驱动的问题吗
gcc -Wall -D__KERNEL__ -DMODULE -I/lib/modules/4.4.15-tegra/build/include -D__SMP__ -DSMP -I/usr/src/linux-4.4.15-tegra/drivers/usb/serial/ -O -c -o ftdi_sio.o ftdi_sio.c
In file included from /lib/modules/4.4.15-tegra/build/include/uapi/linux/types.h:4:0,
from /lib/modules/4.4.15-tegra/build/include/linux/compiler.h:199,
from /lib/modules/4.4.15-tegra/build/include/linux/linkage.h:4,
from /lib/modules/4.4.15-tegra/build/include/linux/kernel.h:6,
from ftdi_sio.c:251:
/lib/modules/4.4.15-tegra/build/include/asm/types.h:12:9: error: unknown type name ‘__u32’
typedef __u32 __kernel_dev_t;
^
/lib/modules/4.4.15-tegra/build/include/asm/types.h:14:9: error: unknown type name ‘__kernel_fd_set’
typedef __kernel_fd_set fd_set;
^
/lib/modules/4.4.15-tegra/build/include/asm/types.h:16:9: error: unknown type name ‘__kernel_ino_t’
typedef __kernel_ino_t ino_t;
^
/lib/modules/4.4.15-tegra/build/include/asm/types.h:17:9: error: unknown type name ‘__kernel_mode_t’
#5
Linux内核从3.0以上都应有这驱动了。
│ Symbol: USB_SERIAL_FTDI_SIO [=n] │ │ Type : tristate │ │ Prompt: USB FTDI Single Port Serial Driver │ │ Defined at drivers/usb/serial/Kconfig:153 │ │ Depends on: USB_SUPPORT [=y] && USB_SERIAL [=y] │ │ Location: │ │ -> Device Drivers │ │ -> USB support (USB_SUPPORT [=y]) │ │ -> USB Serial Converter support (USB_SERIAL [=y])
│ Symbol: USB_SERIAL_FTDI_SIO [=n] │ │ Type : tristate │ │ Prompt: USB FTDI Single Port Serial Driver │ │ Defined at drivers/usb/serial/Kconfig:153 │ │ Depends on: USB_SUPPORT [=y] && USB_SERIAL [=y] │ │ Location: │ │ -> Device Drivers │ │ -> USB support (USB_SUPPORT [=y]) │ │ -> USB Serial Converter support (USB_SERIAL [=y])
│ Symbol: USB_SERIAL_FTDI_SIO [=n] │ │ Type : tristate │ │ Prompt: USB FTDI Single Port Serial Driver │ │ Defined at drivers/usb/serial/Kconfig:153 │ │ Depends on: USB_SUPPORT [=y] && USB_SERIAL [=y] │ │ Location: │ │ -> Device Drivers │ │ -> USB support (USB_SUPPORT [=y]) │ │ -> USB Serial Converter support (USB_SERIAL [=y])
│ Symbol: USB_SERIAL_FTDI_SIO [=n] │ │ Type : tristate │ │ Prompt: USB FTDI Single Port Serial Driver │ │ Defined at drivers/usb/serial/Kconfig:153 │ │ Depends on: USB_SUPPORT [=y] && USB_SERIAL [=y] │ │ Location: │ │ -> Device Drivers │ │ -> USB support (USB_SUPPORT [=y]) │ │ -> USB Serial Converter support (USB_SERIAL [=y])
│ Symbol: USB_SERIAL_FTDI_SIO [=n] │ │ Type : tristate │ │ Prompt: USB FTDI Single Port Serial Driver │ │ Defined at drivers/usb/serial/Kconfig:153 │ │ Depends on: USB_SUPPORT [=y] && USB_SERIAL [=y] │ │ Location: │ │ -> Device Drivers │ │ -> USB support (USB_SUPPORT [=y]) │ │ -> USB Serial Converter support (USB_SERIAL [=y])
│ Symbol: USB_SERIAL_FTDI_SIO [=n] │ │ Type : tristate │ │ Prompt: USB FTDI Single Port Serial Driver │ │ Defined at drivers/usb/serial/Kconfig:153 │ │ Depends on: USB_SUPPORT [=y] && USB_SERIAL [=y] │ │ Location: │ │ -> Device Drivers │ │ -> USB support (USB_SUPPORT [=y]) │ │ -> USB Serial Converter support (USB_SERIAL [=y])