summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimone Bortolin <simonebortolin@users.noreply.github.com>2023-01-19 00:58:31 +0100
committerSimone Bortolin <simonebortolin@users.noreply.github.com>2023-01-19 00:58:31 +0100
commit81f6b7ab91d908d9c5d97a903da15d7d68f37efb (patch)
tree6081d7c29b1aee5caa5182aafa99ef1635fae70f
parentfix HiSense (#128) (diff)
downloadhack-gpon.github.io-81f6b7ab91d908d9c5d97a903da15d7d68f37efb.tar
hack-gpon.github.io-81f6b7ab91d908d9c5d97a903da15d7d68f37efb.tar.gz
hack-gpon.github.io-81f6b7ab91d908d9c5d97a903da15d7d68f37efb.tar.bz2
hack-gpon.github.io-81f6b7ab91d908d9c5d97a903da15d7d68f37efb.tar.lz
hack-gpon.github.io-81f6b7ab91d908d9c5d97a903da15d7d68f37efb.tar.xz
hack-gpon.github.io-81f6b7ab91d908d9c5d97a903da15d7d68f37efb.tar.zst
hack-gpon.github.io-81f6b7ab91d908d9c5d97a903da15d7d68f37efb.zip
-rw-r--r--_ont/luna-sdk-userful-commands.md56
-rw-r--r--_ont/ont-odi-realtek-dfp-34g-2c2.md44
-rw-r--r--_ont/ont-odi-realtek-dfp-34x-2c2.md45
-rw-r--r--_ont/ont-technicolor-afm0002.md16
-rw-r--r--_ont/ont-technicolor-afm0003.md41
5 files changed, 95 insertions, 107 deletions
diff --git a/_ont/luna-sdk-userful-commands.md b/_ont/luna-sdk-userful-commands.md
index ee899d1..a4ac5f3 100644
--- a/_ont/luna-sdk-userful-commands.md
+++ b/_ont/luna-sdk-userful-commands.md
@@ -1,5 +1,21 @@
# General Settings and Useful Commands
+## Useful files
+- `/var/config/lastgood.xml` - Contains the user portion of the configuration
+{% if include.lastgoodHs %}
+- `/var/config/lastgood-hs.xml` - Contains the "hardware" configuration (which _should not_ be changed)
+{% endif %}
+- `/tmp/omcilog` - OMCI messages logs (must be enabeled, see below)
+
+## Useful binaries
+- `{{ include.flash }}` - Used to manipulate the config files in a somewhat safe manner
+- `xmlconfig` - Used for low-level manipulation of the XML config files. Called by `{{ include.flash }}`
+- `nv` - Used to manipulate nvram storage, including persistent config entries via `nv setenv`/`nv getenv`
+- `omcicli` - Used to interact with the running OMCI daemon
+- `omci_app` - The OMCI daemon
+- `diag` - Used to run low-level diagnostics commands on the stick
+
+
## Getting/Setting the ONT's S/N
```sh
# {{ include.flash }} get GPON_SN
@@ -44,6 +60,46 @@ sw_version1=V1_7_8_210412
# reboot
```
+## Getting/Setting the ONT Vendor ID
+
+{% include alert.html content="This may need the OMCI_OLT_MODE value to be set to 3 to work" alert="Note" icon="svg-info" color="blue" %}
+
+```sh
+# flash get PON_VENDOR_ID
+PON_VENDOR_ID=ZTEG
+# flash set PON_VENDOR_ID HWTC
+```
+
+## Getting/Settng the ONT Custom software version
+{% if include.customSwVersionAlert %}
+ {% include alert.html content=include.customSwVersionAlert alert="Note" icon="svg-info" color="blue" %}
+{% else %}
+ {% include alert.html content="This needs the OMCI_OLT_MODE value to be set to 3" alert="Note" icon="svg-info" color="blue" %}
+{% endif %}
+
+```sh
+# nv setenv sw_custom_version0 YOURFIRSTSWVER
+# nv setenv sw_custom_version1 YOURSECONDSWVER
+```
+
+## Getting/Setting a custom HW Version
+{% include alert.html content="This may need the OMCI_OLT_MODE value to be set to 3 to work" alert="Note" icon="svg-info" color="blue" %}
+
+```sh
+# {{ include.flash }} get HW_HWVER
+HW_HWVER=V2.0
+# {{ include.flash }} set HW_HWVER MYHWVERSION
+```
+
+## Getting/Setting a custom ONT Equipment ID
+{% include alert.html content="This may need the OMCI_OLT_MODE value to be set to 3 to work" alert="Note" icon="svg-info" color="blue" %}
+
+```sh
+# {{ include.flash }} get GPON_ONU_MODEL
+GPON_ONU_MODEL=DFP-34X-2C2
+# {{ include.flash }} set GPON_ONU_MODEL DFP-34X-XXX
+```
+
## Querying a particular OMCI ME
```sh
# omcicli mib get MIB_IDX
diff --git a/_ont/ont-odi-realtek-dfp-34g-2c2.md b/_ont/ont-odi-realtek-dfp-34g-2c2.md
index f58def1..f85cdff 100644
--- a/_ont/ont-odi-realtek-dfp-34g-2c2.md
+++ b/_ont/ont-odi-realtek-dfp-34g-2c2.md
@@ -33,14 +33,16 @@ ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -oCiphers=+3des-cbc admin@192.16
{% include image.html file="realtek-dfp-34g-2c2.jpg" alt="ODI Realtek DFP-34X-C2C" caption="ODI Realtek DFP-34X-C2C" %}
-
## List of software versions
+- V1.0-220923
+- V1.0-220817
- V1.0-220530
-- V1.0-220414
+- V1.0-220414
- V1.0-220304
+- V1.0-210702
## List of firmwares and files
-- [Firmware repository by Anime4000](https://github.com/Anime4000/RTL960x/tree/main/Firmware/V2801F)
+- [Firmware repository by Anime4000](https://github.com/Anime4000/RTL960x/tree/main/Firmware/DFP-34X-2C2)
The reccomended version are `M114_sfp_ODI_hybrid_220527.tar` or `M114_sfp_ODI_hybrid_220916.tar` because it has working VLAN translation.
@@ -78,42 +80,6 @@ The stick has a TTL 3.3v UART console (configured as 115200 8-N-1) that can be a
{% include_relative luna-sdk-userful-commands.md flash='flash' flash='flash' ploam='hex' %}
-## Getting/Setting the ONT Vendor ID
-
-{% include alert.html content="This may need the OMCI_OLT_MODE value to be set to 3 to work" alert="Note" icon="svg-info" color="blue" %}
-
-```sh
-# flash get PON_VENDOR_ID
-PON_VENDOR_ID=ZTEG
-# flash set PON_VENDOR_ID HWTC
-```
-
-## Getting/Settng the ONT Custom software version
-{% include alert.html content="This needs the OMCI_OLT_MODE value to be set to 3 and firmware 220530 as modded by stich86" alert="Note" icon="svg-info" color="blue" %}
-
-```sh
-# nv setenv sw_custom_version0 YOURFIRSTSWVER
-# nv setenv sw_custom_version1 YOURSECONDSWVER
-```
-
-## Getting/Setting a custom HW Version
-{% include alert.html content="This may need the OMCI_OLT_MODE value to be set to 3 to work" alert="Note" icon="svg-info" color="blue" %}
-
-```sh
-# flash get HW_HWVER
-HW_HWVER=V2.0
-# flash set HW_HWVER MYHWVERSION
-```
-
-## Getting/Setting a custom ONT Equipment ID
-{% include alert.html content="This may need the OMCI_OLT_MODE value to be set to 3 to work" alert="Note" icon="svg-info" color="blue" %}
-
-```sh
-# flash get GPON_ONU_MODEL
-GPON_ONU_MODEL=DFP-34X-2C2
-# flash set GPON_ONU_MODEL DFP-34X-XXX
-```
-
# Known Bugs
- Auto-sensing mode to switch between SGMII/HiSGMII
diff --git a/_ont/ont-odi-realtek-dfp-34x-2c2.md b/_ont/ont-odi-realtek-dfp-34x-2c2.md
index f20cfc5..12a1dda 100644
--- a/_ont/ont-odi-realtek-dfp-34x-2c2.md
+++ b/_ont/ont-odi-realtek-dfp-34x-2c2.md
@@ -35,12 +35,15 @@ ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -oCiphers=+3des-cbc admin@192.16
## List of software versions
+- V1.0-220923
+- V1.0-220817
- V1.0-220530
-- V1.0-220414
+- V1.0-220414
- V1.0-220304
+- V1.0-210702
## List of firmwares and files
-- [Firmware repository by Anime4000](https://github.com/Anime4000/RTL960x/tree/main/Firmware/V2801F)
+- [Firmware repository by Anime4000](https://github.com/Anime4000/RTL960x/tree/main/Firmware/DFP-34X-2C2)
The reccomended version are `M114_sfp_ODI_hybrid_220527.tar` or `M114_sfp_ODI_hybrid_220916.tar` because it has working VLAN translation.
@@ -76,43 +79,7 @@ The stick has a TTL 3.3v UART console (configured as 115200 8-N-1) that can be a
{% include alert.html content="Some USB TTL adapters label TX and RX pins the other way around: try to swap them if the connection doesn't work." alert="Note" icon="svg-warning" color="yellow" %}
-{% include_relative luna-sdk-userful-commands.md flash='flash' ploam='hex' %}
-
-## Getting/Setting the ONT Vendor ID
-
-{% include alert.html content="This may need the OMCI_OLT_MODE value to be set to 3 to work" alert="Note" icon="svg-info" color="blue" %}
-
-```sh
-# flash get PON_VENDOR_ID
-PON_VENDOR_ID=ZTEG
-# flash set PON_VENDOR_ID HWTC
-```
-
-## Getting/Settng the ONT Custom software version
-{% include alert.html content="This needs the OMCI_OLT_MODE value to be set to 3 and firmware 220530 as modded by stich86" alert="Note" icon="svg-info" color="blue" %}
-
-```sh
-# nv setenv sw_custom_version0 YOURFIRSTSWVER
-# nv setenv sw_custom_version1 YOURSECONDSWVER
-```
-
-## Getting/Setting a custom HW Version
-{% include alert.html content="This may need the OMCI_OLT_MODE value to be set to 3 to work" alert="Note" icon="svg-info" color="blue" %}
-
-```sh
-# flash get HW_HWVER
-HW_HWVER=V2.0
-# flash set HW_HWVER MYHWVERSION
-```
-
-## Getting/Setting a custom ONT Equipment ID
-{% include alert.html content="This may need the OMCI_OLT_MODE value to be set to 3 to work" alert="Note" icon="svg-info" color="blue" %}
-
-```sh
-# flash get GPON_ONU_MODEL
-GPON_ONU_MODEL=DFP-34X-2C2
-# flash set GPON_ONU_MODEL DFP-34X-XXX
-```
+{% include_relative luna-sdk-userful-commands.md flash='flash' ploam='hex' customSwVersionAlert='"This needs the OMCI_OLT_MODE value to be set to 3 and firmware 220530 as modded by stich86"' %}
# Known Bugs
diff --git a/_ont/ont-technicolor-afm0002.md b/_ont/ont-technicolor-afm0002.md
index 41dde55..a956ff0 100644
--- a/_ont/ont-technicolor-afm0002.md
+++ b/_ont/ont-technicolor-afm0002.md
@@ -82,20 +82,6 @@ This stick supports dual boot.
`k0` and `r0` respectively contain the kernel and firmware of the first image, `k1` and `r1` the kernel and firmware of the second one
-# List of firmwares and files
-## Useful files
-- `/var/config/lastgood.xml` - Contains the user portion of the configuration
-- `/var/config/lastgood-hs.xml` - Contains the "hardware" configuration (which _should not_ be changed)
-- `/tmp/omcilog` - OMCI messages logs (must be enabeled, see below)
-
-## Useful binaries
-- `/etc/scripts/flash` - Used to manipulate the config files in a somewhat safe manner
-- `xmlconfig` - Used for low-level manipulation of the XML config files. Called by `flash`
-- `nv` - Used to manipulate nvram storage, including persistent config entries via `nv setenv`/`nv getenv`
-- `omcicli` - Used to interact with the running OMCI daemon
-- `omci_app` - The OMCI daemon
-- `diag` - Used to run low-level diagnostics commands on the stick
-
{% include_relative luna-sdk-userful-commands.md flash='/etc/scripts/flash' ploam='ascii' %}
## Enabling the Web UI
@@ -109,7 +95,7 @@ From the stick to the PC:
```sh
# ssh admin@192.168.2.1 "cat /tmp/omcilog" > omcilog.log
```
-From the PC to the stick
+From the PC to the stick:
```sh
# cat lastgood.xml | ssh admin@192.168.2.1 "cat > /var/config/lastgood.xml"
```
diff --git a/_ont/ont-technicolor-afm0003.md b/_ont/ont-technicolor-afm0003.md
index 30eedea..253df20 100644
--- a/_ont/ont-technicolor-afm0003.md
+++ b/_ont/ont-technicolor-afm0003.md
@@ -70,20 +70,6 @@ This stick supports dual boot.
`k0` and `r0` respectively contain the kernel and firmware of the first image, `k1` and `r1` the kernel and firmware of the second one
-# List of firmwares and files
-## Useful files
-- `/var/config/lastgood.xml` - Contains the user portion of the configuration
-- `/var/config/lastgood-hs.xml` - Contains the "hardware" configuration (which _should not_ be changed)
-- `/tmp/omcilog` - OMCI messages logs (must be enabeled, see below)
-
-## Useful binaries
-- `/etc/scripts/flash` - Used to manipulate the config files in a somewhat safe manner
-- `xmlconfig` - Used for low-level manipulation of the XML config files. Called by `flash`
-- `nv` - Used to manipulate nvram storage, including persistent config entries via `nv setenv`/`nv getenv`
-- `omcicli` - Used to interact with the running OMCI daemon
-- `omci_app` - The OMCI daemon
-- `diag` - Used to run low-level diagnostics commands on the stick
-
{% include_relative luna-sdk-userful-commands.md flash='/etc/scripts/flash' ploam='ascii' %}
## Enabling the Web UI
@@ -91,6 +77,33 @@ This stick supports dual boot.
# /bin/iptables -D INPUT -p tcp --dport 80 -j DROP
```
+## Transfering files from/to the stick
+Works with binary files too, just run md5sum on source and destination to make sure you are not corrupting anything...
+From the stick to the PC:
+```sh
+# tftp <IP>
+tftp> put <filename> <directory>
+tftp> q
+```
+From the PC to the stick:
+```sh
+# tftp <IP>
+tftp> get <filename>
+tftp> q
+```
+
+## Getting/Setting the MTU
+Getting/Setting the MTU of the L2 bridge
+```sh
+diag
+RTK.0> switch get max-pkt-len port all
+Port Speed
+----------
+0 1538
+2 2031
+RTK.0> switch set max-pkt-len port all length 9000
+```
+
# Miscellaneous Links
- [omcilog2pcap](https://github.com/hack-gpon/omcilog2pcap)