技术专栏
Hi3861 samlep_link驱动加载异常问题处理
问题现象
- 在T31 设备上加载海思提供的君正驱动之后,运行海思提供的sample_link 程序报错
- 错误提示1
j zmmc_v1.2 j zmmc_v1.2.1: polling status(0x00000800) error, op=53, status=0x1F000942
- 错误提示2
PIO mode: command response error
- 错误dmesg 日志
[16:53:01:544][ 38.173966] j zmmc_v1.2 j zmmc_v1.2.0: register success!
[16:53:01:545][ 38.183909] j zmmc_v1.2 j zmmc_v1.2.0: card inserted, state=0
[16:53:01:554][ 38.213896] j zmmc_v1.2 j zmmc_v1.2.1: register success!
[16:53:01:555][ 38.241701] [WARN]:27:hichannel 2021-06-1118:00:00
[16:53:01:565][ 38.241734] [WARN]:148:oal_netlink_init is success
[16:53:01:565][ 38.241734]
[16:53:01:566][ 38.241766] [WARN]:109:oam_main_init SUCCESSFULLY
[16:53:01:575][ 38.317115] mmc1: queuing unknown CIS tuple 0x91 (5 bytes)
[16:53:01:577][ 38.317178] mmc1: new SDIO card at address 0001
[16:53:01:586][ 38.319770] gpio:jz->reg = 0xb0010000
[16:53:01:587][ 38.319784] gpio pin: 0x200
[16:53:01:588][ 38.319789] jz->dev_map[0]: 0x1f8303c0
[16:53:01:598][ 38.319801] CPU: 0 PID: 17 Comm: kworker/u2:1 Tainted: G O 3.10.14-Archon #1
[16:53:01:599][ 38.319833] Workqueue: kmmcd mmc_rescan [mmc_core]
[16:53:01:608][ 38.319840] Stack : 804193b0 800630fc 000000008003ed28 8043d0e0 820bfb1c 820bfb1c 00000000
[16:53:01:620][ 38.319840] 820bce80 8005d994 80502d8a 0000000000000000000000020000000000000000
[16:53:01:631][ 38.319840] 00000000000000000000000000000000636d6d6b 000000640000000000000000
[16:53:01:632][ 38.319840] 000000000000000081f0f100 8069a000 c01acb3c 820bfb00 820bfb7c 804193b0
[16:53:01:642][ 38.319840] 804661a7 80040d14 00000000804193b0 000000000000001182057118820bfaf0
[16:53:02:283][ 38.319840] ...
[16:53:02:283][ 38.319912] Call Trace:
[16:53:02:285][ 38.319926] [<8002249c>] show_stack+0x64/0x7c
[16:53:02:293][ 38.319946] [<803b6198>] dump_stack+0x20/0x2c
[16:53:02:294][ 38.319957] [<80019534>] jz_gpio_request+0x128/0x144
[16:53:02:305][ 38.319974] [<801b0e38>] gpiod_request+0xe8/0x24c
[16:53:02:306][ 38.319984] [<801b1b68>] gpio_request_one+0x30/0x128
[16:53:02:318][ 38.320018] [<c0215d14>] oal_sdio_interrupt_register+0x44/0xe4 [hichannel]
[16:53:02:319][ 38.320052] [<c0215e20>] oal_sdio_probe+0x6c/0x4b4 [hichannel]
[16:53:02:327][ 38.320075] [<801d7264>] driver_probe_device+0x84/0x234
[16:53:02:327][ 38.320084] [<801d5244>] bus_for_each_drv+0x4c/0xa8
[16:53:02:328][ 38.320092] [<801d71a4>] device_attach+0xb0/0xd4
[16:53:02:338][ 38.320100] [<801d65fc>] bus_probe_device+0xa4/0xc8
[16:53:02:341][ 38.320108] [<801d476c>] device_add+0x514/0x5c0
[16:53:02:350][ 38.320131] [<c01b6b9c>] sdio_add_func+0x50/0x80 [mmc_core]
[16:53:02:351][ 38.320154] [<c01b5d2c>] mmc_attach_sdio+0x2ec/0x4e0 [mmc_core]
[16:53:02:361][ 38.320177] [<c01acf00>] mmc_rescan+0x3c4/0x528 [mmc_core]
[16:53:02:361][ 38.320192] [<8005b528>] process_one_work+0x168/0x414
[16:53:02:372][ 38.320200] [<8005bd7c>] worker_thread+0x16c/0x494
[16:53:02:374][ 38.320211] [<80062c9c>] kthread+0xbc/0xc4
[16:53:02:382][ 38.320222] [<8001d47c>] ret_from_kernel_thread+0x14/0x1c
[16:53:02:383][ 38.320227]
[16:53:02:384][ 38.322401] [WARN]:991:hcc_task_rx_gpio_thread start
[16:53:02:394][ 38.322857] [WARN]:899:hcc_host_init SUCCESSFULLY
[16:53:02:394][ 38.325988] [WARN]:308:netdev_register SUCCESSFULLY
[16:53:02:395][ 38.326006] [WARN]:52:wlan drv insmod SUCCESSFULLY
[16:53:02:403][ 84.196676] j zmmc_v1.2 j zmmc_v1.2.1: polling status(0x00000800) error, op=53, status=0x1F000942
[16:53:02:416][ 84.210907] j zmmc_v1.2 j zmmc_v1.2.1: PIO mode: command response error
[16:53:02:417][ 84.550675] tisp_event_push,44: event free empty error
[16:53:02:426][ 84.550710] tisp_event_push,44: event free empty error
[16:53:02:427][ 84.550733] tisp_event_push,44: event free empty error
[16:53:02:439][ 84.551893] tisp_event_push,44: event free empty error
问题原因
- 海思提供的sample_link驱动,里面有设置君正的wifi中断引脚,需要根据实际使用情况进行配置
- 如果IO配置是正确的,可以尝试将对应IO的驱动能力调高
解决方案
- 根据实际IO 配置该引脚,默认定位为9,对应君正GPIO_A(9)
- 修改WLAN_GPIO_INT 宏定义,改为实际使用的GPIO_A(14)
注意:
如果wifi模块与T31通讯不稳定,高概率出现不能通讯问题,可以调整中间串联的电阻,目前稳定的为22欧
声明:本文内容由易百纳平台入驻作者撰写,文章观点仅代表作者本人,不代表易百纳立场。如有内容侵权或者其他问题,请联系本站进行删除。
红包
1
收藏
评论
打赏
- 分享
- 举报
评论
0个
手气红包
暂无数据
相关专栏
-
浏览量:793次2023-10-23 18:45:16
-
浏览量:1699次2023-04-19 09:05:44
-
浏览量:9073次2020-12-15 21:43:52
-
浏览量:1471次2023-11-23 14:03:06
-
浏览量:3887次2021-12-03 16:40:57
-
浏览量:3241次2021-12-06 16:16:18
-
浏览量:6217次2021-09-14 13:51:27
-
浏览量:4715次2021-09-07 13:36:59
-
浏览量:5395次2021-01-07 17:33:46
-
浏览量:9342次2020-12-08 19:45:14
-
浏览量:4623次2021-08-25 13:48:29
-
浏览量:5731次2021-06-28 13:41:26
-
浏览量:4269次2021-09-13 13:44:04
-
浏览量:1722次2023-04-19 09:06:21
-
浏览量:4481次2021-09-23 13:51:06
-
浏览量:3331次2022-01-31 09:00:24
-
浏览量:4606次2021-07-12 13:58:45
-
浏览量:8233次2021-01-20 17:16:00
-
浏览量:4395次2022-06-10 20:44:52
置顶时间设置
结束时间
删除原因
-
广告/SPAM
-
恶意灌水
-
违规内容
-
文不对题
-
重复发帖
打赏作者
小菜很菜
您的支持将鼓励我继续创作!
打赏金额:
¥1
¥5
¥10
¥50
¥100
支付方式:
微信支付
打赏成功!
感谢您的打赏,如若您也想被打赏,可前往 发表专栏 哦~
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
审核成功
发布时间设置
发布时间:
请选择发布时间设置
是否关联周任务-专栏模块
审核失败
失败原因
请选择失败原因
备注
请输入备注