summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimone <26844016+simonebortolin@users.noreply.github.com>2024-02-09 23:45:22 +0100
committerSimone <26844016+simonebortolin@users.noreply.github.com>2024-02-09 23:45:22 +0100
commita46eb06f9110974952d6df68afbf46b61fad38e5 (patch)
tree0ab94ecd83801b80eb69bcc8331ac10aa57e6902
parentupdate avm (diff)
downloadhack-gpon.github.io-a46eb06f9110974952d6df68afbf46b61fad38e5.tar
hack-gpon.github.io-a46eb06f9110974952d6df68afbf46b61fad38e5.tar.gz
hack-gpon.github.io-a46eb06f9110974952d6df68afbf46b61fad38e5.tar.bz2
hack-gpon.github.io-a46eb06f9110974952d6df68afbf46b61fad38e5.tar.lz
hack-gpon.github.io-a46eb06f9110974952d6df68afbf46b61fad38e5.tar.xz
hack-gpon.github.io-a46eb06f9110974952d6df68afbf46b61fad38e5.tar.zst
hack-gpon.github.io-a46eb06f9110974952d6df68afbf46b61fad38e5.zip
-rw-r--r--_router_pon/ont-zte-f6645p.md197
-rw-r--r--_router_pon/ont-zte.md5
2 files changed, 202 insertions, 0 deletions
diff --git a/_router_pon/ont-zte-f6645p.md b/_router_pon/ont-zte-f6645p.md
new file mode 100644
index 0000000..9832d08
--- /dev/null
+++ b/_router_pon/ont-zte-f6645p.md
@@ -0,0 +1,197 @@
+---
+title: ZTE F6645P
+has_children: false
+layout: default
+parent: ZTE
+---
+
+# Hardware Specifications
+
+| | |
+| ------------ | ----------------------------------------------------------------- |
+| Vendor/Brand | ZTE |
+| Model | F6645P |
+| ODM | ✅ |
+| CPU | ZTE |
+| CPU Clock | 266 MHz |
+| Chipset | ZTE |
+| Flash | |
+| RAM | |
+| System | |
+| 2.5GBaseT | Yes |
+| Optics | SC/APC or SC/UPC |
+| IP address | 192.168.1.1 |
+| Web Gui | ✅ user `admin`, password `admin` or user `user`, password `user` |
+| SSH | |
+| Telnet | ✅ [^1] |
+| Serial | ✅ |
+| Form Factor | ONT |
+
+## List of partitions
+
+| dev | size | erasesize | name |
+| ---- | -------- | --------- | ---------------- |
+| mtd0 | 01000000 | 00010000 | "whole flash" |
+| mtd1 | 00080000 | 00010000 | "uboot" |
+| mtd2 | 00700000 | 00010000 | "kernel0" |
+| mtd3 | 00700000 | 00010000 | "kernel1" |
+| mtd4 | 00010000 | 00010000 | "others" |
+| mtd5 | 00010000 | 00010000 | "parameter tags" |
+| mtd6 | 00160000 | 00010000 | "usercfg" |
+
+
+This ONT supports dual boot, as visible from the presence of `kernel0` and `kernel1`, which contain the rootfs.
+The boot images can be swapped with the following command:
+
+```sh
+upgradetest switchver X
+```
+
+Where `X` can be `0/1`, based on the image you want to boot from.
+
+
+You can also clone the currently running image into the other slot using this command:
+
+```sh
+syn_version
+```
+
+# Use
+
+## Enable Telnet
+{% include alert.html content="This is an external script ([ZTE Telnet enabler](https://github.com/douniwan5788/zte_modem_tools)), use at your own risk! Credentials don't survive at reboot!" alert="Note" icon="svg-info" color="blue" %}
+
+{% include alert.html content="For italian users, the script above only works on versions V6.0.10N40 (TIM) and V6.0.10P6N7 (OpenFiber)" alert="Note" icon="svg-info" color="blue" %}
+
+```sh
+python3 zte_factroymode.py --user admin --pass admin --ip 192.168.1.1 --port 80 telnet open
+```
+
+You should get this output and credentials to login over telnet:
+
+```sh
+trying user:"admin" pass:"admin"
+reset facTelnetSteps:
+reset OK!
+
+facStep 1:
+OK!
+
+facStep 2:
+OK!
+
+facStep 3:
+OK!
+
+facStep 4:
+OK!
+
+facStep 5:
+OK!
+
+done
+Username: 2W3iqFVt
+Password: Eqb8X8Qt
+```
+
+## Enable console redirection
+
+To see omcidebug messages on telnet, execute this command (just the first time of each connection):
+
+```sh
+redir printf
+```
+
+# GPON ONU status
+
+## Getting the operational status of the ONU
+
+To check the connection status, use the following command:
+```
+gpontest -gstate
+```
+`[gpontest] gpon state is [O5]` for O5 state
+
+## Getting OLT vendor information
+
+```sh
+sendcmd 132 omcidebug showmedata 131
+```
+
+This command will print the following output:
+
+```sh
+##################################
+MIB INFO:
+ ME CLASS: 131
+ DB NAME: olt_g, DBHandle: 32
+##################################
+
+<-----MeID[ 0x0000,0 ], Addr[ 0x19a2b1]----->
+ Vendorid:48 57 54 43
+ EquipmentID:00 00 00 00 00 00 00 00 00 00
+ 00 00 00 00 00 00 00 00 00 00
+ Version:31 30 00 00 00 00 00 00 00 00
+ 00 00 00 00
+ TimeofDay:00 00 00 00 00 00 00 00 00 00
+ 00 00 00 00
+---------------------------------------------------------------------
+```
+
+## Querying a particular OMCI ME
+
+```sh
+sendcmd 132 omcidebug showmedata ID_MIB (eg. 7 for Firmware version)
+```
+
+This command will print the following output:
+
+```sh
+
+##################################
+MIB INFO:
+ ME CLASS: 7
+ DB NAME: soft_image, DBHandle: 14
+##################################
+
+<-----MeID[ 0x0000,0 ], Addr[ 0x19a011]----->
+ Version:V6.0.10N41
+ Is committed:01
+ Is active:01
+ Is valid:01
+
+<-----MeID[ 0x0001,1 ], Addr[ 0x19a031]----->
+ Version:V6.0.10N39
+ Is committed:00
+ Is active:00
+ Is valid:01
+---------------------------------------------------------------------
+```
+
+# GPON/OMCI settings
+
+## Setting ONU GPON Serial Number
+
+{% include alert.html content="Both S/N and VID have to be changed. 2176 is for the VID (first 4 letters of the S/N) and 2177 is for the last 8 digits of the S/N" alert="Note" icon="svg-info" color="blue" %}
+```sh
+setmac 1 2176 ZTEG
+setmac 1 2177 AABBCCDD
+```
+
+## Setting ONU GPON PLOAM password
+
+{% include alert.html content="The PLOAM password is stored in the ASCII format." alert="Note" icon="svg-info" color="blue" %}
+This can be done easily via the web UI. To do it via the shell use:
+```sh
+setmac 1 2181 1234567890
+setmac 1 2178 1234567890
+```
+
+
+# Miscellaneous Links
+
+- [ZTE Telnet enabled](https://github.com/douniwan5788/zte_modem_tools)
+
+---
+
+[^2]: Credentials are randomly generated by zte_factroymode.py, they are not persistent and will change at reboot. \ No newline at end of file
diff --git a/_router_pon/ont-zte.md b/_router_pon/ont-zte.md
new file mode 100644
index 0000000..fff9ccb
--- /dev/null
+++ b/_router_pon/ont-zte.md
@@ -0,0 +1,5 @@
+---
+title: ZTE
+has_children: true
+layout: default
+--- \ No newline at end of file