Products > Test Equipment
Rigol DG2052 making a screenshot and possible firmware hack
elimenohpee:
--- Quote from: ToThePub on December 02, 2022, 12:01:02 am ---Have you tried using the DG800 USB stick process and just trying to change the model number with the SCPI :PROJ:MODE DG2102 method?
So, no flashing firmware, just make the usb stick, send the SCPI command to see if the model changes.
Thanks..
*Edit: Some quick research and firmware between the 800/900/2000 is exactly the same (as you kind of saw in the login message!). So hopefully the USB key process might work?
--- End quote ---
Interested in this as well!
JimKnopf:
@TothePub
@elimenohpee
Today i gave it a try. But i only get an error.
What i did was:
1. I grabed a 16GB USB Stick with a 2 GB FAT32 partition on it.
2. I created a file DG800_sardinha.bin (touch DG800_sardinha.bin) and open it with with Bless Hex Editor to enter the content "0B0A3B2E5F4CECBE"
3. I checked the file: xxd DG800_sardinha.bin
result: 00000000: 0b0a 3b2e 5f4c ecbe ..;._L..
4. I placed the content to the USB Stick with: dd if=DG800_sardinha.bin of=/dev/sdb1 bs=512 seek=2000000
5. I checked the USB Stick: dd if=/dev/sdb1 of=block.bin skip=2000000 count=1
cat block.bin
result: ;._L�Cg>uM��\�%��9�fxl�x����Nn����Q��lJ?�8
6. I put the Stick into the DG2052 and enter this commands:
echo ":PROJ:MODE DG2102" | nc -w1 192.168.10.54 5555
and after it failed
echo ":PROJ:MODE DG992" | nc -w1 192.168.10.54 5555
I only got an error msg. The model number is still the same. Nothing changed.
I grabed an image from Info screen with this commands:
echo "HCOPy:SDUMp:DATA:Format PNG" | nc -w1 192.168.10.54 5555
echo ":DISPLAY:DATA? 0" | nc -w1 192.168.10.54 5555 | dd bs=1 skip=11 of=image_2.png
An image of the error msg is attached.
Edit:
To create such a USB Stick, it's easier to do it like this:
mount /dev/sdb1
mkfs.vfat -F 32 /dev/sdb1
echo -n -e \\x0B\\x0A\\x3B\\x2E\\x5F\\x4C\\xEC\\xBE | dd of=/dev/sdb1 bs=512 seek=2000000
Check with:
dd if=/dev/sdb1 skip=2000000 count=1|xxd -l8
output is: 1+0 Datensätze ein
1+0 Datensätze aus
00000000: 0b0a 3b2e 5f4c ecbe ..;._L..
512 Bytes kopiert, 5,6097e-05 s, 9,1 MB/s
ToThePub:
Humm... Dam it... Many thanks for trying. Didn't think it would work as that method changed in the latest firmware which its running, but worth a try.
Will need a different method it seems.
elimenohpee:
--- Quote from: JimKnopf on January 26, 2023, 09:42:49 pm ---@TothePub
@elimenohpee
Today i gave it a try. But i only get an error.
What i did was:
1. I grabed a 16GB USB Stick with a 2 GB FAT32 partition on it.
2. I created a file DG800_sardinha.bin (touch DG800_sardinha.bin) and open it with with Bless Hex Editor to enter the content "0B0A3B2E5F4CECBE"
3. I checked the file: xxd DG800_sardinha.bin
result: 00000000: 0b0a 3b2e 5f4c ecbe ..;._L..
4. I placed the content to the USB Stick with: dd if=DG800_sardinha.bin of=/dev/sdb1 bs=512 seek=2000000
5. I checked the USB Stick: dd if=/dev/sdb1 of=block.bin skip=2000000 count=1
cat block.bin
result: ;._L�Cg>uM��\�%��9�fxl�x����Nn����Q��lJ?�8
6. I put the Stick into the DG2052 and enter this commands:
echo ":PROJ:MODE DG2102" | nc -w1 192.168.10.54 5555
and after it failed
echo ":PROJ:MODE DG992" | nc -w1 192.168.10.54 5555
I only got an error msg. The model number is still the same. Nothing changed.
I grabed an image from Info screen with this commands:
echo "HCOPy:SDUMp:DATA:Format PNG" | nc -w1 192.168.10.54 5555
echo ":DISPLAY:DATA? 0" | nc -w1 192.168.10.54 5555 | dd bs=1 skip=11 of=image_2.png
An image of the error msg is attached.
--- End quote ---
bummer, thanks for trying. I was just about to start this but you saved me the effort.
JimKnopf:
@TurboTom
How can i write to usb device in uboot?
Steps are not well documented and rarely used in this forum.
I already grabbed the content from SPI eprom. In this eprom-content is the uboot password in plain text "sardine_uboot".
Now i want (just for exercise) read the sardine_uboot.img from nand and write it to a USB Stick.
I plugged in a USB Stick, logged into uboot, and did:
usb start
printenv
fat_uboot_file=sardine-uboot.img
fdtaddr=0x88000000
filesize=ae0000
nand read 0x88000000 0x0 0xae0000
NAND read: device 0 offset 0x0, size 0xae0000
11403264 bytes read: OK
save usb 0:1 0x88000000 sardine-uboot.img 0xae0000
But i only get an error msg: ** Unable to write file sardine-uboot.img ** and fatls usb 0:1 show me an empty USB Stick "0 file(s), 0 dir(s)"
I read in some other threads that newer devices are able to use tftp to send files. The DG2052 only has tftpboot to grab files from a server.
How can i save the nand content and maybe the SPI eprom content to a usb device using UART/uboot?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version