Author Topic: How to upgrade a DS2072A with Linux using USB.  (Read 602 times)

0 Members and 1 Guest are viewing this topic.

Offline LinuxGuy123Topic starter

  • Contributor
  • Posts: 12
  • Country: ca
How to upgrade a DS2072A with Linux using USB.
« on: August 23, 2022, 10:02:51 pm »
Here is how I upgraded my DS2072A in Linux over USB instead of LAN.    For some reason I couldn't make my LAN connection work.

Step 1) Connect the back USB port of your scope to your Linux workstation with a USB cable.   

Apparently the workstation needs to have a USB2 host controller, not a USB3.   EHCI, not XHCI.
See here: https://www.teuniz.net/DSRemote/

Step 2) Test that the connection works.

$echo "*IDN?" > /dev/usbtmc0; cat /dev/usbtmc0
RIGOL TECHNOLOGIES,DS2072A,DS2DXXXXX,00.03.03.SP1
cat: /dev/usbtmc0: Connection timed out

The timed out message is OK.  All it means is that cat ran out of data to print out.

Note: You'll need to give yourself permission to open the USB port as it is owned by root when the scope is plugged in.
#chown me /dev/usbtmc0


Step 3) Obtain the binary file from the scope.
$echo ":SYST:UTIL:READ? 1,33554432" > /dev/usbtmc0; cat /dev/usbtmc0 > ds2072a.bin

$ ls -al *.bin
-rw-r--r--. 1 me me 33554444 Aug 23 13:25 ds2072a.bin

Step 4) Download the appropriate version of rigup from https://gotroot.ca/rigol/. 
Unzip it.  Run it.   Version 0.4.2 didn't work for me.  Said there were no keys found.   0.4 worked. 

$ ./rigup
rigup - Version 0.4

Usage: rigup MODEL DUMPFILE

Creates a set of licenses suitable for the given model.
Needs a memory dump of the DRAM from the specific
device to create the licenses.

    MODEL       One of DS2072A, DS2102A or DS2202A
    DUMPFILE    Binary file containing a memory dump

Example:

    rigup ds2072a memory_dump.bin


Available expert commands are: (omit parameters for help)

    rigup scan [KEYFILE] MEMORYDUMP
    rigup serial KEYFILE SERIALNUMBER
    rigup license KEYFILE OPTIONS
    rigup info KEYFILE LICENSE
    rigup search [KEYFILE] MEMORYDUMP
    rigup break PUBLICKEY
    rigup riglol ...


Step 5) Extract the Keys

$ ./rigup ds2072a ds2072a.bin
rigup ds2072a - Version 0.4

Serial number: XXXXX

NSEH:  LGUJTEM-EHNSZZT-ZPF4RUS-TJ9BUSM    All options, no bandwidth upgrade
NSER:  4YJDMNS-R9HCABJ-UGYCKC8-H2E3JSM    All options, bandwidth 100 MHz
NSEQ:  J5RNDTR-E9XQHN2-3JWWN47-KH62USM    All options, bandwidth 200 MHz
NS8H:  B4GP424-J25BV2T-WMHMS9G-GBGQCVM    All options, bandwidth 300 MHz

Step 6) Place the license file on a USB drive.

Create a file <My DS2072A Serial number>.lic with a text editor.  NOT A WORD PROCESSOR.
Put one of the keys on the first line in the file.  Example:  "B4GP424-J25BV2T-WMHMS9G-GBGQCVM" without the quotes. Save the file.
Put the file on the root directory of a FAT 32 USB drive.  Mine was 8 GB.

Step 7) Boot the scope.  Insert the USB drive in the scope.   A popup message should appear asking if you want to upgrade the license on your scope.*  The right menu will have an item License in it.   Select it and proceed with the upgrade.

* This only happens with firmware 00.03.03.02.06 or later.   If your firmware is newer than this, upgrade it.  https://www.rigolna.com/firmware/  Your scope will update the license after the firmware is upgraded.

Enjoy.
« Last Edit: August 23, 2022, 10:15:16 pm by LinuxGuy123 »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf