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
Copy file name to clipboardExpand all lines: _ont/ont-nokia-g-010s-p.md
+29-2Lines changed: 29 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -208,7 +208,7 @@ reboot
208
208
209
209
## Checking whether the connection with the OLT was successful (O5 state)
210
210
211
-
```shell
211
+
```sh
212
212
onu ploamsg
213
213
```
214
214
@@ -239,10 +239,37 @@ cp /dev/mtdX /tmp
239
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
240
241
241
And in the computer shell:
242
-
```shell
242
+
```sh
243
243
scp ONTUSER@192.168.1.10:/tmp/mtdX ./
244
244
```
245
245
246
+
## Checking the currently active image
247
+
248
+
```sh
249
+
# fw_printenv committed_image
250
+
```
251
+
252
+
## Booting to a different image
253
+
254
+
255
+
```sh
256
+
# fw_setenv committed_image 0|1
257
+
# fw_setenv image0|1_is_valid 1
258
+
```
259
+
260
+
## Cloning of mtd1 (image 0) into mtd5 (image 1)
261
+
262
+
{% include alert.html content="Image 0 can be flashed to image 1, while image 1 cannot be flashed to image 0 because it has larger rootfs_data" alert="Warning" icon="svg-warning" color="yellow" %}
263
+
264
+
The following commands are used to clone image0 to image1 and then boot to it
265
+
```sh
266
+
# cat /dev/mtd2 > /tmp/mtd2.bin
267
+
# mtd -e image1 write /tmp/mtd2.bin image1
268
+
# fw_setenv committed_image 1
269
+
# fw_setenv image1_is_valid 1
270
+
# reboot
271
+
```
272
+
246
273
## Flashing a new rootfs via SSH
247
274
248
275
{% include alert.html content="Only the inactive image can be flashed" alert="Info" icon="svg-info" color="blue" %}
0 commit comments