Skip to content

Commit 2034b94

Browse files
Add more info to Nokia G-010S-P
1 parent 2d845e4 commit 2034b94

File tree

4 files changed

+214
-3
lines changed

4 files changed

+214
-3
lines changed

_ont/ont-nokia-g-010s-p-ymodem.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
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).
9+
10+
{: .text-center .fs-6 }
11+
<button id="flash-start-button" class="btn btn-blue" data-jtd-toggle="modal" data-jtd-target="#flash-modal">Start flash!</button>
12+
13+
<div id="flash-browser-error" style="display:none">{% include alert.html content="This browser is not compatible with the web-root procedure. See the <a href='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" %}

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

Lines changed: 196 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Nokia G-010S-P
3-
has_children: false
3+
has_children: true
44
layout: default
55
parent: Nokia
66
---
@@ -12,7 +12,7 @@ parent: Nokia
1212
| Vendor/Brand | Nokia |
1313
| Model | G-010S-P |
1414
| ODM | SourcePhotonics |
15-
| ODM Product Code | |
15+
| ODM Product Code | SPS-34-24T-HP-TDFO |
1616
| Chipset | Lantiq PEB98035 |
1717
| Flash | 16 MB |
1818
| RAM | 64 MB |
@@ -21,7 +21,7 @@ parent: Nokia
2121
| System | OpenWRT |
2222
| HSGMII | Yes |
2323
| Optics | SC/APC |
24-
| IP address | |
24+
| IP address | 192.168.1.10 |
2525
| Web Gui | Can be enabled |
2626
| SSH | ✅ user `ONTUSER`, password `SUGAR2A041` |
2727
| Telnet | |
@@ -64,6 +64,28 @@ The stick has a TTL 3.3v UART console (configured as 115200 8-N-1) that can be a
6464

6565
## List of partitions
6666

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+
6789
| dev | size | erasesize | name |
6890
| ---- | -------- | --------- | ------------- |
6991
| 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
7395
| mtd4 | 00370000 | 00010000 | "rootfs_data" |
7496
| mtd5 | 00800000 | 00010000 | "image1" |
7597

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+
76109
# General Settings and Useful Commands
77110

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" %}
113+
```sh
114+
fw_setenv bootdelay 5
115+
fw_setenv asc0 0
116+
fw_setenv preboot "gpio set 3;gpio input 2;gpio input 105;gpio input 106;gpio input 107;gpio input 108"
117+
```
118+
119+
{% 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.
134+
135+
{: .text-center .fs-6 }
136+
<button id="start-button" class="btn btn-blue" data-jtd-toggle="modal" data-jtd-target="#root-modal" disabled>Start emergency unlock!</button>
137+
{% include root_lantiq.html modelName="Nokia G-010S-P" unlockHuaweiShell=false %}
138+
139+
<div id="browser-error" style="display:none">{% include alert.html content="This browser is not compatible with the emergency unlock procedure. See the <a href='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):
158+
```sh
159+
onu gtccg
160+
```
161+
162+
To set the current password:
163+
```sh
164+
uci set gpon.ploam.nPassword="0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38 0x39"
165+
uci commit
166+
```
167+
168+
{% 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+
78199
## Disabling Dying Gasp
79200
```sh
80201
fw_setenv nDyingGaspEnable 0
81202
```
82203

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+
83215
## Enabling the Web UI
84216

85217
To activate the web-ui you can use the following guide on [dslreport](https://www.dslreports.com/forum/r32458588-).
86218

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" %}
222+
223+
```sh
224+
# scp rootfs.bin [email protected]:/tmp/
225+
```
226+
227+
## Backup of all partition
228+
229+
Make a backup of all partitions, an easy way is:
230+
- On the stick run:
231+
```sh
232+
cat /proc/mtd
233+
```
234+
- For each mtdX run in the lantiq shell:
235+
```sh
236+
cp /dev/mtdX /tmp
237+
```
238+
239+
{% 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" %}
240+
241+
And in the computer shell:
242+
```shell
243+
scp [email protected]:/tmp/mtdX ./
244+
```
245+
246+
## Flashing a new rootfs via SSH
247+
248+
{% 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.
267+
268+
```sh
269+
fw_setenv asc0 1
270+
fw_setenv preboot "gpio set 3;gpio input 100;gpio input 105;gpio input 106;gpio input 107;gpio input 108"
271+
```
272+
273+
In case you need to re-enable it issue the following commands from the bootloader (FALCON)
274+
275+
```sh
276+
FALCON => setenv asc0 0
277+
FALCON => saveenv
278+
```
279+
87280
# Miscellaneous Links
88281

89282
- [alcatel_lucent-lantiq_falcon](https://github.com/minhng99/alcatel_lucent-lantiq_falcon)

assets/img/g-010s-p.jpg

-388 KB
Loading

assets/img/o-010s-p.jpg

456 KB
Loading

0 commit comments

Comments
 (0)