EDIT : New pdf uploaded to include the step that shows you how to install the modules.
Yesterday I have licensed my MSO5074 using your method successfully, thanks a lot! I used the PDF as the basis for the procedure. Worked right off the bat without any problems at all.
I just have one question: Maybe it's my fault but I couldn't find details about the BACKUP DUMP folder. This is not pre-defined in the dataset on MEGA. Furthermore I don't understand how the backup data which is generated by your script o restore the scope can be used later in case I need t. And should I put all of the different backup files in just one folder? I have no idea what all of these files are good for and how to organize them.
It is highly unlikely that I'll ever do this but who knows...
And the last question: In case of a return to Rigol, I could just remove all options with your script and reset it to one of the firmware versions, right?
Thanks for taking your time!
ALL GOOD QUESTIONS....
Yesterday I have licensed my MSO5074 using your method successfully, thanks a lot!
- You're Very Welcome, ENJOY IT
Now.. Don't forget a few things
- Do your backups (i'll address that in a second)
- Do your 3 Self Tests
- Do your Self Calibration
Then if you wish to learn how to use your scope in depth, i have around 13 Tutorial videos for you to learn from. here..
https://www.eevblog.com/forum/testgear/post-hacking-rigol-mso5000-post-hacking-tutorial-deep-diveOK.. Now..
I used the PDF as the basis for the procedure
- Well Done
I'm in the process of updating the PDF, But hey, these things take time, it should be done in a few days.
See.... That PDF was created around the time when DrMefist0 and tv84 came out with the rigol_kg2.py script (Basically, the second script)
and the PDF was relevant for the 2nd script
then.. We had a few modifications as a result of... someone had a 70MHz Scope with BUNDLES or they had a 100MHz scope etc etc
and there were slight modifications which resulted in around 4 or 5 scripts in total, but that pdf was still relevant
Then when we got the Assertion Errors and Rigol started playing with the Private Key again with scope models up to around 3months ago....
we altered the script again
THE SCRIPT HAS NOW HAD A COMPLETE OVERHAUL
It's Faster
and as you have seen
it's More Automated
No More Assertion Errors
See... Your scope activated BECAUSE, The script looks at the Private key and the padding and the Length of allocated FRAM
then it does a bunch of stuff that i won't go into detail with ... Basically, we've added more stuff into it that will audit your scope
and check what key length is needed , instead of using the same key length for all (Because that's how Rigol Triggers the Assertion Errors)
Then.. We made the script so..
1. When you select -r for Regen of Priv.pem You don't need to reboot
2. Reboot is now Automatic, if required
3. You also don't need to -a for Activation, the script goes ahead and activates Automatically after the generation of the priv.pem file
Basically it does everything for you , You just need to put in -i and then -r
it's kinda hard to get it wrong
So.. Good work for using the PDF as a basis, at this point
SHORTLY I WILL UPDATE THAT PDF
We are also going to see a lot more people activating MSO5000, MSO and DSO7000 and MSO8000
Because this script looks at your scope and determines which one it is and applies the correct key length
We were looking at having it activate the DHO Series as well, Although at this point, i don't think they work the same way.
but.. WE ARE LOOKING INTO THAT AS WELL.
I just have one question: Maybe it's my fault
- OF COURSE IT'S YOUR FAULT :p WHY WOULD YOU ASK SUCH A STUPID QUESTION... IT'S ALL YOUR FAULT MATE ... EVERYTHING !!!
but I couldn't find details about the BACKUP DUMP folder. This is not pre-defined in the dataset on MEGA.
- YES IT IS..!!
it's in Steps 6 , 7 and 8 of the pdf
Here is the link to the cloud
https://mega.nz/folder/OsJyFY5A#8uS0fmepgBdNrXqvnxmFfgand I HAVE ATTACHED THE PDF FOR YOUR CONVENIENCE
1. Since you're activated, UPGRADE TO 1.3.3.0 Firmware Version, If you are on that version, it doesn't matter, Get the same file anyway
2. You're supposed to get the UPGRADING TO 350MHZ (1.3.3.0) Zip File and Extract it
3. After Extraction, you're going to have 3 folders
BACKUP
GEL FILE
FIRMWARE
No Points for guessing which one you're supposed to get (BACKUP FOLDER)
do that and follow the PDF
So, Since your scope is now fully licensed and Activated, You want to back it all up, JUST IN CASE, something happens.
Furthermore I don't understand how the backup data which is generated by your script
OK... A BIT OF TECHNICAL JARGON COMING UP
I don't wish to confuse matters, But....
1. For simple backup, You don't use the script, in the first place.... You use the zip file that i provided
2. You put that bugger on a USB stick and stick it in the scope in the pre start menu and hit UPGRADE and it adds the backup files to your USB,
Then, You copy those files to your computer and save them
NOW, IF YOU WANT TO GO BEYOND THAT.....
3. OK, The script in total, HAS THE FOLLOWING OPTIONS
Which you can achieve by running the script with the -h Switch as follows
python Rigol_MSO_LicensingUtility_2.09b.py -h 10.1.1.666
but the switches are as follows
INFORMATION (Brings up Basic Information)
python Rigol_MSO_LicensingUtility_2.09b.py -i 10.1.1.666
REGENERATE PRIVATE KEY (Creates the Priv.pem file and places it in the current working directory)
python Rigol_MSO_LicensingUtility_2.09b.py -r 10.1.1.666
(this will in turn trigger the Activation)
ACTIVATION (If you need to do it manually, Only if Priv.pem already exists)
python Rigol_MSO_LicensingUtility_2.09b.py -a 10.1.1.666
Now... All of that is standard stuff
BUT LET'S NOW GET INTO USEFUL STUFF
REBOOT THE SCOPE (No Need to press the power button, Restart the Scope from the C.L.I.)
python Rigol_MSO_LicensingUtility_2.09b.py --reboot 10.1.1.666
(FEEL FREE TO PLAY WITH THIS OPTION, it doesn't hurt your scope)
DEBUGGING MODE (adds Extra Useful information if a problem exists)
python Rigol_MSO_LicensingUtility_2.09b.py -d 10.1.1.666
(FEEL FREE TO PLAY WITH THIS OPTION, it doesn't hurt your scope)
Now.. if for any reason we need to debug your scope further and someone gets another Assertion Error
we are going to ask for
1. A DUMP of your FRAM
2. A DUMP of your PUBLIC KEY
so...
FRAM DUMP (Copies your FRAM to a file in your Current working directory)
python Rigol_MSO_LicensingUtility_2.09b.py -f 10.1.1.666
(FEEL FREE TO PLAY WITH THIS OPTION, it doesn't hurt your scope)
PRIVATE KEY DUMP (Copies your Private key to a file in your Current working directory)
python Rigol_MSO_LicensingUtility_2.09b.py -p 10.1.1.666
(FEEL FREE TO PLAY WITH THIS OPTION, it doesn't hurt your scope)
There are other switches such as
-k = Manually Change the Key in Use
-m = Manually change the Model Name in Use
-s = Manually change the Serial Number in Use
it's highly likely we will never need to use these, However, it's just a provision IN CASE the script doesn't Automatically detect the key in use
or Model Name or Serial number, (These options are here JUST IN CASE), it's not even worth explaining it , at this stage.
NOW..... IF YOU WISH TO SSH INTO YOUR SCOPE
SSH (Allows you to connect via SSH to your scope)
python Rigol_MSO_LicensingUtility_2.09b.py -e 10.1.1.666
NOW TAKE NOTE
1. This option is put here so you IF YOU NEED TO, You can go in and change certain things or that i can , It's unlikely you'll need it.
2. HOWEVER IT IS FUN TO PLAY WITH IF YOU HAVE NEVER DONE IT BEFORE
3. but TAKE CAUTION
4. So.. If you want to poke around a little, You can do this....
5. Run the Above command and it will say
"****SSH ACTIVATED****"
"Now..Open PuTTY."
If you don't have it already, Download PuTTY, it's a serial Console that allows you to interface with the scope via a C.L.I.
6. Open PuTTY
- Enter the IP Address of your scope (Make sure your scope is turn on of course and connected to the network)
- leave the port as 22
Press connect and you'll see a console window pop up
7. You want to now login as root Your Username and password are either going to be
Username : rigol
Password : rigol
or
Username : root
Password : Rigol201
You won't see the cursor progressing, Just type it in and press enter DO NOT PRESS BACKSPACE
if it lets you in, You'll see some more directories, You're going to access the root directory first, it'll be weird
NOW LET'S BRUSH UP ON SOME INSTRUCTIONS
cd = Change Directory , But this will fail if you don't specify WHICH directory you want to go to
cd[SPACE][DIRECTORY NAME]
Example :
cd data = This will change the directory location to the "data" folder
cd .. = This takes you BACK one step
cd / = This takes you back to the HOME Directory
ls = List the folders and files in THE CURRENT DIRECTORY
ls la = List ALL the folders and files in the current directory and add a few extra details
so here is what you want to do
AS SOON AS YOU GET THE SHELL AND GET PAST LOGIN
cd ..
BECAUSE, You're going to be in the root folder and you want to be in the HOME DIRECTORY
Now
ls la
PRESS ENTER
You might want to look around a little, so.. To see the contents of the home DIRECTORY you use "dir"
dir
PRESS ENTER, You will see the folders in that directory
Now..
You might want to go to, Let's say...... "data" or "user" if you want to go to user folder
cd user
PRESS ENTER
and.. that's how you navigate through the folders
Remember
cd ..
is to go back to the previous folder
and if you come across a file , you can open the file with
od [filename]
PRESS ENTER
So if you're game.... Be Cautious and have some fun poking around a bit
to get out, You just type
exit
press enter
NOW...
restore the scope can be used later in case I need it
- I Purposely didn't include that as i didn't want to confuse people, it's also very unlikely to occur
- FOR NOW........BACKUP YOUR SCOPE, if it happens.... Send me a PM
if it never happens, You'll never need to use it
But it's handy if you brick your scope (which almost never happens)
And should I put all of the different backup files in just one folder? I have no idea what all of these files are good for and how to organize them.
The PDF Explains it
But...
You're going to do 2 Backups
BACKUP 1, You'll create a folder in your computer called BACKUP SCRIPT
and when you run the backup script, it's gonna add files to your USB
You place those extra files into the BACKUP SCRIPT on your PC
BACKUP 2, You do the same thing, except the folder is now called NAND SCRIPT.
same thing, Run the NAND SCRIPT and copy the files from the USB to the folder
What are the files good for.
You'll thank yourself when you brick your scope or if the scope fails for some reason.
And the last question: In case of a return to Rigol, I could just remove all options with your script and reset it to one of the firmware versions, right?
OK, SO... EVERYONE ASKS THIS....
We have included two switches that are relevant
UNINSTALL OPTIONS (Uninstalls all options in the scope)
python Rigol_MSO_LicensingUtility_2.09b.py -u 10.1.1.666
if however you want to just Uninstall 1 option at a time you use
UNINSTALL OPTIONS (Uninstalls all options in the scope)
python Rigol_MSO_LicensingUtility_2.09b.py -o [Option Name]10.1.1.666
Now, if you purchased the scope from Rigol WITHOUT OPTIONS, then you can use
python Rigol_MSO_LicensingUtility_2.09b.py -u 10.1.1.666
This will Uninstall ALL OPTIONS and then it will Automatically REBOOT the scope to finish the process.
when you restart you can run -i to confirm that they are all gone
AS FOR RESETTING FIRMWARE VERSIONS
1. it's not a RESET, do not view it that way .
it's an UPGRADE or DOWNGRADE of Firmware Versions
2. So.... if you are on a lower version, Say... 1.3.2.2 and you want to upgrade
YOU CAN DO THAT DIRECTLY FROM THE SCOPE'S OPERATING SYSTEM
or
You can enter the PRE BOOT Menu and select FIRMWARE UPGRADE.
To do this you must have a USB Stick with the Higher Firmware Version loaded (Let's say 1.3.3.0)
This process takes you from 1.3.2.2 to 1.3.3.0
3. You don't need to upgrade or downgrade Sequentially, You can jump from any version to any version, But not the same version
4. Now... if you need to downgrade, Say from 1.3.3.0 to 1.3.2.2
YOU PREPARE THE GEL FILE (1.3.2.2) , it's at the link
in this case, you cannot do it via the operating system, it won't allow downgrading
HOWEVER... The preboot menu option that says UPGRADE FIRMWARE can do it
You see.... UPGRADE FIRMWARE doesn't mean UPGRADE firmware....... it means LOAD FIRMWARE
SO YES.... YOU CAN DOWNGRADE THE FIRMWARE
But..
- Since your scope is fully licensed (unlike the Patched version, that would lose the options during upgrade or downgrade) YOU WON'T LOSE THE OPTIONS
in the downgrade
- You then need to Uninstall the options
- it doesn't matter if you uninstall them , Before or After the downgrade or upgrade
NOW WHEN YOU GET THE SCOPE BACK FROM RIGOL
Run the script again -r
and it'll just activate the scope as it did before
You then upgrade to the latest version
and confirm that your scope is licensed and activated
and do your Self Checks and Self Cal
LASTLY..........
You are now fully licensed so.....
ANY FUTURE FIRMWARE VERSIONS THAT COME OUT
You can just go to the Rigol Website and get the .GEL file and load it either via the operating system or Pre Boot Menu
AND.......THAT'S PRETTY MUCH IT
ANY QUESTIONS ?