Modify

Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#11214 closed defect (fixed)

trunk/atheros/r31151 ath5k/mac80211 unknown symbols

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: Cc:

Description

After upgrade from Backfire, wifi interface does not work with ath5k.
Works fine with madwifi.
I rebuilt twice, using make {clean,defconfig,make}, and reinstalled twice.result is the same.
I'll try building it with 2.6.38 kernel and using make dirclean next.
From dmesg:

[16.730000] JFFS2 notice: (389) jffs2_build_xattr_subsystem: complete building xattr subsystem, 22 of xdatum (0 unchecked, 21 orphan) and 23 of xref (0 dead, 21 orphan) found.
[19.940000] Compat-wireless backport release: compat-wireless 2012-02-27-1-r31151
[   20.030000] Backport based on wireless-testing.git master-2012-02-27
[   20.490000] cfg80211: Calling CRDA to update world regulatory domain
[   23.510000] NET: Registered protocol family 10
[   23.560000] lo: Disabled Privacy Extensions
[   23.640000] cfg80211: World regulatory domain updated:
[   23.710000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   23.800000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   23.900000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   23.990000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   24.080000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   24.180000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   25.460000] mac80211: Unknown symbol ewma_add (err 0)
[   25.640000] mac80211: Unknown symbol ewma_init (err 0)
[   26.760000] ath5k: Unknown symbol ewma_add (err 0)
[   26.840000] ath5k: Unknown symbol ieee80211_free_hw (err 0)
[   26.910000] ath5k: Unknown symbol ieee80211_alloc_hw (err 0)
[   26.980000] ath5k: Unknown symbol ieee80211_register_hw (err 0)
[   27.060000] ath5k: Unknown symbol ieee80211_ctstoself_duration (err 0)
[   27.150000] ath5k: Unknown symbol ieee80211_generic_frame_duration (err 0)[   16.730000] JFFS2 notice: (389) jffs2_build_xattr_subsystem: complete building xattr subsystem, 22 of xdatum (0 unchecked, 21 orphan) and 23 of xref (0 dead, 21 orphan) found.
[   19.940000] Compat-wireless backport release: compat-wireless-2012-02-27-1-r31151
[   20.030000] Backport based on wireless-testing.git master-2012-02-27
[   20.490000] cfg80211: Calling CRDA to update world regulatory domain
[   23.510000] NET: Registered protocol family 10
[   23.560000] lo: Disabled Privacy Extensions
[   23.640000] cfg80211: World regulatory domain updated:
[   23.710000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   23.800000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   23.900000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   23.990000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   24.080000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   24.180000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   25.460000] mac80211: Unknown symbol ewma_add (err 0)
[   25.640000] mac80211: Unknown symbol ewma_init (err 0)
[   26.760000] ath5k: Unknown symbol ewma_add (err 0)
[   26.840000] ath5k: Unknown symbol ieee80211_free_hw (err 0)
[   26.910000] ath5k: Unknown symbol ieee80211_alloc_hw (err 0)
[   26.980000] ath5k: Unknown symbol ieee80211_register_hw (err 0)
[   27.060000] ath5k: Unknown symbol ieee80211_ctstoself_duration (err 0)
[   27.150000] ath5k: Unknown symbol ieee80211_generic_frame_duration (err 0)
[   27.230000] ath5k: Unknown symbol ieee80211_wake_queue (err 0)
[   27.310000] ath5k: Unknown symbol __ieee80211_get_tx_led_name (err 0)
[   27.390000] ath5k: Unknown symbol ieee80211_get_buffered_bc (err 0)
[   27.480000] ath5k: Unknown symbol __ieee80211_get_rx_led_name (err 0)
[   27.560000] ath5k: Unknown symbol ewma_init (err 0)
[   27.620000] ath5k: Unknown symbol wiphy_to_ieee80211_hw (err 0)
[   27.700000] ath5k: Unknown symbol ieee80211_queue_delayed_work (err 0)
[   27.780000] ath5k: Unknown symbol kstrtoint (err 0)
[   27.850000] ath5k: Unknown symbol ieee80211_rx (err 0)
[   27.920000] ath5k: Unknown symbol ieee80211_wake_queues (err 0)
[   27.990000] ath5k: Unknown symbol ieee80211_tx_status (err 0)
[   28.070000] ath5k: Unknown symbol ieee80211_stop_queue (err 0)
[   28.140000] ath5k: Unknown symbol ieee80211_stop_queues (err 0)
[   28.220000] ath5k: Unknown symbol ieee80211_iterate_active_interfaces_atomic (err 0)
[   28.310000] ath5k: Unknown symbol ieee80211_unregister_hw (err 0)
[   28.390000] ath5k: Unknown symbol ieee80211_beacon_get_tim (err 0)
[   28.480000] ath5k: Unknown symbol ieee80211_queue_work (err 0)
[   28.550000] ath5k: Unknown symbol ieee80211_rts_duration (err 0)

[   27.230000] ath5k: Unknown symbol ieee80211_wake_queue (err 0)
[   27.310000] ath5k: Unknown symbol __ieee80211_get_tx_led_name (err 0)
[   27.390000] ath5k: Unknown symbol ieee80211_get_buffered_bc (err 0)
[   27.480000] ath5k: Unknown symbol __ieee80211_get_rx_led_name (err 0)
[   27.560000] ath5k: Unknown symbol ewma_init (err 0)
[   27.620000] ath5k: Unknown symbol wiphy_to_ieee80211_hw (err 0)
[   27.700000] ath5k: Unknown symbol ieee80211_queue_delayed_work (err 0)
[   27.780000] ath5k: Unknown symbol kstrtoint (err 0)
[   27.850000] ath5k: Unknown symbol ieee80211_rx (err 0)
[   27.920000] ath5k: Unknown symbol ieee80211_wake_queues (err 0)
[   27.990000] ath5k: Unknown symbol ieee80211_tx_status (err 0)
[   28.070000] ath5k: Unknown symbol ieee80211_stop_queue (err 0)
[   28.140000] ath5k: Unknown symbol ieee80211_stop_queues (err 0)
[   28.220000] ath5k: Unknown symbol ieee80211_iterate_active_interfaces_atomic (err 0)
[   28.310000] ath5k: Unknown symbol ieee80211_unregister_hw (err 0)
[   28.390000] ath5k: Unknown symbol ieee80211_beacon_get_tim (err 0)
[   28.480000] ath5k: Unknown symbol ieee80211_queue_work (err 0)
[   28.550000] ath5k: Unknown symbol ieee80211_rts_duration (err 0)

Attachments (1)

970-mips-gcc-4.6-set-but-unused-fixes.patch (443 bytes) - added by anonymous 6 years ago.
Fix variable set but not used [-Werror=unused-but-set-variable] errors with 2.6.38.8 kernel

Download all attachments as: .zip

Change History (17)

comment:1 Changed 6 years ago by anonymous

On a whim, I checked files in staging_dir/target-mips_uClibc-0.9.33/root-atheros/lib/modules/2.6.37.6.

nm ath5k.ko |grep ieee80211
         U __ieee80211_get_rx_led_name
         U __ieee80211_get_tx_led_name
         U ieee80211_alloc_hw
         U ieee80211_beacon_get_tim
         U ieee80211_channel_to_frequency
         U ieee80211_ctstoself_duration
         U ieee80211_free_hw
         U ieee80211_frequency_to_channel
         U ieee80211_generic_frame_duration
         U ieee80211_get_buffered_bc
         U ieee80211_get_hdrlen_from_skb
         U ieee80211_hdrlen
         U ieee80211_iterate_active_interfaces_atomic
         U ieee80211_queue_delayed_work
         U ieee80211_queue_work
         U ieee80211_register_hw
         U ieee80211_rts_duration
         U ieee80211_rx
         U ieee80211_stop_queue
         U ieee80211_stop_queues
         U ieee80211_tx_status
         U ieee80211_unregister_hw
         U ieee80211_wake_queue
         U ieee80211_wake_queues
         U wiphy_to_ieee80211_hw
 nm mac80211.ko | grep ewma
         U ewma_add
         U ewma_init
 nm ath5k.ko |grep ewma
         U ewma_add
         U ewma_init

So these symbols are undefined.This means that my build dir is dirty, and I should start over, right, using distclean?
If so, sorry for the noise :)

Changed 6 years ago by anonymous

Fix variable set but not used [-Werror=unused-but-set-variable] errors with 2.6.38.8 kernel

comment:2 Changed 6 years ago by anonymous

After running 'make distclean, make defconfig' I built two images, one with default and one with 2.6.38.8 kernel (patch that I used for that one is attached.)I'll test them and report back.

comment:3 Changed 6 years ago by anonymous

With r31182, kernel 2.6.38.8

[   46.990000] Compat-wireless backport release: compat-wireless-2012-02-27-1-r31182
[   47.080000] Backport based on wireless-testing.git master-2012-02-27
[   47.570000] cfg80211: Calling CRDA to update world regulatory domain
[   49.270000] mac80211: Unknown symbol kstrtou8_from_user (err 0)
[   49.600000] cfg80211: World regulatory domain updated:
[   49.660000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   49.760000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   49.860000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   49.950000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   50.040000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   50.140000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   51.010000] ath5k: Unknown symbol ieee80211_free_hw (err 0)
[   51.080000] ath5k: Unknown symbol ieee80211_alloc_hw (err 0)
[   51.160000] ath5k: Unknown symbol ieee80211_register_hw (err 0)
[   51.230000] ath5k: Unknown symbol ieee80211_ctstoself_duration (err 0)
[   51.320000] ath5k: Unknown symbol ieee80211_generic_frame_duration (err 0)
[   51.400000] ath5k: Unknown symbol ieee80211_wake_queue (err 0)
[   51.480000] ath5k: Unknown symbol __ieee80211_get_tx_led_name (err 0)
[   51.560000] ath5k: Unknown symbol ieee80211_get_buffered_bc (err 0)
[   51.650000] ath5k: Unknown symbol __ieee80211_get_rx_led_name (err 0)
[   51.730000] ath5k: Unknown symbol wiphy_to_ieee80211_hw (err 0)
[   51.810000] ath5k: Unknown symbol ieee80211_queue_delayed_work (err 0)
[   51.900000] ath5k: Unknown symbol ieee80211_rx (err 0)
[   51.970000] ath5k: Unknown symbol ieee80211_wake_queues (err 0)
[   52.050000] ath5k: Unknown symbol ieee80211_tx_status (err 0)
[   52.120000] ath5k: Unknown symbol ieee80211_stop_queue (err 0)
[   52.190000] ath5k: Unknown symbol ieee80211_stop_queues (err 0)
[   52.270000] ath5k: Unknown symbol ieee80211_iterate_active_interfaces_atomic (err 0)
[   52.370000] ath5k: Unknown symbol ieee80211_unregister_hw (err 0)
[   52.450000] ath5k: Unknown symbol ieee80211_beacon_get_tim (err 0)
[   52.540000] ath5k: Unknown symbol ieee80211_queue_work (err 0)
[   52.610000] ath5k: Unknown symbol ieee80211_rts_duration (err 0)

What am I doing wrong here?
I'll try image from http://downloads.openwrt.org/snapshots/trunk/atheros/ next.

comment:4 follow-up: Changed 6 years ago by anonymous

Big surprise, image from http://downloads.openwrt.org/snapshots/trunk/atheros/ works fine :).
Different revision, though (r31158).Time to nuke the repo and start over.
Close this ticket, please, and sorry for the noise.

comment:5 in reply to: ↑ 4 Changed 6 years ago by anonymous

Replying to anonymous:

Big surprise, image from http://downloads.openwrt.org/snapshots/trunk/atheros/ works fine :).
Different revision, though (r31158).Time to nuke the repo and start over.
Close this ticket, please, and sorry for the noise.

btw, my dir300-a1 keeps reseting after I flashed it.This is getting interesting...

comment:6 Changed 6 years ago by florian

  • Resolution set to worksforme
  • Status changed from new to closed

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

  • Resolution worksforme deleted
  • Status changed from closed to reopened

CPE DIR-300A1
fresh build trunk r31220 atheros AR 23xx kernel 2.6.37.6 + ath5k + mac80211
still got same as above problem as stated above
no wifi interfaces build
lsmod : mac80211.ko NOT installed
insmod Mac80211.ko : unknown sysmbol in module

any idea where to look or is madwifi only option ?

comment:8 Changed 6 years ago by trizonelabs@…

seems related/same as ticket 11112
[url]https://dev.openwrt.org/ticket/11112[/url]

comment:9 in reply to: ↑ 7 Changed 6 years ago by anonymous

Replying to anonymous:

CPE DIR-300A1
fresh build trunk r31220 atheros AR 23xx kernel 2.6.37.6 + ath5k + mac80211
still got same as above problem as stated above
no wifi interfaces build
lsmod : mac80211.ko NOT installed
insmod Mac80211.ko : unknown sysmbol in module

any idea where to look or is madwifi only option ?

I built r31204 with ath5k and madwifi as modules,just in case.
Installed ath5k after flashing (sysupgrade -n) and wireless works fine now, no unknown symbols.
But, after a few days, every time
I try to install something using opkg, dir-300A1 resets and reboots.Works fine otherwise :)

comment:10 Changed 6 years ago by 3zl <trizonelabs@…>

tried snapshot last night and was ok.
Build new toolchain for atheros from trunk r31234 resulting in same problems.
i'm checking now for gcc glitches switching vom Debian6/64 host to Ubuntu 10/64 and try again.
I do reporting on [url]https://forum.openwrt.org/viewtopic.php?id=36085[/url] also

Besides i do have same problems with a running system on DIR-300A1 resetting if i use opkg install or opkg update && list. Might be a memory problem though, have to dig deeper. ( Most enoying: i do not have a working system at the minute)

comment:11 follow-up: Changed 6 years ago by anonymous

I too am building it on a 64bit system(Crux64), gcc-4.5.3.
I have 32bit mint on a netbook, building would take a while...
Virtual machine with some minimal system, maybe?But which one?

comment:12 in reply to: ↑ 11 Changed 6 years ago by 3zl <trizonelabs@…>

Replying to anonymous:

I too am building it on a 64bit system(Crux64), gcc-4.5.3.
I have 32bit mint on a netbook, building would take a while...
Virtual machine with some minimal system, maybe?But which one?

I'am runnung Deb6/64 / Ubuntu10LT/64 on VMWare hosted on ESX-server & Win 7/64Ent.
Systems depends on your laptops memory.
Native small system for older Laptops SLITAZ not bad (compatible Debian packages )
I do use WinXP+Vmware-Player 6 + Bitnami Ubuntu 10LT/32 with a Centrino Laptop 1MB RAM - bit slow but runs without problem.

Unknown syms in Ath5k seems not to be envrioment-related.
I did not find error messages regarding these symbols in the build log but there are showing up some errors like : WARNING: vmlinux.o(.data+0xae50): Section mismatch in reference from the variable ar231x_driver to the function .init.text:ar231x_probe() and
warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders" [-Wcpp]
but i really dont knwo if that is related.
Did --force-reistall kmod-ath / kmod-ath5k / kmod-80211 but no change
Will try build without these modules and opkg-install after flashing and report
regards


comment:13 follow-up: Changed 6 years ago by jonbither@…

I don't know why it isn't being loaded, but as a temporary work-around users can disable "CONFIG_PACKAGE_MAC80211_DEBUGFS" to get the wireless back operational. The function is being called in debugfs.c for uapsd_queues_write if that helps anyone.

comment:14 in reply to: ↑ 13 Changed 6 years ago by 3zl <trizonelabs@…>

confirm wifi is working changed "#CONFIG_PACKAGE_MAC80211_DEBUGFS" in ".config" after "menuconfig".
Make complains about it but build ok.
"Ath5k" must be selected after deselect "madwifi"

Still got random resets on the DIR-300 and is very slow on "opkg update / list".


comment:15 Changed 6 years ago by nbd

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

fixed in r31322

comment:16 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.