• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Embedded Software » Android » Android forum » Fail to insert module wl12xx_sdio.ko ...
Share
Android
  • Forum
Options
  • Subscribe via RSS

Forums

Fail to insert module wl12xx_sdio.ko ...

This question is answered
Calvin Hsieh
Posted by Calvin Hsieh
on Apr 02 2012 05:04 AM
Prodigy110 points

Hi,all

I am using omap3530 evm development board,the TI-Android-GingerBread-2.3.4-DevKit-2.1 system(kernel version 2.6.37).

I want to port the wl1271 sdio  module to MMC1, now I encounted driver loadding problems, as follows:

 

# insmod /system/etc/wifi/wl12xx_sdio.ko
[   49.463684] wl12xx_sdio: disagrees about version of symbol sdio_release_host
[   49.471099] wl12xx_sdio: Unknown symbol sdio_release_host (err -22)
[   49.478271] wl12xx_sdio: disagrees about version of symbol sdio_disable_func
[   49.485717] wl12xx_sdio: Unknown symbol sdio_disable_func (err -22)
[   49.493255] wl12xx_sdio: disagrees about version of symbol sdio_set_block_size
[   49.500854] wl12xx_sdio: Unknown symbol sdio_set_block_size (err -22)
[   49.508697] wl12xx_sdio: disagrees about version of symbol sdio_claim_host
[   49.515930] wl12xx_sdio: Unknown symbol sdio_claim_host (err -22)
[   49.522766] wl12xx_sdio: disagrees about version of symbol sdio_memcpy_fromio
[   49.530273] wl12xx_sdio: Unknown symbol sdio_memcpy_fromio (err -22)
[   49.537353] wl12xx_sdio: disagrees about version of symbol sdio_register_driver
[   49.545043] wl12xx_sdio: Unknown symbol sdio_register_driver (err -22)
[   49.552856] wl12xx_sdio: disagrees about version of symbol sdio_memcpy_toio
[   49.560180] wl12xx_sdio: Unknown symbol sdio_memcpy_toio (err -22)
[   49.566864] wl12xx_sdistore_host
[   49.574737] wl12xx_sdio: Unknown symbol mmc_power_restore_host (err -22)
[   49.581970] wl12xx_sdio: disagrees about version of symbol mmc_power_save_host
[   49.589569] wl12xx_sdio: Unknown symbol mmc_power_save_host (err -22)
[   49.597106] wl12xx_sdio: disagrees about version of symbol sdio_f0_readb
[   49.604156] wl12xx_sdio: Unknown symbol sdio_f0_readb (err -22)
[   49.610900] wl12xx_sdio: disagrees about version of symbol sdio_set_host_pm_flags
[   49.618774] wl12xx_sdio: Unknown symbol sdio_set_host_pm_flags (err -22)
[   49.626220] wl12xx_sdio: disagrees about version of symbol sdio_f0_writeb
[   49.633361] wl12xx_sdio: Unknown symbol sdio_f0_writeb (err -22)
[   49.640075] wl12xx_sdio: disagrees about version of symbol sdio_unregister_driver
[   49.647949] wl12xx_sdio: Unknown symbol sdio_unregister_driver (err -22)
[   49.655395] wl12xx_sdio: disagrees about version of symbol sdio_readsb
[   49.662261] wl12xx_sdio: Unknown symbol sdio_readsb (err -22)
[   49.669616] wl12xx_sdio: disagrees about version of symbol sdio_get_host_pm_caps
[   49.677398] wl12xx_sdio: Unknown symbol sdio_get_host_pm_caps (err -22)
[   49.685333] wl12xx_sdio: disagrees about version of symbol sdio_enable_func
[   49.692626] wl12xx_sdio: Unknown symbol sdio_enable_func (err -22)
[   49.699554] wl12xx_sdio: disagrees about version of symbol sdio_writesb
[   49.706512] wl12xx_sdio: Unknown symbol sdio_writesb (err -22)
insmod: init_module '/system/etc/wifi/wl12xx_sdio.ko' failed (Invalid argument)
#
 
Can anyone give me suggestion ? Thanks in advance ...
Best Regards,
Calvin


Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Vishveshwar Bhat
    Posted by Vishveshwar Bhat
    on Apr 02 2012 05:09 AM
    Verified Answer
    Verified by Calvin Hsieh
    Genius9590 points

    Your kernel build seems to be newer than the wlan drivers. So you are getting the symbol mismatch errors.

    Please rebuild the wlan drivers against the updated kernel and try again.

    ---------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Calvin Hsieh
    Posted by Calvin Hsieh
    on Apr 02 2012 05:42 AM
    Prodigy110 points

    Hi Vishveshwar Bhat,

     

    Thanks for your answer, It works to load driver, but when I use ifconfig to bring up wlan0, there are lots of warning appears and system crash. What's going on ?

     

    # insmod wl12xx_sdio.ko
    [ 4430.199768] wl1271: loaded
    [ 4430.202606] wl1271: initialized
    # lsmod
    wl12xx_sdio 3723 0 - Live 0xbf0ac000
    wl12xx 125291 1 wl12xx_sdio, Live 0xbf0b1000
    mac80211 190253 1 wl12xx, Live 0xbf071000
    cfg80211 134210 2 wl12xx,mac80211, Live 0xbf040000
    omaplfb 10766 0 - Live 0xbf038000
    pvrsrvkm 154030 31 omaplfb, Live 0xbf007000
    compat 3685 1 mac80211, Live 0xbf000000
    # ifconfig wlan0 up
    [ 4444.041809] ------------[ cut here ]------------
    [ 4444.046691] WARNING: at drivers/mmc/core/core.c:240 mmc_wait_for_cmd+0x34/0x7c()
    [ 4444.054473] Modules linked in: wl12xx_sdio wl12xx mac80211 cfg80211 omaplfb pvrsrvkm compat
    [ 4444.063293] Backtrace:
    [ 4444.065917] [<c004f65c>] (dump_backtrace+0x0/0x110) from [<c04cba88>] (dump_stack+0x18/0x1c)
    [ 4444.074768]  r7:00000009 r6:000000f0 r5:c039b908 r4:00000000
    [ 4444.080749] [<c04cba70>] (dump_stack+0x0/0x1c) from [<c0077a58>] (warn_slowpath_common+0x54/0x6c)
    [ 4444.090087] [<c0077a04>] (warn_slowpath_common+0x0/0x6c) from [<c0077a94>] (warn_slowpath_null+0x24/0x2c)
    [ 4444.100128]  r9:00000400 r8:00000000 r7:00000000 r6:00000001 r5:cf2e5400
    [ 4444.107025] r4:c9e6dcd0
    [ 4444.109771] [<c0077a70>] (warn_slowpath_null+0x0/0x2c) from [<c039b908>] (mmc_wait_for_cmd+0x34/0x7c)
    [ 4444.119506] [<c039b8d4>] (mmc_wait_for_cmd+0x0/0x7c) from [<c03a0af4>] (mmc_io_rw_direct_host+0xcc/0x134)
    [ 4444.129516]  r7:00000400 r6:00000001 r5:c9e6dd57 r4:00000400
    [ 4444.135528] [<c03a0a28>] (mmc_io_rw_direct_host+0x0/0x134) from [<c03a0c08>] (mmc_io_rw_direct+0x3c/0x48)
    [ 4444.145599] [<c03a0bcc>] (mmc_io_rw_direct+0x0/0x48) from [<c03a263c>] (sdio_disable_func+0x70/0xf8)
    [ 4444.155212] [<c03a25cc>] (sdio_disable_func+0x0/0xf8) from [<bf0ac218>] (wl1271_sdio_set_power+0x6c/0x98 [wl12xx_sdio])
    [ 4444.166534]  r4:ce821800
    [ 4444.169250] [<bf0ac1ac>] (wl1271_sdio_set_power+0x0/0x98 [wl12xx_sdio]) from [<bf0b370c>] (wl1271_op_add_interface+0x120/0x24c [wl12xx])
    [ 4444.182128]  r5:fffffff5 r4:c9ee0de0
    [ 4444.186035] [<bf0b35ec>] (wl1271_op_add_interface+0x0/0x24c [wl12xx]) from [<bf07fe44>] (ieee80211_do_open+0x2a4/0x58c [mac80211])
    [ 4444.198455] [<bf07fba0>] (ieee80211_do_open+0x0/0x58c [mac80211]) from [<bf08019c>] (ieee80211_open+0x70/0x74 [mac80211])
    [ 4444.210021] [<bf08012c>] (ieee80211_open+0x0/0x74 [mac80211]) from [<c0403b1c>] (__dev_open+0xa8/0xf8)
    [ 4444.219787]  r5:bf0953fc r4:c9c34000
    [ 4444.223602] [<c0403a74>] (__dev_open+0x0/0xf8) from [<c0400e58>] (__dev_change_flags+0x94/0x118)
    [ 4444.232818]  r5:00001003 r4:c9c34000
    [ 4444.236572] [<c0400dc4>] (__dev_change_flags+0x0/0x118) from [<c0403a40>] (dev_change_flags+0x18/0x4c)
    [ 4444.246368]  r7:c9e093c0 r6:00000001 r5:00001002 r4:c9c34000
    [ 4444.252319] [<c0403a28>] (dev_change_flags+0x0/0x4c) from [<c0451d20>] (devinet_ioctl+0x3a0/0x790)
    [ 4444.261718]  r7:c9e093c0 r6:00000001 r5:00008914 r4:00000000
    [ 4444.267669] [<c0451980>] (devinet_ioctl+0x0/0x790) from [<c0452f88>] (inet_ioctl+0xd8/0x108)
    [ 4444.276550] [<c0452eb0>] (inet_ioctl+0x0/0x108) from [<c03f1ea8>] (sock_ioctl+0x1f8/0x248)
    [ 4444.285217]  r5:bed86c24 r4:00008914
    [ 4444.289001] [<c03f1cb0>] (sock_ioctl+0x0/0x248) from [<c010dd74>] (do_vfs_ioctl+0x4e8/0x564)
    [ 4444.297851]  r7:00000003 r6:00008914 r5:c9ee50c0 r4:bed86c24
    [ 4444.303833] [<c010d88c>] (do_vfs_ioctl+0x0/0x564) from [<c010de48>] (sys_ioctl+0x58/0x7c)
    [ 4444.312438]  r9:c9e6c000 r8:00000000 r7:00000003 r6:00008914 r5:bed86c24
    [ 4444.319305] r4:c9ee50c0
    [ 4444.322082] [<c010ddf0>] (sys_ioctl+0x0/0x7c) from [<c004b0c0>] (ret_fast_syscall+0x0/0x30)
    [ 4444.330841]  r8:c004b268 r7:00000036 r6:00001003 r5:00000003 r4:bed86c24
    [ 4444.337890] ---[ end trace e13af1b318d2f8a4 ]---
    [ 4444.342773] ------------[ cut here ]------------
    [ 4444.347625] WARNING: at drivers/mmc/core/core.c:167 mmc_wait_for_req+0xf8/0x228()
    [ 4444.355468] Modules linked in: wl12xx_sdio wl12xx mac80211 cfg80211 omaplfb pvrsrvkm compat
    [ 4444.364288] Backtrace:
    [ 4444.366882] [<c004f65c>] (dump_backtrace+0x0/0x110) from [<c04cba88>] (dump_stack+0x18/0x1c)
    [ 4444.375732]  r7:00000009 r6:000000a7 r5:c039b7a4 r4:00000000
    [ 4444.381713] [<c04cba70>] (dump_stack+0x0/0x1c) from [<c0077a58>] (warn_slowpath_common+0x54/0x6c)
    [ 4444.391021] [<c0077a04>] (warn_slowpath_common+0x0/0x6c) from [<c0077a94>] (warn_slowpath_null+0x24/0x2c)
    [ 4444.401092]  r9:00000400 r8:00000000 r7:00000000 r6:00000000 r5:cf2e5400
    [ 4444.407958] r4:c9e6dc94
    [ 4444.410736] [<c0077a70>] (warn_slowpath_null+0x0/0x2c) from [<c039b7a4>] (mmc_wait_for_req+0xf8/0x228)
    [ 4444.420501] [<c039b6ac>] (mmc_wait_for_req+0x0/0x228) from [<c039b940>] (mmc_wait_for_cmd+0x6c/0x7c)
    [ 4444.430084]  r7:00000000 r6:c9e6dc94 r5:cf2e5400 r4:c9e6dcd0
    [ 4444.436065] [<c039b8d4>] (mmc_wait_for_cmd+0x0/0x7c) from [<c03a0af4>] (mmc_io_rw_direct_host+0xcc/0x134)
    [ 4444.446105]  r7:00000400 r6:00000001 r5:c9e6dd57 r4:00000400
    [ 4444.452087] [<c03a0a28>] (mmc_io_rw_direct_host+0x0/0x134) from [<c03a0c08>] (mmc_io_rw_direct+0x3c/0x48)
    [ 4444.462158] [<c03a0bcc>] (mmc_io_rw_direct+0x0/0x48) from [<c03a263c>] (sdio_disable_func+0x70/0xf8)
    [ 4444.471740] [<c03a25cc>] (sdio_disable_func+0x0/0xf8) from [<bf0ac218>] (wl1271_sdio_set_power+0x6c/0x98 [wl12xx_sdio])
    [ 4444.483062]  r4:ce821800
    [ 4444.485748] [<bf0ac1ac>] (wl1271_sdio_set_power+0x0/0x98 [wl12xx_sdio]) from [<bf0b370c>] (wl1271_op_add_interface+0x120/0x24c [wl12xx])
    [ 4444.498626]  r5:fffffff5 r4:c9ee0de0
    [ 4444.502471] [<bf0b35ec>] (wl1271_op_add_interface+0x0/0x24c [wl12xx]) from [<bf07fe44>] (ieee80211_do_open+0x2a4/0x58c [mac80211])
    [ 4444.514923] [<bf07fba0>] (ieee80211_do_open+0x0/0x58c [mac80211]) from [<bf08019c>] (ieee80211_open+0x70/0x74 [mac80211])
    [ 4444.526489] [<bf08012c>] (ieee80211_open+0x0/0x74 [mac80211]) from [<c0403b1c>] (__dev_open+0xa8/0xf8)
    [ 4444.536254]  r5:bf0953fc r4:c9c34000
    [ 4444.540008] [<c0403a74>] (__dev_open+0x0/0xf8) from [<c0400e58>] (__dev_change_flags+0x94/0x118)
    [ 4444.549255]  r5:00001003 r4:c9c34000
    [ 4444.553009] [<c0400dc4>] (__dev_change_flags+0x0/0x118) from [<c0403a40>] (dev_change_flags+0x18/0x4c)
    [ 4444.562774]  r7:c9e093c0 r6:00000001 r5:00001002 r4:c9c34000
    [ 4444.568786] [<c0403a28>] (dev_change_flags+0x0/0x4c) from [<c0451d20>] (devinet_ioctl+0x3a0/0x790)
    [ 4444.578186]  r7:c9e093c0 r6:00000001 r5:00008914 r4:00000000
    [ 4444.584167] [<c0451980>] (devinet_ioctl+0x0/0x790) from [<c0452f88>] (inet_ioctl+0xd8/0x108)
    [ 4444.593048] [<c0452eb0>] (inet_ioctl+0x0/0x108) from [<c03f1ea8>] (sock_ioctl+0x1f8/0x248)
    [ 4444.601715]  r5:bed86c24 r4:00008914
    [ 4444.605499] [<c03f1cb0>] (sock_ioctl+0x0/0x248) from [<c010dd74>] (do_vfs_ioctl+0x4e8/0x564)
    [ 4444.614379]  r7:00000003 r6:00008914 r5:c9ee50c0 r4:bed86c24
    [ 4444.620330] [<c010d88c>] (do_vfs_ioctl+0x0/0x564) from [<c010de48>] (sys_ioctl+0x58/0x7c)
    [ 4444.628936]  r9:c9e6c000 r8:00000000 r7:00000003 r6:00008914 r5:bed86c24
    [ 4444.635803] r4:c9ee50c0
    [ 4444.638580] [<c010ddf0>] (sys_ioctl+0x0/0x7c) from [<c004b0c0>] (ret_fast_syscall+0x0/0x30)
    [ 4444.647338]  r8:c004b268 r7:00000036 r6:00001003 r5:00000003 r4:bed86c24
    [ 4444.654388] ---[ end trace e13af1b318d2f8a5 ]---
     

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Vishveshwar Bhat
    Posted by Vishveshwar Bhat
    on Apr 02 2012 05:53 AM
    Genius9590 points

    We have found a few issues with sdio and this is fixed in the latest tree available at our community rowboat project.

    We suggest that you apply all the latest patches an then try.

    http://gitorious.org/rowboat/kernel/commits/rowboat-kernel-2.6.37

    ---------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Calvin Hsieh
    Posted by Calvin Hsieh
    on Apr 03 2012 04:19 AM
    Prodigy110 points

    Hi Vishveshwar Bhat

    After applying the last kernel on the URL, I still can't bring up wlan0, please see below messages ...

    # lsmod
    wl12xx_sdio 3723 0 - Live 0xbf0ab000
    wl12xx 125291 1 wl12xx_sdio, Live 0xbf0b1000
    mac80211 190253 1 wl12xx, Live 0xbf071000
    cfg80211 134210 2 wl12xx,mac80211, Live 0xbf040000
    omaplfb 10766 0 - Live 0xbf038000
    pvrsrvkm 154030 29 omaplfb, Live 0xbf007000
    compat 3685 1 mac80211, Live 0xbf000000

    # ifconfig wlan0 up
    error: SIOCGIFFLAGS (No such device)

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Vishveshwar Bhat
    Posted by Vishveshwar Bhat
    on Apr 03 2012 04:33 AM
    Genius9590 points

    Probably the WLAN module is not powered up properly. You need to verify that all WLAN related pins are configured properly in the board-xx file. You can refer to board-omap3evm.c file for this.

    ---------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use