Skip to content

Commit 228a96b

Browse files
fix
1 parent 2034b94 commit 228a96b

1 file changed

Lines changed: 29 additions & 2 deletions

File tree

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

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ reboot
208208

209209
## Checking whether the connection with the OLT was successful (O5 state)
210210

211-
```shell
211+
```sh
212212
onu ploamsg
213213
```
214214

@@ -239,10 +239,37 @@ cp /dev/mtdX /tmp
239239
{% 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" %}
240240

241241
And in the computer shell:
242-
```shell
242+
```sh
243243
scp ONTUSER@192.168.1.10:/tmp/mtdX ./
244244
```
245245

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+
246273
## Flashing a new rootfs via SSH
247274

248275
{% include alert.html content="Only the inactive image can be flashed" alert="Info" icon="svg-info" color="blue" %}

0 commit comments

Comments
 (0)