stich86 / UF-Instant-Mod

Swap Unifi custom firmware with modified firmware to use GPON-ONU on 3rd party OLT
41 stars 3 forks source link

Assistance needed to flash root fs #20

Open NinoCasa opened 7 months ago

NinoCasa commented 7 months ago

Hi, i'm using windows 11, don't have a pc with linux.

NinoCasa commented 7 months ago

I'm trying to change the sn of ufiber instant, i will use it if it's successful in udm pro. I have a tplink mc220l that i'm using to access the ufiber instant.

image image image image image image

I can't figure how to use nc command.

NinoCasa commented 7 months ago

Well after some research, i figured out that i need to flash with the firmware v4.3.1.913 image image image image

Well always the same thing nc not found !!!!!

Can't figure out what i am missing ?

amaduain commented 7 months ago

NC tool is not there anymore, please check this post, you can download the data using wget and a local file server instead nc commnad: https://github.com/stich86/UF-Instant-Mod/issues/15

NinoCasa commented 7 months ago

Thank you for the hint, i will give it a try even if i'm not familiar with wget.

NinoCasa commented 7 months ago

Hi @amaduain Well, i didn't figure out how to create a local server 😅, but after a little research i find a command to transfer the mtd7 to the tmp directory: cp -f /dev/mtd7 /tmp

But the modified firmware didn't get installed, so i downgraded to the v4.1.0 on booth partitions and repeated the procedure with the same results.

Any assistance will be appreciated. image image image

NinoCasa commented 7 months ago

Well i was confused, i renamed rootfs to mtd7 and send it to /dev/mtd7 Now it worked and the credentials have changed to admin/admin 😎 image image image image

NinoCasa commented 7 months ago

I changed the gpon sn and vendor id but don't have internet, must investigate more

NinoCasa commented 7 months ago

Hi How to check the gpon sn of uf instant?

Kozino1 commented 7 months ago

`/etc/scripts/flash get OMCC_VER /etc/scripts/flash get GPON_PLOAM_PASSWD /etc/scripts/flash get OMCI_OLT_MODE /etc/scripts/flash get OMCI_FAKE_OK /etc/scripts/flash get PON_VENDOR_ID /etc/scripts/flash get GPON_ONU_MODEL /etc/scripts/flash get GPON_SN /etc/scripts/flash get HW_HWVER /etc/scripts/flash get OMCI_SW_VER1 /etc/scripts/flash get OMCI_SW_VER2 /etc/scripts/flash get CUSTOM_OMCI_SW_VER1 /etc/scripts/flash get CUSTOM_OMCI_SW_VER2 /etc/scripts/flash get HW_CWMP_PRODUCTCLASS

/etc/scripts/flash get HW_SERIAL_NO /etc/scripts/flash get HW_CWMP_MANUFACTURER /etc/scripts/flash get HW_CWMP_PRODUCTCLASS /etc/scripts/flash get OMCI_VEIP_SLOT_ID /etc/scripts/flash get ELAN_MAC_ADDR /etc/scripts/flash get VS_AUTH_KEY /etc/scripts/flash get MAC_KEY /etc/scripts/flash get OUI /etc/scripts/flash get HW_SERIAL_NO /etc/scripts/flash get LOID_PASSWD /etc/scripts/flash get LAN_SDS_MODE /etc/scripts/flash get VLAN_CFG_MODE /etc/scripts/flash get PON_MODE /etc/scripts/flash get FIBER_MODE`

Kozino1 commented 7 months ago

Change get to set and add your value

https://github.com/Anime4000/RTL960x/blob/main/Docs/FLASH_GETSET_INFO.md flash set OMCC_VER 160 flash set GPON_PLOAM_FORMAT 1 flash set GPON_PLOAM_PASSWD 44454641554c54000000 flash set OMCI_OLT_MODE 21 flash set OMCI_FAKE_OK 1 flash set PON_VENDOR_ID ALCL flash set GPON_ONU_MODEL BVMDE10CRAG010GA flash set GPON_SN ALC12345678 flash set HW_HWVER 3FE56389ACCK02 flash set OMCI_SW_VER1 3FE49269AGDB26 flash set OMCI_SW_VER2 3FE49269AGDB26 reboot

Kozino1 commented 7 months ago

I use MobaXterm. When using the SSH terminal this software has a file transfer agent and file editor built in. https://mobaxterm.mobatek.net/

I did not have much luck installing this image. I need output from OMCI MIB and firmware gives empty results.

I have tried a few different firmware and after many trials I have found that the ODI software appears to function the best.

My advice is to get the stick functioning/internet in the media converter and then transfer over to your UDM

NinoCasa commented 7 months ago

Hi, after using those commands, i got this from uf instant

OMCC_VER=128 GPON_PLOAM_PASSWD=1234567890 OMCI_OLT_MODE=0 OMCI_FAKE_OK=0 PON_VENDOR_ID=ZTEG GPON_ONU_MODEL=IGD GPON_SN=ZTEG12345678 HW_HWVER=RTL960x OMCI_SW_VER1= OMCI_SW_VER2=V1.9.0-220505 CUSTOM_OMCI_SW_VER1= CUSTOM_OMCI_SW_VER2= HW_CWMP_PRODUCTCLASS=IGD HW_SERIAL_NO=000000000002 HW_CWMP_MANUFACTURER=VSOL HW_CWMP_PRODUCTCLASS=IGD OMCI_VEIP_SLOT_ID=255 ELAN_MAC_ADDR=00e04c867001 VS_AUTH_KEY=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 [ERR] Warning, unknown dir name: MAC_KEY GET fail. OUI=11,11,11 HW_SERIAL_NO=000000000002 LOID_PASSWD= LAN_SDS_MODE=1 [ERR] Warning, unknown dir name: VLAN_CFG_MODE GET fail. PON_MODE=1 FIBER_MODE=0

NinoCasa commented 7 months ago

This is the settings in the uf nano g,i just changed the serrial number to the one i have on my isp's ont and it works perfectly.

So what do you think, what settings i must change in the uf instant to get it works. image image image

Kozino1 commented 7 months ago

use this tool with option dry run. It should extract the configuration file. Copy all values from this file and apply to instant/ https://github.com/Unifi-Tools/UFiber.Configurator/tree/main

NinoCasa commented 7 months ago

Thanks, I'll give it a try

NinoCasa commented 7 months ago

Hi Just switched the firmware image with the command: nv setenv sw_active 0 && nv setenv sw_commit 0 && reboot But when logging with telnet or ssh using ubnt/ubnt it doesn't log, what could be the problem ?

Kozino1 commented 6 months ago

Remove and insert the stick 11 times. Insert the stick, wait until the activity light comes on, and remove it. On the 11th insertion, leave the stick in your Switch/adapter.

Ping 192.168.1.1 and see if you have a response.

kllinnunes commented 3 days ago

I can access the UI, however, any change I try to make I get a "192.168.1.1 refused to connect" response. In addition, I can no longer access via SSH or TELNET. I have tried a factory reset but have not yet been successful in restoring SSH or TELNET connections. Can anyone help me?