Skip to content

Commit 5ae6e9c

Browse files
Updated software version for AFM0003/AFM0002/ODI and fix Luna Page (#210)
* minor fix * add flash flashSwVersion for afm0003 * add OMCI_SW_VER2 * fix * fix --------- Co-authored-by: Simone Bortolin <simonebortolin@users.noreply.github.com>
1 parent 4d6f294 commit 5ae6e9c

5 files changed

Lines changed: 34 additions & 13 deletions

_ont/ont-luna-sdk-useful-commands.md

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,29 @@ GPON_PLOAM_PASSWD=AAAAAAAAAA
100100

101101
## Getting/Setting OMCI software version (ME 7)
102102

103-
{% assign customSwVersionAlert = include.customSwVersionAlert | default: "This needs the OMCI_OLT_MODE value to be set to 3" %}
103+
{% assign customSwVersionAlert = include.customSwVersionAlert | default: "This needs the `OMCI_OLT_MODE` value to be set to 3" %}
104104
{% include alert.html content=customSwVersionAlert alert="Note" icon="svg-info" color="blue" %}
105105

106+
{% if include.flashSwVersion %}
107+
```sh
108+
# {{ include.flash }} get OMCI_SW_VER1
109+
OMCI_SW_VER1=YOURFIRSTSWVER
110+
# {{ include.flash }} set OMCI_SW_VER1 YOURFIRSTSWVER
111+
# {{ include.flash }} get OMCI_SW_VER2
112+
OMCI_SW_VER1=YOURSECONDSWVER
113+
# {{ include.flash }} set OMCI_SW_VER2 YOURSECONDSWVER
114+
```
115+
{% else %}
106116
```sh
107117
# nv setenv sw_custom_version0 YOURFIRSTSWVER
108118
# nv setenv sw_custom_version1 YOURSECONDSWVER
109119
```
120+
{% endif %}
110121

111122
## Getting/Setting OMCI hardware version (ME 256)
112-
{% 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" %}
123+
124+
{% assign customHwVersionAlert = include.customHwVersionAlert | default: "This needs the `OMCI_OLT_MODE` value to be set to 3" %}
125+
{% include alert.html content=customHwVersionAlert alert="Note" icon="svg-info" color="blue" %}
113126

114127
```sh
115128
# {{ include.flash }} get HW_HWVER
@@ -119,16 +132,19 @@ HW_HWVER=V2.0
119132

120133
## Getting/Setting OMCI vendor ID (ME 256)
121134

122-
{% 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" %}
135+
{% assign customVendorAlert = include.customVendorAlert | default: "This needs the `OMCI_OLT_MODE` value to be set to 3" %}
136+
{% include alert.html content=customVendorAlert alert="Note" icon="svg-info" color="blue" %}
123137

124138
```sh
125-
# flash get PON_VENDOR_ID
139+
# {{ include.flash }} get PON_VENDOR_ID
126140
PON_VENDOR_ID=ZTEG
127-
# flash set PON_VENDOR_ID HWTC
141+
# {{ include.flash }} set PON_VENDOR_ID HWTC
128142
```
129143

130144
## Getting/Setting OMCI equipment ID (ME 257)
131-
{% 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" %}
145+
146+
{% assign customEquipAlert = include.customEquipAlert | default: "This needs the `OMCI_OLT_MODE` value to be set to 3" %}
147+
{% include alert.html content=customEquipAlert alert="Note" icon="svg-info" color="blue" %}
132148

133149
```sh
134150
# {{ include.flash }} get GPON_ONU_MODEL
@@ -168,9 +184,9 @@ OMCI_FAKE_OK=0
168184
## Setting management IP
169185

170186
```sh
171-
# {{ flash }} get LAN_IP_ADDR
187+
# {{ include.flash }} get LAN_IP_ADDR
172188
LAN_IP_ADDR=192.168.2.1
173-
# {{ flash }} set LAN_IP_ADDR 192.168.1.1
189+
# {{ include.flash }} set LAN_IP_ADDR 192.168.1.1
174190
```
175191

176192
## Getting/Setting the L2 Bridge MTU

_ont/ont-odi-realtek-dfp-34g-2c2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ The stick has a TTL 3.3v UART console (configured as 115200 8-N-1) that can be a
7878

7979
{% 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" %}
8080

81-
{% 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' %}
81+
{% 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' %}
8282

8383
# Known Bugs
8484

_ont/ont-odi-realtek-dfp-34x-2c2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ The stick has a TTL 3.3v UART console (configured as 115200 8-N-1) that can be a
7979

8080
{% 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" %}
8181

82-
{% 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' %}
82+
{% 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' %}
8383

8484
# Known Bugs
8585

_ont/ont-technicolor-afm0002.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,12 @@ This stick supports dual boot.
8282

8383
`k0` and `r0` respectively contain the kernel and firmware of the first image, `k1` and `r1` the kernel and firmware of the second one
8484

85-
{% include_relative ont-luna-sdk-useful-commands.md flash='/etc/scripts/flash' ploam='ascii' lastgoodHs=true %}
85+
{% include_relative ont-luna-sdk-useful-commands.md flash='/etc/scripts/flash' ploam='ascii' lastgoodHs=true flashSwVersion=true
86+
customSwVersionAlert="This needs the `/etc/scripts/flash` modded"
87+
customHwVersionAlert="This needs the `/etc/scripts/flash` modded"
88+
customVendorAlert="This needs the `/etc/scripts/flash` modded"
89+
customEquipAlert="This needs the `/etc/scripts/flash` modded"
90+
%}
8691

8792
## Enabling the Web UI
8893
```sh
@@ -126,7 +131,7 @@ The following commands are used to flash a new rootfs to image1 and then boot to
126131

127132
{% 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" %}
128133

129-
## Adding support to configurable SW and HW versions, Vendor ID and much more
134+
## Adding support to configurable SW and HW versions, Vendor ID and equipment ID
130135
`/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.
131136

132137
`flash set` will still print an error but the change wil be persisted. You can check that by running the relative `flash get` command

_ont/ont-technicolor-afm0003.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ This stick supports dual boot.
7070

7171
`k0` and `r0` respectively contain the kernel and firmware of the first image, `k1` and `r1` the kernel and firmware of the second one
7272

73-
{% 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 %}
73+
{% 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 %}
7474

7575
## Enabling the Web UI
7676
```sh

0 commit comments

Comments
 (0)