danitool / openwrt-pkgs Goto Github PK
View Code? Open in Web Editor NEWmy custom OpenWrt packages: lirc and others
License: GNU General Public License v2.0
my custom OpenWrt packages: lirc and others
License: GNU General Public License v2.0
Hi,
I tried to compile your package for OpenWRT running on ralink RT5350F but that is not working.
logread prints the following error in loop :
local0.err lircd-0.9.2a[1432]: Error: could not get file information for /dev/lirc0
local0.err lircd-0.9.2a[1432]: default_init(): No such file or directory
Any insight would be very much appreciated.
Thank you in advance,
Vince
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
Hi,
I'm using both mode2 and irsend functions of the lirc library.
The mode2 function from your driver works well on RT5350F.
However, when I run
irsend SEND_ONCE "remote" "code"
The ralink freezes and I have no control over it.
I have to wait some minutes and then command line prompt is back again.
I put a receiver on a RPI in front of ralink's emitting IR led and I can see some IR data in reception. However, the data frame flow is not constant ; there is some time laps between data emissions.
Also, I tried activating the IR led by hand
echo 0 > /sys/class/gpio/gpioXX
echo 1 > /sys/class/gpio/gpioXX
It works well : the IR led turns on and off without any time overhead and the command prompt doesn't freeze.
Any idea why it behaves like this?
Thanks
Hi, following the openwrt tutorial for sercom h500s router, i can activate the 5g Signal from quantenna, but i don't know the default pasword.
Another question is how can i configure the quantenna Signal as a wifi reapeater.
Thanks.
Hi,
Thank you very much for sharing this!!! It's amazing. It's turned the Vodafone router from e-waste to something potentially potentially useful.
I successfully configured and brought up a 5GHz WiFi network on the Sercomm H500S vfes Hardware ver: V1.
The problem with call_qcsapi_1.0.1-1_mips_mips32-openwrt_21.02.ipk that using it interferes with CloudFlare's 1.1.1.1.
The computers on my LAN can't ping 1.1.1.1
and also doing a simple dig a example.org @1.1.1.1
or dig a example.org @1.0.0.1
from LAN computers is broken.
CloudFlare is one of the biggest DNS providers on the internet and loads of services, hosts, software and companies use it.
Can you please add info for building call_qcsapi for the latest OpenWrt 23.05?
And also using a LAN IP somewhere in
Or even a loopback IP?
It's quite time consuming changing configs and waiting a few mins every time for the router to reboot and WiFi to come up etc so I've not experimented too much with it. I didn't see "1.1.1" in the source code, so is the call_qcsapi_sockrpc --host
IP just whatever was set in uci set network.lan2.ipaddr=1.1.1.1
PLUS ONE?
Also the netmask is very weird 255.0.0.0
I tried messing with it once doing uci set network.lan2.ipaddr=192.168
something but then my call_qcsapi_sockrpc
commands were failing and I didn't have time to explore further yet.
Now that I'm a bit more familiar with it I see that I'll also need to edit the IP in /etc/init.d/quantenna
Hi,
the lirc packages build without error but insmod gives the following error:
kmod: failed to insert /lib/modules/3.10.49/lirc_gpio_generic.ko
the kernel is patched with "728-MIPS-ath79-add-gpio-irq.patch"
I'm using openwrt BB on ar71xx
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.