summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimone <26844016+simonebortolin@users.noreply.github.com>2023-05-27 15:56:50 +0200
committerGitHub <noreply@github.com>2023-05-27 15:56:50 +0200
commit5ae6e9cd9e8d1aecd2511e292cf242a619863ad5 (patch)
tree6512b39eb7eaaf06fa48f2fe0bde1b23dc1da5ee
parentUpdated flash.sh for AFM0002 (#209) (diff)
downloadhack-gpon.github.io-5ae6e9cd9e8d1aecd2511e292cf242a619863ad5.tar
hack-gpon.github.io-5ae6e9cd9e8d1aecd2511e292cf242a619863ad5.tar.gz
hack-gpon.github.io-5ae6e9cd9e8d1aecd2511e292cf242a619863ad5.tar.bz2
hack-gpon.github.io-5ae6e9cd9e8d1aecd2511e292cf242a619863ad5.tar.lz
hack-gpon.github.io-5ae6e9cd9e8d1aecd2511e292cf242a619863ad5.tar.xz
hack-gpon.github.io-5ae6e9cd9e8d1aecd2511e292cf242a619863ad5.tar.zst
hack-gpon.github.io-5ae6e9cd9e8d1aecd2511e292cf242a619863ad5.zip
-rw-r--r--_ont/ont-luna-sdk-useful-commands.md32
-rw-r--r--_ont/ont-odi-realtek-dfp-34g-2c2.md2
-rw-r--r--_ont/ont-odi-realtek-dfp-34x-2c2.md2
-rw-r--r--_ont/ont-technicolor-afm0002.md9
-rw-r--r--_ont/ont-technicolor-afm0003.md2
5 files changed, 34 insertions, 13 deletions
diff --git a/_ont/ont-luna-sdk-useful-commands.md b/_ont/ont-luna-sdk-useful-commands.md
index 5e21dd7..9c5c5fe 100644
--- a/_ont/ont-luna-sdk-useful-commands.md
+++ b/_ont/ont-luna-sdk-useful-commands.md
@@ -100,16 +100,29 @@ GPON_PLOAM_PASSWD=AAAAAAAAAA
## Getting/Setting OMCI software version (ME 7)
-{% assign customSwVersionAlert = include.customSwVersionAlert | default: "This needs the OMCI_OLT_MODE value to be set to 3" %}
+{% assign customSwVersionAlert = include.customSwVersionAlert | default: "This needs the `OMCI_OLT_MODE` value to be set to 3" %}
{% include alert.html content=customSwVersionAlert alert="Note" icon="svg-info" color="blue" %}
+{% if include.flashSwVersion %}
+```sh
+# {{ include.flash }} get OMCI_SW_VER1
+OMCI_SW_VER1=YOURFIRSTSWVER
+# {{ include.flash }} set OMCI_SW_VER1 YOURFIRSTSWVER
+# {{ include.flash }} get OMCI_SW_VER2
+OMCI_SW_VER1=YOURSECONDSWVER
+# {{ include.flash }} set OMCI_SW_VER2 YOURSECONDSWVER
+```
+{% else %}
```sh
# nv setenv sw_custom_version0 YOURFIRSTSWVER
# nv setenv sw_custom_version1 YOURSECONDSWVER
```
+{% endif %}
## Getting/Setting OMCI hardware version (ME 256)
-{% 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" %}
+
+{% assign customHwVersionAlert = include.customHwVersionAlert | default: "This needs the `OMCI_OLT_MODE` value to be set to 3" %}
+{% include alert.html content=customHwVersionAlert alert="Note" icon="svg-info" color="blue" %}
```sh
# {{ include.flash }} get HW_HWVER
@@ -119,16 +132,19 @@ HW_HWVER=V2.0
## Getting/Setting OMCI vendor ID (ME 256)
-{% 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" %}
+{% assign customVendorAlert = include.customVendorAlert | default: "This needs the `OMCI_OLT_MODE` value to be set to 3" %}
+{% include alert.html content=customVendorAlert alert="Note" icon="svg-info" color="blue" %}
```sh
-# flash get PON_VENDOR_ID
+# {{ include.flash }} get PON_VENDOR_ID
PON_VENDOR_ID=ZTEG
-# flash set PON_VENDOR_ID HWTC
+# {{ include.flash }} set PON_VENDOR_ID HWTC
```
## Getting/Setting OMCI equipment ID (ME 257)
-{% 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" %}
+
+{% assign customEquipAlert = include.customEquipAlert | default: "This needs the `OMCI_OLT_MODE` value to be set to 3" %}
+{% include alert.html content=customEquipAlert alert="Note" icon="svg-info" color="blue" %}
```sh
# {{ include.flash }} get GPON_ONU_MODEL
@@ -168,9 +184,9 @@ OMCI_FAKE_OK=0
## Setting management IP
```sh
-# {{ flash }} get LAN_IP_ADDR
+# {{ include.flash }} get LAN_IP_ADDR
LAN_IP_ADDR=192.168.2.1
-# {{ flash }} set LAN_IP_ADDR 192.168.1.1
+# {{ include.flash }} set LAN_IP_ADDR 192.168.1.1
```
## Getting/Setting the L2 Bridge MTU
diff --git a/_ont/ont-odi-realtek-dfp-34g-2c2.md b/_ont/ont-odi-realtek-dfp-34g-2c2.md
index a3878ef..c0debf6 100644
--- a/_ont/ont-odi-realtek-dfp-34g-2c2.md
+++ b/_ont/ont-odi-realtek-dfp-34g-2c2.md
@@ -78,7 +78,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 ont-luna-sdk-useful-commands.md flash='flash' ploam='hex' customSwVersionAlert='This needs the `OMCI_OLT_MODE` value to be set to 3 and firmware 220530 or 220923 modded by @stich86' speedLan='1234567' %}
+{% include_relative ont-luna-sdk-useful-commands.md flash='flash' ploam='hex' customSwVersionAlert='This needs the `OMCI_OLT_MODE` value to be set to 3 and firmware 220530 or 220923 modded by @stich86 or `OMCI_OLT_MODE` value to be set to 21 and generate a sigsegv of `/bin/checkomci` that allows the SW to be modified' speedLan='1234567' %}
# Known Bugs
diff --git a/_ont/ont-odi-realtek-dfp-34x-2c2.md b/_ont/ont-odi-realtek-dfp-34x-2c2.md
index d1e1f46..0739447 100644
--- a/_ont/ont-odi-realtek-dfp-34x-2c2.md
+++ b/_ont/ont-odi-realtek-dfp-34x-2c2.md
@@ -79,7 +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 ont-luna-sdk-useful-commands.md flash='flash' ploam='hex' customSwVersionAlert='This needs the `OMCI_OLT_MODE` value to be set to 3 and firmware 220530 or 220923 modded by @stich86' speedLan='1234567' %}
+{% include_relative ont-luna-sdk-useful-commands.md flash='flash' ploam='hex' customSwVersionAlert='This needs the `OMCI_OLT_MODE` value to be set to 3 and firmware 220530 or 220923 modded by @stich86' speedLan='1234567 or `OMCI_OLT_MODE` value to be set to 21 and generate a sigsegv of `/bin/checkomci` that allows the SW to be modified' %}
# Known Bugs
diff --git a/_ont/ont-technicolor-afm0002.md b/_ont/ont-technicolor-afm0002.md
index 1c2a1ed..245dfb8 100644
--- a/_ont/ont-technicolor-afm0002.md
+++ b/_ont/ont-technicolor-afm0002.md
@@ -82,7 +82,12 @@ 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
-{% include_relative ont-luna-sdk-useful-commands.md flash='/etc/scripts/flash' ploam='ascii' lastgoodHs=true %}
+{% include_relative ont-luna-sdk-useful-commands.md flash='/etc/scripts/flash' ploam='ascii' lastgoodHs=true flashSwVersion=true
+customSwVersionAlert="This needs the `/etc/scripts/flash` modded"
+customHwVersionAlert="This needs the `/etc/scripts/flash` modded"
+customVendorAlert="This needs the `/etc/scripts/flash` modded"
+customEquipAlert="This needs the `/etc/scripts/flash` modded"
+%}
## Enabling the Web UI
```sh
@@ -126,7 +131,7 @@ The following commands are used to flash a new rootfs to image1 and then boot to
{% include alert.html content="This section is based on the `V1_7_8_210412` version of the stick's firmware " alert="Info" icon="svg-info" color="blue" %}
-## Adding support to configurable SW and HW versions, Vendor ID and much more
+## Adding support to configurable SW and HW versions, Vendor ID and equipment ID
`/etc/scripts/flash` can be modified in order to add support for some variables implemented in `omci_app` but removed from `xmlconfig`. The modified file is below.
`flash set` will still print an error but the change wil be persisted. You can check that by running the relative `flash get` command
diff --git a/_ont/ont-technicolor-afm0003.md b/_ont/ont-technicolor-afm0003.md
index c404f3b..2098bf8 100644
--- a/_ont/ont-technicolor-afm0003.md
+++ b/_ont/ont-technicolor-afm0003.md
@@ -70,7 +70,7 @@ 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
-{% include_relative ont-luna-sdk-useful-commands.md flash='/etc/scripts/flash' ploam='ascii' speedLan='12345' customSpeedLanAlert='The defualt firmware does not allow modification of the `LAN_SDS_MODE` parameter. Is it necessary to use the modded firmware. Before editing the speed make sure your hardware supports it.' lastgoodHs=true %}
+{% include_relative ont-luna-sdk-useful-commands.md flash='/etc/scripts/flash' ploam='ascii' speedLan='12345' customSpeedLanAlert='The defualt firmware does not allow modification of the `LAN_SDS_MODE` parameter. Is it necessary to use the modded firmware. Before editing the speed make sure your hardware supports it.' lastgoodHs=true flashSwVersion=true %}
## Enabling the Web UI
```sh