Author Topic: Hacking the Rigol MSO5000 series oscilloscopes  (Read 901334 times)

0 Members and 5 Guests are viewing this topic.

Offline ilyacniihm

  • Newbie
  • Posts: 2
  • Country: ru
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #1400 on: November 04, 2019, 02:32:53 pm »
Hello. please tell me again how to hack the firmware 01.01.04.08 correctly.

1) Сopy DS5000Update.GEL  file on the USB drive.

2) Download the Bpatch file from this post and remove the .txt extension (https://www.eevblog.com/forum/testgear/hacking-the-rigol-mso5000-series-oscilloscopes/msg2620701/#msg2620701)
and copy on USB drive

3) create configuration file on USB drive "patch.txt"

file_to_patch=/rigol/appEntry
file_to_patch_md5sum=afe3e7c2d38bdebb66d3f1f11d910743
patch_file=appEntry_01_01_04_08.bpatch
after_patch_md5sum=3f95cb3236b47826e303de960596f966

4) Connect USB drive and go to the Utility / System / Help / Local Upgade menu


correct me if something is wrong. I have never worked with linux. |O
Thank you very much.


 
The following users thanked this post: tcottle

Online skander36

  • Frequent Contributor
  • **
  • Posts: 704
  • Country: ro
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #1401 on: November 04, 2019, 06:39:54 pm »
Hi ,
First do a backup of rigol/data directory with script from TV84 post above - https://www.eevblog.com/forum/testgear/hacking-the-rigol-mso5000-series-oscilloscopes/msg2757356/#msg2757356
Then upgrade scope to 01_01_04_08 version .
After that do what you said from point 1 to 4 .
Make sure that DS5000Update.gel is the right one . https://www.eevblog.com/forum/testgear/hacking-the-rigol-mso5000-series-oscilloscopes/?action=dlattach;attach=841706
You must have three files on the disk for this FW :

  DS5000Update.GEL
  patch.txt
  appEntry_01_01_04_08.bpatch

Succes !


A big thank you to all that have spend their personal time to make this thing and share with us !
« Last Edit: November 04, 2019, 07:41:59 pm by skander36 »
 
The following users thanked this post: tcottle, jemotrain

Offline matlipinski

  • Contributor
  • Posts: 13
  • Country: pl
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #1402 on: November 05, 2019, 12:22:46 pm »
Could someone dump rights and ownership of /rigol/data directory and files (/rigol/data folder itself too). Thank you.
 

Offline thm_w

  • Super Contributor
  • ***
  • Posts: 6272
  • Country: ca
  • Non-expert
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #1403 on: November 05, 2019, 10:08:06 pm »
Could someone dump rights and ownership of /rigol/data directory and files (/rigol/data folder itself too). Thank you.

Done in the other thread.
Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 

Offline Xandr

  • Newbie
  • Posts: 6
  • Country: ua
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #1404 on: November 07, 2019, 05:43:18 pm »
Hello!
Help patch. Did everything by intrusion above:
3 files on a flash drive, starting the update. Gives an error message:
« Last Edit: November 07, 2019, 05:48:38 pm by Xandr »
 
The following users thanked this post: kwinz

Offline Xandr

  • Newbie
  • Posts: 6
  • Country: ua
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #1405 on: November 07, 2019, 07:16:21 pm »
Hello!
Help patch. Did everything by intrusion above:
3 files on a flash drive, starting the update. Gives an error message:

Dear skander36 promptly helped! Many thanks to everyone!
 

Offline ilyacniihm

  • Newbie
  • Posts: 2
  • Country: ru
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #1406 on: November 08, 2019, 05:09:49 am »

Dear skander36 promptly helped! Many thanks to everyone!

Hi! Can you tell me how you hacked the oscilloscope? What was wrong with the three files? I just ordered the oscilloscope, haven't received it yet. Prepare)
 

Offline Xandr

  • Newbie
  • Posts: 6
  • Country: ua
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #1407 on: November 08, 2019, 05:33:43 am »
I have not compared files yet.  I think it's all about file encoding "patch.txt"
 

Offline matlipinski

  • Contributor
  • Posts: 13
  • Country: pl
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #1408 on: November 08, 2019, 08:49:03 am »
You have to use LINUX line endings (not Windows) for patch.txt.
 
The following users thanked this post: kwinz

Online skander36

  • Frequent Contributor
  • **
  • Posts: 704
  • Country: ro
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #1409 on: November 08, 2019, 10:22:50 am »
You have to use LINUX line endings (not Windows) for patch.txt.
I have used Windows (Notepad used) with no problem. Nothing edit with Linux .
 

Offline Xandr

  • Newbie
  • Posts: 6
  • Country: ua
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #1410 on: November 08, 2019, 12:59:24 pm »
I had in Windows (CR LF), I need Unix (LF). I don’t want to check anymore, but I think the reason was this.
(Screenshots Notepad ++)
 
The following users thanked this post: Sighound36

Offline ryohnosuke

  • Newbie
  • Posts: 1
  • Country: pe
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #1411 on: November 12, 2019, 05:20:25 pm »

Dear skander36 promptly helped! Many thanks to everyone!

Hi! Can you tell me how you hacked the oscilloscope? What was wrong with the three files? I just ordered the oscilloscope, haven't received it yet. Prepare)

What was the fix? I checked the MD5 file and seems OK but I have the same error. :'(

Edit: You right!

With Notepad++

Edit -> EOL Convertion -> (Unix LF) and save changes


« Last Edit: November 12, 2019, 05:42:12 pm by ryohnosuke »
 
The following users thanked this post: sumect

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2328
  • Country: 00
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #1412 on: November 12, 2019, 06:54:08 pm »
My fresh 5074 just arrive, what is the latest procedure to do the magic?

I have a free bundle for some options, will the magic interfere with this?

Hardware 01 00 000
Firmware  00 01 01 04 04
« Last Edit: November 14, 2019, 09:35:46 am by ebclr »
 

Offline sumect

  • Newbie
  • Posts: 1
  • Country: cn
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #1413 on: November 15, 2019, 08:35:25 am »
This is just a play-by-play of what I did – I struggled my way through it so there are ways to run things more efficiently or better that I wasn’t aware of at the time.

Step 1: Get your Linux workstation functional, either by installing directly or running it within VirtualBox. I’m using a Windows PC so I’m running everything through VirtualBox, which just adds a couple intermediate steps.

Step 2:
Get organized – I made 3 folders, “Upgrade”, “Enable SSH”, and “Patch”.
-   In the Upgrade folder, download the 01.01.04.08 GEL from GitLab and rename it DS5000Update.GEL ([url]https://gitlab.com/riglol/rigolee/blob/MSO5000/GEL/DS5000Update_01.01.04.08.GEL[/url])
-   In the Enable SSH folder, add the GEL file from this post and rename it DS5000Update.GEL ([url]https://www.eevblog.com/forum/testgear/hacking-the-rigol-mso5000-series-oscilloscopes/msg2234076/#msg2234076[/url])
-   In the Patch folder, download the Bpatch folder from this post and remove the .txt extension ([url]https://www.eevblog.com/forum/testgear/hacking-the-rigol-mso5000-series-oscilloscopes/msg2620701/#msg2620701[/url])

Step 3: Upgrade the MSO5000 using the DS5000Update.GEL file from the Upgrade Folder. Put the file onto the root directory of the USB drive and then go to the Utility / System / Help / Local Upgade menu once you’ve put the USB into the MSO5000 and upgrade to 01.01.04.08. Restart the Oscilloscope

Step 4: Now time for the heavy lifting. Put the USB drive back into the computer and remove the update file you just used from the USB stick. Now go to the Enable SSH folder and put that DS5000Update.GEL file onto the USB drive. Put the USB stick into the MSO5000 and run the Local Upgrade again. Oh no, it failed! Except it didn’t, as @mabl stated in his post, it will look like it failed but it works. DO NOT RESTART THE OSCILLOSCOPE, otherwise you will have to run step 4 again. Also, leave the USB stick in the MSO5000 for the next steps.

Step 5: If it’s not already connected, connect your MSO5000 to your LAN or use a crossover cable if you have one to hook it to your computer. If all you have is “normal” LAN cables, you’ll need to use your router and can’t hook directly to your PC. Now go to the Utility/ IO / LAN menu and write down the IP address of your MSO5000.

Step 6: If it’s not already in your distro, go to the software manager and download Putty so that you can SSH (Secure Shell) across the network into your MSO5000. Once it’s downloaded, you’re going to follow some of the instructions from @TopLoser that @TrickTronic posted.  First, run PuTTY and put the IP address into the IP window, use Port 22, and select SSH for your connection type. Then, use “root” as the username and “Rigol201” as the pwd. You’re now connected to the Oscilloscope.

Step 7: In the SSH, type (without quotes) “cp /rigol/appEntry /media/sda1/”. Once it’s finished writing it to the USB stick (although it’s probably not the “best” answer, just pull the USB stick out and put it back into your computer. Copy the bspatch file into the root of the USB stick as well. Right click and open a terminal window starting in the USB stick and type “bspatch appEntry appEntryPatched appEntry_01_01_04_08.bpatch” into the terminal. It will create you a new file called appEntryPatched. Rename the original file to appEntryUnpatched or something similar and then rename the patched file to appEntry. Now remove the USB stick and put it back into the Oscilloscope.

Step 8: I hope you kept your SSH open, if not then open it back up. Type “cd /media/sda1”. If the command fails, replace sda1 with sdb1. My MSO5000 mounted the USB drive into this second location when I put it back in. Type “ls” (LS in lower case if the font here sucks) to see the files in the directory. You should see your files. Now run “chmod +x appEntry” to allow the appEntry file to be an executable, otherwise it will not work. To make this next step easier, move back to the root directory using “cd /”. You can type “pwd” at any time in SSH or Terminal to see the directory you’re currently in at any time. Now copy the file back to the oscilloscope, “cp /media/sda1/appEntry /rigol/” and you should be good to go.

Step 9: Restart your Oscilloscope and don’t forget to thank the dozens of people on this forum who made this possible.


Hi, I did exactly as you said, but after reboot oscilloscope, it can not work now,  it stuck in the logo interface.

can anyone help me ? thanks a lot!
 
The following users thanked this post: ebclr

Online skander36

  • Frequent Contributor
  • **
  • Posts: 704
  • Country: ro
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #1414 on: November 15, 2019, 08:59:45 am »
Hi Sumect ,
Try to downgrade firmware using version from Rigol site .
For that you need to press "Single" key from oscilloscope keyboard after pressing power button . You will see a black screen with a menu with two entry that gives you the posibility to install firmware .
Please let us now if you succeed .
 
The following users thanked this post: sumect

Online skander36

  • Frequent Contributor
  • **
  • Posts: 704
  • Country: ro
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #1415 on: November 15, 2019, 01:04:06 pm »
Hi ,
As long as the current fw. version 01.01.04.08 is available from Rigol site, the procedure for patching is simple .

1. Upgrade scope to version 01.01.04.08 by method Online upgrade. Please double check if the new version at which the scope was upgraded is 01.01.04.08 . If it's newer you cannot apply this patch until a new version will be released .
2. Put on a USB stick the three file attached (doc extension must be removed , as the forum does not allow gel or bpatch extension) and do the upgrade .

Thast's all .

Again a big Thank you to those that make this possible !  :-+



 
The following users thanked this post: KeBeNe, jaromir, tcottle, bitseeker, MegaVolt, tonylam, flair4ever, ur63, serg_77, Xandr, sumect, Mitchel

Offline sq6iyn

  • Newbie
  • Posts: 2
  • Country: pl
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #1416 on: November 19, 2019, 05:10:06 pm »
OK. It works. Many thanks to those who give joy of this fun.  :-+ :D :clap:
 
The following users thanked this post: DeKu

Offline Mitchel

  • Newbie
  • Posts: 1
  • Country: br
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #1417 on: November 21, 2019, 11:32:14 pm »
This Patch works great! Thank you very much. I just received my new MSO5074 and successfully aplied the patch in about 3 minutes. The scope is fully upgraded now. Thank you!
 

Offline DeKu

  • Newbie
  • Posts: 5
  • Country: de
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #1418 on: November 30, 2019, 07:16:14 pm »
Hi again,
I too can confirm, that the Patch works just as easy as described. I did an online Upgrade of my MSO5074 which was already patched / unlocked.

After the Official Upgrade all Options went back to regular. And after Patching it via the 3 Files on an USB Stick, everything was unlocked again.

So big Thanks to everyone to make it such a simple Task.

DeKu
 

Offline rolfdegen

  • Regular Contributor
  • *
  • Posts: 50
  • Country: de
    • Degenerator Synthesizer/Sampler
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #1419 on: November 30, 2019, 08:06:53 pm »
Hallo

Its my first time with an Rigol MSO5104. How can I trigger two waveforms on my MSO5104 ?

My old siglend Siglent SDS1102CML+ have Alternative trigger function.

I find in the trigger menu only this solution (see picture).

Trigger tow waveforms


Thanks for help. Rolf
Electronics developer
 

Online Martin72

  • Super Contributor
  • ***
  • Posts: 5670
  • Country: de
  • Testfield Technician
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #1420 on: November 30, 2019, 08:10:29 pm »
Hi Rolf,

Please use the suitable thread for your question (see my signature), this here is only for hacking.


Martin

Offline jaromir

  • Supporter
  • ****
  • Posts: 337
  • Country: sk
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #1421 on: November 30, 2019, 09:42:52 pm »
As long as the current fw. version 01.01.04.08 is available from Rigol site, the procedure for patching is simple .
<SNIP>
Thank you for recap, this worked really well, it's really as simple as that. Applied on MSO5074 01.01.04.04 factory firmware.
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2328
  • Country: 00
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #1422 on: December 01, 2019, 10:07:00 am »
Another happy user of the path, Thank you very much

But no ssh available to take a look on files, who needs since everything is hacked as expected
« Last Edit: December 01, 2019, 10:28:44 am by ebclr »
 

Offline thm_w

  • Super Contributor
  • ***
  • Posts: 6272
  • Country: ca
  • Non-expert
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #1423 on: December 03, 2019, 11:27:49 pm »
But no ssh available to take a look on files, who needs since everything is hacked as expected

You can still use mabls SSH patch to get temporary access (until the scope is rebooted). Login, password, etc. is the same.
Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 

Offline typoknig

  • Regular Contributor
  • *
  • Posts: 103
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #1424 on: December 04, 2019, 01:37:01 am »
Yep.. :(
I´ve asked again on october 29th, answer was sorry for delaying but it should happen "soon".....

Looks like Rigol has a very loose definition of "soon" regarding release of new FW. My biggest concern with buying this scope without updated FW is the trigger over shoot bug. It seems that some have performed a calibration to get around the problem, but it isn't clear to me if that is just masking the issue. I know I would feel a lot better about buying this scope if I knew for sure that bug wasn't going to exist out of the box.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf