Author Topic: Rigol DS1000Z - firmware patch & plugins  (Read 46544 times)

0 Members and 1 Guest are viewing this topic.

Online ebastler

  • Super Contributor
  • ***
  • Posts: 6388
  • Country: de
Re: Rigol DS1000Z - firmware patch & plugins
« Reply #50 on: April 09, 2018, 07:16:09 pm »
konnor -- just wanted to say thanks for the great work you have done, and for sharing your findings freely. Very much appreciated!
 

Offline konnorTopic starter

  • Contributor
  • Posts: 49
  • Country: ru
Re: Rigol DS1000Z - firmware patch & plugins
« Reply #51 on: April 09, 2018, 07:17:11 pm »
Yes, You can format local 90M disk and SYS directory is there with all files,
You can delete them...
This is one of the reasons why I doubted - to publish this secret key, or not. There is at least one experimenter who will delete the system file and suffer.

But where is the bootloader?
In NVRAM. The lower part is reserved for the boot loader, the high part is reserved for saving the settings. The processor can boot by SPI.

What I definitely will not publish - is the secret key sequences of the boot loader, which allow to erase NVRAM with the inserted special flash drive.

By the way, you need to be very careful when inserting a special flash drive when the loader is running. There are several sequences of only three keys, that will kill an oscilloscope without the possibility of a simple recovery.
Without a special flash drive, only relatively safe commands are available, such as disabling downloading saved settings at startup.

And yes, this menu is super secret and won't be visible on screenshots.
That's why here is my professional webcam images...
What???  :o This file menu is no more invisible than the usual file selection menu (without a special flash drive).
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 16531
  • Country: 00
Re: Rigol DS1000Z - firmware patch & plugins
« Reply #52 on: April 10, 2018, 09:24:42 am »
Yes, You can format local 90M disk and SYS directory is there with all files,
You can delete them...
This is one of the reasons why I doubted - to publish this secret key, or not. There is at least one experimenter who will delete the system file and suffer.

Not your problem.

What I definitely will not publish - is the secret key sequences of the boot loader, which allow to erase NVRAM with the inserted special flash drive.

By the way, you need to be very careful when inserting a special flash drive when the loader is running. There are several sequences of only three keys, that will kill an oscilloscope without the possibility of a simple recovery.

If it were me I'd publish it later, when all the other procedures are running smoothly.

It may be that somebody has a 'scope with broken input circuitry and they want to turn it into an instant-boot Tetris machine or something.

« Last Edit: April 10, 2018, 09:44:52 am by Fungus »
 

Offline janekivi

  • Frequent Contributor
  • **
  • Posts: 368
  • Country: ee
Re: Rigol DS1000Z - firmware patch & plugins
« Reply #53 on: April 10, 2018, 02:56:09 pm »
And yes, this menu is super secret and won't be visible on screenshots.
That's why here is my professional webcam images...
What???  :o This file menu is no more invisible than the usual file selection menu (without a special flash drive).
Just joking, screenshot does not capture this drive and file box, only background.
Menu is standard, only this Local SYS is extra. In Utility menu I saw TestModel.
There was many delete and test functions. One was 70M BW - add 70MHz bandwidth?

btw, I don't have special flash... I was cheating  :-[
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 16531
  • Country: 00
Re: Rigol DS1000Z - firmware patch & plugins
« Reply #54 on: April 10, 2018, 03:58:55 pm »
There was many delete and test functions. One was 70M BW - add 70MHz bandwidth?

There's a 70MHz model in the DS1000Z lineup (the DS1074Z).
« Last Edit: April 10, 2018, 04:30:52 pm by Fungus »
 

Offline janekivi

  • Frequent Contributor
  • **
  • Posts: 368
  • Country: ee
Re: Rigol DS1000Z - firmware patch & plugins
« Reply #55 on: April 10, 2018, 04:17:03 pm »
I was looking around in my DS1054Z with all options enabled.
What may be there in other models menu...
 

Offline konnorTopic starter

  • Contributor
  • Posts: 49
  • Country: ru
Re: Rigol DS1000Z - firmware patch & plugins
« Reply #56 on: April 14, 2018, 06:52:20 am »
Yesterday, I modified my decompiler for the guiResData.hex file to get a readable result.
I do not know, if there is a full description of the format of this file somewhere?

In short, the file consists of four large blocks:
1) Menu
2) six fonts
3) Table of text strings (for menus).
4) help

You can see the menu in the attached file.
Fonts have a binary format (the same as for fonts, compiled in elf). The fonts are completely raster, no truetype or vectors.
Text strings do not have independent meaning, they are used only in the menu.
The help is only in two languages, each language includes two blocks - a reference table and text strings. The format of the tables I have not yet understood (and do not plan).
 

Offline konnorTopic starter

  • Contributor
  • Posts: 49
  • Country: ru
Re: Rigol DS1000Z - firmware patch & plugins
« Reply #57 on: April 14, 2018, 04:02:05 pm »
Update plugin.

Changes:
1) Added the mode of automatic determination of the network address of the oscilloscope to the control utility + a pair of minor corrections.
2) Reordered catalogs with examples, deleted extra and duplicate files
3) Several mathematical functions have been added to the library.
« Last Edit: April 14, 2018, 09:45:37 pm by konnor »
 

Offline Daruosha

  • Regular Contributor
  • *
  • Posts: 181
  • Country: ir
Re: Rigol DS1000Z - firmware patch & plugins
« Reply #58 on: April 14, 2018, 06:19:33 pm »
Konnor,

Is it also possible to develop a plugin and take the full memory dump of the unit without using a JTAG adaptor and extract the private keys to unlock the MSO versions?
« Last Edit: April 15, 2018, 01:11:21 am by Daruosha »
 

Offline konnorTopic starter

  • Contributor
  • Posts: 49
  • Country: ru
Re: Rigol DS1000Z - firmware patch & plugins
« Reply #59 on: April 14, 2018, 06:42:40 pm »
For a simple copying of the RAM to disk, a plugin is not required. You can just save it using the utility. The speed of copying is several hundred kilobytes per second.
 

Offline Daruosha

  • Regular Contributor
  • *
  • Posts: 181
  • Country: ir
Re: Rigol DS1000Z - firmware patch & plugins
« Reply #60 on: April 14, 2018, 06:56:04 pm »
For a simple copying of the RAM to disk, a plugin is not required. You can just save it using the utility. The speed of copying is several hundred kilobytes per second.

I'd appreciate if you explain the process with more details, which utility (dumb question perhaps)?
 

Offline konnorTopic starter

  • Contributor
  • Posts: 49
  • Country: ru
Re: Rigol DS1000Z - firmware patch & plugins
« Reply #61 on: April 14, 2018, 07:06:59 pm »
In the archive of plugins there is a directory of rigolif.
Please see file save_fw_4K.bat 
Change the starting address and size to the ones you need and run.
The utility works only with patched firmware.
If you have any problems - write to me.
 

Offline Daruosha

  • Regular Contributor
  • *
  • Posts: 181
  • Country: ir
Re: Rigol DS1000Z - firmware patch & plugins
« Reply #62 on: April 14, 2018, 07:48:19 pm »
In the archive of plugins there is a directory of rigolif.
Please see file save_fw_4K.bat 
Change the starting address and size to the ones you need and run.
The utility works only with patched firmware.
If you have any problems - write to me.

I saw the .bat file and if my assumption is correct, the scope has to be connected with USB to a Windows machine. right?
 

Offline konnorTopic starter

  • Contributor
  • Posts: 49
  • Country: ru
Re: Rigol DS1000Z - firmware patch & plugins
« Reply #63 on: April 14, 2018, 08:10:46 pm »
No. Ethernet only.
 

Offline Daruosha

  • Regular Contributor
  • *
  • Posts: 181
  • Country: ir
Re: Rigol DS1000Z - firmware patch & plugins
« Reply #64 on: April 14, 2018, 08:39:14 pm »
No. Ethernet only.


it gives me this:

C:\rigol-plugins\rigolif>.\debug\rigolif.exe r -i 192.168.1.104  -ffw.bin -l0xCA
83A -a0x40000000
The application has failed to start because its side-by-side configuration is in
correct. Please see the application event log or use the command-line sxstrace.e
xe tool for more detail.

 

Offline Daruosha

  • Regular Contributor
  • *
  • Posts: 181
  • Country: ir
Re: Rigol DS1000Z - firmware patch & plugins
« Reply #65 on: April 14, 2018, 08:43:46 pm »
No. Ethernet only.


it gives me this:

C:\rigol-plugins\rigolif>.\debug\rigolif.exe r -i 192.168.1.104  -ffw.bin -l0xCA
83A -a0x40000000
The application has failed to start because its side-by-side configuration is in
correct. Please see the application event log or use the command-line sxstrace.e
xe tool for more detail.

Which run time do I need? Visual C++ 2010 Redistributable Package (x64)?

Edit: I checked and I had 2008, 2010 and 2015 run-time packages.
« Last Edit: April 14, 2018, 09:22:22 pm by Daruosha »
 

Offline konnorTopic starter

  • Contributor
  • Posts: 49
  • Country: ru
Re: Rigol DS1000Z - firmware patch & plugins
« Reply #66 on: April 14, 2018, 09:48:12 pm »
The utility rebuileded without using dll. Please download the archive again and try.
 

Offline Daruosha

  • Regular Contributor
  • *
  • Posts: 181
  • Country: ir
Re: Rigol DS1000Z - firmware patch & plugins
« Reply #67 on: April 14, 2018, 09:59:34 pm »
The utility rebuileded without using dll. Please download the archive again and try.

DONE! Thanks a lot man,
 

Offline technogeeky

  • Frequent Contributor
  • **
  • Posts: 555
  • Country: us
  • Older New "New Player" Player Playa'
Re: Rigol DS1000Z - firmware patch & plugins
« Reply #68 on: April 15, 2018, 01:05:14 am »
I think we need to get some (in very clear English) instructions on exactly what the process for producing new firmwares is, what the risks are, what kind of upgrade/downgrades back to normal firmware can be done, etc. This all needs to be laid out very clearly and carefully so that this most common and sensible of questions can be comprehensively answered and updated in one place.

I'm sure the source code (or binaries) that we all develop will get fragmented, but this information should be basically the same forever.

 
The following users thanked this post: tooki

Offline technogeeky

  • Frequent Contributor
  • **
  • Posts: 555
  • Country: us
  • Older New "New Player" Player Playa'
Re: Rigol DS1000Z - firmware patch & plugins
« Reply #69 on: April 15, 2018, 01:22:32 am »
I also wondered if I could request some simple features to add.

The first one is from this thread. I wonder if you guys can figure out how to add some of these "double press" actions to buttons (in particular, the Measure and Acquire buttons. And maybe the Trigger button.

The only other thing I've always wanted (other than various optimization) is the ability to input a constant into the MATH and/or FX functions. Just a constant, I don't want to even evaluate functions. This way I could do something like divide a voltage by a known resistance to get a current result. Currently, other than doing this by hand, the only way I know to do it is to input the desired constant from a e.g. power supply or a function generator.

In the next week or so I think I'll give this a try, assuming I understand the risks. I only have the one scope, so...
 

Offline Dwaine

  • Frequent Contributor
  • **
  • Posts: 299
  • Country: ca
Re: Rigol DS1000Z - firmware patch & plugins
« Reply #70 on: April 15, 2018, 04:50:37 am »
Someone could setup a Github project.  It would organize everything.
 

Offline rob040

  • Contributor
  • Posts: 38
  • Country: nl
Re: Rigol DS1000Z - firmware patch & plugins
« Reply #71 on: April 15, 2018, 12:44:48 pm »
Update plugin.

Changes:
1) Added the mode of automatic determination of the network address of the oscilloscope to the control utility + a pair of minor corrections.
2) Reordered catalogs with examples, deleted extra and duplicate files
3) Several mathematical functions have been added to the library.
Are those changes effect the .GEL file you published earlier? Sorry for asking, but I am a complete idiot regarding software, so it is hard to understand what all those files mean and do.
 

Offline Daruosha

  • Regular Contributor
  • *
  • Posts: 181
  • Country: ir
Re: Rigol DS1000Z - firmware patch & plugins
« Reply #72 on: April 15, 2018, 12:59:41 pm »
Update plugin.

Changes:
1) Added the mode of automatic determination of the network address of the oscilloscope to the control utility + a pair of minor corrections.
2) Reordered catalogs with examples, deleted extra and duplicate files
3) Several mathematical functions have been added to the library.
Are those changes effect the .GEL file you published earlier? Sorry for asking, but I am a complete idiot regarding software, so it is hard to understand what all those files mean and do.

No these files are the plug-ins you can upload to the scope using rigolif.exe utility. in the plugins folder there are a few .bat file as example to show you how to run the plugins on the scope to do weird and wonderful stuff.
« Last Edit: April 15, 2018, 01:01:19 pm by Daruosha »
 

Offline konnorTopic starter

  • Contributor
  • Posts: 49
  • Country: ru
Re: Rigol DS1000Z - firmware patch & plugins
« Reply #73 on: April 15, 2018, 01:13:12 pm »
Are those changes effect the .GEL file you published earlier?
Corrections concern only the library. There are no new versions of the gel file, only from 31.03.2018.
 

Offline rob040

  • Contributor
  • Posts: 38
  • Country: nl
Re: Rigol DS1000Z - firmware patch & plugins
« Reply #74 on: April 15, 2018, 01:17:54 pm »
Thank you both for explaining!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf