Author Topic: Hantek DSO1152S - Wont boot after firmware update  (Read 38622 times)

0 Members and 1 Guest are viewing this topic.

Offline WanaGoTopic starter

  • Regular Contributor
  • *
  • Posts: 152
  • Country: nz
Hantek DSO1152S - Wont boot after firmware update
« on: July 13, 2014, 04:27:01 am »
Hello,

I was just wondering if there is anyone on here who may be able to help.

My scope was running the stock factory firmware on my Hantek DSO1152S (Handheld 150Mhz isolated scope), and I noticed there was an update available as there were a few bugs I had found, such as the MEAS button not being able to measure any other channel other than CH1. So I thought I would try a firmware update.

I went on the Hantek website and downloaded the latest update. Put it on a USB drive, went to the update menu and placed the USB drive in the scope, waited for it to be detected and then clicked update.
It did 10/10 on the process update and then restarted. All looked fine.
Now I am in a boot loop and it will not get past the main start screens. The first shows the Handheld oscilloscope picture, and then the 2nd screen shows the Hantek name, website and the version number. It then restarts and repeats over and over.

Not sure what could have happened, unless the firmware was somehow corrupt?
Was plugged into AC, didn't touch it during the update.

Is there a way to force an update or restore it?

Any help would be appreciated. Currently dead in the water and urgently needing the scope working again

Kind Regards
WanaGo
 

Offline WanaGoTopic starter

  • Regular Contributor
  • *
  • Posts: 152
  • Country: nz
Re: Hantek DSO1152S - Wont boot after firmware update
« Reply #1 on: July 13, 2014, 04:51:36 am »
Seems someone else may have encountered a similar thing to me...

I couldnt get the hantek.org forum up, so I had to seek out a cached version, here: http://webcache.googleusercontent.com/search?q=cache:http://www.hantek.org/asken/iaskdetail.aspx?id=2014052620325673

Can someone please explain if they know the process to fix this. I am happy to open the case and connect a TTL to serial cable and do something with Linux if required.
I have a Ubuntu VM I could use, and have 3.3V TTL cables, may even find a 5V one...

If someone could help that would be highly appreciated

Kind Regards
WanaGo
 

Offline WanaGoTopic starter

  • Regular Contributor
  • *
  • Posts: 152
  • Country: nz
Re: Hantek DSO1152S - Wont boot after firmware update
« Reply #2 on: July 13, 2014, 05:47:15 am »
Here are some photos of the internals if this helps

I assume the UART header is the one marked J801, and the pin with the arrow marks the 3.3V pin, followed by GND, TXD and RXD ?

How do I connect to it, what program? What baud rate etc?
What do I need to do?

Any help would be appreciated

Thanks in advance

Regards
WanaGo
« Last Edit: July 13, 2014, 05:54:26 am by WanaGo »
 

Offline WanaGoTopic starter

  • Regular Contributor
  • *
  • Posts: 152
  • Country: nz
Re: Hantek DSO1152S - Wont boot after firmware update
« Reply #3 on: July 13, 2014, 06:03:31 am »
OK Yip that seems to be the UART port.

Baud seems to be 115200

Here is the output after pressing power button ON.

Quote
*** Warning - bad CRC or NAND, using default environment





##### EmbedSky BIOS for SKY2440/TQ2440 #####

Press Space key to Download Mode !

Booting Linux ...

Copy linux kernel from 0x00200000 to 0x30008000, size = 0x00200000 ... Copy Kernel to SDRAM done,NOW, Booting Linux......

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.30.4 (root@zgt) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-176) ) #125 Sat Jun 30 17:13:48 CST 2012
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: TQ2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, (c) 2004 Simtec Electronics
S3C244X: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
NR_IRQS:85
irq: clearing pending ext status 00000300
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console [ttySAC0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 61260KB available (3160K code, 346K data, 100K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 199.47 BogoMIPS (lpj=498688)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 296 bytes
NET: Registered protocol family 16
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4808000, irq 33
DMA channel 1 at c4808040, irq 34
DMA channel 2 at c4808080, irq 35
DMA channel 3 at c48080c0, irq 36
S3C244X: Clock Support, DVS off
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Calling CRDA to update world regulatory domain
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
yaffs Jun 30 2012 14:45:29 Installing.
msgmni has been set to 119
alg: No test for stdrng (krng)
io scheduler noop registered (default)
backlight initialized
s3c2440-uart.0: tq2440_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: tq2440_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: tq2440_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
loop: module loaded
Driver 'sd' needs updating - please use bus_type methods
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=2, 20ns Twrph0=3 30ns, Twrph1=2 20ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x000000000000-0x000000040000 : "EmbedSky_Board_uboot"
0x000000200000-0x000000400000 : "EmbedSky_Board_kernel"
0x000000400000-0x000003ff8000 : "EmbedSky_Board_yaffs2"
0x000000100000-0x000000200000 : "EmbedSky_Board_logo"
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
Linux video capture interface: v2.00
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: starting watchdog timer
s3c2410-wdt s3c2410-wdt: watchdog active, reset abled, irq enabled
mapped channel 0 to 0
s3c2440-sdi s3c2440-sdi: powered down.
s3c2440-sdi s3c2440-sdi: initialisation done.
s3c2440-sdi s3c2440-sdi: powered down.
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.18a.
No device for DAI UDA134X
No device for DAI s3c24xx-i2s
S3C24XX_UDA134X SoC Audio driver
UDA134X SoC Audio Codec
asoc: UDA134X <-> s3c24xx-i2s mapping ok
ALSA device list:
  #0: S3C24XX_UDA134X (UDA134X)
TCP cubic registered
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
lib80211: common routines for IEEE802.11 drivers
s3c2410-rtc s3c2410-rtc: hctosys: invalid date/time
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 100K
__init s3c24xxfb_probe
=======================================
map_video_memory(fbi=c3ae8a3c) map_size 614400
map_video_memory: clear ffc42000:00096000
map_video_memory: dma=33100000 cpu=ffc42000 size=00096000
setting vert: up=11, low=11, sync=1
setting horz: lft=17, rt=135, sync=11
s3c2410fb_activate_var
S3C2410_LCDCON1_CLKVAL(default_display->setclkval)=1
Console: switching to mono frame buffer device 80x30
fb0: s3c2410fb frame buffer device
hwclock: settimeofday: Invalid argument
bwscon:0x2201d110
fpga bank 221422
dso-fpga: install ok
dso-spi initialized
Init spi success!
New Log Write OK Length:21
s3c2440_clkcon=00FE7FF0
fpga download file_name :dn.rbf
copy-from-user ok
dn_file_name:dn.rbf
fpga_down_load file name : dn.rbf.
data DOWN finish.
dso-spi:FPGA_DOWNLOAD ok.
release
var.xres=640
var.yres=480
var.bits_per_pixel=16
var.xres_virtual=640
var.yres_virtual=480
fix.id=s3c2410fb
fix.smem_start=856686592
fix.smem_len=614400
fix.type=0
fix.type_aux=0
fix.xpanstep=0
fix.ypanstep=0
fix.ywrapstep=0
fix.line_length=1280
argv[1]=16
var.xres=640.var.yres=480.var.bits_per_pixel=16
show logo,video_buf_size = 614400
dm9000 Ethernet Driver, V1.31
Now use the default MAC address: 10:23:45:67:89:ab
eth0 (dm9000): not using net_device_ops yet
eth0: dm9000e at c49b8300,c49bc304 IRQ 53 MAC: 10:23:45:67:89:ab (EmbedSky)
Hantek GPIO(buzzer/speaker),(c)20110309
Try to bring eth0 interface up ...
Hantek-gpio initialized
speaker on
Beep
dso-buzzer initialized
ifconfig eth0 hw ether 10:23:45:67:89:ab
eth0: link down
ifconfig eth0 192.168.1.55 netmask 255.255.255.0 up
/sbin/net_set: line 5: route: not found
add default gw 192.168.1.2
Done
i2c /dev entries driver
s3c2440-i2c s3c2440-i2c: slave address 0x10
pdata->frequency=6000
s3c2440-i2c s3c2440-i2c: bus frequency set to 9 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
s3c2410_udc: debugfs dir creation failed -19
s3c2440-usbgadget s3c2440-usbgadget: S3C2440: increasing FIFO to 128 bytes
g_serial gadget: Gadget Serial v2.4
g_serial gadget: g_serial ready
lcd_init
dso-lcd1 initialized
tq2440_ts: module license 'unspecified' taints kernel.
Disabling lock debugging due to kernel taint
TQ2440 TouchScreen successfully loaded
input: TQ2440 TouchScreen as /devices/virtual/input/input0
Power-Ctrl initialized
no update file to foud
now run app .....
var.xres=640
var.yres=480
var.bits_per_pixel=16
var.xres_virtual=640
var.yres_virtual=480
fix.id=s3c2410fb
fix.smem_stsetting vert: up=11, low=11, sync=1
setting horz: lft=17, rt=135, sync=11
s3c2410fb_activate_var
S3C2410_LCDCON1_CLKVAL(default_display->setclkval)=1
art=856686592
fix.smem_len=614400
fix.type=0
fix.type_aux=0
fix.xpanstep=0
fix.ypanstep=0
fix.ywrapstep=0
fix.line_length=1280
argv[1]=8
var.xres=640.var.yres=480.var.bits_per_pixel=8

Please press Enter to activate this console. setting vert: up=11, low=11, sync=1
setting horz: lft=17, rt=135, sync=11
s3c2410fb_activate_var
S3C2410_LCDCON1_CLKVAL(default_display->setclkval)=1
 

Offline WanaGoTopic starter

  • Regular Contributor
  • *
  • Posts: 152
  • Country: nz
Re: Hantek DSO1152S - Wont boot after firmware update
« Reply #4 on: July 13, 2014, 07:00:29 am »
It talks about pressing Space at the start, to enter download mode
Would this then let me download an older firmware to correct this mess?

It talks about pressing Enter later on. I did this and it enters the Linux prompt.

Not sure what to do in either though
Regards
WanaGo
 

Offline tautech

  • Super Contributor
  • ***
  • Posts: 28136
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: Hantek DSO1152S - Wont boot after firmware update
« Reply #5 on: July 13, 2014, 07:22:56 am »
It talks about pressing Space at the start, to enter download mode
Would this then let me download an older firmware to correct this mess?

It talks about pressing Enter later on. I did this and it enters the Linux prompt.

Not sure what to do in either though
Regards
WanaGo
Tinhead is our Hantek expert, be patient and he will spot your thread.
Maybe PM him?
Avid Rabid Hobbyist
Siglent Youtube channel: https://www.youtube.com/@SiglentVideo/videos
 

Offline WanaGoTopic starter

  • Regular Contributor
  • *
  • Posts: 152
  • Country: nz
Re: Hantek DSO1152S - Wont boot after firmware update
« Reply #6 on: July 13, 2014, 07:27:01 am »
Yes thanks - have sent him a quick PM. Thank you.

Pressing Space resulted in this, which is the download option.

Not sure what I need though.

Quote
#####. Boot for Nand Flash Main Menu.#####

[1] Download u-boot or STEPLDR.nb1 or other bootloader to Nand Flash

[2] Download Eboot to Nand Flash

[3] Download Linux Kernel to Nand Flash

[5] Download CRAMFS image to Nand Flash

[6] Download YAFFS image to Nand Flash

[7] Download Program (uCOS-II or TQ2440_Test) to SDRAM and Run it

[8] Boot the system

[9] Format the Nand Flash

  • Set the boot parameters
[a] Download User Program (eg: uCOS-II or TQ2440_Test)

Download LOGO Picture (.bin) to Nand  Flash

[l] Set LCD Parameters

[r] Reboot u-boot

[t] Test Linux Image (zImage)

[q] quit from menu

Enter your selection:
 

Offline WanaGoTopic starter

  • Regular Contributor
  • *
  • Posts: 152
  • Country: nz
Re: Hantek DSO1152S - Wont boot after firmware update
« Reply #7 on: July 13, 2014, 09:07:22 am »
More playing, but nothing discovered, just more questions..

Thought I would try to decrypt the update file. Found a bit of info on this site, but I didnt know the password for the up file.

> gpg -d dso1kb_2.01.1_DSO1152S\(140408.0\).up > dso1kb_2.01.1.gz
gpg: CAST5 encrypted data
gpg: encrypted with 1 passphrase
gpg: decryption failed: bad key
gpg: block_filter 0xaf0730: read error (size=16233,a->size=16233)
gpg: block_filter: pending bytes!

tried what I found on here, and guessed at a dozen more, but nothing seemed to work.

WanaGo
 

Offline WanaGoTopic starter

  • Regular Contributor
  • *
  • Posts: 152
  • Country: nz
Re: Hantek DSO1152S - Wont boot after firmware update
« Reply #8 on: July 13, 2014, 09:15:07 am »
Had a bit of a look around in linux, but it seems after a very short time, maybe 30 seconds?... it reboots

Quote
The system is going down NOW!
s3c2410-wdt s3c2410-wdt: Unexpected close, not stopping watchdog

Sent SIGTERM to all processes

Sent SIGKILL to all processes

Requesting system reboot
s3c2440-sdi s3c2440-sdi: powered down.
Restarting system.
« Last Edit: July 13, 2014, 09:29:57 am by WanaGo »
 

Offline WanaGoTopic starter

  • Regular Contributor
  • *
  • Posts: 152
  • Country: nz
Re: Hantek DSO1152S - Wont boot after firmware update
« Reply #9 on: July 13, 2014, 09:18:13 am »
Quote from: Tinhead
killall dsod

From another post. Thank you. :)
 

Offline bwat

  • Frequent Contributor
  • **
  • Posts: 278
  • Country: se
    • My website
Re: Hantek DSO1152S - Wont boot after firmware update
« Reply #10 on: July 13, 2014, 09:25:51 am »
More playing, but nothing discovered, just more questions..

Thought I would try to decrypt the update file. Found a bit of info on this site, but I didnt know the password for the up file.

> gpg -d dso1kb_2.01.1_DSO1152S\(140408.0\).up > dso1kb_2.01.1.gz
gpg: CAST5 encrypted data
gpg: encrypted with 1 passphrase
gpg: decryption failed: bad key
gpg: block_filter 0xaf0730: read error (size=16233,a->size=16233)
gpg: block_filter: pending bytes!

tried what I found on here, and guessed at a dozen more, but nothing seemed to work.

WanaGo

CAST uses 128-bit keys, so if you brute force it  expect to take 2^127 attempts. Also, many keys may end up giving you an executable binary, just not the right one. Note the universe is roughly 2^80 microseconds old. Source: The Block Cipher Companion, Knudsen and Robshaw.

If you want to save time, the key is somewhere in the machine doing the decryption and CAST is a symmetric cipher so you can encrypt with the same key if you want to load your own software.
"Who said that you should improve programming skills only at the workplace? Is the workplace even suitable for cultural improvement of any kind?" - Christophe Thibaut

"People who are really serious about software should make their own hardware." - Alan Kay
 

Offline WanaGoTopic starter

  • Regular Contributor
  • *
  • Posts: 152
  • Country: nz
Re: Hantek DSO1152S - Wont boot after firmware update
« Reply #11 on: July 13, 2014, 09:32:16 am »
yeah wasnt hopeful guessing would work, however the passwords I had seen on this forum and others were the model numbers of the scope, or the family models.

I tried:
dso1000
dso1000s
dso1152
dso1152s
etc

No joy.
In terms of hunting out the key on this machine - wouldnt know where to start to be honest.
 

Offline bwat

  • Frequent Contributor
  • **
  • Posts: 278
  • Country: se
    • My website
Re: Hantek DSO1152S - Wont boot after firmware update
« Reply #12 on: July 13, 2014, 09:47:03 am »
Is it a linux process that decrypts the file? If you're lucky it'll be a script so they'll probably use the openssl command. I use a script like this:
Code: [Select]
#!/bin/sh
openssl des3 -d -salt -in secret_file.tar.gz.des3 -out secret_file.tar.gz
Somewhere on that machine will be a similar script using cast instead of des3. Maybe try an update and run "ps" at the same time to see what is doing the decryption. If it's a binary linked with the openssl libs then hexdump that binary looking for the password which you know will probably start with "dso" and be NUL terminated.

Edit: Maybe just build your own openssl libs that dump debug info giving you the passwords used on the machine. That would be quickest.
« Last Edit: July 13, 2014, 09:52:58 am by bwat »
"Who said that you should improve programming skills only at the workplace? Is the workplace even suitable for cultural improvement of any kind?" - Christophe Thibaut

"People who are really serious about software should make their own hardware." - Alan Kay
 

Offline tinhead

  • Super Contributor
  • ***
  • Posts: 1918
  • Country: 00
    • If you like my hacks, send me a donation
Re: Hantek DSO1152S - Wont boot after firmware update
« Reply #13 on: July 13, 2014, 09:54:38 am »
don't play too much, i will help you on that.
I don't want to be human! I want to see gamma rays, I want to hear X-rays, and I want to smell dark matter ...
I want to reach out with something other than these prehensile paws and feel the solar wind of a supernova flowing over me.
 

Offline WanaGoTopic starter

  • Regular Contributor
  • *
  • Posts: 152
  • Country: nz
Re: Hantek DSO1152S - Wont boot after firmware update
« Reply #14 on: July 13, 2014, 10:08:37 am »
great, thanks!

Ready when you are.

Noticed when logged in to the linux console, after a few minutes one of the relay clicks on and off, and then again, and then again... and gets faster and faster. I shut it down after a couple of clicks as I dont know why its doing it.
Thought it was due to it getting hot, but I have put a big case fan above the scope board and its still doing it.
 

Offline WanaGoTopic starter

  • Regular Contributor
  • *
  • Posts: 152
  • Country: nz
Re: Hantek DSO1152S - Wont boot after firmware update
« Reply #15 on: July 13, 2014, 10:12:56 am »
>cat sys.inf

[DST type]dst1202b
[soft version]2.01.1(121207.1)
[fpga version]0x555583e8
[start time]-1
[update time]0
 

Offline WanaGoTopic starter

  • Regular Contributor
  • *
  • Posts: 152
  • Country: nz
Re: Hantek DSO1152S - Wont boot after firmware update
« Reply #16 on: July 13, 2014, 10:23:33 am »
I have 2 firmware files, downloaded one a while back but didnt upgrade as I was looking at the 2.01.1 rather than the date.
Didnt think anything had changed.

dso1kb_2.01.1_DSO1152S(130129.0).up
dso1kb_2.01.1_DSO1152S(140408.0).up

Its that 2nd one that I tried today which got me into this mess.

Looks like I was running 121207.1 prior to that.
 

Offline WanaGoTopic starter

  • Regular Contributor
  • *
  • Posts: 152
  • Country: nz
Re: Hantek DSO1152S - Wont boot after firmware update
« Reply #17 on: July 13, 2014, 10:32:45 am »
now thats interesting...

./dso.exe

scope booted and launched as per normal. beeper was beeping every 3 seconds or so, but I could navigate menus etc.
Utility button, and Sys Info shows its running 140408

Turned it off again.
will wait for instructions
 

Offline tinhead

  • Super Contributor
  • ***
  • Posts: 1918
  • Country: 00
    • If you like my hacks, send me a donation
Re: Hantek DSO1152S - Wont boot after firmware update
« Reply #18 on: July 13, 2014, 10:37:25 am »
i'm on windows, so some steps might be different on windows:

1- go to Hantek OneDrive http://1drv.ms/1cA9vjg and download firmware for your model (DSO1152S_Firmware.zip)
2- unzip that file, you will get dso1kb_2.01.1_DSO1152S(140408.0).up
3- get gnupg, run in command prompt from directory with the *.up file like
 gpg -o fw.tar.tar.gz dso1kb_2.01.1_DSO1152S(140408.0).up
4- when asked type password: 111111
5- now you should have that file fw.tar.tar.gz created in this directory
6- open it with winrar, then the content again with winrar - you will see "tekwayup_client" directory, unpack it to harddrive
7- in that directoy there will be "update" script, in my opinion there is bug, there should be

[cmd] mv /tmp/tekwayup_client/dso.exe   /dso_update.exe

and not

[cmd] mv /tmp/tekwayup_client/dso.exe   /dso.exe

I don't know, maybe it's only me, but i never managed to overwrite dso.exe when it was started, it crashed or didn't got overwritten properly on linux 2.6.13 and 2.6.30 (that might work on 3.x, so on other models, but you have 2.6.30.4).
I think these guys from Hantek, they already forgot that  :palm: One can see in the bootlog "no update file to foud" which
is message coming from script which checks if there is /dso_update.exe in place and renames it to /dso.exe before this will be started (right after first rebot after fw update) .. anyway, maybe that's only me hehe, but i can kill all my s3c2440 dev boards
with all the DSO/MSO firmwares on it when i do what they did on latest S, B and BV models updates.

Anyway, copy that dso.exe to flash drive (and ensure windows copied it properly before you remove flash drive).

Now let' got to the linux console on your DSO. Luckily you did the major work already, so do following:

1- power up DSO
2- do not push any buttons or you will be in boot menu and we dont need that!
3- as soon you see "Please press Enter to activate this console" push ENTER and or CTRL+C and ENTER.
4- now tpe as fast you can following (and then ENTER)
 
  killall dsod

and then arrow key up (to reply last command) and ENTER, and again :) Until you get "dsod: no process killed".
The dsod is watchdog, rebooting your DSO over and over again because dso.exe not started. Normally one could check with ps x the process id and kill -9 processid, but killall dsod is faster typed (at least for my fat fingers).

Now you should be on the linux shell, without any reboot over and over again. Insert now the flash drive into DSO,
you should see now some messages that it got monted. Check that with

 ls /mnt/udisk/

You should see that copied before dso.exe. Copy it now to root of the DSO, like

 cp /mnt/udisk/dso.exe /dso.exe

then flush the cash with

 sync
 sync

and give executo rights

 chmod 777 /dso.exe

No check if your DSO is working. Go back to / ( cd / ), and type /dso.exe and enter. The firmwar should start now.
I assume you executed before that update file dso1kb_2.01.1_DSO1152S(140408.0).up anyway, so there is not need
to copy other files from that "tekway_client" directory. In case you applied different update, let me know this, then
you will have to copy other files as well.
I don't want to be human! I want to see gamma rays, I want to hear X-rays, and I want to smell dark matter ...
I want to reach out with something other than these prehensile paws and feel the solar wind of a supernova flowing over me.
 

Offline WanaGoTopic starter

  • Regular Contributor
  • *
  • Posts: 152
  • Country: nz
Re: Hantek DSO1152S - Wont boot after firmware update
« Reply #19 on: July 13, 2014, 10:41:50 am »
thank you!

I am on windows too.
Only know how to drive linux as good as I can find answers on google. Assumed that would be the method to use.

Already downloaded the firmware, which got me in this mess in the first place, however will get it from where you stated.

Will report back shortly

Thank you!
 

Offline tinhead

  • Super Contributor
  • ***
  • Posts: 1918
  • Country: 00
    • If you like my hacks, send me a donation
Re: Hantek DSO1152S - Wont boot after firmware update
« Reply #20 on: July 13, 2014, 10:43:24 am »
btw, when you DSO anyway open, can you please make pictures of the other side of the PCB as well ? I wish to see how they made the isolation, and all these parts from isolation (ADCs, FPGA and SoC as well - but they known) are of the other PCB side.

I don't want to be human! I want to see gamma rays, I want to hear X-rays, and I want to smell dark matter ...
I want to reach out with something other than these prehensile paws and feel the solar wind of a supernova flowing over me.
 

Offline WanaGoTopic starter

  • Regular Contributor
  • *
  • Posts: 152
  • Country: nz
Re: Hantek DSO1152S - Wont boot after firmware update
« Reply #21 on: July 13, 2014, 10:54:11 am »
OK, did all the fix, however still got the boot loop.

Yes I updated the firmware as per the update menu on that latest update prior to all this, then got the boot loop.

copied the dso.exe file over as you said, restarted the unit and its still got a boot loop.

Any ideas?

Ill take photos of the other side while I await your reply

Regards
WanaGo
 

Offline tinhead

  • Super Contributor
  • ***
  • Posts: 1918
  • Country: 00
    • If you like my hacks, send me a donation
Re: Hantek DSO1152S - Wont boot after firmware update
« Reply #22 on: July 13, 2014, 10:56:50 am »
so you copied the dso.exe, changed the execution rights and when you kill the dsod and run /dso.exe it reboot then still after few seconds? Try to do this as well:

rm /param/sav/run*

and then try to run the /dso.exe

EDIT: once dsod killed there should be no reboot. It would be interessting as well to see what message is coming right before reboot.
« Last Edit: July 13, 2014, 11:02:01 am by tinhead »
I don't want to be human! I want to see gamma rays, I want to hear X-rays, and I want to smell dark matter ...
I want to reach out with something other than these prehensile paws and feel the solar wind of a supernova flowing over me.
 

Offline WanaGoTopic starter

  • Regular Contributor
  • *
  • Posts: 152
  • Country: nz
Re: Hantek DSO1152S - Wont boot after firmware update
« Reply #23 on: July 13, 2014, 11:03:17 am »
What I mean is, before I did what you said....

Start the unit up, Press Enter to get to linux prompt.
If I sit there it will reboot after about 20 seconds.
So to prevent that, I did the killall dsod.
I then put in the flash drive and copied over the dso.exe file I extracted from the up file.
i then did the rest of your instructions about the chmod etc, sync etc. running /dso.exe at this point starts the scope, no problem. All seems fine.
However rebooting the scope again, results in a boot loop like before.

Whatever is normally opening dso.exe it seems is not working.
I still get that same first warning message: "*** Warning - bad CRC or NAND, using default environment"
When I am looking at the UART.

Hope that makes sense

Opening scope now.
 

Offline WanaGoTopic starter

  • Regular Contributor
  • *
  • Posts: 152
  • Country: nz
Re: Hantek DSO1152S - Wont boot after firmware update
« Reply #24 on: July 13, 2014, 11:19:17 am »
OK here are some photos, both sides.
If you want larger res, let me know. Made smaller for the forum, but still 1280x853. Got them 4752x3168.
Its night here, so if you want better quality ones, let me know and ill take some in the day light tomorrow.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf