UFiber.Configurator
UFiber.Configurator copied to clipboard
Second run of UFiber.Configurator messed up the MAC address of a Loco
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.
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!
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.
Ahh cool. Thank you! :)
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?
You need to pass the path to the backup you made before. Can you paste the whole output?
Get Outlook for iOShttps://aka.ms/o0ukef
From: donluca @.> Sent: Wednesday, June 2, 2021 7:49:38 PM To: Unifi-Tools/UFiber.Configurator @.> Cc: Gutemberg Ribeiro @.>; Comment @.> Subject: Re: [Unifi-Tools/UFiber.Configurator] Second run of UFiber.Configurator messed up the MAC address of a Loco (#5)
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?
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/Unifi-Tools/UFiber.Configurator/issues/5#issuecomment-853432440, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABD64OHAVHA3XD5344NZ5KTTQ2YQFANCNFSM455C6SQQ.
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.
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.`
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.```