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

use oroginal omcid #1

Open
mwaibel01 opened this issue Jan 10, 2021 · 15 comments
Open

use oroginal omcid #1

mwaibel01 opened this issue Jan 10, 2021 · 15 comments

Comments

@mwaibel01
Copy link

does anyone have a firmware with the original lantiq omcid enabled.

@hwti
Copy link
Owner

hwti commented Jan 10, 2021

Not yet.

As explained by the readme, the two oldest firmwares (3FE46398AFGA95 and 3FE46398BFGA06) have it, but it is not launched without modifying the start script.

Before creating a modified firmware, there are several issues :

  • someone has had an problem downgrading the firmware, so it might be risky
  • no one reported having omcid really working, at least with Orange France (which except in one case seems to cause issues with omciMgr)

@AxisRay
Copy link

AxisRay commented Mar 14, 2022

sys.zip
There is a custom firmware from China which used omcid

# backup
cat /dev/mtd1 > /tmp/uboot_env.bi

# set uboot env (I don't know what it means)
fw_setenv asc0 0
fw_setenv preboot

#reboot
reboot

# upload and flash the firmware 
mtd -e image1 write sys.bin image1 # depend which image currently running
update_env_flag 1
reboot

# default user/password is  root/password

# the custom firmware missed a startup script that can clear the boot_failed flag
# so you had better upload and flash another image to prevent reset after several booting
# Warning!  you should confirm that the firmware works well before flash another image. 
mtd -e image0 write sys.bin image0

@AxisRay
Copy link

AxisRay commented Mar 14, 2022

There are a lot of modifications in this firmware
image

@hwti
Copy link
Owner

hwti commented Mar 15, 2022

It looks like a cross-flash, not a modded G-010S-A image.
But it's strange to have this flashed without any partition change, since the G-010S-A is slightly different from the more standard MA5671 / G-010S-P / ...

This is a more recent Lantiq SDK (7.5.13 vs 7.5.3), I find references to Zaram SFP-P05.
It seems to have custom changes, like /etc/vlan, /bin/config_onu.sh.

So maybe it works in the G-010S-A, but maybe it has issues due to slight hardware differences. It's difficult to know if the optical calibration is correct for example (the files in /etc/optic have different values).

@AxisRay
Copy link

AxisRay commented Mar 15, 2022

Many people have used the firmware for a while in china, it seems stable.

@AxisRay
Copy link

AxisRay commented Mar 15, 2022

what difference between G-010S-P and G-010S-A ?
I found a seller who have many G-010S-P sticks.

@hwti
Copy link
Owner

hwti commented Mar 15, 2022

G-010S-P is older, and has a firmware which has less changes from the Lantiq SDK (the original omcid is present, and the firmware can be modified to use it).
It also has the UART wired like the MA5671, which means there is no need to short pin 6 to ground for it to work in BCM57810S cards.

@AxisRay
Copy link

AxisRay commented Mar 20, 2022

g010sa_ported-squashfs.zip
Another custom firmware from china which based on Carlitoxx-V1.
It can be flashed directly.

@vuducdong
Copy link

vuducdong commented Mar 20, 2022

@AxisRay

do you mean, the parameters fill in ASCII or Hex style ???

exam: hex is 30303535393132323700 or 0x30 0x30 0x35 0x35 0x39 0x31 0x32 0x32 0x37 0x00 ???

@AxisRay
Copy link

AxisRay commented Mar 20, 2022

no, fill in ASCII.

@vuducdong
Copy link

sys.zip There is a custom firmware from China which used omcid

# backup
cat /dev/mtd1 > /tmp/uboot_env.bi

# set uboot env (I don't know what it means)
fw_setenv asc0 0
fw_setenv preboot

#reboot
reboot

# upload and flash the firmware 
mtd -e image1 write sys.bin image1 # depend which image currently running
update_env_flag 1
reboot

# default user/password is  root/password

# the custom firmware missed a startup script that can clear the boot_failed flag
# so you had better upload and flash another image to prevent reset after several booting
# Warning!  you should confirm that the firmware works well before flash another image. 
mtd -e image0 write sys.bin image0

hi @AxisRay
after upgrading sys.bin, no optical connection, router always says no link.

@AxisRay
Copy link

AxisRay commented Mar 21, 2022

UPDATE:
@vuducdong

would you like to provide the log of omci?

for this custom firmware , you need modify /etc/init.d/omci.sh add -l /tmp/omcid.log and change debug level -d1
find this line
${OMCID_BIN} -d3 -p$mib_file -o$omcc_version -i$omci_iop_mask ${lct} > /dev/console 2> /dev/console &
modify to
${OMCID_BIN} -d1 -l /tmp/omcid.log -p$mib_file -o$omcc_version -i$omci_iop_mask ${lct} > /dev/console 2> /dev/console &
and copy the log in /tmp/omcid.log

for the origin firmware , just copy the log in /tmp/omci.log

@vuducdong
Copy link

would you like to provide the log of omci?

for this custom firmware , you need modify /etc/init.d/omci.sh add -l /tmp/omci.log and change debug level -d1

for the origin firmware , just copy the log in /tmp

sorry, I didn't take my laptop from office. so I cannot tell you the exact step.

oki, please step detail. Thanks!

@vuducdong
Copy link

vuducdong commented Mar 22, 2022

sys.zip There is a custom firmware from China which used omcid

# backup
cat /dev/mtd1 > /tmp/uboot_env.bi

# set uboot env (I don't know what it means)
fw_setenv asc0 0
fw_setenv preboot

#reboot
reboot

# upload and flash the firmware 
mtd -e image1 write sys.bin image1 # depend which image currently running
update_env_flag 1
reboot

# default user/password is  root/password

# the custom firmware missed a startup script that can clear the boot_failed flag
# so you had better upload and flash another image to prevent reset after several booting
# Warning!  you should confirm that the firmware works well before flash another image. 
mtd -e image0 write sys.bin image0

I can't using this firmware, upgrade ok, but router no link ,

change back original firmware, Router link ok.

@AxisRay
Copy link

AxisRay commented Mar 23, 2022

I can't using this firmware, upgrade ok, but router no link ,

sorry, i can't help you.
I don't know much about this firmware

maybe you can try another custom firmware mentioned in #1 (comment)

PS:
I have updated the steps of fetching log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants