项目

一般

简介

LED1输出控制[LED使用].txt

张 群瑞, 2021-11-01 09:43

 
1
//20211021
2

    
3
Freescale i.MX Release Distro 4.1.15-2.0.1 OM-A6-HWTEST /dev/ttymxc0
4

    
5
OM-A6-HWTEST login:
6
Freescale i.MX Release Distro 4.1.15-2.0.1 OM-A6-HWTEST /dev/ttymxc0
7

    
8
OM-A6-HWTEST login: roo
9
Password:
10
Login incorrect
11

    
12
OM-A6-HWTEST login: root
13
Password:
14
[root@OM-A6-HWTEST:~]# cd /sys/class/leds/
15
[root@OM-A6-HWTEST:leds]# ls
16
beep@   cpu@    mmc0::@ user@
17
[root@OM-A6-HWTEST:leds]# cd beep
18
[root@OM-A6-HWTEST:beep]# ls
19
brightness      max_brightness  subsystem@      uevent
20
device@         power/          trigger
21
[root@OM-A6-HWTEST:beep]# cat trigger
22
[none] rc-feedback nand-disk mmc0 timer oneshot heartbeat backlight gpio
23
[root@OM-A6-HWTEST:beep]# cd -
24
/sys/class/leds
25
[root@OM-A6-HWTEST:leds]# ls
26
beep@   cpu@    mmc0::@ user@
27
[root@OM-A6-HWTEST:leds]# cd cpu
28
[root@OM-A6-HWTEST:cpu]# ls
29
brightness      max_brightness  subsystem@      uevent
30
device@         power/          trigger
31
[root@OM-A6-HWTEST:cpu]# cat trigger
32
none rc-feedback nand-disk mmc0 timer oneshot [heartbeat] backlight gpio
33
[root@OM-A6-HWTEST:cpu]# cd -
34
/sys/class/leds
35
[root@OM-A6-HWTEST:leds]# ls
36
beep@   cpu@    mmc0::@ user@
37
[root@OM-A6-HWTEST:leds]# cd mmc0\:\:
38
[root@OM-A6-HWTEST:mmc0::]# ls
39
brightness      max_brightness  subsystem@      uevent
40
device@         power/          trigger
41
[root@OM-A6-HWTEST:mmc0::]# cat trigger
42
none rc-feedback nand-disk [mmc0] timer oneshot heartbeat backlight gpio
43
[root@OM-A6-HWTEST:mmc0::]# cd -
44
/sys/class/leds
45
[root@OM-A6-HWTEST:leds]# ls
46
beep@   cpu@    mmc0::@ user@
47
[root@OM-A6-HWTEST:leds]# cd user
48
[root@OM-A6-HWTEST:user]# ls
49
brightness      max_brightness  subsystem@      uevent
50
device@         power/          trigger
51
[root@OM-A6-HWTEST:user]# cat trigger
52
[none] rc-feedback nand-disk mmc0 timer oneshot heartbeat backlight gpio
53
[root@OM-A6-HWTEST:user]# cd -
54
/sys/class/leds
55
[root@OM-A6-HWTEST:leds]# ls
56
beep@   cpu@    mmc0::@ user@
57
[root@OM-A6-HWTEST:leds]# cd cpu/
58
[root@OM-A6-HWTEST:cpu]# ls
59
brightness      max_brightness  subsystem@      uevent
60
device@         power/          trigger
61
[root@OM-A6-HWTEST:cpu]# cat trigger
62
none rc-feedback nand-disk mmc0 timer oneshot [heartbeat] backlight gpio
63
[root@OM-A6-HWTEST:cpu]# echo none > trigger
64
[root@OM-A6-HWTEST:cpu]# cat trigger
65
[none] rc-feedback nand-disk mmc0 timer oneshot heartbeat backlight gpio
66
[root@OM-A6-HWTEST:cpu]# cd -
67
/sys/class/leds
68
[root@OM-A6-HWTEST:leds]# ls
69
beep@   cpu@    mmc0::@ user@
70
[root@OM-A6-HWTEST:leds]# echo 1 > cpu
71
-sh: cpu: Is a directory
72
[root@OM-A6-HWTEST:leds]# cd -
73
/sys/class/leds/cpu
74
[root@OM-A6-HWTEST:cpu]# ls
75
brightness      max_brightness  subsystem@      uevent
76
device@         power/          trigger
77
[root@OM-A6-HWTEST:cpu]# echo 1 > brightness
78
[root@OM-A6-HWTEST:cpu]# echo 0 > brightness
79
[root@OM-A6-HWTEST:cpu]#
80
/////////////////////////////////////////////////////////////////////
81
//20211022
82
[root@OM-A6-HWTEST:~]# cat /sys/class/leds/cpu/trigger
83
none rc-feedback nand-disk mmc0 timer oneshot [heartbeat] backlight gpio
84
[root@OM-A6-HWTEST:~]# echo none > /sys/class/leds/cpu/trigger
85
[root@OM-A6-HWTEST:~]# cat /sys/class/leds/cpu/trigger
86
[none] rc-feedback nand-disk mmc0 timer oneshot heartbeat backlight gpio
87
[root@OM-A6-HWTEST:~]#