ユーザ用ツール

サイト用ツール


spreadrouter_ope:led_examples:start

LEDの割り当てと表示パターン

LEDの割り当て

SpreadRouterには、2色(赤/緑)LED が4個(POWER, STATUS-1〜3)実装されています。


それぞれのデフォルトでの割り当ては下記のようになっています。

LED 状態 意味 sysfs以下 相対PATH
POWER <html><span style=“color:green;”>緑</span></html> 消灯 電源OFFPowerLED
<html><color black>点灯</color></html> 電源ON
<html><span style=“color:red”>赤</span></html> 消灯 power-stat:r
<html><span style=“color:black”>点灯</span></html> SDカード拡張領域利用中1)
STATUS-1 <html><span style=“color:green”>緑</span></html> 消灯 system-status1:g
<html><span style=“color:black”>点灯</span></html> ブートローダー起動
<html><span style=“color:blue”>点滅</span></html> ブートローダー 入力待ち状態(プロンプト/メニュー)
<html><span style=“color:blue”>Fade In/Out</span></html> Suspend状態
<html><span style=“color:red”>赤</span></html> 消灯 system-status1:r
<html><span style=“color:blue”>ハートビート</span></html> Kernel動作中
STATUS-2 <html><span style=“color:green”>緑</span></html> 消灯 system-status2:g
<html><span style=“color:black”>点灯</span></html>
<html><span style=“color:red”>赤</span></html> 消灯 system-status2:r
<html><span style=“color:black”>点灯</span></html>
STATUS-3 <html><span style=“color:green”>緑</span></html> 消灯 system-status3:g
<html><span style=“color:black”>点灯</span></html> 出荷状態での起動2)
<html><span style=“color:red”>赤</span></html> 消灯 system-status3:r
<html><span style=“color:black”>点灯</span></html>
<html><span style=“color:blue”>点滅</span></html> シャットダウン処理中

全てのLEDは LED class driver3) での実装となっていますので、 sysfs4) I/F により任意の動作に変更が可能です。

root@plum:~# ls -l /sys/class/leds/
total 0
lrwxrwxrwx 1 root root 0 Mar 24 10:21 PowerLED -> ../../devices/leds_foma.5/leds/PowerLED
lrwxrwxrwx 1 root root 0 Mar 24 10:21 power-stat:r -> ../../devices/ocp.3/44e0b000.i2c/i2c-0/0-0045/leds/power-stat:r
lrwxrwxrwx 1 root root 0 Mar 24 10:21 system-status1:g -> ../../devices/ocp.3/44e0b000.i2c/i2c-0/0-0045/leds/system-status1:g
lrwxrwxrwx 1 root root 0 Mar 24 10:21 system-status1:r -> ../../devices/ocp.3/44e0b000.i2c/i2c-0/0-0045/leds/system-status1:r
lrwxrwxrwx 1 root root 0 Mar 24 10:21 system-status2:g -> ../../devices/ocp.3/44e0b000.i2c/i2c-0/0-0045/leds/system-status2:g
lrwxrwxrwx 1 root root 0 Mar 24 10:21 system-status2:r -> ../../devices/ocp.3/44e0b000.i2c/i2c-0/0-0045/leds/system-status2:r
lrwxrwxrwx 1 root root 0 Mar 24 10:21 system-status3:g -> ../../devices/ocp.3/44e0b000.i2c/i2c-0/0-0045/leds/system-status3:g
lrwxrwxrwx 1 root root 0 Mar 24 10:21 system-status3:r -> ../../devices/ocp.3/44e0b000.i2c/i2c-0/0-0045/leds/system-status3:r


LED表示パターン

電源ON から Linux起動まで


SequenceNo. Event Info
1LED全消灯状態電源OFF中
2LED POWER 緑点灯電源ON
3LED1 緑点灯ブートローダー起動
4LED1 緑消灯Linux Kernel起動開始
5LED1 赤点滅開始Kernel起動完了、init処理開始


出荷状態での起動

INITスイッチを押下しながら電源を投入した場合です。


SequenceNo. Event Info
1LED全消灯状態電源OFF中
2LED POWER 緑点灯電源ON
3LED1 緑点灯ブートローダー起動
4LED3 緑点灯『出荷状態での起動』受付
5LED1/3 緑消灯Linux Kernel起動開始
6LED1 赤点滅開始Kernel起動完了、init処理開始


ハートビート (Linux起動中、CPU動作中)


INITSW押下によるシャットダウン


Suspend/Resume

Suspend状態へ遷移後、10秒後に RTC Alarm により Wakeup します。


spreadrouter_ope/led_examples/start.txt · 最終更新: 2023/09/19 17:08 by 127.0.0.1

ページ用ツール