tags:
- nbux/orange
Version 20240309
https://www.fs.com/fr/products/133619.html
https://lafibre.info/remplacer-livebox/guide-de-connexion-fibre-directement-sur-un-routeur-voire-meme-en-2gbps/
https://hack-gpon.github.io/ont-fs-com-gpon-onu-stick-with-mac/
https://hack-gpon.github.io/ont-fs-com-gpon-onu-stick-with-mac/#enabling-data_1g_8q_us1280_ds512ini-omci-mib-file-for-2500-mbps-profiles
To be sure to set the right speed on ONU switch/router SFP port:
/interface/ethernet set auto-negotiation=no sfp-sfpplusX set speed=2.5Gbps sfp-sfpplusX
IP : 192.168.1.10
login/passwd : ONTUSER / 7sp!lwUBz1
ssh only
ssh -o KexAlgorithms=diffie-hellman-group14-sha1 -oHostKeyAlgorithms=+ssh-dss 192.168.1.10 -l ONTUSER
/system/ssh address=192.168.1.10 user=ONTUSER (from RouterOS)
login: ONTUSER
passwd: 7sp!lwUBz1
fw_printenv
sfp_i2c -i8 -s "HWTC305xxx" # SN for ISP OLT side - MANDATORY
sfp_i2c -i3 -s "HWTC305xxx" # SN (Vendor Serial) for router side
set_serial_number HWTC305xxx # again to be consistent
sfp_i2c -i7 -s "HWTC" # OR sfp_i2c -I -s "HWTC"
sfp_i2c -g # OR fw_printenv | grep nSerial
fw_setenv sgmii_mode 5 # force 2500BaseX
# ONU GPON-ONU-34-20BI
reboot
fw_printenv sgmii_mode
# if not defined, then execute
fw_setenv sgmii_mode 5
fw_printenv sgmii_mode
Values (for sgmii_mode and link_status) Speed
3 1 Gbps / SGMII with auto-neg on
4 1 Gbps / SGMII with auto-neg off
5 2.5 Gbps / HSGMII with auto-neg on
The firmware already should have the value 5 by default and it is generally not necessary to change it.
onu ploamsg # curr_state=O5
gtop # press c ; press v
check logs (see redirect logs section below)
omci.log ; /var/log/debug
grep --binary-files=text -i scom omci.log
check speed (download / upload)
use iperf to do this...
for tx/rx value check on switch port directly
To redirect logs to /tmp/omci.log instead of /dev/console, update /etc/init.d/omcid.sh
before:
${OMCID_BIN} -d3 -p$mib_file -o$omcc_version -i$omci_iop_mask ${lct} -l/tmp/log/debug > /dev/console 2> /dev/console &
after:
${OMCID_BIN} -d1 -p$mib_file -o$omcc_version -i$omci_iop_mask ${lct} -l/tmp/omci.log > /dev/console 2> /dev/console &
fw_printenv
fw_setenv ipaddr 192.168.4.x
fw_setenv gatewayip 192.168.4.xxx
fw_printenv
Check if you got Orange VLAN (gtop ; press C ; press Y) or (gtop ; press C ; press V)
it should be like this :
GPE VLAN treatment
Name: ONU_GPE_VLAN_TREATMENT_TABLE
ID: 43
;;;;tagb;tagb;tagb;taga;taga;taga
no;inner not generate;outer not generate;discard enable;tpid;vid;treatment;tpid;vid;treatment
0;1;1; ;4; 1; 1;4; ;15
1;1;1; ; ; 851; 9; ; ;15
2;1;1; ; ; 840; 9; ; ;15
3;1;1; ; ; 838; 9; ; ;15
4;1;1; ; ; 835; 9; ; ;15
5;1;1; ; ; 832; 9; ; ;15
6;1; ; ; ; ;15; ; ;15
7; ; ; ; ; ;15; ; ;15
64;1;1; ; ; ;15; ; ;15
65;1;1; ;6; 851; 9; ; ;15
66;1;1; ;6; 840; 9; ; ;15
67;1;1; ;6; 838; 9; ; ;15
68;1;1; ;6; 835; 9; ; ;15
69;1;1; ;6; 832; 9; ; ;15
70;1; ; ; ; ;15; ; ;15
71; ; ; ; ; ;15; ; ;15
128;1;1; ; ; ;15; ; ;15
129;1;1; ; ; ;15; ; ;15
130; ;1; ; ; ;15; ; ;15
cat omci.log | grep vendor
[omcid] 13:58:14 CORE PRN: 131@0 set OLT vendor id = 20 20 20 20 " "
[omcid] 13:58:29 CORE PRN: 131@0 set OLT vendor id = 41 4c 43 4c "**ALC**L"
The Hardware Version is defined in mibs file (/etc/mibs). You have to spoof a correct Hardware Version to work correctly with Alcatel/Nokia OLT.
For example, here are some correct ONT Hardware Versions (section 9.9 on Livebox web interface):
Version | Hardware |
---|---|
Livebox7 | SMBS SMBSXLB7400 |
Livebox6 | SMBS SMBSSGLB6107 |
Livebox5 | SCOM SMBSSGLBF121 |
Huawei HG8010H | HWTC HWTCA240FA |
Huawei HG8010H | HWTC HWTCA2B5B |
Note: If you encounter some DHCP issues and everything seems right, try to change the HWVER without modifying SERIAL number. For example, Huawei ONT serial number with a Livebox6 HWVER.
cp /etc/mibs/data_1g_8q_us1280_ds512.ini /etc/mibs/data_1g_8q_us1280_ds512.ini.org
cp /etc/mibs/data_1g_8q.ini /etc/mibs/data_1g_8q.ini.orig
replace line 15 (^256):
# ONT-G
256 0 HWTC 0000000000000 00000000 2 0 0 0 0 #0
with (xxxxx is the Hardware Version not the serial number, try one of the following line) :
# ONT-G
#256 0 SCOM SMBSSGLBF121\0\0 00000000 2 0 0 0 0 #0
256 0 SMBS SMBSSGLB6107\0\0 00000000 2 0 0 0 0 #0
for example:
256 0 SMBS SMBSSGLB6107\0\0 00000000 2 0 0 0 0 #0
256 0 SCOM SMBSSGLBF121\0\0 00000000 2 0 0 0 0 #0
256 0 SCOM SMBSSGLBF121\0 00000000 2 0 0 0 0 #0
note: this is corresponding to section 9.9 Hardware Version on Orange Livebox6
256 0 SMBS SMBSSGLB6107\0\0 00000000 2 0 0 0 0 #0
fw_printenv mib_file
reboot
gtop # then press c+y
If VLAN are appearing, enjoy and skip the next following lines.
If no VLAN are present, try the following :
Enable the other mib file data_1g_8q_us1280_ds512 and reboot again :
fw_setenv mib_file data_1g_8q_us1280_ds512.ini
fw_printenv mib_file
reboot
gtop # then press c+y
https://hack-gpon.github.io/ont-fs-com-gpon-onu-stick-with-mac/#enabling-data_1g_8q_us1280_ds512ini-omci-mib-file-for-2500-mbps-profiles
https://lafibre.info/remplacer-livebox/guide-de-connexion-fibre-directement-sur-un-routeur-voire-meme-en-2gbps/msg992075/#msg992075
https://github.com/akhamar/orange-2500mbps-G010SP/blob/master/README.md
DO NOT FORGET TO FORCE full-duplex 2.5Gbps on CRS305/310 :
/interface/ethernet set auto-negotiation=no sfp-sfpplusX set speed=2.5Gbps sfp-sfpplusX
Check ONU signal status with otop (otop + press S)
it should show something like this :
status overview
chip version (fuse format) A22 (1)
driver version (otop version) 7.5.1 (7.5.1.0)
state history 9 8 4 3 2 1 6 0 0 0
config reads + + + + + + + +
table reads + + + + +
PLL lock status locked
Signal detect true
manage mode (OMU/BOSA/BOSA2), powerlevel BOSA, normal (0)
manual mode, BERT mode, BOSA loop mode off, off, dual-loop
laser age (active time) 5:47:54
laser temperature (ext corr): 319K
die temperature (int corr) 317K
rx offset correction 0
maximum bias / modulation current (chip) 78.00mA / 95.00mA
precalc. bias / modulation current 9.19mA / 34.59mA (6)
actual bias / modulation current 8.72mA / 34.18mA
bias / modulation change (errors) stable / stable (0 / 0)
integration coefficient bias / modulation 7 / 7
gain correction factor P0 / P1 1.04 / 1.05
MPD target P0 / P1 +92 / +1088
MPD actual P0 / P1 (variation to target) n/a
current offset 140.20uA
RSSI 1490 voltage, current 127.75mV 127.75uA
RSSI 1550 voltage 499.51mV
RF 1550 voltage 499.27mV
DDMI voltage 3206.79mV
RSSI 1490 power 17.01uW -17.57dBm
tx power (se*(bias+mod/2-ith)) 1.80mW 2.55dBm
precalc. dcdc apd voltage, saturation 36.17V 152 (4)
DCDC APD target voltage (active/inactive) 36.17V (active)
DCDC APD voltage (regulation error), saturation 36.28V (+0.00V) 152
linear LDO converter (active/inactive) (inactive)
sfp_i2c -s <sn> -i 3 # SN on SFP side to RouterOS
sfp_i2c -s <sn> -i 8 # SN on GPON side to ISP OLT
sfp_i2c -s <sn> -i 11
uci show
The stick stays in a perpetual “TX Fault” state since the same SFP pin is used for both serial and TX Fault signaling, if that causes you issues (normally it shouldn’t) you can issue the commands below to disable it. Note that it will disable both the TX Fault signal and Serial on the stick after boot.
fw_setenv asc0 1
fw_setenv preboot "gpio set 3;gpio input 100;gpio input 105;gpio input 106;gpio input 107;gpio input 108"
In case you need to re-enable it issue the following commands from the bootloader (FALCON)
FALCON => setenv asc0 0
FALCON => saveenv
To get the LAN Mode:
onu lanpsg 0
The link_status variable tells the current speed.
See the section about SGMII mode below.
To completely reset the ONU just run the following commands. The reconfigure the ONU from scratch…
firstboot
reboot