Skip to content

Commit 65ea7b0

Browse files
Update realtek luna SDK command page and migrate LEOX ONT to luna SDK command page, add command for CarlitoxxPro (#134)
* migrate some command to luna sdk and add new command to afm0003 * fix * update * final fix on rtk * fix * fix * fix * restore nokia for move to other pr * last fix on tc Co-authored-by: Simone Bortolin <simonebortolin@users.noreply.github.com>
1 parent 8b4837b commit 65ea7b0

14 files changed

Lines changed: 282 additions & 231 deletions

_ont/luna-sdk-userful-commands.md

Lines changed: 0 additions & 50 deletions
This file was deleted.

_ont/ont-carlitoxxpro-cpgos03-0490-v2.md

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,34 @@ parent: CarlitoxxPro
77

88
# Hardware Specifications
99

10-
| | |
11-
| ------------ | ----------------- |
12-
| Vendor/Brand | CarlitoxxPro |
13-
| Model | CPGOS03-0490 v2 |
14-
| Chipset | Realtek RTL9601CI |
15-
| Flash | 8 MB |
16-
| RAM | 64 MB |
17-
| System | Linux (Luna SDK) |
18-
| HSGMII | No |
19-
| Optics | SC/APC |
20-
| IP address | |
21-
| Web Gui | |
22-
| SSH | |
23-
| Telnet | |
24-
| Serial | |
25-
| Form Factor | miniONT SFP |
10+
| | |
11+
| ------------ | ------------------------------------- |
12+
| Vendor/Brand | CarlitoxxPro |
13+
| Model | CPGOS03-0490 v2 |
14+
| Chipset | Realtek RTL9601CI |
15+
| Flash | 8 MB |
16+
| RAM | 64 MB |
17+
| System | Linux (Luna SDK) |
18+
| HSGMII | No |
19+
| Optics | SC/APC |
20+
| IP address | |
21+
| Web Gui |user `cpAdmin`, password `cpAdmin` |
22+
| SSH | |
23+
| Telnet | |
24+
| Serial | |
25+
| Form Factor | miniONT SFP |
2626

2727
# Known Bugs
2828

2929
- VLAN swap issue (MEID 171), auto-sensing mode to switch between SGMII/HiSGMII
3030

31-
- You should use the VID/VLAN shown by executing the command "omcicli mib get 84" via telnet to bring up PPPoE
31+
- You should use the VID/VLAN shown by executing the command `omcicli mib get 84` via telnet to bring up PPPoE
32+
33+
{% include_relative ont-luna-sdk-useful-commands.md flash='flash' ploam='asciiAndHex' %}
34+
3235

3336
# Miscellaneous Links
3437

3538
- [Hacking RTL960x](https://github.com/Anime4000/RTL960x)
36-
39+
- [GPON ONU SFP - CPGOS03-0490 v2.0: Configuration Manual 1.0](https://wiki.rockstable.it/FTTH?action=AttachFile&do=get&target=CPGOS03-0490v2_Configuration-Manual.pdf)
3740

_ont/ont-leox-lxt-010g-d.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ parent: LEOX
3030

3131
The ONT has a TTL 3.3v UART console (configured as 115200 8-N-1) that can be accessed from the top surface.
3232

33-
{% include_relative ont-leox-userful-command.md %}
33+
{% include_relative ont-luna-sdk-useful-commands.md ploam='ascii' flash='/etc/scripts/flash' %}

_ont/ont-leox-lxt-010h-d.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ parent: LEOX
3131

3232
The ONT has a TTL 3.3v UART console (configured as 115200 8-N-1) that can be accessed from the top surface.
3333

34-
{% include_relative ont-leox-userful-command.md %}
34+
{% include_relative ont-luna-sdk-useful-commands.md ploam='ascii' flash='/etc/scripts/flash' %}

_ont/ont-leox-lxt-010s-h.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -67,25 +67,7 @@ The stick has a TTL 3.3v UART console (configured as 115200 8-N-1) that can be a
6767
- V3.3.4L3
6868
- V3.3.4L4rc1 (Fix 2.5GbE HiSGMII)
6969

70-
{% include_relative ont-leox-userful-command.md %}
71-
72-
## LAN SDS Mode (with firmware V3.3.4L4rc1):
73-
74-
| mode | description |
75-
| ---------------- | ------------------------ |
76-
| LAN_SDS_MODE = 1 | 1GbE with auto-neg on |
77-
| LAN_SDS_MODE = 7 | 1GbE with auto-neg off |
78-
| LAN_SDS_MODE = 8 | 2.5GbE with auto-neg off |
79-
80-
If you try to use any mode not listed here, stick will default to mode 1.
81-
82-
To change the link mode use this command:
83-
84-
```sh
85-
# /etc/scripts/flash get LAN_SDS_MODE
86-
LAN_SDS_MODE=1
87-
# /etc/scripts/flash set LAN_SDS_MODE 1
88-
```
70+
{% include_relative ont-luna-sdk-useful-commands.md ploam='ascii' speedLan='178' customSpeedLanAlert='You need firmware `V3.3.4L4rc1` or higher. Before editing the speed make sure your hardware supports it. If you try to use any mode not listed here, stick will default to mode 1.' flash='/etc/scripts/flash' %}
8971

9072
# Known Bugs
9173

_ont/ont-leox-userful-command.md

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 195 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,195 @@
1+
# General Settings and Useful Commands
2+
3+
## Useful files
4+
- `/var/config/lastgood.xml` - Contains the user portion of the configuration
5+
{% if include.lastgoodHs %}
6+
- `/var/config/lastgood-hs.xml` - Contains the "hardware" configuration (which _should not_ be changed)
7+
{% endif %}
8+
- `/tmp/omcilog` - OMCI messages logs (must be enabeled, see below)
9+
10+
## Useful binaries
11+
- `{{ include.flash }}` - Used to manipulate the config files in a somewhat safe manner
12+
- `xmlconfig` - Used for low-level manipulation of the XML config files. Called by `{{ include.flash }}`
13+
- `nv` - Used to manipulate nvram storage, including persistent config entries via `nv setenv`/`nv getenv`
14+
- `omcicli` - Used to interact with the running OMCI daemon
15+
- `omci_app` - The OMCI daemon
16+
- `diag` - Used to run low-level diagnostics commands on the stick
17+
18+
19+
## Getting/Setting the ONT's S/N
20+
```sh
21+
# {{ include.flash }} get GPON_SN
22+
GPON_SN=TMBB00000000
23+
# {{ include.flash }} set GPON_SN TMBB0A1B2C3D
24+
```
25+
26+
## Getting/Setting the ONT's PLOAM password
27+
{% if include.ploam == 'asciiAndHex' %}
28+
29+
{% include alert.html content="The ploam can be saved in either ASCII or HEX format, without any 0x or separators" alert="Note" icon="svg-info" color="blue" %}
30+
31+
```sh
32+
# {{ include.flash }} get GPON_PLOAM_PASSWD
33+
GPON_PLOAM_PASSWD=AAAAAAAAAA
34+
# {{ include.flash }} set GPON_PLOAM_PASSWD AAAAAAAAAA
35+
# {{ include.flash }} set GPON_PLOAM_PASSWD 41414141414141414141
36+
```
37+
38+
{% elsif include.ploam == 'hex' %}
39+
40+
{% include alert.html content="The PLOAM password is stored in HEX format, without any 0x or separators" alert="Note" icon="svg-info" color="blue" %}
41+
42+
```sh
43+
# {{ include.flash }} get GPON_PLOAM_PASSWD
44+
GPON_PLOAM_PASSWD=41414141414141414141
45+
# {{ include.flash }} set GPON_PLOAM_PASSWD 41414141414141414141
46+
```
47+
{% elsif include.ploam == 'ascii' %}
48+
49+
{% include alert.html content="The PLOAM password is stored in ASCII format" alert="Info" icon="svg-info" color="blue" %}
50+
51+
```sh
52+
# {{ include.flash }} get GPON_PLOAM_PASSWD
53+
GPON_PLOAM_PASSWD=AAAAAAAAAA
54+
# {{ include.flash }} set GPON_PLOAM_PASSWD AAAAAAAAAA
55+
```
56+
{% endif %}
57+
58+
## Checking the currently active image
59+
```sh
60+
# nv getenv sw_active
61+
sw_active=1
62+
# nv getenv sw_version0
63+
sw_version0=V1_7_8_210412
64+
# nv getenv sw_version1
65+
sw_version1=V1_7_8_210412
66+
```
67+
68+
## Booting to a different image
69+
```sh
70+
# nv setenv sw_commit 0|1
71+
# reboot
72+
```
73+
74+
## Getting/Setting the ONT Vendor ID
75+
76+
{% 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" %}
77+
78+
```sh
79+
# flash get PON_VENDOR_ID
80+
PON_VENDOR_ID=ZTEG
81+
# flash set PON_VENDOR_ID HWTC
82+
```
83+
84+
## Getting/Settng the ONT Custom software version
85+
{% assign customSwVersionAlert = include.customSwVersionAlert | default: "This needs the OMCI_OLT_MODE value to be set to 3" %}
86+
{% include alert.html content=customSwVersionAlert alert="Note" icon="svg-info" color="blue" %}
87+
88+
```sh
89+
# nv setenv sw_custom_version0 YOURFIRSTSWVER
90+
# nv setenv sw_custom_version1 YOURSECONDSWVER
91+
```
92+
93+
## Getting/Setting a custom HW Version
94+
{% 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" %}
95+
96+
```sh
97+
# {{ include.flash }} get HW_HWVER
98+
HW_HWVER=V2.0
99+
# {{ include.flash }} set HW_HWVER MYHWVERSION
100+
```
101+
102+
## Getting/Setting a custom ONT Equipment ID
103+
{% 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" %}
104+
105+
```sh
106+
# {{ include.flash }} get GPON_ONU_MODEL
107+
GPON_ONU_MODEL=DFP-34X-2C2
108+
# {{ include.flash }} set GPON_ONU_MODEL DFP-34X-XXX
109+
```
110+
111+
## Getting/Setting OMCI OLT Mode and Fake OMCI
112+
113+
Configure how ONT Stick handle OMCI from OLT:
114+
115+
```sh
116+
# {{ include.flash }} get OMCI_OLT_MODE
117+
OMCI_OLT_MODE=1
118+
# {{ include.flash }} set OMCI_OLT_MODE 2
119+
```
120+
121+
| Value | Note | OMCI Information |
122+
| ----- | --------------- | ---------------------------------------------- |
123+
| 0 | Default Mode | Stock, some value are cannot be change |
124+
| 1 | Huawei OLT Mode | Huawei MA5671a |
125+
| 2 | ZTE OLT Mode | ZTE |
126+
| 3 | Customized Mode | Custom Software/Hardware Version, OMCC, etc... |
127+
128+
Some Fiber Vendor/Wholesale/ISP have explicit LAN Port Number provisioning or proprietary OMCI that ONT Stick cant not understand, this will make ONT Stick reply OK whatever OMCI OLT throw at.
129+
130+
`0` = Disable, `1` = Enable, Default is 0
131+
132+
```sh
133+
# {{ include.flash }} get OMCI_FAKE_OK
134+
OMCI_FAKE_OK=0
135+
# {{ include.flash }} set OMCI_FAKE_OK 1
136+
```
137+
{% if include.speedLan %}
138+
139+
## Getting/Setting Speed LAN Mode
140+
{% assign customSpeedLanAlert = include.customSpeedLanAlert | default: "Before editing the speed make sure your hardware supports it." %}
141+
{% include alert.html content=customSpeedLanAlert alert="Note" icon="svg-info" color="blue" %}
142+
143+
To change the link mode use this command:
144+
145+
```sh
146+
# {{ include.flash }} get LAN_SDS_MODE
147+
LAN_SDS_MODE=0
148+
# {{ include.flash }} set LAN_SDS_MODE 1
149+
```
150+
151+
| Value | `cat /proc/kmsg` | Mode | Behavior |
152+
| ----- | ------------------------------------ | -------- | --------------------------- |{% if include.speedLan contains '0' %}
153+
| 0 | `<4>change mode to 0(GE/FE PHY)` | `TP` | 1GbaseT/100baseT |{% endif %}{% if include.speedLan contains '1' %}
154+
| 1 | `<4>change mode to 1(Fiber 1G)` | `FIBER` | 1GbaseX with auto-neg on |{% endif %}{% if include.speedLan contains '2' %}
155+
| 2 | `<4>change mode to 2(SGMII PHY)` | `TP MII` | 1Gb PHY |{% endif %}{% if include.speedLan contains '3' %}
156+
| 3 | `<4>change mode to 3(SGMII MAC)` | `MII` | 1Gb MAC |{% endif %}{% if include.speedLan contains '4' %}
157+
| 4 | `<4>change mode to 4(HiSGMII PHY)` | `TP MII` | 2.5Gb PHY |{% endif %}{% if include.speedLan contains '5' %}
158+
| 5 | `<4>change mode to 5(HiSGMII MAC)` | `MII` | 2.5Gb MAC |{% endif %}{% if include.speedLan contains '6' %}
159+
| 6 | `<4>change mode to 6(2500BaseX)` | `FIBER` | 2500baseX with auto-neg on |{% endif %}{% if include.speedLan contains '7' %}
160+
| 7 | `<4>change mode to 7(SGMII Force)` | `TP` | 1GbaseT with auto-neg off |{% endif %}{% if include.speedLan contains '8' %}
161+
| 8 | `<4>change mode to 8(HISGMII Force)` | `TP` | 2500baseT with auto-neg off |{% endif %}
162+
163+
{% endif %}
164+
165+
## Change IP address
166+
167+
```sh
168+
# {{ flash }} get LAN_IP_ADDR
169+
LAN_IP_ADDR=192.168.2.1
170+
# {{ flash }} set LAN_IP_ADDR 192.168.1.1
171+
```
172+
173+
## Checking whether the connection with the OLT was successful (O5 state)
174+
175+
```sh
176+
diag gpon get onu-state
177+
```
178+
179+
## Querying a particular OMCI ME
180+
```sh
181+
# omcicli mib get MIB_IDX
182+
```
183+
184+
## Getting/Setting the L2 Bridge MTU
185+
{% include alert.html content="Settings given via diag are not permanent after reboot" alert="Note" icon="svg-info" color="blue" %}
186+
187+
Getting/Setting the MTU of the L2 bridge
188+
```sh
189+
# diag switch get max-pkt-len port all
190+
Port Speed
191+
----------
192+
0 1538
193+
2 2031
194+
# diag switch set max-pkt-len port all length 2000
195+
```

0 commit comments

Comments
 (0)