Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#4512 closed defect (fixed)

loading of leds-gpio fails on RB450 (AR71xx)

Reported by: leonardormagalhaes@… Owned by: juhosg
Priority: normal Milestone:
Component: kernel Version:
Keywords: Cc:


leds-gpio support seems to be modularized on latest trunks. Build is OK, but loading fails on RouterBoard 450 (ar71xx) platform.

some months ago, when leds-gpio wasnt even modularized, it worked OK on RB450s.

root@firewall:~# ls /sys/devices/platform/leds-gpio/leds

this is a: KAMIKAZE (bleeding edge, r12536)

but on current trunks, module gets build OK but fails to load on the same RB450 platform.

on a: KAMIKAZE (bleeding edge, r14227)

leds-gpio: probe of leds-gpio failed with error -22

Attachments (0)

Change History (4)

comment:1 Changed 9 years ago by leonardormagalhaes@…

just correcting myself .......

i have download trunk revision 12536 and seems the kmod-leds-gpio is already there. But even without checking this module, GPIO leds works fine on RB450 and i can control the brightness parameter to blink the led. Please check:

          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (bleeding edge, r12536) -------------------

root@anapolis:/# lsmod | grep -i gpio
root@anapolis:/# lsmod | grep -i led 
root@anapolis:/# opkg list | grep -i gpio
root@anapolis:/# opkg list | grep -i led 

root@anapolis:/# ls /sys/devices/platform/leds-gpio/leds                  

comment:2 Changed 9 years ago by juhosg

  • Owner changed from developers to juhosg
  • Status changed from new to assigned

comment:3 Changed 9 years ago by juhosg

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed with [14238]. Thanks for reporting!

comment:4 Changed 9 years ago by Leonardo Rodrigues <leonardormagalhaes@…>

juhosg, it's working again. i noticed that now i have to enable kmods-leds-gpio to get it working, but i think that's the desired behavior now.

          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (bleeding edge, r14238) -------------------

root@OpenWrt:/# dmesg | grep rb4xx
Registered led device: rb4xx:yellow:user

root@OpenWrt:/# ls /sys/devices/platform/leds-gpio/leds/

if i remove the leds_gpio module from kernel, the leds are gone.

root@OpenWrt:/# rmmod leds_gpio
root@OpenWrt:/# ls /sys/devices/platform/leds-gpio/leds/
ls: /sys/devices/platform/leds-gpio/leds/: No such file or directory

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.