This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] Linux/AM3359:如何使用 GPIO 库?

Guru**** 2539540 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/570685/linux-am3359-how-to-use-gpio-library

器件型号:AM3359

工具/软件:Linux

我制作了一个使用"#include"的模块 "库、但当我在板上输入"insmod gpio.ko"时、会发生未知符号错误。  

当我使用 GPIO_REQUEST ()、GPIO_DIRECion_INPUT ()、GPIO_DIRECion_OUTPUT ()、GPIO_TO_IRQ ()等函数时、会出现未知符号...

我认为我的内核构建没有 GPIO 库。  

我的内核版本为 4.4.32-gadde2ca9f8、我的板为 BeagleBone Black。

我应该怎么做?  我是否需要更改内核配置文件?

此致、

BOO

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    哦、我解决了这个问题。
    我的模块中缺少"module_license ("GPL");"。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    感谢您更新该主题。

    此致、
    Yordan