Modify

Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#8237 closed defect (fixed)

[patch] make rfkill autload before cfg80211

Reported by: framer99 Owned by: nbd
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: rfkill autoload cfg80211 Cc:

Description

When I build mac80211 it seems that cfg80211 depends on rfkill module(unknown symbols from rfkill).

I'm building mac80211 with the iwlwifi drivers enabled(iwlcore and iwlagn) which are not a part of trunk.... I won't pretend to know if that is what's causing rfkill to be required by cfg80211 or not... I only mention it in case it's related. I see recent patches by nbd related to rfkill so I thought maybe this is a real bug i trunk, and not specific to my iwlwifi build.

The autoload order in /etc/modules.d has 20-rfkill loading after 20-cfg80211 so you get unknown symbols and no loading of cfg80211, mac80211, iwlcore.ko etc.

patch attached to move rfkill load before cfg80211.
works on x86 target for sure.

Attachments (1)

rfkill-autoload-order.patch (455 bytes) - added by framer99 7 years ago.
load rfkill before cfg80211

Download all attachments as: .zip

Change History (11)

Changed 7 years ago by framer99

load rfkill before cfg80211

comment:1 follow-up: Changed 7 years ago by anonymous

cfg80211 is not depends on rfkill...

comment:2 in reply to: ↑ 1 Changed 7 years ago by anonymous

Replying to anonymous:

cfg80211 is not depends on rfkill...

like I said above, I won't pretend to understand the current rfkill situation but this is what happens on my target:

root@initramfs-rescue:~# lsmod | egrep 'Module|rfkill'
Module                  Size  Used by    Tainted: G
rfkill                  8736  1 cfg80211
root@initramfs-rescue:~# rmmod rfkill
rmmod: can't unload 'rfkill': Resource temporarily unavailable
root@initramfs-rescue:~# rmmod cfg80211
rmmod: can't unload 'cfg80211': Resource temporarily unavailable
root@initramfs-rescue:~# rmmod mac80211
rmmod: can't unload 'mac80211': Resource temporarily unavailable
root@initramfs-rescue:~# rmmod iwlcore
rmmod: can't unload 'iwlcore': Resource temporarily unavailable
root@initramfs-rescue:~# rmmod iwlagn
root@initramfs-rescue:~# rmmod iwlcore
root@initramfs-rescue:~# rmmod mac80211
root@initramfs-rescue:~# rmmod cfg80211
root@initramfs-rescue:~# rmmod rfkill
root@initramfs-rescue:~# insmod cfg80211
insmod: can't insert 'cfg80211': unknown symbol in module, or unknown parameter
root@initramfs-rescue:~# insmod cfg80211 ; dmesg | tail
insmod: can't insert 'cfg80211': unknown symbol in module, or unknown parameter
cfg80211: Unknown symbol rfkill_set_sw_state
cfg80211: Unknown symbol rfkill_unregister
cfg80211: Unknown symbol rfkill_blocked
cfg80211: Unknown symbol rfkill_destroy
cfg80211: Unknown symbol rfkill_resume_polling
cfg80211: Unknown symbol rfkill_pause_polling
cfg80211: Unknown symbol rfkill_set_hw_state
cfg80211: Unknown symbol rfkill_alloc
cfg80211: Unknown symbol rfkill_register
cfg80211: Unknown symbol rfkill_set_sw_state
root@initramfs-rescue:~# insmod rfkill
root@initramfs-rescue:~# insmod cfg80211
root@initramfs-rescue:~# insmod mac80211
root@initramfs-rescue:~# insmod iwlcore
root@initramfs-rescue:~# insmod iwagn
root@initramfs-rescue:~#

comment:3 Changed 7 years ago by anonymous

Although I don't know the detail of all those either. But manually rename the 20-rfkill to 15-rfkill under /etc/modules.d did resolve my problem.

comment:4 Changed 7 years ago by anonymous

You may also have to load kmod-rfkill via opkg first (the snapshots don't contain it).

comment:5 Changed 7 years ago by anonymous

Has anyone tried the patch with the latest trunk? For myself, manually rename 20-rfkill to 15-rfkill doesn't work any more for trunk r24017. The router failed to boot up after the change.

comment:6 Changed 7 years ago by anonymous

Sorry, I forgot to mention my router is wndr3700

comment:7 Changed 7 years ago by anonymous

The boot failure belonged other problems. Still have to manually change the module order for the latest trunk version r24127 to enable the wireless. Do we have any update on this?

comment:8 Changed 7 years ago by jow

  • Owner changed from developers to nbd
  • Status changed from new to assigned

comment:9 Changed 7 years ago by hauke

  • Resolution set to fixed
  • Status changed from assigned to closed

Thank you for reporting.
This is fixed in r24143.

comment:10 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.