summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiccolò Belli <niccolo.belli@linuxsystems.it>2022-11-05 23:34:29 +0100
committerSimone Bortolin <simonebortolin@users.noreply.github.com>2022-12-19 23:09:22 +0100
commite8fa3d2b0df0f40b48822564bd21bc4ba0f55667 (patch)
tree378eafbceea69e65825b20cfb6f9abdae85ec95e
parenttypo fix ont-nokia-g-010s (diff)
downloadhack-gpon.github.io-e8fa3d2b0df0f40b48822564bd21bc4ba0f55667.tar
hack-gpon.github.io-e8fa3d2b0df0f40b48822564bd21bc4ba0f55667.tar.gz
hack-gpon.github.io-e8fa3d2b0df0f40b48822564bd21bc4ba0f55667.tar.bz2
hack-gpon.github.io-e8fa3d2b0df0f40b48822564bd21bc4ba0f55667.tar.lz
hack-gpon.github.io-e8fa3d2b0df0f40b48822564bd21bc4ba0f55667.tar.xz
hack-gpon.github.io-e8fa3d2b0df0f40b48822564bd21bc4ba0f55667.tar.zst
hack-gpon.github.io-e8fa3d2b0df0f40b48822564bd21bc4ba0f55667.zip
-rw-r--r--_ont/ont-huawei-ma5671a-root.md65
1 files changed, 15 insertions, 50 deletions
diff --git a/_ont/ont-huawei-ma5671a-root.md b/_ont/ont-huawei-ma5671a-root.md
index 6b23e9e..a78279f 100644
--- a/_ont/ont-huawei-ma5671a-root.md
+++ b/_ont/ont-huawei-ma5671a-root.md
@@ -12,24 +12,28 @@ layout: default
| 3.3V | red | pin #15 and #16 |
| TX | orange | pin #2 |
| RX | yellow | pin #7 |
-| GND | green | pin #10 |
+| GND | green | pin #14 |
{% include alert.html content="Use GND wire as ON/OFF switch, otherwise there will be a slight delay before data is displayed on the console (putty/TeraTerm)." alert="Important" icon="svg-warning" color="yellow" %}
+{% include alert.html content="Try PIN 10 or other GND PINs if it doesn't work with 14." alert="Note" icon="svg-warning" color="yellow" %}
+
+{% include alert.html content="Some USB TTL adapters label TX and RX pins the other way around: try to swap them if it doesn't work." alert="Note" icon="svg-warning" color="yellow" %}
+
{:style="counter-reset:none"}
-2. Install python and `pyserial` with `pip`
+1. Install python and `pyserial` with `pip`
```shell
pip install pyserial
```
-3. Make the connections as shown to a TTL adapter except for GND (which remains detached and is used as a switch)
+1. Make the connections as shown to a TTL adapter except for GND (which remains detached and is used as a switch)
{% include image.html file="ma5671a-root-1.jpg" alt="Example of how the sfp-ttl connection should look like" caption="Example of how the sfp-ttl connection should look like" %}
{% include image.html file="new-root-procedure\board-molex-arduino.jpg" alt="Example of how the sfp-ttl connection should look like with a custom board" caption="Example of how the sfp-ttl connection should look like with a custom board" %}
{% include image.html file="ma5671a-root-2.jpg" alt="Molex SFP" caption="Molex SFP" %}
{:style="counter-reset:none"}
-4. Open Tera Term (or other serial terminal emulator), find the correct serial port of the TTL adapter, change the port on the script on line 7 instead of `COM8`.
-5. After this, run the following python script and connect the GND pin:
+1. Open Tera Term (or other serial terminal emulator), find the correct serial port of the TTL adapter, change the port on the script on line 7 instead of `COM8`.
+1. After this, run the following python script and connect the GND pin:
```py
import sys
@@ -87,13 +91,13 @@ except (KeyboardInterrupt, SystemExit):
```
{:style="counter-reset:none"}
-5. Reboot the stick
-6. Open Tera Term (or other serial terminal emulator), after load press `enter` to activate the console
+1. Reboot the stick
+1. Open Tera Term (or other serial terminal emulator), after load press `enter` to activate the console
{% include image.html file="new-root-procedure\press-enter.jpg" alt="Press enter for activate the console" caption="Press enter for activate the console" %}
{:style="counter-reset:none"}
-7. With `sed` change the default shell from `/opt/lantiq/bin/minishell` to `/bin/ash` the file `/etc/passwd`:
+1. With `sed` change the default shell from `/opt/lantiq/bin/minishell` to `/bin/ash` the file `/etc/passwd`:
```shell
sed -i "s|/opt/lantiq/bin/minishell|/bin/ash|g" /etc/passwd
@@ -111,12 +115,12 @@ sed -i "s|/opt/lantiq/bin/minishell|/bin/ash|g" /etc/passwd
{% include alert.html content="The cause of these kernel panics could be insufficient power supply." alert="Info" icon="svg-info" color="blue" %}
{:style="counter-reset:none"}
-8. Reboot it this time connected to the router with cage or mediaconverter, with the port set to an IP on the 192.168.1.0/24 subnet (the stick has the IP 192.168.1.10)
+1. Reboot it this time connected to the router with cage or mediaconverter, with the port set to an IP on the 192.168.1.0/24 subnet (the stick has the IP 192.168.1.10)
{% include alert.html content="If your subnet is 192.168.1.0/24 make sure you have no ip conflicts." alert="Note" icon="svg-warning" color="yellow" %}
{:style="counter-reset:none"}
-9. Run the terminal and login to the stick with ssh
+1. Run the terminal and login to the stick with ssh
```shell
ssh root@192.168.1.10
@@ -124,46 +128,7 @@ ssh root@192.168.1.10
The password is `admin123`.
-{:style="counter-reset:none"}
-10. Make a backup of all partitions, an easy way is:
-- On the stick run:
-```shell
-cat /proc/mtd
-```
-- For each mtdX run, on computer shell:
-```shell
-nc -l -p 1234 > mtdX.bin
-```
-And in the lantiq shell:
-```shell
-cat /dev/mtdX | nc 192.168.1.11 1234
-```
-
-{% include alert.html content="Replace 192.168.1.11 with you machine IP's address" alert="Info" icon="svg-info" color="blue" %}
-
-{:style="counter-reset:none"}
-11. upload the mtd5 image in `/tmp` whit the command
-```
-scp mtd5.bin root@192.168.1.10:/tmp/
-```
-then write the mtd5 file it into the second partition (the 1) with the command:
-```
-mtd -e image1 write mtd5.bin image1
-```
-12. change the `committed` variabile with
-```
-fw_setenv committed_image 1
-fw_printenv committed_image
-```
-13. upload the mtd2 image in `/tmp` whit the command
-```
-scp mtd2.bin root@192.168.1.10:/tmp/
-```
-then write the mtd2 file it into the second partition (the 0) with the command:
-```
-mtd -e image0 write mtd2.bin image0
-```
-{% include alert.html content="You could also have done it as a serial, but from here it is much quicker with SSH" 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 enable some deprecated algorithms: ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-dss [...]" alert="Info" icon="svg-info" color="blue" %}
# Miscellaneous Links
- [Come avere i 2.5 Gbps su un unico dispositivo senza il Fastgate](https://forum.fibra.click/d/17836-come-avere-i-25-gbps-su-un-unico-dispositivo-senza-il-fastgate)