Skip to content

Commit 706c3ff

Browse files
Add more info to Nokia G-010S-A (#211)
* add new info * update to new template * update Nokia G-010S-A Co-authored-by: BsCmOD <64871957+BsCmOD@users.noreply.github.com> --------- Co-authored-by: Simone Bortolin <simonebortolin@users.noreply.github.com> Co-authored-by: BsCmOD <64871957+BsCmOD@users.noreply.github.com>
1 parent 5ae6e9c commit 706c3ff

1 file changed

Lines changed: 219 additions & 3 deletions

File tree

_ont/ont-nokia-g-010s-a.md

Lines changed: 219 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,236 @@ The stick has a TTL 3.3v UART console (configured as 115200 8-N-1) that can be a
5757

5858
{% include alert.html content="Some USB TTL adapters label TX and RX pins the other way around: try to swap them if the connection doesn't work." alert="Note" icon="svg-warning" color="yellow" %}
5959

60-
# General Settings and Useful Commands
60+
## List of partitions
61+
62+
| dev | size | erasesize | name |
63+
| ----- | -------- | --------- | ------------- |
64+
| mtd0 | 00040000 | 00010000 | "uboot" |
65+
| mtd1 | 00080000 | 00010000 | "uboot_env" |
66+
| mtd2 | 00600000 | 00010000 | "linux" |
67+
| mtd3 | 004d81b6 | 00010000 | "rootfs" |
68+
| mtd4 | 000b0000 | 00010000 | "rootfs_data" |
69+
| mtd5 | 00600000 | 00010000 | "image1" |
70+
| mtd6 | 00100000 | 00010000 | "configfs" |
71+
| mtd7 | 00210000 | 00010000 | "logfs" |
72+
| mtd8 | 00010000 | 00010000 | "ri" |
73+
| mtd9 | 00010000 | 00010000 | "sfp" |
74+
| mtd10 | 00010000 | 00010000 | "ribackup" |
75+
76+
## List of software versions
77+
78+
- 3FE46398AFGA95
79+
- 3FE46398AFGB89
80+
- 3FE46398BFGA06
81+
- 3FE46398BFGB18
82+
- 3FE46398BFIB36
83+
- 3FE46398BGCB22
84+
- 3FE47111AFGB89
85+
- 3FE47111BFHB32
86+
87+
See more info on: [Firmwares G-010S-A](https://github.com/hwti/G-010S-A#firmwares)
88+
89+
# Usage
90+
91+
## Enable serial
92+
93+
```sh
94+
fw_setenv bootdelay 5
95+
fw_setenv asc0 0
96+
fw_setenv preboot
97+
```
98+
99+
# GPON ONU status
100+
101+
## Get the operational status of the ONU
102+
103+
```sh
104+
onu ploamsg
105+
```
106+
107+
## Get information of the OLT vendor
108+
109+
```sh
110+
omci_pipe.sh meg 131 0
111+
```
112+
113+
## Querying a particular OMCI ME
114+
115+
```sh
116+
omci_pipe.sh meg MIB_IDX ME_IN
117+
```
118+
Where `MIB_IDX` is the MIB ID and the `ME_IN` is the ME instance number
119+
120+
## Getting/Setting Speed LAN Mode
121+
122+
| Velue | Speed |
123+
| ----- | ---------------------------------- |
124+
| 4 | 1 Gbps / SGMII |
125+
| 5 | 2.5 Gbps / HSGMII with auto-neg on |
126+
127+
To enable the 2.5 Gbps / HSGMII with auto-neg on:
128+
129+
```sh
130+
fw_setenv sgmii_mode 5
131+
```
132+
133+
To remove the value (back to default):
134+
```sh
135+
fw_setenv sgmii_mode
136+
```
137+
138+
To get the (H)SGMII Mode:
139+
140+
```sh
141+
onu lanpsg 0
142+
```
143+
The `link_status` variable tells the current speed
144+
145+
# GPON/OMCI settings
146+
147+
## Enable parameters modification
148+
This setting must be inserted in order to performs the others parameters modification
149+
```sh
150+
ritool set OperatorID 0000
151+
```
152+
153+
## Getting/Setting ONU GPON Serial Number
154+
To check the current serial number:
155+
```sh
156+
onu gtcsng
157+
```
158+
159+
To set the current serial number:
160+
```sh
161+
ritool set MfrID ABCD
162+
ritool set G984Serial 012345678
163+
ritool set YPSerialNum 012345678
164+
```
165+
166+
## Getting/Setting ONU GPON PLOAM password
167+
To check the current password (the password field contains decimal values of ASCII characters):
168+
```sh
169+
onu gtccg
170+
```
171+
172+
The value can be changed using the web interface.
173+
174+
## Getting/Setting OMCI software version (ME 7)
175+
176+
Software verion must be changed by directly modifing firmware by using the patches which can be found in GitHub page of [Nokia G-010-A](https://github.com/hwti/G-010S-A) and adding a folder `0001_swversion` that contins a file `patch.sh`:
177+
```
178+
#!/bin/sh
179+
180+
set -e
181+
182+
ROOTFS=$1
183+
184+
echo "Changing to software version desidered"
185+
sed -i s/3FE46398BGCB22/3FE45655BOCK99/g "$ROOTFS/usr/etc/buildinfo"
186+
```
187+
Where `3FE46398BGCB22` is the current software version and `3FE45655BOCK99` the software version desidered
188+
189+
## Getting/Setting OMCI hardware version (ME 256)
190+
191+
```
192+
ritool set HardwareVersion 3FE47211EGAA
193+
ritool set ICS 01
194+
```
195+
196+
## Getting/Setting OMCI equipment ID (ME 257)
197+
198+
This ONT is designed to save nokia equipment ID, specifically to put the equipment ID of a Nokia G-010G-Q we need:
199+
200+
```sh
201+
ritool set CleiCode __________
202+
ritool set Mnemonic G-010G-Q__
203+
```
204+
Where `CleiCode` is the prefix and `Mnemonic` the postfix.
205+
206+
# Advanced settings
207+
208+
## Transferring files to the stick
209+
210+
{% include alert.html content="If you use a modern OpenSSH version (e.g. >= 8.8) you will have to use the legacy protocol and enable some deprecated algorithms: scp `-oKexAlgorithms=+diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-dss [...]`" alert="Info" icon="svg-info" color="blue" %}
211+
212+
```sh
213+
# scp rootfs.bin root@192.168.1.10:/tmp/
214+
```
215+
216+
## Backup of all partition
217+
218+
Make a backup of all partitions, an easy way is:
219+
- On the stick run:
220+
```sh
221+
cat /proc/mtd
222+
```
223+
- For each mtdX run in the lantiq shell:
224+
```sh
225+
cp /dev/mtdX /tmp
226+
```
227+
228+
{% include alert.html content="If you use a modern OpenSSH version (e.g. >= 8.8) you will have to use the legacy protocol and enable some deprecated algorithms: `scp -oKexAlgorithms=+diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-dss [...]`" alert="Info" icon="svg-info" color="blue" %}
229+
230+
And in the computer shell:
231+
```sh
232+
scp ONTUSER@192.168.1.10:/tmp/mtdX ./
233+
```
234+
235+
## Checking the currently active image
236+
237+
```sh
238+
upgradestatus
239+
```
240+
241+
## Setting management MAC
242+
243+
```
244+
ritool set MACAddress 12:34:56:78:9A:BC
245+
```
246+
247+
## Setting management IP
248+
249+
```
250+
ifconfig eth0:1 192.168.1.10 netmask 255.255.255.0
251+
```
252+
253+
## Flashing a new rootfs via SSH
254+
255+
{% include alert.html content="Only the inactive image can be flashed" alert="Info" icon="svg-info" color="blue" %}
256+
257+
{% include alert.html content="It is recommended to enable serial access via TTL" alert="Info" icon="svg-info" color="blue" %}
258+
259+
The following commands are used to flash a new rootfs to image1 and then boot to it
260+
```sh
261+
mtd write /tmp/rootfs.bin image1
262+
update_env_flag 1
263+
reboot
264+
```
61265

62266
## Disabling Dying Gasp
63267
```sh
64268
uci set gpon.gtc.nDyingGaspEnable='0'; uci commit gpon
65269
```
66270

67-
# HW Modding
271+
## Rebooting the ONU
272+
```sh
273+
reboot
274+
```
68275

69-
- [Nokia G-010S-A Pin 6 Iusse - Rsaxvc.net](https://rsaxvc.net/blog/2020/8/15/Nokia_G-010S-A_Pin_6_Issue.html)
276+
## Miscellaneous commands
277+
278+
```sh
279+
cat /configs/image_version
280+
cat /usr/etc/buildinfo
281+
ritool dump
282+
omciMgr
283+
```
70284

71285
# Miscellaneous Links
72286

73287
- [G-010S-A](https://github.com/hwti/G-010S-A)
74288
- [Usage GPON module SFP in Spain](https://forum.mikrotik.com/viewtopic.php?t=116364&start=300)
75289
- [Bypassing the HH3K up to 2.5Gbps using a BCM57810S NIC](https://www.dslreports.com/forum/r32230041-Internet-Bypassing-the-HH3K-up-to-2-5Gbps-using-a-BCM57810S-NIC)
290+
- [Nokia G-010S-A Pin 6 Iusse - Rsaxvc.net](https://rsaxvc.net/blog/2020/8/15/Nokia_G-010S-A_Pin_6_Issue.html)
291+
76292

0 commit comments

Comments
 (0)