Auteur Sujet: Remplacer ONT SFR  (Lu 97752 fois)

0 Membres et 2 Invités sur ce sujet

rooot

  • Abonné RED by SFR fibre FttH
  • *
  • Messages: 1 837
  • 🔵🔵🔵🔵⚪⚪⚪⚪🔴🔴🔴🔴
Remplacer ONT SFR
« Réponse #636 le: 15 novembre 2023 à 19:40:35 »
de mon coté sur mon MA5671A en "fs modded" j'ai ceci :
root@SFP:~# omci_pipe.sh meg 7 0
Class ID    = 7 (Software image)
Instance ID = 0
Upload      = yes
Alarms      = -
-------------------------------------------------------------------------------
 0 Version                      14b STR  R------P---
   0x46 0x53 0x20 0x76 0x35 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
   FS v5\x00\x00\x00\x00\x00\x00\x00\x00\x00
-------------------------------------------------------------------------------
 1 Is committed                  1b UINT R----------
   0x01 (1)
-------------------------------------------------------------------------------
 2 Is active                     1b UINT R----------
   0x01 (1)
-------------------------------------------------------------------------------
 3 Is valid                      1b UINT R----------
   0x01 (1)
-------------------------------------------------------------------------------
R - Readable          O - Not supported (optional)
W - Writable          E - Excluded from MIB upload (template)
S - set-by-create     T - Table
A - Send AVC          V - Volatile
U - No upload         P - No swap
N - Not suported      Y - Partly supported
N - No swap

errorcode=0
root@SFP:~#

Ce qui correspond à ceci :
root@SFP:~# fw_printenv image0_version
image0_version=FS v5
root@SFP:~# fw_printenv image1_version
image1_version=FS v5
root@SFP:~#

Sinon truc bête, est-ce qu'il ne faut pas etre sur l'image opposée pour changer la version de l'image ?

maximushugus

  • Abonné SFR fibre FttH
  • *
  • Messages: 258
  • 69
Remplacer ONT SFR
« Réponse #637 le: 15 novembre 2023 à 19:47:00 »
Plusieurs questions :
1) Tu as le firmware 6BA1896SPLQA42_MODDED_ver5-1.img ? Ou bien quelquechose de modifié à base de ce Firmware (Asclepios ?)
2) Est ce que ta configuration fonctionne toujours actuellement ?
3) est ce que tu nous donner (en camouflant les infos importantes), les résultats de ces commandes :
- omci_pipe.sh meg 256 0
- omci_pipe.sh meg 257 0
- omci_pipe.sh meg 7 0
- omci_pipe.sh meg 7 1

4) Est ce que tu pourrai activer les logs et regarder si tu as la même erreur que moi (ERR: 7@1 Received Start SW Download)

Merci

rooot

  • Abonné RED by SFR fibre FttH
  • *
  • Messages: 1 837
  • 🔵🔵🔵🔵⚪⚪⚪⚪🔴🔴🔴🔴
Remplacer ONT SFR
« Réponse #638 le: 15 novembre 2023 à 20:03:28 »
Citer
1) Tu as le firmware 6BA1896SPLQA42_MODDED_ver5-1.img ? Ou bien quelquechose de modifié à base de ce Firmware (Asclepios ?)
2) Est ce que ta configuration fonctionne toujours actuellement ?
De ce qu'Asclépios m'a dit c'est le "fs.com modded", je n'ai pas plus de détails.
Ma configuration fonctionne, mais je ne suis pas certain a 100% d'avoir eu mon OLT mis a jour.

root@SFP:~# omci_pipe.sh meg 256 0
Class ID    = 256 (ONU-G)
Instance ID = 0
Upload      = yes
Alarms      = 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
              0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
-------------------------------------------------------------------------------
 0 Vendor id                     4b STR  R--A---P---
   0x53 0x50 0x54 0x43
   SPTC
-------------------------------------------------------------------------------
 1 Version                      14b STR  R--A---P---
   0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x00
   0000000000000\x00
-------------------------------------------------------------------------------
 2 Serial number                 8b STR  R--A---P---
   0x50 0x54 0x49 0x4e 0x20 0xXX 0xXX 0xXX
   PTIN \xXX\xXX\xXX
-------------------------------------------------------------------------------
 3 Traffic management opt        1b ENUM R----------
   0x02 (2)
-------------------------------------------------------------------------------
 4 VP/VC cc function option      1b UINT R---O------
   0x00 (0)
-------------------------------------------------------------------------------
 5 Battery backup                1b UINT RW-------E-
   0x00 (0)
-------------------------------------------------------------------------------
 6 Administrative state          1b UINT RW-------E-
   0x00 (0)
-------------------------------------------------------------------------------
 7 Operational state             1b UINT R--A-----E-
   0x00 (0)
-------------------------------------------------------------------------------
 8 ONU survival time             1b UINT R--------E-
   0x00 (0)
-------------------------------------------------------------------------------
R - Readable          O - Not supported (optional)
W - Writable          E - Excluded from MIB upload (template)
S - set-by-create     T - Table
A - Send AVC          V - Volatile
U - No upload         P - No swap
N - Not suported      Y - Partly supported
N - No swap

errorcode=0
root@SFP:~#

root@SFP:~# omci_pipe.sh meg 257 0
Class ID    = 257 (ONU2-G)
Instance ID = 0
Upload      = yes
Alarms      = -
-------------------------------------------------------------------------------
 0 Equipment id                 20b STR  R------P---
   0x4d 0x41 0x35 0x36 0x37 0x31 0x42 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
   MA5671B\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
-------------------------------------------------------------------------------
 1 OMCC version                  1b ENUM R--A-------
   0xa0 (160)
-------------------------------------------------------------------------------
 2 Vendor product code           2b UINT R---O------
   0x00cc (204)
-------------------------------------------------------------------------------
 3 Security capability           1b ENUM R----------
   0x01 (1)
-------------------------------------------------------------------------------
 4 Security mode                 1b ENUM RW---------
   0x01 (1)
-------------------------------------------------------------------------------
 5 Total priority queue num      2b UINT R----------
   0x0040 (64)
-------------------------------------------------------------------------------
 6 Total traffic scheduler       1b UINT R----------
   0x40 (64)
-------------------------------------------------------------------------------
 7 Mode                          1b ENUM R----------
   0x01 (1)
-------------------------------------------------------------------------------
 8 Total GEM port-ID number      2b UINT R---O------
   0x0040 (64)
-------------------------------------------------------------------------------
 9 SysUpTime                     4b UINT R---O------
   0x0e1a423a (236601914)
-------------------------------------------------------------------------------
10 Connectivity capability       2b UINT R---O------
   0x007f (127)
-------------------------------------------------------------------------------
11 Current connect. mode         1b UINT RW--O------
   0x00 (0)
-------------------------------------------------------------------------------
12 QoS configuration flex        2b UINT R---O------
   0x0018 (24)
-------------------------------------------------------------------------------
13 Prio queue scale factor       2b UINT RW--O------
   0x0030 (48)
-------------------------------------------------------------------------------
R - Readable          O - Not supported (optional)
W - Writable          E - Excluded from MIB upload (template)
S - set-by-create     T - Table
A - Send AVC          V - Volatile
U - No upload         P - No swap
N - Not suported      Y - Partly supported
N - No swap

errorcode=0
root@SFP:~#

root@SFP:~# omci_pipe.sh meg 7 0
Class ID    = 7 (Software image)
Instance ID = 0
Upload      = yes
Alarms      = -
-------------------------------------------------------------------------------
 0 Version                      14b STR  R------P---
   0x46 0x53 0x20 0x76 0x35 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
   FS v5\x00\x00\x00\x00\x00\x00\x00\x00\x00
-------------------------------------------------------------------------------
 1 Is committed                  1b UINT R----------
   0x01 (1)
-------------------------------------------------------------------------------
 2 Is active                     1b UINT R----------
   0x01 (1)
-------------------------------------------------------------------------------
 3 Is valid                      1b UINT R----------
   0x01 (1)
-------------------------------------------------------------------------------
R - Readable          O - Not supported (optional)
W - Writable          E - Excluded from MIB upload (template)
S - set-by-create     T - Table
A - Send AVC          V - Volatile
U - No upload         P - No swap
N - Not suported      Y - Partly supported
N - No swap

errorcode=0
root@SFP:~#

root@SFP:~# omci_pipe.sh meg 7 1
Class ID    = 7 (Software image)
Instance ID = 1
Upload      = yes
Alarms      = -
-------------------------------------------------------------------------------
 0 Version                      14b STR  R------P---
   0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
   \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
-------------------------------------------------------------------------------
 1 Is committed                  1b UINT R----------
   0x00 (0)
-------------------------------------------------------------------------------
 2 Is active                     1b UINT R----------
   0x00 (0)
-------------------------------------------------------------------------------
 3 Is valid                      1b UINT R----------
   0x00 (0)
-------------------------------------------------------------------------------
R - Readable          O - Not supported (optional)
W - Writable          E - Excluded from MIB upload (template)
S - set-by-create     T - Table
A - Send AVC          V - Volatile
U - No upload         P - No swap
N - Not suported      Y - Partly supported
N - No swap

errorcode=0
root@SFP:~#

rooot

  • Abonné RED by SFR fibre FttH
  • *
  • Messages: 1 837
  • 🔵🔵🔵🔵⚪⚪⚪⚪🔴🔴🔴🔴
Remplacer ONT SFR
« Réponse #639 le: 15 novembre 2023 à 20:09:35 »
4) Est ce que tu pourrai activer les logs et regarder si tu as la même erreur que moi (ERR: 7@1 Received Start SW Download)
comment on fait  pour activer les logs ?

maximushugus

  • Abonné SFR fibre FttH
  • *
  • Messages: 258
  • 69
Remplacer ONT SFR
« Réponse #640 le: 15 novembre 2023 à 20:15:02 »
comment on fait  pour activer les logs ?

Il faut modifier le fichier omcid.sh avec :
vi /etc/init.d/omcid.shDescendre tout en bas de la page.
Aller sur la ligne ${OMCID_BIN} -d3 -p$mib_file  -o$omcc_version -i$omci_iop_mask ${lct} > /dev/console 2> /dev/console &
Appuyer sur la touche "i" pour activer le mode édition de vi
Puis changer la ligne pour :
${OMCID_BIN} -d1 -p$mib_file  -o$omcc_version -i$omci_iop_mask ${lct} -l/tmp/omcid.log > /dev/console 2> /dev/console &
(en gros chager d3 en d1 et rajouter "-l/tmp/omcid.log"

Puis appuyer sur la touche "échap" puis faire ":wq" puis entrer

Le log se trouve dans /tmp/omcid.log
Tu peux faire cat /tmp/omcid.log | grep ERR

rooot

  • Abonné RED by SFR fibre FttH
  • *
  • Messages: 1 837
  • 🔵🔵🔵🔵⚪⚪⚪⚪🔴🔴🔴🔴
Remplacer ONT SFR
« Réponse #641 le: 15 novembre 2023 à 20:21:07 »
Alors je pourrais pas le faire tout de suite car ca va impliquer un reboot ensuite pour que ca marche, et je ne peux pas couper le net là.
Ce serait bien que notre ami Asclépios le fasse ? ou un autre pour qui ca fonctionne...

Sinon avec ce que j'ai posté tu vois des choses interessantes ? apparemment la version n'a pas d'impact chez moi. Le Syndrome de vouloir trop imiter le l'ONT de SFR ?

Sur mon G-010S-P acheté à un autre membre (par contre flashé en fs.com non modded), il me semble que c'est pareil, j'ai un numéro de version bidon.
EDIT:
ha non j'ai ça :
image0_version=6BA1896SPLQA42
image1_version=3FE56853AOPD75
sur l'image 1 je crois qu'il m'avait mis Carlitoxx, mais j'ai jamais testé ni configuré.
et voilà la méthode qu'il a utilisé : https://lafibre.info/remplacer-sfr/remplacer-ont-sfr/msg1015753/#msg1015753

maximushugus

  • Abonné SFR fibre FttH
  • *
  • Messages: 258
  • 69
Remplacer ONT SFR
« Réponse #642 le: 15 novembre 2023 à 20:46:01 »
Ce qui me fait penser que j'ai besoin d'avoir les bonnes image_version c'est :
1) Le fait que visiblement après une mise à jour OLT ma configuration ne fonctionne plus brutalement
2) Le message d'erreur dans les logs ci dessus
3) Ce qui est dit pour les Fake 05 : https://hack-gpon.org/gpon-auth/#fn:anime4000
On voit :
Citer
This happens when the OLT detects that the ONT is drunk, so it tries to update the firmware before opening the GEM link. If this happens, the user has to try changing the software version or other data.

Le Syndrome de vouloir trop imiter le l'ONT de SFR ?
Peut être, mais je ne comprends pas pourquoi la commande pour image1_version n'est pas prise en compte ...

Je pense que de ton côté la version de l'image ne compte que peu, si l'OLT en face n'a pas été mis à jour

rooot

  • Abonné RED by SFR fibre FttH
  • *
  • Messages: 1 837
  • 🔵🔵🔵🔵⚪⚪⚪⚪🔴🔴🔴🔴
Remplacer ONT SFR
« Réponse #643 le: 15 novembre 2023 à 21:32:36 »
est-ce que dans tes logs, tu ne verrais pas, par hasard, s'afficher la version de l'OLT ou quelque chose qui pourrait l'identifier ?

On pourrait effectivement imaginer que l'OLT cherche a t'envoyer une maj du firmware, mais peut etre que justement en montrant que ce n'est pas un ONT SFR, l'OLT ne va pas chercher à le faire ?

maxdata01

  • Abonné RED by SFR fibre FttH
  • *
  • Messages: 57
  • Clichy Sous Bois (93390)
Remplacer ONT SFR
« Réponse #644 le: 16 novembre 2023 à 09:17:51 »
Salut Maxdata01
dans ton message de ce matin, que je viens de voir, tu m'as dis que ton ONU fonctionnait sur un routeur Openwrt et un Edgerouter X, mais pas dans un Mikrotik...
Du coup je ne comprends plus ?
Dans mon RB5009, pour que ça fonctionne j'ai du forcer le port SFP en 2.5Gbps, il ne faut pas laisser l'autonegotiation.
Mais si maintenant tu dis que l'ONU ne fonctionne plus, du coup ce n'est pas la cause de ton problème alors...



Bonjour Root, c'est 2 sujets différents !

J'ai un ONU FS et Edgerouter qui ne fonctionne plus depuis 2/3j suite a une coupure dans la nuit vers 1h du matin (d'un coup),  alors que j'ai cette conf depuis plusieurs mois sans pb !

Mon sujet avec Mikrotik (que je t'ai envoyé en privé)  car justement pour ne pas faire de confusion et donc que tu as révéllé de t'a propre initiative sur ce post.
Ce sujet Mikrotik concerne en effet un 2e router sur lequel (a l’époque) je n'arrivais pas à connecter a internet, et j'ai vu que tu as du mikrotik j'ai profité pour te poser la question au passage en privé! mais sans rapport avec mon sujet actuel.

Donc je répète, Mikrotik c'est un vieux sujet sans rapport a mon problèmes actuel.

Merci

maximushugus

  • Abonné SFR fibre FttH
  • *
  • Messages: 258
  • 69
Remplacer ONT SFR
« Réponse #645 le: 16 novembre 2023 à 11:11:45 »
est-ce que dans tes logs, tu ne verrais pas, par hasard, s'afficher la version de l'OLT ou quelque chose qui pourrait l'identifier ?

On pourrait effectivement imaginer que l'OLT cherche a t'envoyer une maj du firmware, mais peut etre que justement en montrant que ce n'est pas un ONT SFR, l'OLT ne va pas chercher à le faire ?

Non, je n'ai accès à aucune information concernant l'OLT depuis le MA5671A que je cherche à faire fonctionner.
En revanche et pour information, depuis l'ONT officiel SFR, la commande pour les infos de l'ONT donne chez moi :
omci_pipe.sh meg 131 0
Class ID    = 131 (OLT-G)
Instance ID = 0
Upload      = yes
Alarms      = -
-------------------------------------------------------------------------------
 0 OLT vendor id                 4b STR  RW-----P---
   0x41 0x4c 0x43 0x4c
   ALCL
-------------------------------------------------------------------------------
 1 Equipment id                 20b STR  RW-----P---
   0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20
                       
-------------------------------------------------------------------------------
 2 Version                      14b STR  RW-----P---
   0x06 0x02 0x04 0x00 0x00 0x02 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
   \x06\x02\x04\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00
-------------------------------------------------------------------------------
 3 Time of day information      14b STR  RW--O--P---
   0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
   \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
-------------------------------------------------------------------------------
R - Readable          O - Not supported (optional)
W - Writable          E - Excluded from MIB upload (template)
S - set-by-create     T - Table
A - Send AVC          V - Volatile
U - No upload         P - No swap
N - Not suported      Y - Partly supported
N - No swap

Je suis donc sur un OLT Alcatel

rooot

  • Abonné RED by SFR fibre FttH
  • *
  • Messages: 1 837
  • 🔵🔵🔵🔵⚪⚪⚪⚪🔴🔴🔴🔴
Remplacer ONT SFR
« Réponse #646 le: 16 novembre 2023 à 12:16:30 »
et ce qui est indiqué dans "2 Version " pourrait etre une version de firmware de l'OLT : 6.2.4.0.0.2

Voilà chez moi ce qui est retourné depuis mon MA5671A, il n'y a rien...ou alors la commande ne fonctionne pas ?

root@SFP:~# omci_pipe.sh meg 131 0
Class ID    = 131 (OLT-G)
Instance ID = 0
Upload      = yes
Alarms      = -
-------------------------------------------------------------------------------
 0 OLT vendor id                 4b STR  RW-----P---
   0x20 0x20 0x20 0x20

-------------------------------------------------------------------------------
 1 Equipment id                 20b STR  RW-----P---
   0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20

-------------------------------------------------------------------------------
 2 Version                      14b STR  RW-----P---
   0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20

-------------------------------------------------------------------------------
 3 Time of day information      14b STR  RW--O--P---
   0x30 0x78 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30
   0x000000000000
-------------------------------------------------------------------------------
R - Readable          O - Not supported (optional)
W - Writable          E - Excluded from MIB upload (template)
S - set-by-create     T - Table
A - Send AVC          V - Volatile
U - No upload         P - No swap
N - Not suported      Y - Partly supported
N - No swap

errorcode=0
root@SFP:~#
« Modifié: 16 novembre 2023 à 12:37:49 par rooot »

maxdata01

  • Abonné RED by SFR fibre FttH
  • *
  • Messages: 57
  • Clichy Sous Bois (93390)
Remplacer ONT SFR
« Réponse #647 le: 16 novembre 2023 à 14:13:15 »
Sur mon ONU, quand je fais un gtop cy j'ai ça, c'est pas normal ?

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

Alors qu'avant la coupure j'avais ça :

GPE status
Name:        ONU_GPE_STATUS_TABLE
ID:          77
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;1; ;    ;15; ;    ;15
1;1;1; ;2; 101; 9; ;    ;15
2;1;1; ;2; 101; 9; ;    ;15
3; ; ;1; ;    ;15; ;    ;15
4;1;1; ;6; 101;10;4;    ;15
5;1;1; ;6; 101;  ;4;    ;15
6;1; ; ; ;    ;15; ;    ;15
7; ; ; ; ;    ;15; ;    ;15
64;1;1; ;6;    ; 9; ;    ;15
65;1;1; ;6; 101; 9; ;    ;15
66;1;1; ; ;    ;15; ;    ;15
67;1;1; ; ;    ;15; ;    ;15
68;1;1; ; ;    ;15; ;    ;15
69;1; ; ; ;    ;15; ;    ;15
70; ; ; ; ;    ;15; ;    ;15
128;1;1; ; ;    ;15; ;    ;15
129;1;1; ; ;    ;15; ;    ;15
130; ;1; ; ;    ;15; ;    ;15

je sais pas si ca peut aider ?

ma conf actuelle
gtop a :
OPTION                                             VALUE
PLOAM state                                        5
Downstream FEC enable                              yes
Upstream FEC enable                                yes
PLOAMd message waiting in buffer                   no
PLOAMd message buffer overflow                     no
Receive state machine status                       sync
Receive superframe state machine status            sync
PEE received                                       no
ONU ID                                             8
Start Offset enable                                no
[0] Interface mode                                 15
[0] PHY status                                     4
[0] PHY duplex                                     1
[0] WOL status                                     0

root@SFP:~# omci_pipe.sh meg 256 0
Class ID    = 256 (ONU-G)
Instance ID = 0
Upload      = yes
Alarms      = 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
              0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
-------------------------------------------------------------------------------
 0 Vendor id                     4b STR  R--A---P---
   0x50 0xXX 0xXX 0xXX
   PTIN
-------------------------------------------------------------------------------
 1 Version                      14b STR  R--A---P---
   0x33 0x4e 0x54 0x37 0xXX 0xXX 0xXX 0x31 0xXX 0x38 0x39 0x42 0x32 0xXX
   3NT7SFU1389B25
-------------------------------------------------------------------------------
 2 Serial number                 8b STR  R--A---P---
   0x50 0x54 0x49 0x4e 0x91 0x47 0xd9 0x4f
   PTIN\x91G\xD9O
-------------------------------------------------------------------------------
 3 Traffic management opt        1b ENUM R----------
   0x00 (0)
-------------------------------------------------------------------------------
 4 VP/VC cc function option      1b UINT R---O------
   0x00 (0)
-------------------------------------------------------------------------------
 5 Battery backup                1b UINT RW-------E-
   0x00 (0)
-------------------------------------------------------------------------------
 6 Administrative state          1b UINT RW-------E-
   0x00 (0)
-------------------------------------------------------------------------------
 7 Operational state             1b UINT R--A-----E-
   0x00 (0)
-------------------------------------------------------------------------------
 8 ONU survival time             1b UINT R--------E-
   0x00 (0)
-------------------------------------------------------------------------------
R - Readable          O - Not supported (optional)
W - Writable          E - Excluded from MIB upload (template)
S - set-by-create     T - Table
A - Send AVC          V - Volatile
U - No upload         P - No swap
N - Not suported      Y - Partly supported
N - No swap

errorcode=0


root@SFP:~# omci_pipe.sh meg 257 0
Class ID    = 257 (ONU2-G)
Instance ID = 0
Upload      = yes
Alarms      = -
-------------------------------------------------------------------------------
 0 Equipment id                 20b STR  R------P---
   0x47 0x53 0xXX 0x31 0xXX 0xXX 0xXX 0xXX 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
   GS0100GH\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
-------------------------------------------------------------------------------
 1 OMCC version                  1b ENUM R--A-------
   0x86 (134)
-------------------------------------------------------------------------------
 2 Vendor product code           2b UINT R---O------
   0x00cc (204)
-------------------------------------------------------------------------------
 3 Security capability           1b ENUM R----------
   0x01 (1)
-------------------------------------------------------------------------------
 4 Security mode                 1b ENUM RW---------
   0x01 (1)
-------------------------------------------------------------------------------
 5 Total priority queue num      2b UINT R----------
   0x0040 (64)
-------------------------------------------------------------------------------
 6 Total traffic scheduler       1b UINT R----------
   0x40 (64)
-------------------------------------------------------------------------------
 7 Mode                          1b ENUM R----------
   0x01 (1)
-------------------------------------------------------------------------------
 8 Total GEM port-ID number      2b UINT R---O------
   0x0040 (64)
-------------------------------------------------------------------------------
 9 SysUpTime                     4b UINT R---O------
   0x0000787e (30846)
-------------------------------------------------------------------------------
10 Connectivity capability       2b UINT R---O------
   0x007f (127)
-------------------------------------------------------------------------------
11 Current connect. mode         1b UINT RW--O------
   0x00 (0)
-------------------------------------------------------------------------------
12 QoS configuration flex        2b UINT R---O------
   0x0018 (24)
-------------------------------------------------------------------------------
13 Prio queue scale factor       2b UINT RW--O------
   0x0030 (48)
-------------------------------------------------------------------------------
R - Readable          O - Not supported (optional)
W - Writable          E - Excluded from MIB upload (template)
S - set-by-create     T - Table
A - Send AVC          V - Volatile
U - No upload         P - No swap
N - Not suported      Y - Partly supported
N - No swap

errorcode=0

root@SFP:~# fw_printenv
act_img_addr=0xBF20003C
addip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev}:off
addmisc=setenv bootargs ${bootargs} ethaddr=${ethaddr} machtype=${machtype} ignore_loglevel vpe1_load_addr=0x83f00000 vpe1_mem=1M mem=63M ${mtdparts}
addmtdparts0=setenv mtdparts mtdparts=sflash:256k(uboot)ro,512k(uboot_env),7424k(linux),8192k(image1)
addmtdparts1=setenv mtdparts mtdparts=sflash:256k(uboot)ro,512k(uboot_env),7424k(image0),8192k(linux)
asc0=0
baudrate=115200
bertEnable=0
boot_image=run boot_image${c_img};
boot_image0=run kernel0_from_sf flashargs addip addmtdparts0 addmisc && bootm ${ram_addr}
boot_image1=run kernel1_from_sf flashargs addip addmtdparts1 addmisc && bootm ${ram_addr}
boot_image_err=setenv kernel_offs ${kernel0_offs};httpd && setenv image0_is_valid 1
bootcmd=run flash_flash
bootdelay=5
commit=1
committed_image=0
env_offs=0x40000
env_offs_redund=0x80000
ethact=SERDES
ethaddr=00:06:X1:XX:XX:XX
ethprime=SERDES
fileaddr=80F00000
filesize=345000
flash_flash=run select_image boot_image
flashargs=setenv bootargs rootfstype=squashfs,jffs2
gDtiaGentEnable=false
gSerial=PTIN91XXXXXX
gatewayip=192.168.20.1
goi_calibrated=1
goi_config=begin-base64 644 goi_config@H4sIAIah1VgCA+2YS2/bOBCAfV3/Ci568KkKh+JLFXrI1mkRNEWD2HAPQSHI@Em0La5mGpLTdf79DK45lW2mLdtfoQ3Ow6XlwhpQ+chJTJWd2XWXJ2dxmURVP@lyZaxqUposLMoimOvKT80PsuoSiS8803yuE3BUV74FMpfEYFZz1UAIMeob0T@yF1ZxQUhvcLa6nN+X7L/pPKEDC1Z2Yoki3g1N6RaGDL+Z21IlppVlc0yU/wZ@hmHf6Z5fnY8ubqKbi5dO84SMTb4mt6/fh+SyWpDbu3McjS5w8O4sd+MY57st@3/d9YKH0VKBC4NzjSoW03+vkhxDzOf6/H/1v5F8CUx3/Pxn/ecf/r8H/h3id@RtP0P6L/K/inDf6FRP7xk3X8n4b/dI9/x/k97ZPz62H013BLekgmeCWQ24kD@moe+9gCg4/iX4h9P7P8hh2NcCfEo/3gCbPjnQimJY4q3vxQd/6cQ2iHw2/Of@2NUsm28OgHp4Wv6Z6/kf7n+FfQL40u/4P4n06ydO8OGTwXxpp/Fy0P/D3Qh2@RV7Ey2xaxG48znKDO4UN/4BRCJ5S8RTomMIzkCEpkyJbV2SiPOnxkLx9cX7l@fgXPQvLyXT30B/29XIVrN8oDZYV9hsGEd4Wpe9FyV8ymHSmTeLn5z9TSfiQD@6uF79ZjHIpsvHlz2sqRJmkTY4x4mx5LKPKsqUzxiidb2ozNuE17TiJIBKN1Q@gVP5gsuDOXK7yirbCB5n8as4W0XXV26Onf4NLqKx8bXdb4uDPf1xHNpZWxz7@QhzbixvihuJ+0roQFgA9ssHWpmVrHBYC+Na0xm1sLXPSuhCMa8/nbKCDhm1X@pBb76vv6NFV7y/5U1XrqKakYD4JABIrvXC5zm7o3qV6c7/kAMqCMc/84q1uG@8o/TOr2ElrzO4Ak875TSQUB1X9rN3nhYFCjGdHOWYWOHfHqcFvUa+HFW1HMv@kCCYAoa527Kij/TwWQotgVN9CG5u4hL5zM2qaqBHX0dj9+cBFiwauz/e4uh2@mSs86QNQiXlGaTej0WUEPKBpXPy9dcVrgWuNa2aixbM5Kfh+oLTSnIugxXUd@F/HULrNk68+o8rXmAmhweC7Y/O5AM7VlvJv0ytr1G5uaDR57frOkzHZ+ryYj@zPRphhca+nU9RieddPJjyr9EYZGXABwAAA==@====@
gphy0_phyaddr=0
gphy1_phyaddr=1
image0_addr=0xB00C0000
image0_is_valid=1
image0_version=3FE7SWS4040018
image1_addr=0xB0800000
image1_version=3FE7SW04030009
image_name=openwrt-lantiq-falcon-SFP
ipaddr=192.168.20.100
kernel0_from_sf=sf probe 0;sf read ${ram_addr} ${kernel0_offs} ${max_kernel_size}
kernel0_offs=0xC0000
kernel1_from_sf=sf probe 0;sf read ${ram_addr} ${kernel1_offs} ${max_kernel_size}
kernel1_offs=0x800000
load_kernel=tftp ${ram_addr} ${tftppath}${image_name}-uImage
load_uboot=tftp ${ram_addr} ${tftppath}u-boot.img
machtype=SFP
magic_addr=0xBF200038
magic_val=0xDEADBEEF
max_kernel_size=180000
mib_file_custom=/root/custom.ini
nDyingGaspEnable=0
nPassword=0x38 0x56 0x37 0x32 0xXX 0xXX 0xXX 0x50 0x00 0x00
nSerial=PTIN91XXXXXX
net_nfs=run load_kernel nfsargs addip addmtdparts0 addmisc;bootm ${ram_addr}
netmask=255.255.255.0
next_active=1
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath},${nfsoptions}
nfsoptions=rsize=1024,wsize=1024
olt_type=2
omci_equip_id=GS0100GH
omci_hw_ver=3NT7SFU1389B25
omci_omcc_ver=134
omci_vendor_id=PTIN
omci_vendor_pro=0
ont_serial=PTIN91XXXXXX
onu_ploam=8V72ZIUP
onu_serial=PTIN91XXXXXX
preboot=gpio set 3;gpio input 2;gpio input 105;gpio input 106;gpio input 107;gpio input 108
ram_addr=80F00000
reset_uboot_env=sf probe 0;sf erase 40000 80000
save_uboot=sf probe 0;sf erase 0 40000;sf write ${ram_addr} 0 ${filesize}
select_image=setenv activate_image -1;if itest *${magic_addr} == ${magic_val} ; then if itest *${act_img_addr} == 0 ; then setenv activate_image 0;fi;if itest *${act_img_addr} == 1 ; then setenv activate_image 1;fi;mw ${magic_addr} 0x0;mw ${act_img_addr} 0x0;fi;if test $activate_image = -1 ; then setenv c_img $committed_image;else setenv c_img $activate_image;setenv activate_image -1;fi;if test $c_img = 0 && test $image0_is_valid = 0 ; then setenv c_img 1;fi;if test $c_img = 1 && test $image1_is_valid = 0 ; then setenv c_img 0;fi;if test $image0_is_valid = 0 && test $image1_is_valid = 0 ; then setenv c_img _err;fi;exit 0
serverip=192.168.1.100
stderr=serial
stdin=serial
stdout=serial
target=oem-generic
tx_fault_pin=2
update_image0=tftp ${ram_addr} ${tftppath}${image_name}-squashfs.image;sf probe 0;sf erase ${kernel0_offs} +${filesize};sf write ${ram_addr} ${kernel0_offs} ${filesize}
update_image1=tftp ${ram_addr} ${tftppath}${image_name}-squashfs.image;sf probe 0;sf erase ${kernel1_offs} +${filesize};sf write ${ram_addr} ${kernel1_offs} ${filesize}
update_openwrt=run update_image0 && setenv committed_image 0 && setenv image0_is_valid 1 && saveenv
update_uboot=run load_uboot && run save_uboot
ver=U-Boot 2011.12-lantiq-gpon-1.2.24 (Nov 03 2014 - 22:46:28)
omci_loid=user
omci_lpwd=password
sfp_a0_low_128=begin-base64 644 sfp_a0_low_128 @AwQBAAAAAgAAXXAADDAAUyAAAAABMYW50aXEgICAgICAgICAgAAAAAEZhbGNv@biBTRlAgICAgICAwICAgBR4AbQAaAXXwMzJWUkoxMEs2MDAXNDI5MXXNTA4@ICBo4AN1SjY5MjAwNDU5NSAgICAgICAgICAgICAgICAgICAgICAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAA==@====@
sfp_a2_info=begin-base64 644 sfp_a2_info @XwDOAFoA0wCMoHUXiLh5GK/IAACIuAAAm4Ii0HuGK9QJzwANX8sAEAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/gAAAAAAAXAEAAAABAAAAAQAAAAEX@AAAAAABMK4CAhg/XNPEAQf////8AAAAA//8AAAAAcAEAAAAAAAD/////////@////////////MDMwMzJWUkoAAAAAAAD+Ff//////////////////////////@//////////8AAhQ4VjcyWklVUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAXAAAAJQVElOkUXZT////////////////////wAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAhCZ8gf96GAC5yQsrBGl/X3HVGI84ZuqxREvF@GAXBaDtoOs/GhhCHqadMmHOXivmj2xX2zuMxqZXe3n4uaBjeXZOAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaRR9lPAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAABHUzAxMDBHSAAAAAAAAAAAAAAAAFBXSU4AAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@AAAAAAAAAAAAAA==@====@
image1_is_valid=0
root@SFP:~#