Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HSGMII firmware #17

Open
stich86 opened this issue Feb 26, 2022 · 391 comments
Open

HSGMII firmware #17

stich86 opened this issue Feb 26, 2022 · 391 comments
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed question Further information is requested

Comments

@stich86
Copy link

stich86 commented Feb 26, 2022

Hi @Anime4000

I saw you post on lowyat.net about TWCGPON657 that should support HSGMII on LAN side (2.5Gbit/a). Looks like that also HiSense LTE3415 reports this protocol on the data sheet. Chipset is still RTL9601C.

Do you have any info about that firmware? Here in Italy we are struggling with the various LantiQ sticks (at the moment the only one that support 2.5 also on line side) but for particulars FTTH provider we cannot achieve full speed compared to external ONT

Thanks in advance

@Anime4000
Copy link
Owner

Firmware for TWCGPON657 is there in Firmware folder, I not sure Firmware is interchangeable, however I haven't tried 2.5GbE since I don't have 2.5GbE capable SFP+ Router

@stich86
Copy link
Author

stich86 commented Feb 27, 2022

TWCGPON657

So we cannot use TWCGPON657 firmware on V2801F?

TWCGPON657 isn't available everywhere :(

@Anime4000
Copy link
Owner

Yes, I have tried it, the PON laser didn't give any reading.

need someone reverse engineering rtl driver to support 2.5GbE

@stich86
Copy link
Author

stich86 commented Feb 27, 2022

Yes, I have tried it, the PON laser didn't give any reading.

need someone reverse engineering rtl driver to support 2.5GbE

Do you have the TWGPON? Can be interesting to get an "nv getenv". Looks like that on the V2801F's kernel there are references to HiSGMII may be we just need to enable a flag on the uBoot or XML

@Anime4000 Anime4000 added the question Further information is requested label Feb 27, 2022
@Anime4000
Copy link
Owner

Yes, I have tried it, the PON laser didn't give any reading.
need someone reverse engineering rtl driver to support 2.5GbE

Do you have the TWGPON? Can be interesting to get an "nv getenv". Looks like that on the V2801F's kernel there are references to HiSGMII may be we just need to enable a flag on the uBoot or XML

currently I use TWCGPON657 with V2801F firmware..

here my nv getenv

# nv getenv
Valid environment: 2
b0=setenv bootargs ${bootargs_base} ${mtdparts0} ${rst2dfl_flg}; bootm ${img0_kernel}
b1=setenv bootargs ${bootargs_base} ${mtdparts1} ${rst2dfl_flg}; bootm ${img1_kernel}
baudrate=115200
boot_by_commit=if itest.s ${sw_commit} == 0;then run set_act0;run b0;else run set_act1;run b1;fi
boot_by_tryactive=if itest.s ${sw_tryactive} == 0;then setenv sw_tryactive 2;setenv sw_active 0;saveenv;run en_wdt;run b0;else setenv sw_tryactive 2;setenv sw_active 1;saveenv;run en_wdt;run b1;fi
bootargs=console=ttyS0,115200 mtdparts=rtk_spi_nor_mtd:256K(boot),8K(env),8K(env2),240K(config),3M(k0)ro,4864K(r0)ro,3M(k1),4864K(r1),4K@0ro,4K@0ro,4K@0ro,4K@0ro,3M@512K(linux),4864K@3584K(rootfs) root=31:5
bootargs_base=console=ttyS0,115200
bootcmd=if itest.s ${sw_tryactive} == 2; then run boot_by_commit;else run boot_by_tryactive;fi
bootdelay=5
en_wdt=mw b8003268 e7c00000
erase_cfgfs=sf erase ${fl_cfgfs} +${fl_cfgfs_sz}
erase_env=sf erase ${fl_env} +${fl_env_sz};sf erase ${fl_env2} +${fl_env_sz}
ethact=LUNA GMAC
ethaddr=00:E0:4C:00:00:00
filesize=354800
fl_boot_sz=40000
fl_cfgfs=44000
fl_cfgfs_sz=3c000
fl_env=40000
fl_env2=42000
fl_env_sz=2000
fl_kernel1=80000
fl_kernel1_sz=300000
fl_kernel2=840000
fl_kernel2_sz=300000
fl_rootfs1=380000
fl_rootfs1_sz=4c0000
fl_rootfs2=b40000
fl_rootfs2_sz=4c0000
ftfp_base=80000000
fx1000_init=mw bb000084 00000048
img0_kernel=94080000
img1_kernel=94840000
ipaddr=192.168.1.3
mtdparts0=mtdparts=rtk_spi_nor_mtd:256K(boot),8K(env),8K(env2),240K(config),3M(k0)ro,4864K(r0)ro,3M(k1),4864K(r1),4K@0ro,4K@0ro,4K@0ro,4K@0ro,3M@512K(linux),4864K@3584K(rootfs) root=31:5
mtdparts1=mtdparts=rtk_spi_nor_mtd:256K(boot),8K(env),8K(env2),240K(config),3M(k0),4864K(r0),3M(k1)ro,4864K(r1)ro,4K@0ro,4K@0ro,4K@0ro,4K@0ro,3M@8448K(linux),4864K@11520K(rootfs) root=31:7
netmask=255.255.255.0
serverip=192.168.1.7
set_act0=if itest.s ${sw_active} != 0;then setenv sw_active 0;saveenv;fi
set_act1=if itest.s ${sw_active} != 1;then setenv sw_active 1;saveenv;fi
sgmii_init=mw bb000084 00000044
stderr=serial
stdin=serial
stdout=serial
sw_active=0
sw_commit=0
sw_crc0=4f036fd6
sw_crc1=4f036fd6
sw_tryactive=2
sw_valid0=1
sw_valid1=1
sw_version0=V1.9.0-201104
sw_version1=V1.9.0-201104
upb=tftp ${ftfp_base} plr.img && crc32 ${fileaddr} ${filesize} && sf erase 0 +${fl_boot_sz} && sf write ${fileaddr} 0 ${filesize}
upk=tftp ${ftfp_base} uImage && crc32 ${fileaddr} ${filesize} && sf erase ${fl_kernel1} +${fl_kernel1_sz} && sf write ${fileaddr} ${fl_kernel1} ${filesize}
upk1=tftp ${ftfp_base} uImage && crc32 ${fileaddr} ${filesize} && sf erase ${fl_kernel2} +${fl_kernel2_sz} && sf write ${fileaddr} ${fl_kernel2} ${filesize}
upr=tftp ${ftfp_base} rootfs && crc32 ${fileaddr} ${filesize} && sf erase ${fl_rootfs1} +${fl_rootfs1_sz} && sf write ${fileaddr} ${fl_rootfs1} ${filesize}
upr1=tftp ${ftfp_base} rootfs && crc32 ${fileaddr} ${filesize} && sf erase ${fl_rootfs2} +${fl_rootfs2_sz} && sf write ${fileaddr} ${fl_rootfs2} ${filesize}
upt=tftp 80000000 img.tar && upimgtar ${fileaddr} ${filesize}
upv=tftp 80000000 vm.img;upvmimg ${fileaddr}
yu=loady 80000000 && cp.b 80000000 81000000 ${filesize} && cmp.b 80000000 81000000 ${filesize} && sf erase 0 ${filesize} && sf write 80000000 0 ${filesize}

@stich86
Copy link
Author

stich86 commented Feb 27, 2022

Thanks!

So can I flash TWGCP FW on V2801F as second image? I want to check if it can links at 2.5GbE

Because we are using uBoot it's easy to rollback using serial. Do you know if v2801f has UART exposed on SFP side?

Thanks again

@Anime4000
Copy link
Owner

Anime4000 commented Feb 27, 2022

You can flash V2801F with TWCGPON657 firmware, you need tweak it to make PON Laser working which is I dont know yet...

There 3 different version C00R657V00B13 I not sure which one is 2.5GbE

C00R657V00B13_20191024.tar
C00R657V00B13_20191205.tar
B13_20200507.tar

You try all 3 and tell me which one support 2.5GbE, and check nv getenv especially sgmii_init= value

I have TWCGPON657 and V2801F stick, both stick are not expose UART on SFP even UART pin

@stich86
Copy link
Author

stich86 commented Feb 27, 2022

Which tweak is needed? Just use these tar file on the WebUI update?

Thx

@Anime4000
Copy link
Owner

just flash it as usual, if not working, you need downgrade V2801F firmware first

@stich86
Copy link
Author

stich86 commented Feb 27, 2022

just flash it as usual, if not working, you need downgrade V2801F firmware first

Currently I'm using the latest firmware found here on your repo on my V2801F. I'll try it tonight an report back the findings ;)

@Anime4000
Copy link
Owner

great...

if you plan to flash back V2801F firmware, set flash set PON_MODE 3 to prevent V2801F auto restart, because TWCGPON657 did not have VS_AUTH_KEY

flash set PON_MODE 3 in V2801F behavior is different, you need disconnect fiber then can get back telnet

@stich86
Copy link
Author

stich86 commented Feb 27, 2022

good and bad news...

good news: I was able to flash both 2019 and 2020 B13/B15 files on my V2801F. On first attempt i catch into /proc/kmsg this log:

<4>change mode to 5(HiSGMII MAC)

so looks like that the TWCGPON657 acts in a different way. also a "nv getenv" doesn't reports any difference between the two firmware. On the login page I was able to read the TX Power of laser, but not able to test with fiber attached.

Now the bad news

After some test I cannot logon anymore on the firmware :( i've tried all password but nothing to do, so i'm out and cannot access by telnet or web.

Do you know if there are a default credential that I can try?

thanks in advance

EDIT: i was able to login again with "system" password. I've tried also to attach the fiber and the stick cannot go ahead of O3 status.

Now my major problem is to fix the EEPROM. Looks like that the stick with the firmware from TWCGPON657 doesn't expose anything on that, and it cannot be enabled on my MacchiatoBIN to check if the link goes at 2500Base-SX

Any hits how to fix the EEPROM?

@stich86
Copy link
Author

stich86 commented Feb 27, 2022

a little update:

the code into kernel

<4>change mode to 5(HiSGMII MAC)

it's called when parameter LAN_SDS_MODE is set to 5.
Switch it to 1 reports <4>change mode to 1(Fiber 1G)

Now I cannot test it on my MacchiatoBIN because the eeprom is empty and Linux doesn't initialize the SFP port

@Anime4000 can you send me a cat /proc/kmsg of your TWCGPON657 with V2801F and LAN_SDS_MODE set to 5?

Thanks in advance

@Anime4000
Copy link
Owner

Anime4000 commented Feb 27, 2022

BusyBox v1.12.4 (2020-10-26 08:35:57 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

# flash get LAN_SDS_MODE
LAN_SDS_MODE=2

That default value for my LAN_SDS_MODE

then I set LAN_SDS_MODE to 5 and do cat /proc/kmsg prints noting

then I flash get LAN_SDS_MODE also prints noting and stuck, I need CTRL+C

it seem V2801F firmware are not build to support 2.5GbE

can you try possible value for LAN_SDS_MODE ?

Value Speed /proc/kmsg
1 1GbE <4>change mode to 1(Fiber 1G)
2 same like 1 with full bridge ??
3
4
5 2.5GbE <4>change mode to 5(HiSGMII MAC)

I've tried also to attach the fiber and the stick cannot go ahead of O3 status.

you got RX reading?

@stich86
Copy link
Author

stich86 commented Feb 27, 2022

Regarding laser reading, this is my current situation:

image

I've tried LAN_SDS_MODE to 2-3-4 and there are all the reports on kmsg

<4>change mode to 2(SGMII PHY)
<4>change mode to 3(SGMII MAC)
<4>change mode to 4(HiSGMII PHY)

Now my main problem is the eeprom reading to test if the 2.5GbE it's working..
Your TWCGPON with V2801F reports valid eeprom?

Thanks

@Anime4000
Copy link
Owner

I use EdgeRouter 12 can read EEPROM like this:
image

Ubiquiti use this kernel patch to allow reading RTL9601C1 EEPROM emulator, yes, RTL9601C1 didn't have EEPROM, it just emulating it.

for Mikrotik, I not sure, I need but the device to fully test.

what OS you using inside MacchiatoBIN?

@stich86
Copy link
Author

stich86 commented Feb 27, 2022

I use EdgeRouter 12 can read EEPROM like this:

image

Ubiquiti use this kernel patch to allow reading RTL9601C1 EEPROM emulator, yes, RTL9601C1 didn't have EEPROM, it just emulating it.

for Mikrotik, I not sure, I need but the device to fully test.

what OS you using inside MacchiatoBIN?

On MCBIN I'm using OpenWRT snapshot. Before flashing TWCGPON firmware on V2801F, the stick was correctly recognized and the patch you have linked was working. Now the kernel Linux (and also my Ubiquiti switch) didn't recognize any info from the SFP.

It's strage because I'm assuming that the EEPROM should be generated by the OS (may be configd daemon?)..

Do you know if the stock can still be bought somewhere?

@Anime4000
Copy link
Owner

image

there is 2 option I can think of,

  1. modify TWCGPON657 firmware with squashfs-tools and qemu-user-static you can copy configd from V2801F to TWCGPON657

  2. try DFP-34X-2C2 firmware

I bought TWCGPON657 here

need to login, use google chrome to translate page without proxy/iframe

I notice LAN_SDS_MODE have PHY (Layer 1) and MAC (Layer 2), have you try 2 or 4 (PHY) if made a different ?

@stich86
Copy link
Author

stich86 commented Feb 27, 2022

image

there is 2 option I can think of,

  1. modify TWCGPON657 firmware with squashfs-tools and qemu-user-static you can copy configd from V2801F to TWCGPON657

  2. try DFP-34X-2C2 firmware

I bought TWCGPON657 here

need to login, use google chrome to translate page without proxy/iframe

I notice LAN_SDS_MODE have PHY (Layer 1) and MAC (Layer 2), have you try 2 or 4 (PHY) if made a different ?

As I've said until I have problems with the eeprom the OpenWrt on my MCBIN doesn't initialize the SFP port :(

Regarding DFP-34X-2C2 firmware, is it working on V2801F?

@Anime4000
Copy link
Owner

Anime4000 commented Feb 27, 2022

As I've said until I have problems with the eeprom the OpenWrt on my MCBIN doesn't initialize the SFP port :(

Sorry, this mean SFP has no connection? ~ 6 am here I haven't sleep 🤣

Regarding DFP-34X-2C2 firmware, is it working on V2801F?

This one I not tried yet, because my V2801F has been dead for 1 year because invalid VS_AUTH_KEY, my plan to read NAND flash and modify it

@stich86
Copy link
Author

stich86 commented Feb 27, 2022

The problem is that on Linux kernel SFP needs to pass various steps, in my case the SFP_MOD_PROBE that check the EEPROM doesn't pass validation and so the cage is not enabled. Unifi switch is less restrictive but it's only 1Gbit/s device so I cannot test HSGMII@2.5GbE

I don't understand one thing: if I revert back to the V2810F firmware what's are the correct step to follow and avoid boot loop?

Thanks

@Anime4000
Copy link
Owner

I see

to revert back V2801F firmware, do this:

  • Downgrade TWCGPON657 firmware to B13
  • flash set PON_MODE 3
  • Upgrade V2801F firmware latest
  • After updated, flash set VS_AUTH_KEY

doing PON_MODE 3 will put stick in Fiber Ethernet mode, disconnect fiber until updated VS_AUTH_KEY

@stich86
Copy link
Author

stich86 commented Feb 28, 2022

ok so PON_MODE 3 avoid auto-reboot right?

Today i'll try to force a link (with clean up sfp.c on kernel) to see if the stick can negotiate at 2500

@stich86
Copy link
Author

stich86 commented Feb 28, 2022

@Anime4000 are you able to dump the flash using SOP8 clip?
I want to make a dump with currently working stick, because if something goes wrong I can rollback to a working stick

Thanks in advance

@stich86
Copy link
Author

stich86 commented Feb 28, 2022

ok so PON_MODE 3 avoid auto-reboot right?

Today i'll try to force a link (with clean up sfp.c on kernel) to see if the stick can negotiate at 2500

about this test, it went bad :(
i think that EEPROM should be populated in the right way, otherwise the PHY media cannot be activated.. so next step after possibility to flash the NAND i'll try to create an hybrid firmware as suggested: uImage from TWCGPON and rootfs from V2801F

@stich86
Copy link
Author

stich86 commented Feb 28, 2022

@Anime4000

May be i've found where the parameter LAN_SDS_MODE is readed and configured

the file that change the behaviour is runlansds.sh

on the V2810F this is the code:

#!/bin/sh

echo 1 > proc/lan_sds/lan_sds_cfg
echo 1 > proc/lan_sds/sfp_app
sfpapp &

while TWCGPON657 is parsing the mode from XML file and set it based on the value on it:

#!/bin/sh

lan_sds_mode=`flash get LAN_SDS_MODE | sed 's/LAN_SDS_MODE=//g'`
echo $lan_sds_mode > proc/lan_sds/lan_sds_cfg
echo 1 > proc/lan_sds/sfp_app
sfpapp &

So I think that V2801F with modded files and new rootfs can change this behaviour.

Now i've to flash back my stick and try..

@Anime4000
Copy link
Owner

Anime4000 commented Mar 1, 2022

Nice finding... 👍

I also manage to update qemu script
https://github.com/Anime4000/RTL9601C1/tree/main/Tools/emulator

making thing easier!

I notice /bin/sfpapp didn't exist in TWCGPON657 firmware

@stich86
Copy link
Author

stich86 commented Mar 1, 2022

Little update:

this morning i've repacked the V2801F firmware changing the file runlansds.sh
LAN_SDS_MODE was set to 2. Now the stick is up (ethernet link) but I cannot access it anymore..

So i've only two way to restore:

  1. dump the flash and change the active image on the mtd1/mtd2 partition
  2. try to find the UART TX/RX on the RTL9601CI to see what's going on

If I have any news i'll update this thread

@galvesribeiro
Copy link

@marcinkuczera

In general - do not use that switch.

Understood. But, how would it work for @stich86 in this case? It is the same scenario. His example is also using RoS 7. And as I mentioned the RateSelect is set to High.

@ToTheCLI
Copy link

@marcinkuczera

In general - do not use that switch.

Understood. But, how would it work for @stich86 in this case? It is the same scenario. His example is also using RoS 7. And as I mentioned the RateSelect is set to High.

Different OLT or configuration from ISP.

@galvesribeiro
Copy link

@ToTheCLI ok, but then it would fail when connected to the Ubiquiti UDM/UDW, right?

@ToTheCLI
Copy link

@ToTheCLI ok, but then it would fail when connected to the Ubiquiti UDM/UDW, right?

Different response from Ubiquiti to dying gasp.

@galvesribeiro
Copy link

@stich86 have you had any issues in regards to the dying gasp using the ODI on that switch?

@stich86
Copy link
Author

stich86 commented May 17, 2023

no, but i'm not using ODI for at least 6 month, i'm on XGSPON now..
anyway which RouterOS are you using?

@galvesribeiro
Copy link

i'm on XGSPON now..

Can you link that? I can purchase one.

which RouterOS are you using?

v7.9

@stich86
Copy link
Author

stich86 commented May 17, 2023

i'm on XGSPON now..

Can you link that? I can purchase one.

ehm... XGSPON is a different technology than GPON, it's a 10/10Gbit line :)
it's not an GPON SFP :D

@marcinkuczera
Copy link

marcinkuczera commented May 17, 2023 via email

@galvesribeiro
Copy link

Ok, I finally found what the problem is. The 2.5G works perfectly fine. That switch works perfectly fine, and the laser was being powered just fine.

The problem was a misconfiguration in the Bridge on the switch. The port from which the ODI is connected needs to be tagged on VLAN 10 and untagged on VLAN 1. If I just leave it only on the tagged VLAN 10, the PPPoE connection wouldn't work. If I leave it untagged without the VLAN10, as soon as the local network sends traffic thru the fiber, the OLT shut us down with an alarm and we have to wait a bit to try again.

On a side note, the RateSelect is not hardwired on the CRS305-1G-4S+. I've spoke with Mikrotik support and they told me the device is respecting the changes. It is just that it is not making any difference when setting it to Low from the High default with the ODI.

After the proper config on the CRS305-1G-4S+ switch bridge, I've being using the ODI for a week with 0 disconnections. I've manually rebooted the switch and the ODI multiple times and it always reconnect perfectly fine.

TL;DR; you can use the CRS305-1G-4S+ with the ODI in 2.5G mode.

@Smotrov
Copy link

Smotrov commented Dec 3, 2023

Hi everyone!
Is anybody knows how to upgrade firmware if this option seams to be not available in WebUI?
Знімок екрана 2023-12-03 о 13 08 37
Thank you in advance!

@Anime4000
Copy link
Owner

@Smotrov here http://192.168.1.1/upgrade.asp

@jimpapi
Copy link

jimpapi commented Jan 12, 2024

tested and succeded with ODI Xpon and this MEDIA CONVERTER (plug n play)
https://www.aliexpress.com/item/1005006030736958.html?spm=a2g0o.order_list.order_list_main.39.12f71802S4heXQ
For the moment at 1 Gbps!
IMG_0413

But i will try at 2.5 Gbps as soon i am pretty sure about the LAN_SDS_MODE (i am not certain if the media converter uses 2.5Gb PHY or 2500baseX. I am afraid to test it because if i lose contact with sfp i don't have another way to get it back. So i am waiting instructions from the manufacturer of media converter from China).

@Anime4000
Copy link
Owner

I believe ODI has SFP MII Auto Negotiation. My Media Converter works well with 2500Base-X.

Stick boot time take ~30 second and 2500Base-X work right away, no Auto Negotiation involved

@jimpapi
Copy link

jimpapi commented Jan 13, 2024

I believe ODI has SFP MII Auto Negotiation. My Media Converter works well with 2500Base-X.

Stick boot time take ~30 second and 2500Base-X work right away, no Auto Negotiation involved

ODI has AutoNegotiation but only for 1000gbps option? or for 2.5G also? should i give?? flash set LAN_SDS_MODE = 6 ( change mode to 6(2500BaseX))
But if media converter don't support 2500BaseX i will lose the contact with ODI and i will have to restore it with UART because i don't have another Media Converter that supports 2500BaseX to communicate with ODI.
So please tell me if you know. Is ODI AutoNegotiation also for all LAN_SDS_MODE (1-6)? or only for (1-3)?
Now my ODI is in LAN_SDS_MODE = 0
thank you Anime4000...

@vuducdong
Copy link

vuducdong commented Jan 13, 2024

@jimpapi

ODI has an auto-detect function from 1 to 7, I see it searches sequentially, changing mode from 0 to 1, then from 1 to 3, then to 4, finally to 7, whenever the receiving device matches then it will stop checking, otherwise the loop continues.

'# counter = 0
Link Down
change to fiber mode
change mode to 1(Fiber 1G)

'# counter = 0
Link Down
change mode to 3(SGMII MAC)

'# counter = 0
Link Down
change mode to sgmii force change mode to 4(HiSGMII PHY)

'#
'#
'#
'#
'#
'# counter = 0
Link Down
change to sgmii force sgmii mode is 7
change mode to 7(SGMII Force)

It will always prioritize 1G mode (if your device is in Auto mode), unless you permanently assign it to 2.5G then it automatically switches LAN_SDS_MODE from 0 to 4).

If you do not have a media converter that supports 2.5G, don't change to modes 4, 5, 6, and 7, otherwise you will not be able to access sfp (you must use UART at that time to reset).

@jimpapi
Copy link

jimpapi commented Jan 13, 2024

Thank you! I suppose my media converter supports 2500baseX but since odi doesn’t autodetect mode 6 I can’t risk do it manually! I will contact the aliexress supplier to be sure

@vuducdong
Copy link

Thank you! I suppose my media converter supports 2500baseX but since odi doesn’t autodetect mode 6 I can’t risk do it manually! I will contact the aliexress supplier to be sure

Why do you want to change to mode 6, what about 4 and 5? Does your media converter have buttons on the front or back? to manually select between 1G and 2.5G

for example as shown below:

image

or

image

@jimpapi
Copy link

jimpapi commented Jan 13, 2024

my media converter is in the photo above. No buttons. It says supports 1g , 2.5g , 10g but i don't know the protocol.
https://www.aliexpress.com/item/1005006030736958.html?spm=a2g0o.order_list.order_list_main.38.6b691802erL3sB

@Anime4000
Copy link
Owner

Anime4000 commented Jan 13, 2024

image

My 2.5G Media Converter is this one

I like this more than any,

as I said, it support 2500Base-X right away, it just take < 30 sec to complete boot with WebGUI ready to access.
I tried set HiSGMII PHY and MAC, boot time is > 60 seconds, after boot, HiSGMII PHY failed to link with Media Converter at first time, so, need to wait 2nd retry, thus longer time...

2500Base-X quite useful on RB5009, it worked at first try and after RB5009 completed the boot and internet connected!

About SFP MII Auto Nego on ODI/HSGQ sticks, don't worry setting to Mode 6, as @vuducdong tell, it will Auto Nego.

@ishanjain28
Copy link

ishanjain28 commented Jan 16, 2024

I am using the ODI SFP purchased from here and I am using it in a RB5009UPr.

It is not stable at 2.5gbit link rate with LAN_SDS_MODE set to 5 or 6 and ROS set to 2.5G-Base-X. SFP's interface some times becomes inaccessible and I see a surge in Tx queue drops counter. I have not yet tested if this could be affecting stability of the pppoe tunnel running on it.

Auto negotiation does not work and 1G-Base-X with LAN_SDS_MODE set to 1 is stable.

image

image

Edit 1:

Should I try the newer firmware on this device? 🤔

sw_active=1
sw_commit=1
sw_crc0=5bfcffa5
sw_crc1=5bfcffa5
sw_tryactive=2
sw_valid0=1
sw_valid1=1
sw_version0=V1.1-231206
sw_version1=V1.0--230303

@vuducdong
Copy link

vuducdong commented Jan 16, 2024

I am using the ODI SFP purchased from here and I am using it in a RB5009UPr.

It is not stable at 2.5gbit link rate with LAN_SDS_MODE set to 5 or 6 and ROS set to 2.5G-Base-X. SFP's interface some times becomes inaccessible and I see a surge in Tx queue drops counter. I have not yet tested if this could be affecting stability of the pppoe tunnel running on it.

Auto negotiation does not work and 1G-Base-X with LAN_SDS_MODE set to 1 is stable.

image

image

Edit 1:

Should I try the newer firmware on this device? 🤔


sw_active=1

sw_commit=1

sw_crc0=5bfcffa5

sw_crc1=5bfcffa5

sw_tryactive=2

sw_valid0=1

sw_valid1=1

sw_version0=V1.1-231206

sw_version1=V1.0--230303

Have you tried with version V1.1-231206 on sw_version0 ??? compared to the latest versions today (v1.0-220923 or v1.2.2-221209)

@Anime4000
Copy link
Owner

there is new firmware? 231206 ?

@ishanjain28
Copy link

Yess, looks like that. I don't know why they configured it to run v1.0-230303 out of the box instead of the newer firmware.

And even on 1g-base-x, I see some tx drops although considerably less than what I was seeing on 2.5g-base-x. I'll try the new firmware in a few hours.

@ishanjain28
Copy link

ishanjain28 commented Jan 16, 2024

I tried to boot into v1.1-231206 like this,

nv setenv sw_active=0
reboot

It reboots, Link comes up for around 30 seconds in rb5009, goes down and then comes back up again. At the end, It reboots back into v1.0-230303 (sw_version 1)

I am not sure if I am doing this right or a way to get logs from it to see what is it doing

flash all output
<Config Name="ROOT">
 <Dir Name="HW_MIB_TABLE">
  <Value Name="SUPER_NAME" Value="adsl"/>
  <Value Name="SUPER_PASSWORD" Value="realtek"/>
  <Value Name="TEST_MAC_ADDR" Value="realtek"/>
  <Value Name="ELAN_MAC_ADDR" Value="383a2128b658"/>
  <Value Name="WLAN_MAC_ADDR" Value="00e04c076802"/>
  <Value Name="MAC_KEY" Value="2925cb326156f98c2532c7de3f6996a5"/>
  <Value Name="RESTORE_DEFAULT_EN" Value="1"/>
  <Value Name="WAN_PHY_PORT" Value="4"/>
  <Value Name="LASER_POLARITY_TYPE" Value="0"/>
  <Value Name="PON_DETECT_ENABLE" Value="1"/>
  <Value Name="HW_RF_TYPE" Value="7"/>
  <Value Name="HW_WLAN0_TX_POWER_CCK_A" Value="00,00,00,00,00,00,00,00,00,00,00,00,00,00"/>
  <Value Name="HW_WLAN0_TX_POWER_CCK_B" Value="00,00,00,00,00,00,00,00,00,00,00,00,00,00"/>
  <Value Name="HW_WLAN0_TX_POWER_HT40_1S_A" Value="00,00,00,00,00,00,00,00,00,00,00,00,00,00"/>
  <Value Name="HW_WLAN0_TX_POWER_HT40_1S_B" Value="00,00,00,00,00,00,00,00,00,00,00,00,00,00"/>
  <Value Name="HW_WLAN0_TX_POWER_DIFF_HT40_2S" Value="00,00,00,00,00,00,00,00,00,00,00,00,00,00"/>
  <Value Name="HW_WLAN0_TX_POWER_DIFF_HT20" Value="00,00,00,00,00,00,00,00,00,00,00,00,00,00"/>
  <Value Name="HW_WLAN0_TX_POWER_DIFF_OFDM" Value="00,00,00,00,00,00,00,00,00,00,00,00,00,00"/>
  <Value Name="HW_WLAN0_11N_TSSI1" Value="0"/>
  <Value Name="HW_WLAN0_11N_TSSI2" Value="0"/>
  <Value Name="HW_WLAN0_11N_THER" Value="0"/>
  <Value Name="HW_WLAN0_11N_THER_2" Value="0"/>
  <Value Name="HW_WLAN0_11N_PA_TYPE" Value="0"/>
  <Value Name="HW_WLAN0_REG_DOMAIN" Value="1"/>
  <Value Name="HW_WLAN0_11N_TRSWITCH" Value="0"/>
  <Value Name="HW_WLAN0_11N_TRSWPAPE_C9" Value="0"/>
  <Value Name="HW_WLAN0_11N_TRSWPAPE_CC" Value="0"/>
  <Value Name="HW_ANT_DIVERSITY" Value="0"/>
  <Value Name="HW_TX_ANT" Value="0"/>
  <Value Name="HW_CS_THRESHOLD" Value="11"/>
  <Value Name="HW_CCA_MODE" Value="1"/>
  <Value Name="HW_PHY_TYPE" Value="0"/>
  <Value Name="HW_WLAN_LED_TYPE" Value="7"/>
  <Value Name="BYTE" Value="255"/>
  <Value Name="WORD" Value="65535"/>
  <Value Name="DWORD" Value="4294967295"/>
  <Value Name="INT1" Value="2147483647"/>
  <Value Name="INT2" Value="-2147483648"/>
  <Value Name="WIFI_SUPPORT" Value="0"/>
  <Value Name="HW_SERIAL_NO" Value="XPON24000001"/>
  <Value Name="HW_FON_KEYWORD" Value="63,62,68,4a,75,3c,65,cd,7b,75,e5,2d,a9,80,72,8c,97,fc,bd,9b,37,51,d9,e3,82,92,68,a1,07,ae,a0,b5"/>
  <Value Name="HW_WLAN0_11N_XCAP" Value="0"/>
  <Value Name="HW_WLAN0_11N_XCAP_2" Value="0"/>
  <Value Name="HW_WLAN0_11N_TARGET_PWR" Value="0"/>
  <Value Name="HW_WLAN0_COUNTRYCODE" Value="1"/>
  <Value Name="HW_WLAN1_COUNTRYCODE" Value="1"/>
  <Value Name="HW_WLAN0_COUNTRYSTR" Value="US"/>
  <Value Name="HW_WLAN1_COUNTRYSTR" Value="US"/>
  <Value Name="HW_CWMP_MANUFACTURER" Value="HSGQ"/>
  <Value Name="HW_CWMP_PRODUCTCLASS" Value="HSGQ-XPON-Stick"/>
  <Value Name="HW_HWVER" Value="V2.0"/>
  <Value Name="GPON_ONU_MODEL" Value="HSGQ-XPON-Stick"/>
  <Value Name="LAN_SDS_MODE" Value="1"/>
  <Value Name="PON_MODE" Value="2"/>
  <Value Name="PON_LED_SPEC" Value="0"/>
  <Value Name="OUI" Value="11,11,11"/>
  <Value Name="PORT_REMAPPING" Value="00,01,00,00"/>
  <Value Name="PON_VENDOR_ID" Value="HSGQ"/>
  <Value Name="GPON_SN" Value="XPON24000001"/>
  <Value Name="EPON_ONU_MODEL" Value="EPON"/>
  <Value Name="EPON_EXTONU_MODEL" Value="HSGQ-XPON-Stick"/>
  <Value Name="EPON_SILENT_MODE" Value="1"/>
 </Dir>
</Config>
<Config Name="ROOT">
 <Dir Name="MIB_TABLE">
  <Value Name="WAN_MODE" Value="7"/>
  <Value Name="LAN_IP_ADDR" Value="192.168.1.1"/>
  <Value Name="LAN_SUBNET" Value="255.255.255.0"/>
  <Value Name="LAN_ENABLE_IP2" Value="0"/>
  <Value Name="LAN_IP_ADDR2" Value="192.168.100.1"/>
  <Value Name="LAN_SUBNET2" Value="255.255.255.0"/>
  <Value Name="LAN_RIP" Value="0"/>
  <Value Name="LAN_AUTOSEARCH" Value="0"/>
  <Value Name="DNS_MODE" Value="0"/>
  <Value Name="DNS1" Value="0.0.0.0"/>
  <Value Name="DNS2" Value="0.0.0.0"/>
  <Value Name="DNS3" Value="0.0.0.0"/>
  <Value Name="ADSL_MODE" Value="83"/>
  <Value Name="ADSL_OLR" Value="3"/>
  <Value Name="USER_NAME" Value="user"/>
  <Value Name="USER_PASSWORD" Value="user"/>
  <Value Name="DEVICE_TYPE" Value="0"/>
  <Value Name="INIT_LINE" Value="1"/>
  <Value Name="INIT_SCRIPT" Value="1"/>
  <Value Name="SNMP_SYS_NAME" Value="Modem/Router"/>
  <Value Name="VC_AUTOSEARCH" Value="0"/>
  <Value Name="BR_AGEING_TIME" Value="7200"/>
  <Value Name="BR_STP_ENABLED" Value="0"/>
  <Value Name="MP_MODE" Value="4"/>
  <Value Name="SPC_ENABLED" Value="0"/>
  <Value Name="SPC_IPTYPE" Value="0"/>
  <Value Name="MP_FIN" Value="1"/>
  <Value Name="MULTI_LINGUAL_STATE" Value="en"/>
  <Value Name="TFTP_SERVER_ADDR" Value="tftp://0.0.0.0"/>
  <Value Name="POSIX_TZ_STRING" Value=""/>
  <Value Name="BOOT_FILENAME" Value=""/>
  <Value Name="UPNP" Value="0"/>
  <Value Name="UPNP_EXT_ITF" Value="255"/>
  <Value Name="SYSLOG_LOG_LEVEL" Value="0"/>
  <Value Name="SYSLOG_DISPLAY_LEVEL" Value="0"/>
  <Value Name="SUSER_NAME" Value="admin"/>
  <Value Name="SUSER_PASSWORD" Value="BC62D20EE008"/>
  <Value Name="E8BDUSER_NAME" Value="administrator"/>
  <Value Name="E8BDUSER_PASSWORD" Value="Stel$864"/>
  <Value Name="ADSL_TONE" Value="00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00"/>
  <Value Name="DIRECT_BRIDGE_MODE" Value="1"/>
  <Value Name="ADSL_HIGH_INP" Value="0"/>
  <Value Name="SYSLOG" Value="0"/>
  <Value Name="MAXLOGLEN" Value="16384"/>
  <Value Name="ADSLDBG" Value="0"/>
  <Value Name="MIB_ETH_MAC_CTRL" Value="0"/>
  <Value Name="MIB_WLAN_MAC_CTRL" Value="0"/>
  <Value Name="SNOOPING_ENABLED" Value="0"/>
  <Value Name="LOID" Value=""/>
  <Value Name="LOID_PASSWD" Value=""/>
  <Value Name="LOID_OLD" Value=""/>
  <Value Name="LOID_PASSWD_OLD" Value=""/>
  <Value Name="PROVINCE_TRAP_PPPOE_TRAFFIC" Value="0"/>
  <Value Name="GPON_PLOAM_FORMAT" Value="1"/>
  <Value Name="GPON_PLOAM_PASSWD" Value="31323334353637383930"/>
  <Value Name="OMCI_DBGLVL" Value="0"/>
  <Value Name="OMCI_LOGFILE" Value="0"/>
  <Value Name="OMCI_PORT_TYPE" Value="1"/>
  <Value Name="DUAL_MGMT_MODE" Value="1"/>
  <Value Name="OMCI_CUSTOM_BDP" Value="258"/>
  <Value Name="OMCI_CUSTOM_RDP" Value="4"/>
  <Value Name="OMCI_CUSTOM_MCAST" Value="0"/>
  <Value Name="OMCI_CUSTOM_ME" Value="65536"/>
  <Value Name="OMCI_VENDOR_PRODUCT_CODE" Value="15"/>
  <Value Name="OMCI_FAKE_OK" Value="1"/>
  <Value Name="OMCI_VEIP_SLOT_ID" Value="255"/>
  <Value Name="OMCI_WAN_QOS_QUEUE_NUM" Value="1"/>
  <Value Name="RTK_IGMP_DBGEN" Value="0"/>
  <Value Name="RTK_IGMP_DROPV1" Value="0"/>
  <Value Name="RTK_IGMP_VIDTYPE" Value="0"/>
  <Value Name="RTK_IGMP_TAGDECISION" Value="0"/>
  <Value Name="VLAN_CFG_TYPE" Value="0"/>
  <Value Name="VLAN_MANU_MODE" Value="0"/>
  <Value Name="VLAN_MANU_TAG_VID" Value="65535"/>
  <Value Name="VLAN_MANU_TAG_PRI" Value="255"/>
  <Value Name="OMCI_OLT_MODE" Value="0"/>
  <Value Name="OMCI_SW_VER1" Value="V1.1-231206"/>
  <Value Name="OMCI_SW_VER2" Value="V1.0--230303"/>
  <Value Name="OMCC_VER" Value="128"/>
  <Value Name="OMCI_TM_OPT" Value="2"/>
  <Value Name="OMCI_LOGFILE_MASK" Value="0"/>
  <Value Name="REBOOT_TIME" Value="0"/>
  <Value Name="DHCP_PORT_FILTER" Value="1"/>
  <Value Name="NTP_EXT_ITF" Value="65535"/>
  <Value Name="FIBER_MODE" Value="0"/>
  <Value Name="RTK_DEVID_MANUFACTURER" Value=""/>
  <Value Name="RTK_DEVID_OUI" Value=""/>
  <Value Name="RTK_DEVID_PRODUCTCLASS" Value=""/>
  <Value Name="RTK_DEVINFO_SPECVER" Value=""/>
  <Value Name="RTK_DEVINFO_SWVER" Value=""/>
  <Value Name="RTK_DEVINFO_HWVER" Value=""/>
  <Value Name="DEVICE_NAME" Value="RTK_GW"/>
 </Dir>
 <Dir Name="ATM_VC_TBL">
 </Dir>
 <Dir Name="SW_PORT_TBL"> <!--index=0-->
  <Value Name="PVCInterface" Value="65535"/>
  <Value Name="InterfaceGroup" Value="0"/>
  <Value Name="PVID" Value="0"/>
  <Value Name="LinkMode" Value="4"/>
  <Value Name="VLAN on LAN Enabled" Value="0"/>
  <Value Name="VLAN on LAN InterfaceGroup" Value="0"/>
  <Value Name="VID" Value="0"/>
 </Dir>
 <Dir Name="SW_PORT_TBL"> <!--index=1-->
  <Value Name="PVCInterface" Value="65535"/>
  <Value Name="InterfaceGroup" Value="0"/>
  <Value Name="PVID" Value="1"/>
  <Value Name="LinkMode" Value="4"/>
  <Value Name="VLAN on LAN Enabled" Value="0"/>
  <Value Name="VLAN on LAN InterfaceGroup" Value="0"/>
  <Value Name="VID" Value="0"/>
 </Dir>
 <Dir Name="MAC_BASE_DHCP_TBL">
 </Dir>
 <Dir Name="AUTO_PVC_SEARCH_TBL"> <!--index=0-->
  <Value Name="VPI" Value="0"/>
  <Value Name="VCI" Value="35"/>
 </Dir>
 <Dir Name="AUTO_PVC_SEARCH_TBL"> <!--index=1-->
  <Value Name="VPI" Value="8"/>
  <Value Name="VCI" Value="35"/>
 </Dir>
 <Dir Name="AUTO_PVC_SEARCH_TBL"> <!--index=2-->
  <Value Name="VPI" Value="0"/>
  <Value Name="VCI" Value="43"/>
 </Dir>
 <Dir Name="AUTO_PVC_SEARCH_TBL"> <!--index=3-->
  <Value Name="VPI" Value="0"/>
  <Value Name="VCI" Value="51"/>
 </Dir>
 <Dir Name="AUTO_PVC_SEARCH_TBL"> <!--index=4-->
  <Value Name="VPI" Value="0"/>
  <Value Name="VCI" Value="59"/>
 </Dir>
 <Dir Name="AUTO_PVC_SEARCH_TBL"> <!--index=5-->
  <Value Name="VPI" Value="8"/>
  <Value Name="VCI" Value="43"/>
 </Dir>
 <Dir Name="AUTO_PVC_SEARCH_TBL"> <!--index=6-->
  <Value Name="VPI" Value="8"/>
  <Value Name="VCI" Value="51"/>
 </Dir>
 <Dir Name="AUTO_PVC_SEARCH_TBL"> <!--index=7-->
  <Value Name="VPI" Value="8"/>
  <Value Name="VCI" Value="59"/>
 </Dir>
 <Dir Name="PPPOE_SESSION_TBL">
 </Dir>
 <Dir Name="RIP_TBL">
 </Dir>
 <Dir Name="DHCP_RESERVED_IPADDR_TBL">
 </Dir>
 <Dir Name="EPON_LLID_TBL"> <!--index=0-->
  <Value Name="macAddr" Value="383a:2128:b658:383a:2128:b659:383a:2128"/>
 </Dir>
 <Dir Name="EPON_LLID_TBL"> <!--index=1-->
  <Value Name="macAddr" Value="383a:2128:b659:383a:2128:b65a:383a:2128"/>
 </Dir>
 <Dir Name="EPON_LLID_TBL"> <!--index=2-->
  <Value Name="macAddr" Value="383a:2128:b65a:383a:2128:b65b:383a:2128"/>
 </Dir>
 <Dir Name="EPON_LLID_TBL"> <!--index=3-->
  <Value Name="macAddr" Value="383a:2128:b65b:383a:2128:b65c:383a:2128"/>
 </Dir>
 <Dir Name="EPON_LLID_TBL"> <!--index=4-->
  <Value Name="macAddr" Value="383a:2128:b65c:383a:2128:b65d:383a:2128"/>
 </Dir>
 <Dir Name="EPON_LLID_TBL"> <!--index=5-->
  <Value Name="macAddr" Value="383a:2128:b65d:383a:2128:b65e:383a:2128"/>
 </Dir>
 <Dir Name="EPON_LLID_TBL"> <!--index=6-->
  <Value Name="macAddr" Value="383a:2128:b65e:383a:2128:b65f::"/>
 </Dir>
 <Dir Name="EPON_LLID_TBL"> <!--index=7-->
  <Value Name="macAddr" Value="383a:2128:b65f::"/>
 </Dir>
</Config>
`nv getenv` output
Valid environment: 2
b0=setenv bootargs ${bootargs_base} ${mtdparts0} ${rst2dfl_flg}; bootm ${img0_kernel}
b1=setenv bootargs ${bootargs_base} ${mtdparts1} ${rst2dfl_flg}; bootm ${img1_kernel}
baudrate=115200
boot_by_commit=if itest.s ${sw_commit} == 0;then run set_act0;run b0;else run set_act1;run b1;fi
boot_by_tryactive=if itest.s ${sw_tryactive} == 0;then setenv sw_tryactive 2;setenv sw_active 0;saveenv;run en_wdt;run b0;else setenv sw_tryactive 2;setenv sw_active 1;saveenv;run en_wdt;run b1;fi
bootargs_base=console=ttyS0,115200
bootcmd=if itest.s ${sw_tryactive} == 2; then run boot_by_commit;else run boot_by_tryactive;fi
bootdelay=5
en_wdt=mw b8003268 e7c00000
erase_cfgfs=sf erase ${fl_cfgfs} +${fl_cfgfs_sz}
erase_env=sf erase ${fl_env} +${fl_env_sz};sf erase ${fl_env2} +${fl_env_sz}
ethact=LUNA GMAC
ethaddr=00:E0:4C:86:70:01
fileaddr=80000000
filesize=39A800
fl_boot_sz=40000
fl_cfgfs=44000
fl_cfgfs_sz=3c000
fl_env=40000
fl_env2=42000
fl_env_sz=2000
fl_kernel1=80000
fl_kernel1_sz=14c000
fl_kernel2=440000
fl_kernel2_sz=14c000
fl_rootfs1=1cc000
fl_rootfs1_sz=274000
fl_rootfs2=58c000
fl_rootfs2_sz=274000
fx1000_init=mw bb000084 00000048
img0_kernel=94080000
img1_kernel=94440000
ipaddr=192.168.1.3
mtdparts0=mtdparts=rtk_spi_nor_mtd:256K(boot),8K(env),8K(env2),240K(config),1328K(k0)ro,2512K(r0)ro,1328K(k1),2512K(r1),4K@0ro,4K@0ro,4K@0ro,4K@0ro,1328K@512K(linux),2512K@1840K(rootfs) root=31:5
mtdparts1=mtdparts=rtk_spi_nor_mtd:256K(boot),8K(env),8K(env2),240K(config),1328K(k0),2512K(r0),1328K(k1)ro,2512K(r1)ro,4K@0ro,4K@0ro,4K@0ro,4K@0ro,1328K@4352K(linux),2512K@5680K(rootfs) root=31:7
mupgrade_en=1
netmask=255.255.255.0
serverip=192.168.1.101
set_act0=if itest.s ${sw_active} != 0;then setenv sw_active 0;saveenv;fi
set_act1=if itest.s ${sw_active} != 1;then setenv sw_active 1;saveenv;fi
sgmii_init=mw bb000084 00000044
stderr=serial
stdin=serial
stdout=serial
sw_active=1
sw_commit=1
sw_crc0=5bfcffa5
sw_crc1=5bfcffa5
sw_tryactive=2
sw_valid0=1
sw_valid1=1
sw_version0=V1.1-231206
sw_version1=V1.0--230303
tftp_base=80000000
upb=tftp ${tftp_base} plr.img && crc32 ${fileaddr} ${filesize} && sf erase 0 +${fl_boot_sz} && sf write ${fileaddr} 0 ${filesize}
upe=tftp ${tftp_base} uboot-env-98d-eng.bin && sf erase ${fl_env} +${fl_env_sz} && sf write ${fileaddr} ${fl_env} ${fl_env_sz} && sf erase ${fl_env2} +${fl_env_sz} && sf write ${fileaddr} ${fl_env2} ${fl_env_sz}
upk=tftp ${tftp_base} uImage && crc32 ${fileaddr} ${filesize} && sf erase ${fl_kernel1} +${fl_kernel1_sz} && sf write ${fileaddr} ${fl_kernel1} ${filesize}
upk1=tftp ${tftp_base} uImage && crc32 ${fileaddr} ${filesize} && sf erase ${fl_kernel2} +${fl_kernel2_sz} && sf write ${fileaddr} ${fl_kernel2} ${filesize}
upr=tftp ${tftp_base} rootfs && crc32 ${fileaddr} ${filesize} && sf erase ${fl_rootfs1} +${fl_rootfs1_sz} && sf write ${fileaddr} ${fl_rootfs1} ${filesize}
upr1=tftp ${tftp_base} rootfs && crc32 ${fileaddr} ${filesize} && sf erase ${fl_rootfs2} +${fl_rootfs2_sz} && sf write ${fileaddr} ${fl_rootfs2} ${filesize}
upt=tftp 80000000 img.tar && upimgtar ${fileaddr} ${filesize}
upv=tftp 80000000 vm.img;upvmimg ${fileaddr}
yk=loady 80000000 && cp.b 80000000 81000000 ${filesize} && cmp.b 80000000 81000000 ${filesize} && sf erase ${fl_kernel1} +${fl_kernel1_sz} && sf write 80000000 ${fl_kernel1} ${filesize}
yr=loady 80000000 && cp.b 80000000 81000000 ${filesize} && cmp.b 80000000 81000000 ${filesize} && sf erase ${fl_rootfs1} +${fl_rootfs1_sz} && sf write 80000000 ${fl_rootfs1} ${filesize}
yu=loady 80000000 && cp.b 80000000 81000000 ${filesize} && cmp.b 80000000 81000000 ${filesize} && sf erase 0 +${fl_boot_sz} && sf write 80000000 0 ${filesize}

Edits:

  1. Correct way to boot into sw 0 was, nv setenv sw_commit 0. It is now booted up into v1.1-231206
    image

  2. v1.1-231206 also has similar tx queue drop problems. Should I ignore this problem? is it normal? I don't know what else they changed from the previous firmware.

  3. I didn't check other ethernet interfaces on the device. After looking at them, The tx queue drop problem is not isolated to the SFP interface and it's happening with sfp + all other ethernet interfaces. This is probably a problem with the software / hardware unrelated to sfp.

@mariodb0
Copy link

mariodb0 commented Dec 5, 2024

good news guys:

i've received this morning Mikrotik CRS-305. I've loaded ROS 7.3b33 (that enables 2.5 rate on SFP+ ports). Set the 'tik with this configuration (to make also VLAN swap and use my native 835):

/interface bridge vlan
add bridge=ont_bridge tagged=sfp-sfpplus3 vlan-ids=100
add bridge=ont_bridge tagged=sfp-sfpplus4 vlan-ids=835
/interface ethernet switch rule
add new-dst-ports=sfp-sfpplus3 new-vlan-id=100 ports=sfp-sfpplus4 switch=switch1 vlan-id=835
add new-dst-ports=sfp-sfpplus4 new-vlan-id=835 ports=sfp-sfpplus3 switch=switch1 vlan-id=100

fix the SFP port to 2.5 without auto-neg:

set [ find default-name=sfp-sfpplus3 ] advertise=2500M-full auto-negotiation=no speed=2.5Gbps

On ODI stick, because there is no auto-neg, it's necessary to fix LAN_SDS_MODE to 4:

flash set LAN_SDS_MODE 4 ; reboot

And here is the result:

image

@stich86 Ho un DFP-34X-2C2 con firmware originale 220923 installato su una 5009! Ho avuto modo di smanettarci molto ma non c'è stato verso di farlo funzionare! Gli impianti in fibra sono recentissimi e da come ho capito l'olt è huawei... L'ho configurato in bridge L2 per lasciar passare le vlan trasparenti ma nulla! Staggata ovviamente la 835 sull'sfp ed aggiunto un pppoe cli... c'è un modo per farlo funzionare oppure devo cestinarlo e rassegnarmi? Tra l'altro mi sono perso tra le mille discussioni implicite, incasinate e poco chiare e non ho ancora capito se è possibile aggiungere Mib sul firmware originale oppure se va modificato e se devo farlo per forza in seriale oppure via rete!

@marvokurven
Copy link

marvokurven commented Jan 24, 2025

Doesn't seem to work on the TP-Link ER7206, the SFP light on the router just keeps going on/off every 10 seconds or so. Afaik, the router supports 1G only.
haven't tried changing LAN_Mode on the stick yet, as I won't risk getting locked out from the stick. It currently works just fine with default settings on a Mikro-Tik router which also supports 1G only, so the auto-neg seems to be working as expected.

I'm suspecting either some timeout failure on the ER7206 (because of the stick's slow boot time) or it getting confused by (possible) vlan tagged traffic from the stick.
No vlans has been configured on the Mikro-Tik wan port though, so either the packets aren't tagged at all, or the Mikro-Tik doesn't care.

I might have to buy another stick for experimenting, as my current one is my only way of connecting to the internet, and messing it up is not an option.
GPON should be illegal...

@marcinkuczera
Copy link

there are several possible reasons for such behavior.
But I'am pretty sure that if you use our LXT-010S-H - you will not have problems like that. However, it is more expansive initially.

@marvokurven
Copy link

I think it might be related to the different modes the stick can operate (lan_sds_mode) but I'm reluctant to blindly testing my only stick. It is operating in mode 3 (1gb MAC, SGMII) which works on the Mikro-Tik, I don't know if this is the default setting, or if it has selected this automatically.

I suspect the ER7206 doesn't support this, and is expecting a fiber transceiver, thus putting the stick in mode 1 (1Gbasex fiber) could possibly work -or permanently lock me out from the stick.
has anyone tried?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests