Hi, I'we been introduced to openwrt while trying to get proper 4G support to my cabin.
I found help with this through the ofmodemsandmen site and whirlpool au forum and one really helpful guy Huge thanks to "The Cobia" for getting me set up with openwrt Chaos chalmer and rooter package.
Now I'm trying to integrate something new that would make for one sweet cabin 4G router, I'd like to add an IR blaster to gpio and be able to use lirc to control my heatpump.
So here is what I'we managed to do til now:
Set up the WZR-HP-G300NH with " MultiWeb-Version-1 ( OpenWRT r48168 ) / LuCI 15.05-166-g9d759a4 Release (git-15.363.78009-956be55)"
This if I have got things right is Chaos chalmer which shows up as MultiWeb... because of the included rooter package that gives superb 4G modem support via USB.
Then I added lirc and kmod-lirc-gpioblaster to my openwrt and included the lircd.conf file that includes my remote codes recorded with audio-alsa driver and mic-port receiver.
So software should be ready to go BUT... and this is my problem, I cannot get how I could remove the "gpio-17 (buffalo:orange:secur) out hi" from the software so I could control that gpio directly and use it for lircd.....
I also tried to find out if there would be free gpio:s to use but as far as understand there are'nt any awailable... this is what I found:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
cat /sys/kernel/debug/gpio
WZR-HP-G300NH
root@OpenWrt:/sys/devices/virtual/gpio/gpio10# cat /sys/kernel/debug/gpio
GPIOs 0-21, ath79:
gpio-0 (buffalo:blue:usb ) out hi
gpio-1 (buffalo:red:diag ) out hi
gpio-2 (sysfs ) in hi
gpio-3 (sysfs ) in hi
gpio-4 (sysfs ) in hi
gpio-5 (sysfs ) in hi
gpio-6 (buffalo:green:wirele) out hi
gpio-7 (sysfs ) in hi
gpio-8 (sysfs ) in hi
gpio-9 (nxp-74hc153 ) out lo
gpio-10 (sysfs ) in hi
gpio-11 (nxp-74hc153 ) out hi
gpio-12 (nxp-74hc153 ) in lo
gpio-13 (sysfs ) in hi
gpio-14 (nxp-74hc153 ) in hi
gpio-15 (sysfs ) in hi
gpio-16 (sysfs ) in hi
gpio-17 (buffalo:orange:secur) out hi
gpio-18 (buffalo:green:router) out hi
gpio-19 (rtl8366s ) in hi
gpio-20 (rtl8366s ) in hi
gpio-21 (sysfs ) in hi
GPIOs 32-39, platform/nxp-74hc153, nxp-74hc153, can sleep:
gpio-32 (aoss ) in hi
gpio-33 (reset ) in hi
gpio-34 (router_on ) in lo
gpio-35 (qos_on ) in hi
gpio-37 (usb ) in hi
gpio-38 (router_auto ) in hi
gpio-39 (qos_off ) in lo
------------------------------------------------------------------------------------------------------------------------------------
I also made a script that runs the following command for gpio:s from 0 to 32 using: echo "0" > /sys/class/gpio/export (with a new line for every number "1","2","3".. aso.)
And it returns:
sh: write error: Device or resource busy
sh: write error: Device or resource busy
sh: write error: Device or resource busy
sh: write error: Device or resource busy
sh: write error: Device or resource busy
sh: write error: Device or resource busy
sh: write error: Device or resource busy
sh: write error: Device or resource busy
sh: write error: Device or resource busy
sh: write error: Device or resource busy
sh: write error: Device or resource busy
sh: write error: Device or resource busy
sh: write error: Device or resource busy
sh: write error: Device or resource busy
sh: write error: Device or resource busy
sh: write error: Device or resource busy
sh: write error: Device or resource busy
sh: write error: Device or resource busy
sh: write error: Device or resource busy
sh: write error: Device or resource busy
sh: write error: Device or resource busy
sh: write error: Device or resource busy
sh: write error: No such device
sh: write error: No such device
sh: write error: No such device
sh: write error: No such device
sh: write error: No such device
sh: write error: No such device
sh: write error: No such device
sh: write error: No such device
sh: write error: No such device
sh: write error: No such device
sh: write error: Device or resource busy
------------------------------------------------------------------------------------------------------------------------
Not sure what this means but if (and that's a BIG if) i got this right there are gpio:s from 0 to 21 and 32-39, nothing in between...? And these are all reserved.
So how do I "unreserve" one of these, the security LED would be great since I guess the wild animals in the forest still don't have laptops so no need for security.
Any help would be fantastic.
-Infernocs-