summaryrefslogtreecommitdiffstats
path: root/_ont/ont-huawei-ma5671a-rooted.md
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--_ont/ont-huawei-ma5671a-rooted.md38
1 files changed, 31 insertions, 7 deletions
diff --git a/_ont/ont-huawei-ma5671a-rooted.md b/_ont/ont-huawei-ma5671a-rooted.md
index 95d579e..019610a 100644
--- a/_ont/ont-huawei-ma5671a-rooted.md
+++ b/_ont/ont-huawei-ma5671a-rooted.md
@@ -31,6 +31,7 @@ layout: default
1. Type `:wq`
1. Run:
+
```shell
fw_setenv sfp_a2_info ($cat /tmp/sfp_a2.txt)
```
@@ -39,11 +40,11 @@ fw_setenv sfp_a2_info ($cat /tmp/sfp_a2.txt)
1. Save `sfp_a2_info` in a temporary file
-```shell
+```sh
fw_printenv sfp_a2_info | sed "s/^sfp_a2_info=//" > /tmp/sfp_a2.txt
```
And print a pretty version:
-```shell
+```sh
fw_printenv sfp_a2_info | sed "s/^sfp_a2_info=//" | tr '@' '\n'
```
@@ -77,7 +78,7 @@ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASFcC2r7vAAAAAAAAAAAAAAAAAAAA
5. Transfer the modified file back into variable `sfp_a2_info`
-```shell
+```sh
fw_setenv sfp_a2_info $(cat /tmp/sfp_a2.txt)
```
@@ -85,7 +86,7 @@ fw_setenv sfp_a2_info $(cat /tmp/sfp_a2.txt)
After rebooting, check whether the new variables have been saved correctly:
-```shell
+```sh
fw_printenv nPassword
fw_printenv gSerial
fw_printenv ethaddr
@@ -93,16 +94,39 @@ fw_printenv ethaddr
## Checking whether the connection with the OLT was successful (O5 state)
-```shell
+```sh
onu ploamsg
```
-# Disabling dying gasp
+## Disabling dying gasp
-```shell
+```sh
fw_setenv nDyingGaspEnable 0
```
+## Getting/Setting Speed LAN Mode
+
+To get the LAN Mode:
+
+```sh
+onu lanpsg 0
+```
+The `link_status` variable tells the current speed
+
+| Value (for `sgmii_mode` and `link_status`) | Speed |
+| ------------------------------------------ | ---------------------------------- |
+| 3 | 1 Gbps / SGMII with auto-neg on |
+| 4 | 1 Gbps / SGMII with auto-neg off |
+| 5 | 2.5 Gbps / HSGMII with auto-neg on |
+
+To change the default lan mode value you can use `fw_setenv sgmii_mode`. The firmware already has the value 5 by default and it is generally not necessary to change it.
+
+## Querying a particular OMCI ME
+```sh
+omci_pipe.sh meg MIB_IDX ME_IN
+```
+Where `MIB_IDX` is the MIB ID and the `ME_IN` is the ME instance number
+
# Miscellaneous Links
- [Edit sfp_a2_info file](https://forum.openwrt.org/t/support-ma5671a-sfp-gpon/48042/25)