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

Second run of UFiber.Configurator messed up the MAC address of a Loco #5

Open
donluca opened this issue Jun 1, 2021 · 8 comments
Open
Labels
enhancement New feature or request

Comments

@donluca
Copy link

donluca commented Jun 1, 2021

Hi,

I've just tried the script on a UFiber Loco with firmware 4.3.0.

First run went flawlessly and changed the MAC Addresses of all interfaces in the Loco without issues.

All the runs after this, though, managed to change only the MAC Address of the br0 interface and left all the others with the older one.

The interfaces available are bcmsw, br0, eth0 and eth0.0

This has led to the Loco malfunctioning with my internet provider.

A function to flash back the original dump would be useful as well.
If there is already one, I couldn't find it documented anywhere.

Please look into this, thanks.

@galvesribeiro
Copy link
Contributor

Hello!

That is weird that the devices aren't being reverted to whatever value you passed. I've tested that and not on the first time it worked but on all following runs it worked perfectly.

In all cases, I think it is valid that we should be able to have the ability to restore from the backup dumps and I just added it. I've added the --restore full\path\to\the\dump.bin.

Can you please check the latest version?

Thank you!

@galvesribeiro galvesribeiro added the enhancement New feature or request label Jun 1, 2021
@donluca
Copy link
Author

donluca commented Jun 1, 2021

Thank you so much for such a quick reply!

I've managed to restore the original dump by using netcat and dd. Tomorrow I'll try your new version and report back.

@galvesribeiro
Copy link
Contributor

Ahh cool. Thank you! :)

@donluca
Copy link
Author

donluca commented Jun 2, 2021

Tried the new version and the --restore did nothing, it made a dump and flashed it back.

Is there a verbose option to help you debugging issues?

@galvesribeiro
Copy link
Contributor

galvesribeiro commented Jun 2, 2021 via email

@donluca
Copy link
Author

donluca commented Jun 2, 2021

I've specified the path to the backup of course.

./UFiber.Configurator --restore /path/to/originalDump.bin

I'll give it a run tomorrow again and paste the output editing out the MAC Address, SN, etc.

@donluca
Copy link
Author

donluca commented Jun 4, 2021

Here's the log:

`./UFiber.Configurator --host 192.168.5.1 --restore /Users/luca/Dropbox/Ubiquiti\ Loco\ original.bin

Original Image

--- NVRAM Information --

  • mtdblock3 hash: 12ae208dbeb6c18a2e4569a2df9a77db9c3a12d7e3bf9f23bc16bc0c93f4dee1
  • NVRAM Version: 6
  • Boot parameters: e=192.168.1.1:ffffff00 h=192.168.1.254 g= r=f f=vmlinux i=bcm963xx_fs_kernel d=1 p=0 c= a=
  • Board Id: –––
  • PSI size: 24
  • Total MAC addresses: 5
  • GPON MAC address: –––
  • GPON Vendor Id: HWTC
  • GPON Serial Number: –––
  • GPON SLID (password):
  • Checksum: 3166978254

Patching fw-04062021-021611.bin...

Patched fw-04062021-021611.bin!

--- NVRAM Information --

  • mtdblock3 hash: 0511ded0049745667bef4cc523eb5830ceb02a087ca2ce58abb99b06509b4096
  • NVRAM Version: 6
  • Boot parameters: e=192.168.1.1:ffffff00 h=192.168.1.254 g= r=f f=vmlinux i=bcm963xx_fs_kernel d=1 p=0 c= a=
  • Board Id: –––
  • PSI size: 24
  • Total MAC addresses: 5
  • GPON MAC address: –––
  • GPON Vendor Id: HWTC
  • GPON Serial Number: –––
  • GPON SLID (password):
  • Checksum: 3166978254

Uploading patched file to the target UFiber device...
Uploaded!

Applying patched file on the target UFiber device...

Applied patch! Please reboot your UFiber device to load the new image.`

@ppkhoa
Copy link

ppkhoa commented Jul 20, 2021

I'm having the same issue, --restore does not work even with the full path specified, it got completely ignored:

PS C:\Users\ppkho\Desktop\win-x64> .\UFiber.Configurator.exe --restore "C:\Users\ppkho\Desktop\win-x64\dumps\fw-20072021-110200.bin"
### Original Image ###
--- NVRAM Information --
- mtdblock3 hash: f47aab3892ca28c611336784e302d12285c963579924a179412e95a0b1a4e5e0
- NVRAM Version: 6
- Boot parameters: e=192.168.1.1:ffffff00 h=192.168.1.254 g= r=f f=vmlinux i=bcm963xx_fs_kernel d=1 p=0 c= a=
- Board Id: UBNT_SFU
- PSI size: 24
- Total MAC addresses: 5
- GPON MAC address: <hidden>
- GPON Vendor Id: UBNT
- GPON Serial Number: <hidden>
- GPON SLID (password): <hidden>
- Checksum: 1860557199

### Patching fw-20072021-115151.bin...
### Patched fw-20072021-115151.bin!
--- NVRAM Information --
- mtdblock3 hash: 8ea2c87537d1e0b1d71cc46c3a75292a0a9136474e3384dc4c19580fc2cfee08
- NVRAM Version: 6
- Boot parameters: e=192.168.1.1:ffffff00 h=192.168.1.254 g= r=f f=vmlinux i=bcm963xx_fs_kernel d=1 p=0 c= a=
- Board Id: UBNT_SFU
- PSI size: 24
- Total MAC addresses: 5
- GPON MAC address: <hidden>
- GPON Vendor Id: UBNT
- GPON Serial Number: <hidden>
- GPON SLID (password): <hidden>
- Checksum: 1860557199

Uploading patched file to the target UFiber device...
Uploaded!
### Applying patched file on the target UFiber device...
### Applied patch! Please reboot your UFiber device to load the new image.```

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

No branches or pull requests

3 participants