RobertCNelson / bb-kernel

MIT License
130 stars 102 forks source link

Problem when building ti_davinci_mdio as module #31

Closed unmanagedneet closed 7 years ago

unmanagedneet commented 7 years ago

Hello, I'am working on 4.1.18. Firstly, I've tried the default kernel setting, and it was successfully built. Then, I want to build TI's Ethernet driver "TI DaVinci MDIO" as a module by setting it's flag to {M}, but meets some errors in building. It says: ERROR: "of_update_property" [drivers/net/ethernet/ti/davinci_mdio.ko] undefined! By checking those source files, I find out this function was declared in "KERNEL/include/linux/of.h" and implemented in "KERNEL/drivers/of/base.c". I'm not familiar with kernel module programming, but "of.h" was included by "davinci_mdio.c", why there is a undefined Errors? It maybe a noob question, but really confuse me a lot of time.

unmanagedneet commented 7 years ago

Solued... Just add a line "EXPORT_SYMBOL_GPL(of_update_property);" into "base.c", and everything will be OK.