Skip to content

Try to make it work on AR9331 #5

@Soundtrack9407

Description

@Soundtrack9407

Hi danitool,

GL-iNet 6416(based on AR9331),
chaos calmer,
kernel 3.18.44(728-MIPS-ath79-add-gpio-irq.patch has been apply)

root@soundtrack:~# cat /sys/kernel/debug/gpio
GPIOs 0-29, ath79:
......
gpio-20 (lirc_gpio_generic ir) out lo
gpio-21 (lirc_gpio_generic ir) in lo
......
everything seems normally,
but when I test the receiver( execute "irw" ), some error has happen:

[  262.340000] CPU 0 Unable to handle kernel paging request at virtual address 00000000, epc == 00000000, ra == 83112744
[  262.350000] Oops[#1]:
[  262.350000] CPU: 0 PID: 1953 Comm: cat Not tainted 3.18.44 #1
[  262.350000] task: 839a5838 ti: 82d84000 task.ti: 82d84000
[  262.350000] $ 0   : 00000000 fffffff8 00000000 2d9523a6
[  262.350000] $ 4   : 80395e9c 00000015 00000001 00000000
[  262.350000] $ 8   : 3b9aca00 c4653600 059682f0 00000008
[  262.350000] $12   : 0000cce6 77f643a0 00000000 00000000
[  262.350000] $16   : 83077700 83110000 83110000 830f8b00
[  262.350000] $20   : 83ae8780 803b0000 82d85e18 82d85ef0
[  262.350000] $24   : 00000000 77f04ff0
[  262.350000] $28   : 82d84000 82d85cc0 00000000 83112744
[  262.350000] Hi    : 000002c6
[  262.350000] Lo    : 000bab4c
[  262.350000] epc   : 00000000   (null)
[  262.350000]     Not tainted
[  262.350000] ra    : 83112744 0x83112744
[  262.350000] Status: 1000fc03 KERNEL EXL IE
[  262.350000] Cause : 10800008
[  262.350000] BadVA : 00000000
[  262.350000] PrId  : 00019374 (MIPS 24Kc)
[  262.350000] Modules linked in: ath9k ath9k_common pppoe ppp_async iptable_nat ath9k_hw ath pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 mac80211 ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT uvcvideo slhc nf_reject_ipv4 nf_nat_masquerade_ipv4 nf_nat_ftp nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_ftp nf_conntrack iptable_raw iptable_mangle iptable_filter ip_tables crc_ccitt compat lirc_gpio_generic videobuf2_vmalloc videobuf2_memops videobuf2_core i2c_dev ledtrig_usbdev xt_set ip_set_list_set ip_set_hash_netiface ip_set_hash_netport ip_set_hash_netnet ip_set_hash_net ip_set_hash_netportnet ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables ip6_tunnel tunnel6 ipv6 dma_shared_buffer arc4 crypto_blkcipher input_polldev ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[  262.350000] Process cat (pid: 1953, threadinfo=82d84000, task=839a5838, tls=77fec440)
[  262.350000] Stack : 0fc00000 80100964 81082218 800cf3d4 fffff14c 80393178 83077700 fffffff0
[  262.350000]    83b76540 80241970 803940f0 803f0000 00000000 83b76540 83b76540 830f8b00
[  262.350000]    831131c4 83b76540 83ae8780 00000000 83ae8788 80100e7c 82d85e10 83442ee0
[  262.350000]    83ae8780 82d85d98 00000000 82d85ef0 83ae8780 83b76540 82d85e10 80100d58
[  262.350000]    83ae8780 800faa6c 83b76540 82d85e10 00000000 80106fe4 82d85e10 82d85e60
[  262.350000]    ...
[  262.350000] Call Trace:
[  262.350000] [<80100964>] exact_lock+0x10/0x24
[  262.350000] [<800cf3d4>] get_page_from_freelist+0xe8/0x5b8
[  262.350000] [<80241970>] lirc_dev_fop_open+0xfc/0x1cc
[  262.350000] [<80100e7c>] chrdev_open+0x124/0x164
[  262.350000] [<80100d58>] chrdev_open+0x0/0x164
[  262.350000] [<800faa6c>] do_dentry_open.isra.16+0x20c/0x330
[  262.350000] [<80106fe4>] may_open+0xbc/0x12c
[  262.350000] [<80109a08>] do_last.isra.58+0x89c/0xb58
[  262.350000] [<80107b74>] link_path_walk+0x88/0x7d4
[  262.350000] [<80109ee8>] path_openat+0x224/0x584
[  262.350000] [<8010ae48>] do_filp_open+0x3c/0xa4
[  262.350000] [<80075ab0>] __do_page_fault+0x1dc/0x390
[  262.350000] [<801164c0>] __alloc_fd+0x80/0x16c
[  262.350000] [<800fc020>] do_sys_open+0x18c/0x238
[  262.350000] [<800ee4c4>] SyS_mprotect+0x1cc/0x204
[  262.350000] [<80062b5c>] handle_sys+0x11c/0x140
[  262.350000]
[  262.350000]
[  262.350000] Code: (Bad address in epc)
[  262.350000]
[  262.670000] ---[ end trace cf85ba6bd26cb558 ]---
======================================

After that rmmod lirc_gpio_generic module was failed, and I still couldn't receiver any signal from IR receiver.
What should I do to fix this error?

Thanks.
Soundtrack

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions