LEDup点灯

读 ledup 数据空间内容,通过对比没有插上光模块时的数据做对比得出:

Sundray-SW[1] ~ #bcmsh g cmic_ledup0_data_ram
excute : ovs-appctl plugin/bcmsh g cmic_ledup0_data_ram
CMIC_LEDUP0_DATA_RAM(0).cmic0[14][0x20400]=0x80: <DATA=0x80>
CMIC_LEDUP0_DATA_RAM(1).cmic0[14][0x20404]=0x80: <DATA=0x80>
CMIC_LEDUP0_DATA_RAM(2).cmic0[14][0x20408]=0: <DATA=0>
CMIC_LEDUP0_DATA_RAM(3).cmic0[14][0x2040c]=0: <DATA=0>
CMIC_LEDUP0_DATA_RAM(4).cmic0[14][0x20410]=0x50: <DATA=0x50>
CMIC_LEDUP0_DATA_RAM(5).cmic0[14][0x20414]=0x80: <DATA=0x80>
CMIC_LEDUP0_DATA_RAM(6).cmic0[14][0x20418]=0x50: <DATA=0x50>
CMIC_LEDUP0_DATA_RAM(7).cmic0[14][0x2041c]=0x80: <DATA=0x80>
CMIC_LEDUP0_DATA_RAM(8).cmic0[14][0x20420]=0x50: <DATA=0x50>
CMIC_LEDUP0_DATA_RAM(9).cmic0[14][0x20424]=0x80: <DATA=0x80>
CMIC_LEDUP0_DATA_RAM(10).cmic0[14][0x20428]=0x50: <DATA=0x50>
CMIC_LEDUP0_DATA_RAM(11).cmic0[14][0x2042c]=0x80: <DATA=0x80>
CMIC_LEDUP0_DATA_RAM(12).cmic0[14][0x20430]=0x50: <DATA=0x50>
CMIC_LEDUP0_DATA_RAM(13).cmic0[14][0x20434]=0x80: <DATA=0x80>
CMIC_LEDUP0_DATA_RAM(14).cmic0[14][0x20438]=0x50: <DATA=0x50>
CMIC_LEDUP0_DATA_RAM(15).cmic0[14][0x2043c]=0x80: <DATA=0x80>
CMIC_LEDUP0_DATA_RAM(16).cmic0[14][0x20440]=0x50: <DATA=0x50>
CMIC_LEDUP0_DATA_RAM(17).cmic0[14][0x20444]=0x80: <DATA=0x80>
CMIC_LEDUP0_DATA_RAM(18).cmic0[14][0x20448]=0x50: <DATA=0x50>


bcmsh modreg  CMIC_LEDUP1_DATA_RAM[52] data=0xb8
bcmsh g DUP1_DATA_RAM[52]

汇编写点灯程序时候的端口号:

Sundray-SW / #bcmsh led status			# 编写点灯程序时候需要用上
excute : ovs-appctl plugin/bcmsh led status
 2  ge0                        FD 0:2
 3  ge1                        FD 0:3
 4  ge2                        FD 0:4
 5  ge3                        FD 0:5
 6  ge4                        FD 0:18
 7  ge5                        FD 0:19
 8  ge6                        FD 0:20
 9  ge7                        FD 0:21

posted on 2023-09-25 10:31  枝桠  阅读(18)  评论(0编辑  收藏  举报

导航