summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimone <26844016+simonebortolin@users.noreply.github.com>2023-01-05 20:40:08 +0100
committerSimone <26844016+simonebortolin@users.noreply.github.com>2023-01-05 22:11:48 +0100
commitea6e8f7027bc4fe1eecf1eaf454163c831615e81 (patch)
treec5b79b9614f257df628dfd2aa6b03491d66fde08
parentUpdate ont-huawei-ma5671a.md (#92) (diff)
downloadhack-gpon.github.io-ea6e8f7027bc4fe1eecf1eaf454163c831615e81.tar
hack-gpon.github.io-ea6e8f7027bc4fe1eecf1eaf454163c831615e81.tar.gz
hack-gpon.github.io-ea6e8f7027bc4fe1eecf1eaf454163c831615e81.tar.bz2
hack-gpon.github.io-ea6e8f7027bc4fe1eecf1eaf454163c831615e81.tar.lz
hack-gpon.github.io-ea6e8f7027bc4fe1eecf1eaf454163c831615e81.tar.xz
hack-gpon.github.io-ea6e8f7027bc4fe1eecf1eaf454163c831615e81.tar.zst
hack-gpon.github.io-ea6e8f7027bc4fe1eecf1eaf454163c831615e81.zip
-rw-r--r--_ont/ont-huawei-ma5671a.md38
1 files changed, 37 insertions, 1 deletions
diff --git a/_ont/ont-huawei-ma5671a.md b/_ont/ont-huawei-ma5671a.md
index b28287d..91acfce 100644
--- a/_ont/ont-huawei-ma5671a.md
+++ b/_ont/ont-huawei-ma5671a.md
@@ -283,7 +283,7 @@ And in the lantiq shell:
cat /dev/mtdX | nc 192.168.1.11 1234
```
-## Flashing a new rootfs
+## Flashing a new rootfs via SSH
{% include alert.html content="Only the inactive image can be flashed" alert="Info" icon="svg-info" color="blue" %}
@@ -297,6 +297,42 @@ The following commands are used to flash a new rootfs to image1 and then boot to
{% 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" %}
+## Flashing a new rootfs via serial
+
+{% include alert.html content="Use this procedure only if you are unable to do the procedure from SSH" alert="Warning" icon="svg-danger" color="red" %}
+
+1. Connecting the molex-serial adapter and the serial to the computer as indicated in [Root Procedure](/ont-huawei-ma5671a-web-root)
+2. Open Tera Term (or any other programme capable of connecting to the serial terminal)
+3. Connect the SFP stick to the SFP molex, from the terminal you will have 5 seconds to lock the bootloader by doing a simple CTRL+C. Now upload the firmware image of the new rootfs partition to the stick with the command
+```
+FALCON => loadb 0x80800000
+```
+At this point it will appear:
+
+{% include image.html file="ma5671a-root-13.jpg" alt="shell requiring `mtd2` upload" caption="shell requiring `mtd2` upload" %}
+
+{:style="counter-reset:none"}
+1. From the teratem menu do `FILE` → `TRANSFER` → `KERMIT` → `SEND` → `[mtd2.bin]`.
+It will start uploading the file at a speed of about 3-4 KBps. Now you will have to wait more than half an hour for the upload to complete.
+
+1. Once finished, the image loaded on the stick must also be saved to the corresponding system partition (the first of the 2) with the commands
+```
+FALCON => sf probe 0
+FALCON => sf erase C0000 740000
+FALCON => sf write 80800000 C0000 740000
+```
+
+1. check that the stick is configured to boot from partition 0 (yes I know mtd2 goes on 0 and mtd5 goes on 1, complain to Laniq) with the command
+```
+FALCON => printenv committed_image
+```
+1. If it is 0, fine, otherwise configure partition 0 with the commands, and check if are 0.
+```
+FALCON => setenv committed_image 0
+FALCON => saveenv
+FALCON => printenv committed_image
+```
+
## Cloning of mtd1 (image 0) into mtd5 (image 1)
{% 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" %}