summaryrefslogtreecommitdiffstats
path: root/_ont/ont-huawei-ma5671a-fs-mod.md
blob: 7b040024bdd6ab308dcce8b0b02849679949aba3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
---
title: FS Modded Firmware for Huawei MA5671A and FS.com GPON-ONU-34-20BI
has_children: false
parent: Huawei MA5671A
layout: default
---

{% include alert.html content="The following wiki is only compatible with version 5 or later!" alert="Note"  icon="svg-warning" color="red" %}

# Flashing the firmware

Flash the firmware image to image0 or image1 via [SSH](/ont-huawei-ma5671a/#flashing-a-new-rootfs-via-ssh) or via [TTL serial](/ont-huawei-ma5671a-ymodem) as usual.

After the flash it is absolutely necessary to connect to the SFP via telnet using the IP 192.168.1.10:

```sh
telnet 192.168.1.10
```

Once connected via telnet to the SFP, execute the following commands, it will be necessary to wait a few minutes until the end of the automatic procedure:

```sh
firstboot
reboot
```

Remember that with each flash of this firmware it is always necessary to perform the procedure described above, otherwise the SFP will not work!

# Login info

|                    |                                                |
| ------------------ | ---------------------------------------------- |
| Username           | root                                           |
| Password           | root                                           |
| IP address	     | 192.168.1.10                                   |
| Telnet    	     | Always available                               |
| TTL Serial 	     | Always available                               |
| SSH       	     | Only after the first configuration (firstboot) |
| Web       	     | NO                                             |

# GPON ONU status

## Get the operational status of the ONU
```sh
onu ploam_state_get
```

## Get optical laser status
```sh
otop -g s
```

## Get information of the OLT vendor
```sh
omci_pipe.sh meg 131 0
```

## 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

## Get VLAN table rule
```sh
gtop -g "GPE VLAN rule"
```

## Get GEM port status table
```sh
gtop -g e
```

## Getting/Setting Speed LAN Mode

To get the LAN Mode:

```sh
onu lan_port_status_get 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 is already set to 2.5G auto-negotiation, you shouldn't touch it.

# GPON/OMCI settings

## Setting ONU GPON Serial Number
```sh
fw_setenv onu_serial "YOUR_SERIAL_ASCII"
```

## Setting ONU GPON PLOAM password
```sh
fw_setenv onu_ploam "YOUR_PLOAM_ASCII"
```

## Setting ONU GPON LOID
```sh
fw_setenv onu_loid "YOUR_LOID"
```

## Setting ONU GPON LOID password
```sh
fw_setenv onu_loid_password "YOUR_LOID_PASSWORD"
```

## Setting OMCI vendor ID (ME 256)
```sh
fw_setenv omci_vendor_id "YOUR_VENDOR_ID"
```

## Setting OMCI equipment ID (ME 257)
```sh
fw_setenv omci_equip_id "YOUR_EQUIP_ID"
```

## Setting OMCI hardware version (ME 256)
```sh
fw_setenv omci_hw_ver "YOUR_HW_VER"
```

## Setting OMCI software version (ME 7)
```sh
fw_setenv image0_version "YOUR_SW_VERSION_0"
fw_setenv image1_version "YOUR_SW_VERSION_1"
```

# Advanced settings

{% include alert.html content="Normally they are not necessary and it would be better not to touch them" alert="Note"  icon="svg-warning" color="red" %}

## Setting custom OMCI MIB file
You have to copy the MIB file to /etc/mibs and then run this command:

```sh
fw_setenv mib_file_custom "YOUR_MIB_FILENAME"
```

## Setting management IP
```sh
fw_setenv ipaddr www.xxx.yyy.zzz
```

## Restore SFP to default config
```sh
firstboot
reboot
```

# SFP EEPROM settings

{% include alert.html content="Normally they are not necessary and it would be better not to touch them" alert="Note"  icon="svg-warning" color="red" %}

## Setting SFP vendor name
```sh
fw_setenv sfp_vendor_name "YOUR_SFP_VENDOR_NAME"
```

## Setting SFP part name
```sh
fw_setenv sfp_part_name "YOUR_SFP_PART_NAME"
```

## Setting SFP vendor revision
```sh
fw_setenv sfp_vendor_rev "YOUR_SFP_VENDOR_REV"
```

## Setting SFP part serial
```sh
fw_setenv sfp_part_serial "YOUR_SFP_PART_SERIAL"
```

## Setting SFP manufacturing date code
```sh
fw_setenv sfp_date_code "YOUR_SFP_DATE_CODE"
```

## Setting SFP vendor data
```sh
fw_setenv sfp_vendor_data "YOUR_SFP_VENDOR_DATA"
```

# List of firmwares and files
- [6BA1896SPLQA42_MODDED_ver5-1.img](https://mega.nz/file/5tNwFC5A#aXOlrZgLZ6sL81CKDOoBmXotLqDTJLQzpvokYU--bz0){: .btn } md5hash: c4f1bbe1695803d3d449f911f43d78ea
- [6BA1896SPLQA42_MODDED_ver4.img](https://mega.nz/file/Q4dFTBqQ#L8N7kPZtSJ7FtbtxRcnxNF-W3b9wDbCeJ82YgnK7moQ){: .btn } md5hash: 63b0cc790c0087a5a1197c89b502b002
- [6BA1896SPLQA42_MODDED_ver3.img](https://mega.nz/file/YkMwHSgR#7Sdk0LIBv3hLQJKQ4TBub4ABtwYyCAdP6Rl2C3RBztw){: .btn } md5hash: 90348ff0ccaad475cf14d9d0a056cf72