You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Flash firmware for Nokia G-010S-P (with root)
3
+
has_children: false
4
+
parent: Nokia G-010S-P
5
+
layout: default
6
+
---
7
+
8
+
This procedure flashes the firmware in the stick via serial. You have to get firmware to flash, some are listed on the [Huawei MA5671A page](/ont-huawei-ma5671a).
<divid="flash-browser-error"style="display:none">{% include alert.html content="This browser is not compatible with the web-root procedure. See the <ahref='https://developer.mozilla.org/en-US/docs/Web/API/Web_Serial_API#browser_compatibility'>Browser compatibility</a>" alert="Note" icon="svg-warning" color="red" %}</div>
14
+
<noscript>
15
+
{% include alert.html content="Your browser does not support JavaScript!" alert="Note" icon="svg-warning" color="red" %}
16
+
</noscript>
17
+
18
+
{% include ymodem_lantiq.html modelName="Nokia G-010S-P" %}
Copy file name to clipboardExpand all lines: _ont/ont-nokia-g-010s-p.md
+196-3Lines changed: 196 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Nokia G-010S-P
3
-
has_children: false
3
+
has_children: true
4
4
layout: default
5
5
parent: Nokia
6
6
---
@@ -12,7 +12,7 @@ parent: Nokia
12
12
| Vendor/Brand | Nokia |
13
13
| Model | G-010S-P |
14
14
| ODM | SourcePhotonics |
15
-
| ODM Product Code ||
15
+
| ODM Product Code |SPS-34-24T-HP-TDFO|
16
16
| Chipset | Lantiq PEB98035 |
17
17
| Flash | 16 MB |
18
18
| RAM | 64 MB |
@@ -21,7 +21,7 @@ parent: Nokia
21
21
| System | OpenWRT |
22
22
| HSGMII | Yes |
23
23
| Optics | SC/APC |
24
-
| IP address ||
24
+
| IP address |192.168.1.10|
25
25
| Web Gui | Can be enabled |
26
26
| SSH | ✅ user `ONTUSER`, password `SUGAR2A041`|
27
27
| Telnet ||
@@ -64,6 +64,28 @@ The stick has a TTL 3.3v UART console (configured as 115200 8-N-1) that can be a
64
64
65
65
## List of partitions
66
66
67
+
Partition layouts change depending on which image is booted, in particular:
68
+
69
+
When booting image0:
70
+
```
71
+
mtd2 ---> image0 (linux)
72
+
mtd5 --> image1
73
+
mtd3 --> rootfs
74
+
mtd4 --> rootfs_data
75
+
```
76
+
When booting image0:
77
+
```
78
+
mtd2 ---> image0
79
+
mtd3 --> image1 (linux)
80
+
mtd4 --> rootfs
81
+
mtd5 --> rootfs_data
82
+
```
83
+
84
+
For more info [XPONos partition layout](https://github.com/XPONos/linux_lantiq-falcon/commit/456f68f69a84c846a542a9f0ea47c37476535dcb).
85
+
86
+
87
+
### When booting from image0
88
+
67
89
| dev | size | erasesize | name |
68
90
| ---- | -------- | --------- | ------------- |
69
91
| mtd0 | 00040000 | 00010000 | "uboot" |
@@ -73,17 +95,188 @@ The stick has a TTL 3.3v UART console (configured as 115200 8-N-1) that can be a
73
95
| mtd4 | 00370000 | 00010000 | "rootfs_data" |
74
96
| mtd5 | 00800000 | 00010000 | "image1" |
75
97
98
+
### When booting from image1
99
+
100
+
| dev | size | erasesize | name |
101
+
| ---- | -------- | --------- | ------------- |
102
+
| mtd0 | 00040000 | 00010000 | "uboot" |
103
+
| mtd1 | 00080000 | 00010000 | "uboot_env" |
104
+
| mtd2 | 00740000 | 00010000 | "image0" |
105
+
| mtd3 | 00800000 | 00010000 | "linux" |
106
+
| mtd4 | 006d8077 | 00010000 | "rootfs" |
107
+
| mtd5 | 00410000 | 00010000 | "rootfs_data" |
108
+
76
109
# General Settings and Useful Commands
77
110
111
+
## Bootloader unlock from shell
112
+
{% include alert.html content="It is strongly recommended that you unlock the bootloader before making any major changes to the firmware." alert="Warning" icon="svg-warning" color="yellow" %}
{% include alert.html content="In general, the last command is not needed because by default serial is already enabled on SFP PINs." alert="Info" icon="svg-info" color="blue" %}
120
+
121
+
## Emergency bootloader unlock via TTL serial
122
+
123
+
{% include alert.html content="This is not necessary if you have already unlocked the bootloader from the shell as specified above." alert="Warning" icon="svg-warning" color="yellow" %}
124
+
125
+
If for some reason you are in the situation where you do not have a bootable firmware on your SFP stick you can do an emergency unlock via TTL serial.
126
+
127
+
To perform the emergency unlock is necessary to have:
128
+
- TTL-USB adapter
129
+
- SFP adapter to connect the TTL-USB cables to the SFP stick
130
+
131
+
The electrical connections are the same as those of the Huawei MA5671A, see the [Huawei root guide](/ont-huawei-ma5671a-root-web) for accurate details on how to connect the TTL-USB to the SFP adapter.
132
+
133
+
When you are ready with everything plugged in you need to press the button below. A window will open that will execute the emergency unlock.
{% include root_lantiq.html modelName="Nokia G-010S-P" unlockHuaweiShell=false %}
138
+
139
+
<divid="browser-error"style="display:none">{% include alert.html content="This browser is not compatible with the emergency unlock procedure. See the <ahref='https://developer.mozilla.org/en-US/docs/Web/API/Web_Serial_API#browser_compatibility'>Browser compatibility</a>" alert="Note" icon="svg-warning" color="red" %}</div>
140
+
<noscript>
141
+
{% include alert.html content="Your browser does not support JavaScript!" alert="Note" icon="svg-warning" color="red" %}
142
+
</noscript>
143
+
144
+
145
+
## Getting and Setting S/N
146
+
To check the current serial number:
147
+
```sh
148
+
onu gtcsng
149
+
```
150
+
151
+
To set the current serial number:
152
+
```sh
153
+
onu gtcsns ABCD12345678
154
+
```
155
+
156
+
## Getting and Setting PLOAM Password
157
+
To check the current password (the password field contains decimal values of ASCII characters):
{% include alert.html content="There is also the `onu gtc_password_set` command to set the ploam password but it does not seem to work." alert="Info" icon="svg-info" color="blue" %}
169
+
170
+
171
+
## Getting/Setting Speed LAN Mode
172
+
173
+
The known speed values are as follows:
174
+
175
+
| Value | Speed |
176
+
| ----- | -------- |
177
+
| 4 | 1 Gbps |
178
+
| 5 | 2.5 Gbps |
179
+
180
+
To set the (H)SGMII Mode:
181
+
182
+
```sh
183
+
fw_setenv sgmii_mode 5
184
+
```
185
+
186
+
To remove the value (back to default):
187
+
```sh
188
+
fw_setenv sgmii_mode
189
+
```
190
+
191
+
To get the (H)SGMII Mode:
192
+
193
+
```sh
194
+
onu lanpsg 0
195
+
```
196
+
197
+
The `link_status` value shows the speed.
198
+
78
199
## Disabling Dying Gasp
79
200
```sh
80
201
fw_setenv nDyingGaspEnable 0
81
202
```
82
203
204
+
## Rebooting the ONU
205
+
```sh
206
+
reboot
207
+
```
208
+
209
+
## Checking whether the connection with the OLT was successful (O5 state)
210
+
211
+
```shell
212
+
onu ploamsg
213
+
```
214
+
83
215
## Enabling the Web UI
84
216
85
217
To activate the web-ui you can use the following guide on [dslreport](https://www.dslreports.com/forum/r32458588-).
86
218
219
+
## Transferring files to the stick
220
+
221
+
{% 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" %}
{% 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" %}
{% include alert.html content="Only the inactive image can be flashed" alert="Info" icon="svg-info" color="blue" %}
249
+
250
+
The following commands are used to flash a new rootfs to image1 and then boot to it
251
+
```sh
252
+
# mtd -e image1 write /tmp/rootfs.bin image1
253
+
# fw_setenv committed_image 1
254
+
# fw_setenv image1_is_valid 1
255
+
# reboot
256
+
```
257
+
258
+
{% include alert.html content="Some OLTs don't like when ONTs don't boot from image 0, therefore the previous procedure must be preceded by the following procedure with inverted images, as to clone image 1 into image 0" alert="Warning" icon="svg-warning" color="yellow" %}
259
+
260
+
## Flashing a new rootfs via Serial
261
+
262
+
If you wish to change the firmware via serial, we recommend using the web app: [Web Serial Flash](/ont-nokia-g-010s-p-ymodem)
263
+
264
+
# TX Fault / Serial
265
+
266
+
The stick stays in a perpetual "TX Fault" state since the same SFP pin is used for both serial and TX Fault signaling, if that causes you issues (normally it shouldn't) you can issue the commands below to disable it. Note that it will disable both the TX Fault signal and Serial on the stick after boot.
0 commit comments