Playing with new firmware versions on my dahua VTH5241DW-S1, I flashed once again the wrong image => device bricked.
Off course I'm aware of UART / TFTP methods for unbricking. This time I made the mistake, flashing a obviously too old bootloader which does not support the flash from this board.
I ended up in uboot with
Initializing the flash with sf probe command in uboot gives following message:
Even If I would download all images into ram (ethernet is working fine) and boot it up, I'm afraid the uboot commands for accessing nand in linux will not work anyway.
Any ideas on how I could unbrick my device?
Here a complete bootlog with tftp trying to flash latest bootloader:
Off course I'm aware of UART / TFTP methods for unbricking. This time I made the mistake, flashing a obviously too old bootloader which does not support the flash from this board.
I ended up in uboot with
Code:
Environment SPI flash not initialized
Code:
SF: Unsupported Winbond ID 4019
Even If I would download all images into ram (ethernet is working fine) and boot it up, I'm afraid the uboot commands for accessing nand in linux will not work anyway.
Any ideas on how I could unbrick my device?
Here a complete bootlog with tftp trying to flash latest bootloader:
Code:
Checking DDR......OK
UBL Version: 1.46t(DM365)09:30:17 Sep 2 2014
Oscillator: 24MHZ
ARM Rate: 432 MHZ
DDR Rate: 340 MHZ
BootMode: SPI
Starting SPI Memory Copy...
DONE
U-Boot 1.3.6 (jerry) (Mar 28 2017 - 19:34:15)
DRAM: 128 MB
SF: Got idcode ef 40 19 00 00
SF: Unsupported Winbond ID 4019
*** Warning - probe error, using default environment
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Ethernet PHY: GENERIC @ 0x01,id:1cc816
total gio 2
gio[22]=1
gio[25]=1
TFTP from server 192.168.254.254; our IP address is 192.168.1.108; sending through gateway 192.168.1.1
Filename 'upgrade_info_7db780a713a4.txt'.
Load address: 0x80100000
Loading: #
done
Bytes transferred = 180 (b4 hex)
TFTP from server 192.168.254.254; our IP address is 192.168.1.108; sending through gateway 192.168.1.1
Filename 'dm365_ubl_boot_16M.bin.img'.
Load address: 0x82000000
Loading: ##################
done
Bytes transferred = 260240 (3f890 hex)
## Checking Image at 0x82000000 ...
Header CRC Checking ... OK
Image Name: uboot
Image Type: ARM Linux Firmware (uncompressed)
Data Size: 260176 Bytes = 254.1 kB
Load Address: 02000000
Entry Point: 02040000
Data CRC Checking ... OK
Programing start at: 0x00000000
Environment SPI flash not initialized
Environment SPI flash not initialized
Environment SPI flash not initialized
write : 0%Environment SPI flash not initialized
Environment SPI flash not initialized
Environment SPI flash not initialized
write : 25%Environment SPI flash not initialized
Environment SPI flash not initialized
Environment SPI flash not initialized
write : 50%Environment SPI flash not initialized
Environment SPI flash not initialized
write : 100%
done
Failed to Handle a line
TFTP from server 192.168.254.254; our IP address is 192.168.1.108; sending through gateway 192.168.1.1
Filename 'failed.txt'.
Load address: 0x80200000
Loading: *
TFTP error: 'File not found or No Access' (1)
Not retrying...
==>use default images
Environment SPI flash not initialized
Error when Got kernel from SPI flash!
Environment SPI flash not initialized
Error when Got kernel from SPI flash!
DHBOOT# setenv HWID VTH5241D:0:4:2:1D:5:4:1:9:3:3:1:1B0:0:2:0:6:0:0:1
DHBOOT# saveenv
Saving Environment to SPI Flash...
Environment SPI flash not initialized
DHBOOT# sf probe 0:0
SF: Got idcode ef 40 19 00 00
SF: Unsupported Winbond ID 4019
Failed to initialize SPI flash at 0:0
DHBOOT#