ds-2cd2042 (R6 architecture) how to restore uBoot?

flashed again. To rebuild bad block table use "nand rclm all"
but don't use "nand verify all" - it erases all NAND !!!
Now trying to find how to download FW to uBoot.
- to dump on screen NAND data including bbt - use "nand dump (firstpage) (lastpage)" pages 2048 bytes + 64 bytes ECC
 
Last edited:
I can receive files by tftp, but files are copying into RAM, not NAND.
"tftp program 1.bin 0x120000" loads file 1.bin from server to RAM and try to execute at this addr.
But still not found comands to WRITE something to NAND
command -update ends with error "Boot_mini_system: get dtb failed" - what does it mean?
command -updtb asks for file r6.dtb - Is it needed dtb?
 
Last edited:
r32 w32 boot erase
help reset setenv printenv
saveenv show tftpboot bootm
crc killb readoob updtb
updateb upf update format
upbs ubi go mii
dump mtest memset fdt
nand usbdl gpio tftp
ping sd
 
OK, no sf command.
But try
help nand
and see what's available. Maybe there is something useful in there for working with the flash.
From what I recall - the 'show' command is also useful to see various status.

Here is a link to the mtdblocks of a DS-2CD2042WD-I that may be of some use to you.
It includes the 'ptb'
This has the partition layout and the 'dtb' Device Tree Block - the hardware definitions required by the kernel.
 
yes, I try to fix this oooold camera. There is no useful comand in "nand" section (erase, verify, speed?,dump, markbad... but nothing about writing data to nand)
I learned how to download any file into RAM by tftp and disable autostart of it (after downloading, camera jumped to first address of file and hangs).
So I have a question how to transfer data from RAM to NAND...