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:
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.---------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------
Please click the Verify Answer button on this post if it answers your question.---------------------------------------------------------------------------------------------------------
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# lsmodwl12xx_sdio 3723 0 - Live 0xbf0ac000wl12xx 125291 1 wl12xx_sdio, Live 0xbf0b1000mac80211 190253 1 wl12xx, Live 0xbf071000cfg80211 134210 2 wl12xx,mac80211, Live 0xbf040000omaplfb 10766 0 - Live 0xbf038000pvrsrvkm 154030 31 omaplfb, Live 0xbf007000compat 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 ]---
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
Hi Vishveshwar Bhat
After applying the last kernel on the URL, I still can't bring up wlan0, please see below messages ...
# lsmodwl12xx_sdio 3723 0 - Live 0xbf0ab000wl12xx 125291 1 wl12xx_sdio, Live 0xbf0b1000mac80211 190253 1 wl12xx, Live 0xbf071000cfg80211 134210 2 wl12xx,mac80211, Live 0xbf040000omaplfb 10766 0 - Live 0xbf038000pvrsrvkm 154030 29 omaplfb, Live 0xbf007000compat 3685 1 mac80211, Live 0xbf000000
# ifconfig wlan0 uperror: SIOCGIFFLAGS (No such device)
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.