OpenWrt Forum Archive

Topic: WiFi module AR9331 Basic Project LED On & Off

The content of this topic has been archived on 5 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I am totally new to Openwrt... My project is to Turn ON n OFF an LED connected to the GPIO of the module.

What open wrt configurations required for this project?
Target System (Atheros AR7xxx/AR9xxx)  --->    (X) Atheros AR7xxx/AR9xxx
Subtarget (Generic)  ---> (X) Generic
Target Profile (Default Profile (all drivers))  ---> (TP-LINK TL-WR703N)
Target Images  ---> ?
Global build settings  ---> ?
[ ] Advanced configuration options (for developers)  ----  ?
[ ] Build the OpenWrt Image Builder ?
[ ] Build the OpenWrt SDK  ?
[ ] Package the OpenWrt-based Toolchain  ?
[ ] Image configuration  --->?
Base system  --->?
Boot Loaders  --->?
Development  --->?
Firmware  --->?
Kernel modules  --->?
Languages  --->?
Libraries  --->?
Network  --->?
Utilities  --->?

When the .bin file is made, How can I burn it in my module?
What is the procedure of connecting the module with the PC?
What software is required to burn the .bin file in the module?

Any version & any build would work. No special FW is needed

(Last edited by Shahid on 13 Jan 2016, 20:36)

Shahid wrote:

Any version & any build would work. No special FW is needed

Thankyou Shahid...

I have build the bin file and burned it to my router.

My rc.local file is like this:
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
rmmod leds-gpio
echo
echo 0 > /sys/gpiotoggle/gpio1_gpio
echo
echo 14 > /sys/gpiotoggle/gpio2_gpio
echo
echo 16 > /sys/gpiotoggle/gpio3_gpio
echo
/root/WLightd8 & echo
exit 0

But when I send a packet to the router the LED's does not toggle and show no response.
While when I use to echo them from my Ubuntu Terminal then it works

All I want to do is to make these LED's toggle whenever I send a packet to the router. Help me...

The discussion might have continued from here.