Other Parts Discussed in Thread: AM5728, WL1835, WL1835MOD, WL1271
HI all:
Just now I used WL1835 wifi module on am5728 board and the driver was loaded failed.
My sdk version is ti-processor-sdk-linux-am57xx-evm-03.00.00.04 and the linux kernel is 4.4.12.
My hardware is am5728 cusom board + wl1835mod.
The wl1835mod driver which I used is from the official sdk linux kernel
After building the kernel, I can get the driver module, wl18xx.ko , wlcore.ko , wlcore_sdio.ko,mac80211.ko , cfg80211.ko
When I inserted the modules, it will print some error like below
[ 8.682599] WARNING: CPU: 1 PID: 54 at drivers/net/wireless/ti/wlcore/sdio.c:150 wl12xx_sdio_raw_write+0xd0/0x164 [wlcore_sdio]()
[ 8.702036] net eth0: phy found : id is : 0x221622
[ 8.718394] Modules linked in:
[ 8.731165] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 8.731312] xfrm_user xfrm4_tunnel ipcomp xfrm_ipcomp esp4 ah4 af_key xfrm_algo rpmsg_pru rpmsg_proto rpmsg_rpc wl18xx bluetooth wlc)
[ 8.731319] CPU: 1 PID: 54 Comm: kworker/1:1 Tainted: G O 4.4.12-g3639bea54a #35
[ 8.731321] Hardware name: Generic DRA74X (Flattened Device Tree)
[ 8.731337] Workqueue: events request_firmware_work_func
[ 8.731340] Backtrace:
[ 8.731352] [<c00130c0>] (dump_backtrace) from [<c00132bc>] (show_stack+0x18/0x1c)
[ 8.731365] r7:bf1442a0 r6:600b0113 r5:00000000 r4:c09d320c
[ 8.731375] [<c00132a4>] (show_stack) from [<c02a4148>] (dump_stack+0x90/0xa4)
[ 8.731381] [<c02a40b8>] (dump_stack) from [<c0034f74>] (warn_slowpath_common+0x88/0xb8)
[ 8.731388] r7:bf1442a0 r6:00000096 r5:00000009 r4:00000000
[ 8.731393] [<c0034eec>] (warn_slowpath_common) from [<c0035048>] (warn_slowpath_null+0x24/0x2c)
[ 8.731401] r8:00000004 r7:ec8bb180 r6:ec1e6410 r5:0001ffc4 r4:ee698800
[ 8.731411] [<c0035024>] (warn_slowpath_null) from [<bf1442a0>] (wl12xx_sdio_raw_write+0xd0/0x164 [wlcore_sdio])
[ 8.731448] [<bf1441d0>] (wl12xx_sdio_raw_write [wlcore_sdio]) from [<bf090d70>] (wlcore_set_partition+0xe8/0x450 [wlcore])
[ 8.731458] r9:ec1d3180 r8:ec1e6400 r7:00000000 r6:bf1441d0 r5:bf0b9fc4 r4:ee048d00
[ 8.731505] [<bf090c88>] (wlcore_set_partition [wlcore]) from [<bf0876dc>] (wl12xx_set_power_on+0x84/0x148 [wlcore])
[ 8.731510] r6:ec8bb280 r5:00000000 r4:ee048d00
[ 8.731556] [<bf087658>] (wl12xx_set_power_on [wlcore]) from [<bf08b67c>] (wlcore_nvs_cb+0x12c/0xa44 [wlcore])
[ 8.731560] r5:bf0a4990 r4:ee048d00
[ 8.731588] [<bf08b550>] (wlcore_nvs_cb [wlcore]) from [<c03f18a4>] (request_firmware_work_func+0x38/0x60)
[ 8.731598] r10:eed40ac0 r9:00000000 r8:eed44200 r7:00000000 r6:eed40ac0 r5:ee0d1100
[ 8.731601] r4:ec8bbc00
[ 8.731610] [<c03f186c>] (request_firmware_work_func) from [<c0049bfc>] (process_one_work+0x124/0x3f4)
[ 8.731612] r4:ec8bbc00
[ 8.731619] [<c0049ad8>] (process_one_work) from [<c0049f18>] (worker_thread+0x4c/0x524)
[ 8.731627] r10:eed40ac0 r9:ee0d1100 r8:00000008 r7:ee660000 r6:eed40ad4 r5:ee0d1118
[ 8.731630] r4:eed40ac0
[ 8.731637] [<c0049ecc>] (worker_thread) from [<c004f9e8>] (kthread+0xe4/0xfc)
[ 8.731646] r10:00000000 r9:00000000 r8:00000000 r7:c0049ecc r6:ee0d1100 r5:ee077080
[ 8.731648] r4:00000000
[ 8.731654] [<c004f904>] (kthread) from [<c000fac8>] (ret_from_fork+0x14/0x2c)
[ 8.731661] r7:00000000 r6:00000000 r5:c004f904 r4:ee077080
[ 8.731664] ---[ end trace 3468f6ccd4382e6d ]---
[ 8.731670] wl1271_sdio mmc2:0001:2: sdio write failed (-84)
I am sure the vbat voltage is 3.1v and vio is 1.7v and WL_EN is 1.7v.
So please tell me the reason.
regards