unkown symbol in kernel module (4.14.34) openwrt / orange pi r1

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I've got a working Openwrt running on a orange pi r1, however no working wifi
driver comes with the img (openwrt).



The problem i encounter is the loading of module (cfg80211.ko), used for configuration purposes.



The module is build against:
linux-stable-4.14.34 with sunxi_defconfig after which I selected the cfg80211 from make menuconfig.



Compiler:



arm-linux-gnueabihf-gcc (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609


Loading the module on the orange-pi shows:



 root@OpenWrt:/lib/modules/4.14.34# modprobe cfg80211.ko
[ 42.424100] cfg80211: Unknown symbol __put_net (err 0)
1 module could not be probed
- cfg80211


The kernel info:



root@OpenWrt:/lib/modules/4.14.34# cat /proc/version 
Linux version 4.14.34 (buildbot@crazyhorse)
(gcc version 7.3.0 (OpenWrt GCC 7.3.0 r6727-38bd4e4))
#0 SMP PREEMPT Thu Apr 19 17:15:00 2018


My assumption was, that if i compile a module against the same version it should be able to be load it, ...



Any help or suggestions on how to compile/load module for an image that
was obtained (instead of build locally) would be much appreciated.



Could it be a name mangling issue due to the difference in compilers?



Regards Auke







share|improve this question



















  • It may be not enough compiling a module to put in another kernel as you found out. You will have to install a new kernel + the new module.
    – Rui F Ribeiro
    Apr 20 at 21:24















up vote
0
down vote

favorite












I've got a working Openwrt running on a orange pi r1, however no working wifi
driver comes with the img (openwrt).



The problem i encounter is the loading of module (cfg80211.ko), used for configuration purposes.



The module is build against:
linux-stable-4.14.34 with sunxi_defconfig after which I selected the cfg80211 from make menuconfig.



Compiler:



arm-linux-gnueabihf-gcc (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609


Loading the module on the orange-pi shows:



 root@OpenWrt:/lib/modules/4.14.34# modprobe cfg80211.ko
[ 42.424100] cfg80211: Unknown symbol __put_net (err 0)
1 module could not be probed
- cfg80211


The kernel info:



root@OpenWrt:/lib/modules/4.14.34# cat /proc/version 
Linux version 4.14.34 (buildbot@crazyhorse)
(gcc version 7.3.0 (OpenWrt GCC 7.3.0 r6727-38bd4e4))
#0 SMP PREEMPT Thu Apr 19 17:15:00 2018


My assumption was, that if i compile a module against the same version it should be able to be load it, ...



Any help or suggestions on how to compile/load module for an image that
was obtained (instead of build locally) would be much appreciated.



Could it be a name mangling issue due to the difference in compilers?



Regards Auke







share|improve this question



















  • It may be not enough compiling a module to put in another kernel as you found out. You will have to install a new kernel + the new module.
    – Rui F Ribeiro
    Apr 20 at 21:24













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I've got a working Openwrt running on a orange pi r1, however no working wifi
driver comes with the img (openwrt).



The problem i encounter is the loading of module (cfg80211.ko), used for configuration purposes.



The module is build against:
linux-stable-4.14.34 with sunxi_defconfig after which I selected the cfg80211 from make menuconfig.



Compiler:



arm-linux-gnueabihf-gcc (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609


Loading the module on the orange-pi shows:



 root@OpenWrt:/lib/modules/4.14.34# modprobe cfg80211.ko
[ 42.424100] cfg80211: Unknown symbol __put_net (err 0)
1 module could not be probed
- cfg80211


The kernel info:



root@OpenWrt:/lib/modules/4.14.34# cat /proc/version 
Linux version 4.14.34 (buildbot@crazyhorse)
(gcc version 7.3.0 (OpenWrt GCC 7.3.0 r6727-38bd4e4))
#0 SMP PREEMPT Thu Apr 19 17:15:00 2018


My assumption was, that if i compile a module against the same version it should be able to be load it, ...



Any help or suggestions on how to compile/load module for an image that
was obtained (instead of build locally) would be much appreciated.



Could it be a name mangling issue due to the difference in compilers?



Regards Auke







share|improve this question











I've got a working Openwrt running on a orange pi r1, however no working wifi
driver comes with the img (openwrt).



The problem i encounter is the loading of module (cfg80211.ko), used for configuration purposes.



The module is build against:
linux-stable-4.14.34 with sunxi_defconfig after which I selected the cfg80211 from make menuconfig.



Compiler:



arm-linux-gnueabihf-gcc (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609


Loading the module on the orange-pi shows:



 root@OpenWrt:/lib/modules/4.14.34# modprobe cfg80211.ko
[ 42.424100] cfg80211: Unknown symbol __put_net (err 0)
1 module could not be probed
- cfg80211


The kernel info:



root@OpenWrt:/lib/modules/4.14.34# cat /proc/version 
Linux version 4.14.34 (buildbot@crazyhorse)
(gcc version 7.3.0 (OpenWrt GCC 7.3.0 r6727-38bd4e4))
#0 SMP PREEMPT Thu Apr 19 17:15:00 2018


My assumption was, that if i compile a module against the same version it should be able to be load it, ...



Any help or suggestions on how to compile/load module for an image that
was obtained (instead of build locally) would be much appreciated.



Could it be a name mangling issue due to the difference in compilers?



Regards Auke









share|improve this question










share|improve this question




share|improve this question









asked Apr 20 at 20:19









Auke-Dirk

1




1











  • It may be not enough compiling a module to put in another kernel as you found out. You will have to install a new kernel + the new module.
    – Rui F Ribeiro
    Apr 20 at 21:24

















  • It may be not enough compiling a module to put in another kernel as you found out. You will have to install a new kernel + the new module.
    – Rui F Ribeiro
    Apr 20 at 21:24
















It may be not enough compiling a module to put in another kernel as you found out. You will have to install a new kernel + the new module.
– Rui F Ribeiro
Apr 20 at 21:24





It may be not enough compiling a module to put in another kernel as you found out. You will have to install a new kernel + the new module.
– Rui F Ribeiro
Apr 20 at 21:24
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f439019%2funkown-symbol-in-kernel-module-4-14-34-openwrt-orange-pi-r1%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f439019%2funkown-symbol-in-kernel-module-4-14-34-openwrt-orange-pi-r1%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)