交叉编译FTDI VCP驱动程序,用于嵌入式Linux手臂 [英] Cross compile FTDI VCP Driver for embedded linux arm

查看:224
本文介绍了交叉编译FTDI VCP驱动程序,用于嵌入式Linux手臂的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为嵌入式arch linux arm计算机交叉编译FTDI VCP驱动程序.我从 http://www.ftdichip.com/Drivers/VCP.htm 下载了源文件. a>到运行内核的我的主机上:

I'm trying to cross compile the FTDI VCP Driver for my embedded arch linux arm machine. I downloaded the source files from http://www.ftdichip.com/Drivers/VCP.htm onto my host machine which is running kernel:

2.6.32-54-generic-pae

2.6.32-54-generic-pae

运行Makefile时,出现与内核头文件有关的错误,即:找不到asm/thread_info.h文件.我意识到这意味着我的asm符号链接已损坏,因此我尝试将其链接到

When running the Makefile, I get errors related to kernel headers, ie: asm/thread_info.h file not found. I realize that this means that my asm symlink is broken, so I tried linking it to

linux-headers-2.6.32-54/include/asm-generic

linux-headers-2.6.32-54/include/asm-generic

但是该目录的内容也不包含thread_info.h,我正试图找到它.

but the contents of that directory does not include thread_info.h either, which I'm trying to find.

有没有人使用Ubuntu作为主机交叉编译用于嵌入式arch linux臂的FTDI VCP驱动程序,可以指出正确的方向吗?我是构建内核模块和交叉编译的新手,我们将不胜感激.

Has anyone cross compiled the FTDI VCP Driver for embedded arch linux arm using Ubuntu as their host and can point me in the right direction? I'm new to building kernel modules and cross compiling and any help would be appreciated.

如果有人需要更多信息,我很乐意添加它.

If anyone requires more information I'd be more than happy to add it.

推荐答案

make ARCH = arm menuconfig

make ARCH=arm menuconfig

制作和安装模块:制作模块并制作modules_install

Make and install modules: make modules and make modules_install

别忘了:如果需要,可以使用insmod usbserial.ko和insmod ftdi_sio.ko,然后使用depmod -a在电源关闭后重新加载它们.

Don't forget: insmod usbserial.ko and insmod ftdi_sio.ko if you need to, and depmod -a to have them load after a power cycle.

别忘了包含您的交叉编译链.

Don't forget to include your cross compiling chains.

这篇关于交叉编译FTDI VCP驱动程序,用于嵌入式Linux手臂的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆