恩山无线论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 189|回复: 0

迅雷下载宝刷机后白灯不亮

[复制链接]
发表于 2020-8-30 19:55 | 显示全部楼层 |阅读模式
如题,在breed不亮
  1. breed> gpio led
  2. GPIO    status  name
  3. 7       on      sys
  4. 8       on      led1
复制代码


在openwrt两种方式也不亮
  1. root@XZB:~# cd /sys/class/leds/
  2. root@XZB:/sys/class/leds# ls
  3. timecloud:orange:status  timecloud:white:status
  4. root@XZB:/sys/class/leds# cd timecloud\:white\:status/
  5. root@XZB:/sys/devices/platform/leds/leds/timecloud:white:status# ls
  6. brightness      device          max_brightness  subsystem       trigger         uevent
  7. root@XZB:/sys/devices/platform/leds/leds/timecloud:white:status# echo 1 > brightness
  8. root@XZB:/sys/devices/platform/leds/leds/timecloud:white:status# echo 0 > brightness
  9. root@XZB:/sys/devices/platform/leds/leds/timecloud:white:status# rmmod leds_gpio
  10. root@XZB:/sys/devices/platform/leds/leds/timecloud:white:status# cd ..
  11. root@XZB:/sys/class/leds# cd ..
  12. root@XZB:/sys/class# ls
  13. bdi           dma           gpio          mem           mtd           phy           regulator     tty
  14. block         extcon        leds          misc          net           power_supply  rtc           ubi
  15. devcoredump   firmware      mdio_bus      mt            pci_bus       ppp           spi_master    watchdog
  16. root@XZB:/sys/class# cd gpio/
  17. root@XZB:/sys/class/gpio# ls
  18. export      gpiochip0   gpiochip32  gpiochip64  unexport
  19. root@XZB:/sys/class/gpio# echo 7 > export
  20. root@XZB:/sys/class/gpio# ls
  21. export      gpio7       gpiochip0   gpiochip32  gpiochip64  unexport
  22. root@XZB:/sys/class/gpio# cd gpio7/
  23. root@XZB:/sys/devices/platform/1e000000.palmbus/1e000600.gpio/gpiochip0/gpio/gpio7# ls
  24. active_low  device      direction   edge        subsystem   uevent      value
  25. root@XZB:/sys/devices/platform/1e000000.palmbus/1e000600.gpio/gpiochip0/gpio/gpio7# echo out > direction
  26. root@XZB:/sys/devices/platform/1e000000.palmbus/1e000600.gpio/gpiochip0/gpio/gpio7# echo 1 > value
  27. root@XZB:/sys/devices/platform/1e000000.palmbus/1e000600.gpio/gpiochip0/gpio/gpio7# cat value
  28. 1
  29. root@XZB:/sys/devices/platform/1e000000.palmbus/1e000600.gpio/gpiochip0/gpio/gpio7# cat direction
  30. out
  31. root@XZB:/sys/devices/platform/1e000000.palmbus/1e000600.gpio/gpiochip0/gpio/gpio7# cd ..
  32. root@XZB:/sys/class/gpio# echo 8 > export
  33. root@XZB:/sys/class/gpio# cd gpio8/
  34. root@XZB:/sys/devices/platform/1e000000.palmbus/1e000600.gpio/gpiochip0/gpio/gpio8# echo out > direction
  35. root@XZB:/sys/devices/platform/1e000000.palmbus/1e000600.gpio/gpiochip0/gpio/gpio8# echo 1 > value
  36. root@XZB:/sys/devices/platform/1e000000.palmbus/1e000600.gpio/gpiochip0/gpio/gpio8#
复制代码


总得来说就是GPIO7对应白灯不亮,GPIO8对应黄灯三种方法都亮
我的恩山、我的无线 The best wifi forum is right here.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )|网站地图

GMT+8, 2020-9-19 00:48

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表