[Blade General] h4z7d:
Hi,

I wanted to post this in the development topic but apparently I need to have at least 10 posts to do that!

I've got a USB wifi device which I want to get working in a Debian chroot environment. I think I'm quite close to getting this working.

So far, I've got the device connected and powered properly (along with a keyboard).

LSUSB in the chroot Debian is displaying my adapter (RTL8187).

I'm using an older nightly build of Cyanogenmod because I'm using Johnsmithx's usb otg patch which works on 2.6.32.9

I've downloaded the kernel sources from:

github.com/CyanogenMod/zte-kernel-msm7x27/tree/2.6.32-zte

I've loaded them into my chroot debian, run a make oldconfig, make prepare and make modules_prepare against my running .config, then I got the latest Compat and made that against the sources above which seemed to work with no errors and generated the .ko files.

problem is, when I try and insmod them into my chroot, I get

insmod rtl8187.ko
insmod: error inserting 'rtl8187.ko': -1 Unknown symbol in module

And this in dmesg:

[10-03 11:03:39.117956] [840: insmod]mac80211: Unknown symbol cfg80211_send_assoc_timeout
[10-03 11:03:39.117956] [840: insmod]mac80211: Unknown symbol cfg80211_sched_scan_results
[10-03 11:03:39.117956] [840: insmod]mac80211: Unknown symbol cfg80211_rx_unexpected_4addr_frame
[10-03 11:03:39.117956] [840: insmod]mac80211: Unknown symbol atomic64_read
[10-03 11:03:39.117956] [840: insmod]mac80211: Unknown symbol cfg80211_scan_done
[10-03 11:03:39.117956] [840: insmod]mac80211: Unknown symbol cfg80211_sched_scan_stopped
[10-03 11:03:39.137956] [840: insmod]mac80211: Unknown symbol cfg80211_send_auth_timeout
[10-03 11:03:39.137956] [840: insmod]mac80211: Unknown symbol cfg80211_remain_on_channel_expired
[10-03 11:03:39.137956] [840: insmod]mac80211: Unknown symbol ieee80211_amsdu_to_8023s
[10-03 11:03:39.137956] [840: insmod]mac80211: Unknown symbol cfg80211_send_deauth
[10-03 11:03:39.137956] [840: insmod]mac80211: Unknown symbol cfg80211_ref_bss
[10-03 11:03:39.137956] [840: insmod]mac80211: Unknown symbol __cfg80211_send_deauth
[10-03 11:03:39.137956] [840: insmod]mac80211: Unknown symbol cfg80211_new_sta
[10-03 11:03:39.137956] [840: insmod]mac80211: Unknown symbol cfg80211_send_unprot_deauth
[10-03 11:03:39.147948] [840: insmod]mac80211: Unknown symbol cfg80211_calculate_bitrate
[10-03 11:03:39.147948] [840: insmod]mac80211: Unknown symbol atomic64_add_return
[10-03 11:03:39.147948] [840: insmod]mac80211: Unknown symbol compat_ewma_add
[10-03 11:03:39.147948] [840: insmod]mac80211: Unknown symbol cfg80211_ready_on_channel
[10-03 11:03:39.147948] [840: insmod]mac80211: Unknown symbol compat_dependency_symbol
[10-03 11:03:39.147948] [840: insmod]mac80211: Unknown symbol cfg80211_classify8021d
[10-03 11:03:39.147948] [840: insmod]mac80211: Unknown symbol cfg80211_send_unprot_disassoc
[10-03 11:03:39.147948] [840: insmod]mac80211: Unknown symbol wiphy_register
[10-03 11:03:39.157955] [840: insmod]mac80211: Unknown symbol wiphy_new
[10-03 11:03:39.157955] [840: insmod]mac80211: Unknown symbol cfg80211_put_bss
[10-03 11:03:39.157955] [840: insmod]mac80211: Unknown symbol cfg80211_gtk_rekey_notify
[10-03 11:03:39.157955] [840: insmod]mac80211: Unknown symbol cfg80211_can_beacon_sec_chan
[10-03 11:03:39.157955] [840: insmod]mac80211: Unknown symbol ieee80211_bss_get_ie
[10-03 11:03:39.157955] [840: insmod]mac80211: Unknown symbol cfg80211_rx_spurious_frame
[10-03 11:03:39.157955] [840: insmod]mac80211: Unknown symbol cfg80211_ibss_joined
[10-03 11:03:39.157955] [840: insmod]mac80211: Unknown symbol __cfg80211_send_disassoc
[10-03 11:03:39.157955] [840: insmod]mac80211: Unknown symbol cfg80211_report_obss_beacon
[10-03 11:03:39.167951] [840: insmod]mac80211: Unknown symbol cfg80211_michael_mic_failure
[10-03 11:03:39.167951] [840: insmod]mac80211: Unknown symbol cfg80211_cqm_pktloss_notify
[10-03 11:03:39.167951] [840: insmod]mac80211: Unknown symbol cfg80211_send_rx_auth
[10-03 11:03:39.167951] [840: insmod]mac80211: Unknown symbol wiphy_unregister
[10-03 11:03:39.167951] [840: insmod]mac80211: Unknown symbol cfg80211_send_disassoc
[10-03 11:03:39.167951] [840: insmod]mac80211: Unknown symbol ieee80211_radiotap_iterator_init
[10-03 11:03:39.167951] [840: insmod]mac80211: Unknown symbol cfg80211_notify_new_peer_candidate
[10-03 11:03:39.167951] [840: insmod]mac80211: Unknown symbol cfg80211_get_bss
[10-03 11:03:39.167951] [840: insmod]mac80211: Unknown symbol __ieee80211_get_channel
[10-03 11:03:39.177940] [840: insmod]mac80211: Unknown symbol rfc1042_header
[10-03 11:03:39.177940] [840: insmod]mac80211: Unknown symbol compat_ewma_init
[10-03 11:03:39.177940] [840: insmod]mac80211: Unknown symbol cfg80211_mgmt_tx_status
[10-03 11:03:39.177940] [840: insmod]mac80211: Unknown symbol cfg80211_find_ie
[10-03 11:03:39.177940] [840: insmod]mac80211: Unknown symbol cfg80211_del_sta
[10-03 11:03:39.177940] [840: insmod]mac80211: Unknown symbol cfg80211_probe_status
[10-03 11:03:39.177940] [840: insmod]mac80211: Unknown symbol ieee80211_data_to_8023
[10-03 11:03:39.177940] [840: insmod]mac80211: Unknown symbol cfg80211_send_rx_assoc
[10-03 11:03:39.177940] [840: insmod]mac80211: Unknown symbol ieee80211_radiotap_iterator_next
[10-03 11:03:39.177940] [840: insmod]mac80211: Unknown symbol ieee80211_channel_to_frequency
[10-03 11:03:39.177940] [840: insmod]mac80211: Unknown symbol cfg80211_rx_mgmt
[10-03 11:03:39.187941] [840: insmod]mac80211: Unknown symbol ieee80211_hdrlen
[10-03 11:03:39.187941] [840: insmod]mac80211: Unknown symbol compat_schedule_work
[10-03 11:03:39.187941] [840: insmod]mac80211: Unknown symbol cfg80211_inform_bss_frame
[10-03 11:03:39.187941] [840: insmod]mac80211: Unknown symbol compat_flush_scheduled_work
[10-03 11:03:39.187941] [840: insmod]mac80211: Unknown symbol ieee80211_frequency_to_channel
[10-03 11:03:39.187941] [840: insmod]mac80211: Unknown symbol bridge_tunnel_header
[10-03 11:03:39.197951] [840: insmod]mac80211: Unknown symbol cfg80211_unlink_bss
[10-03 11:03:39.197951] [840: insmod]mac80211: Unknown symbol wiphy_free
[10-03 11:03:39.197951] [840: insmod]mac80211: Unknown symbol cfg80211_cqm_rssi_notify
[10-03 11:03:48.827955] [841: insmod]cfg80211: Unknown symbol compat_genl_unregister_family
[10-03 11:03:48.827955] [841: insmod]cfg80211: Unknown symbol compat_genl_register_family_with_ops
[10-03 11:03:48.827955] [841: insmod]cfg80211: Unknown symbol compat_dependency_symbol
[10-03 11:03:48.827955] [841: insmod]cfg80211: Unknown symbol rfkill_resume_polling
[10-03 11:03:48.847951] [841: insmod]cfg80211: Unknown symbol compat_schedule_work
[10-03 11:03:48.857946] [841: insmod]cfg80211: Unknown symbol compat_schedule_delayed_work
[10-03 11:04:08.387951] [842: insmod]rtl8187: Unknown symbol ieee80211_queue_stopped
[10-03 11:04:08.387951] [842: insmod]rtl8187: Unknown symbol ieee80211_free_hw
[10-03 11:04:08.387951] [842: insmod]rtl8187: Unknown symbol ieee80211_alloc_hw
[10-03 11:04:08.387951] [842: insmod]rtl8187: Unknown symbol ieee80211_register_hw
[10-03 11:04:08.387951] [842: insmod]rtl8187: Unknown symbol ieee80211_generic_frame_duration
[10-03 11:04:08.407951] [842: insmod]rtl8187: Unknown symbol ieee80211_tx_status_irqsafe
[10-03 11:04:08.407951] [842: insmod]rtl8187: Unknown symbol compat_dependency_symbol
[10-03 11:04:08.407951] [842: insmod]rtl8187: Unknown symbol wiphy_rfkill_set_hw_state
[10-03 11:04:08.407951] [842: insmod]rtl8187: Unknown symbol ieee80211_queue_delayed_work
[10-03 11:04:08.407951] [842: insmod]rtl8187: Unknown symbol wiphy_rfkill_stop_polling
[10-03 11:04:08.407951] [842: insmod]rtl8187: Unknown symbol eeprom_93cx6_multiread
[10-03 11:04:08.417950] [842: insmod]rtl8187: Unknown symbol wiphy_rfkill_start_polling
[10-03 11:04:08.417950] [842: insmod]rtl8187: Unknown symbol ieee80211_unregister_hw
[10-03 11:04:08.427955] [842: insmod]rtl8187: Unknown symbol ieee80211_beacon_get_tim
[10-03 11:04:08.427955] [842: insmod]rtl8187: Unknown symbol compat_schedule_work
[10-03 11:04:08.427955] [842: insmod]rtl8187: Unknown symbol ieee80211_frequency_to_channel
[10-03 11:04:08.427955] [842: insmod]rtl8187: Unknown symbol compat_schedule_delayed_work
[10-03 11:04:08.427955] [842: insmod]rtl8187: Unknown symbol ieee80211_rx_irqsafe
[10-03 11:04:08.427955] [842: insmod]rtl8187: Unknown symbol eeprom_93cx6_read
[10-03 11:04:08.427955] [842: insmod]rtl8187: Unknown symbol ieee80211_rts_duration

I think the modules wont load because I'm compiling this against the wrong kernel sources, what do you guys think?

Cheers,

Jon