Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cfg80211: exports duplicate symbol
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
brb78
n00b
n00b


Joined: 09 Nov 2020
Posts: 7

PostPosted: Wed Nov 25, 2020 6:00 am    Post subject: cfg80211: exports duplicate symbol Reply with quote

I've been running Gentoo on my pc for over a year with little issue, so decided to try it on aT420 laptop. I seem to be having trouble with iwlwifi, an Intel Centrino N 6205, and NetworkManager.

dmesg:
https://pastebin.com/LwiKdYMA

/usr/src/linux/.config
https://pastebin.com/2tR1p6bM

I have
Code:
CONFIG_EXTRA_FIRMWARE="iwlwifi-6000g2a-6.ucode regulatory.db regulatory.db.p7s"
CONFIG_IWLWIFI=m
CONFIG_IWLWIFI_LEDS=y
CONFIG_IWLDVM=m
CONFIG_IWLMVM=m
CONFIG_IWLWIFI_OPMODE_MODULAR=y
CONFIG_IWLWIFI_DEBUG=y
CONFIG_IWLWIFI_DEVICE_TRACING=y


and

Code:
CONFIG_CFG80211=m
CONFIG_CFG80211_REQUIRE_SIGNED_REGDB=y
CONFIG_CFG80211_USE_KERNEL_REGDB_KEYS=y
CONFIG_CFG80211_DEFAULT_PS=y
CONFIG_CFG80211_CRDA_SUPPORT=y
CONFIG_MAC80211=m
CONFIG_MAC80211_HAS_RC=y
CONFIG_MAC80211_RC_MINSTREL=y
CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y
CONFIG_MAC80211_RC_DEFAULT="minstrel_ht"
CONFIG_MAC80211_LEDS=y
CONFIG_MAC80211_STA_HASH_MAX_SIZE=0


set.

After boot all I get is ethernet, no wlan, although
Code:
lspci
does indicate the device is present. I have tried both with and without cfg80211 as a module as the iwlwifi manual suggests and have tried with and without iwlwifi as a module as well, neither .config got wlan working. Also, ethernet only starts manually after
Code:
dhcpcd enp0s25
.

Any suggestions on how to 1) get wifi working and 2) get NetworkManager working are appreciated.

when I
Code:
lsmod
only
Code:
x86_pkg_temp_thermal
is listed, but when I first set up the kernel there were iwlwifi, bluetooth, and other moduels listed as well - not sure where they all went but that seems to be a problem.

I also think

Code:
[    1.131534] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.131537] cfg80211: failed to load regulatory.db
[    5.138021] cfg80211: exports duplicate symbol __cfg80211_alloc_event_skb (owned by kernel)
[    5.207064] cfg80211: exports duplicate symbol __cfg80211_alloc_event_skb (owned by kernel)
[    5.245593] cfg80211: exports duplicate symbol __cfg80211_alloc_event_skb (owned by kernel)
[    5.279568] cfg80211: exports duplicate symbol __cfg80211_alloc_event_skb (owned by kernel)
[    5.313740] cfg80211: exports duplicate symbol __cfg80211_alloc_event_skb (owned by kernel)


is part of the problem but am unsure how to resolve it. Also, this system is CoreBooted with SEABios.

Enabled bbcode, given that it was being used. -- desultory
Back to top
View user's profile Send private message
brb78
n00b
n00b


Joined: 09 Nov 2020
Posts: 7

PostPosted: Wed Nov 25, 2020 10:03 pm    Post subject: Re: cfg80211: exports duplicate symbol Reply with quote

brb78 wrote:

I also think

Code:
[    1.131534] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.131537] cfg80211: failed to load regulatory.db
[    5.138021] cfg80211: exports duplicate symbol __cfg80211_alloc_event_skb (owned by kernel)
[    5.207064] cfg80211: exports duplicate symbol __cfg80211_alloc_event_skb (owned by kernel)
[    5.245593] cfg80211: exports duplicate symbol __cfg80211_alloc_event_skb (owned by kernel)
[    5.279568] cfg80211: exports duplicate symbol __cfg80211_alloc_event_skb (owned by kernel)
[    5.313740] cfg80211: exports duplicate symbol __cfg80211_alloc_event_skb (owned by kernel)


is part of the problem but am unsure how to resolve it.


I suspect this means that cfg80211 is built in AND a module (possible since I've alternated both build on this system), but I thought I had run

Code:
make clean && make modules_install


Does anyone who knows a little more about kernel building want to point me in the right direction to make this kernel clean?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54809
Location: 56N 3W

PostPosted: Wed Nov 25, 2020 11:00 pm    Post subject: Reply with quote

brb78,

You are not runnig the kernel you think you are.

You made the kernel with __cfg80211_alloc_event_skb built into the kernel. (owned by kernel)
Then you remade the kernel with __cfg80211_alloc_event_skb in a module but you did not install or boot that kernel.

The old kernel is runnig with the new modules. Its harmless to the hardware but it won't work.

Look at the time and date in
Code:
uname -a
That's the time and date that the running kernel was built.
I suspect that you recall making a newer one.

If that's the case, we need to find out why the new kernel is not being used.

-- Edit--
The build time of the running kernel is at the top of dmesg
Code:
[    0.000000] Linux version 5.4.72-gentoo (root@t420) (gcc version 9.3.0 (Gentoo 9.3.0-r1 p3)) #1 SMP Thu Nov 19 09:16:12 EST 2020

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
brb78
n00b
n00b


Joined: 09 Nov 2020
Posts: 7

PostPosted: Fri Nov 27, 2020 2:40 pm    Post subject: Reply with quote

You are correct. I though I was loading a kernel built the 25th, but it seems to still be loading a kernel built the 19th. I'll re-check GRUB, but the only kernel in my /boot is the one built the 25th, so not sure how the 19th kernel is being loaded.

Just rebuilt again, but it still seems to boot the kernel from the 19th. Any idea how to locate and remove that kernel for good? the kernel in my /boot says it was modified the 27th.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54809
Location: 56N 3W

PostPosted: Fri Nov 27, 2020 3:37 pm    Post subject: Reply with quote

brb78,

You forgot to mount /boot for the kernel install, so it was correctly installed to the wrong /boot.
Your root partition has a directory called /boot. It behaves in all respects like any other directory. Its not an error to install kernels there.

You have a boot partition (no leading /) that must be attached to the filesystem tree at /boot for kernel updates.
This is where the bootloader expects to find kernels.

Code:
ls /boot
with boot not mounted should show nothing.
Code:
ls /boot
with boot mounted should show your kernels a grub directory and so on.

Grub has a nasty wart too. The newest kernel is not always the default, so you may need to use the menu to select the newest kernel.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
brb78
n00b
n00b


Joined: 09 Nov 2020
Posts: 7

PostPosted: Thu Dec 17, 2020 4:10 pm    Post subject: Reply with quote

Haven't had time to test out solutions yet, but appreciate the response
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum