bmork / defogger

D-Link DCS-8000LH usage info and defogging tools
268 stars 37 forks source link

HowTo - uboot Recovery #25

Open Schnup89 opened 2 years ago

Schnup89 commented 2 years ago

I've just messed up my mtd8 (rootfs) partition by doing silly things :D Just got through the recovery process and want to share my steps with you:

Grab a TTL UART Converter and connect it like it is stated in the README with GND, TX, RX. Power up the Camera and type alpha168 if the prompt "Press ESC to abort autoboot in 3 second" is shown. As the uboot prompt you have do the following stuff:

Check the Partition start, end and size values from the README of the corrupted partition.

Execute loady Then upload the file via loady from your serial program (for windows you can use extraputty ->send files) The mtd will be written to 0x82000000 in RAM Write down the "filesize"-value.

After that you initialise and erase the partion. (the first argument is the "start"-value of your partition, the second the "size"-value

sf probe
sf erase 0x4e0000 0xb00000

The last step is to write the file from ram to flash and reboot the camera. First argument should not be edited (RAM Position), second is the start-value of the partition, third is the "filesize" which we got 2 steps above. sf write 0x82000000 0x4e0000 0x007e2000

gysmo38 commented 1 year ago

Hello, I try to upload firmware 2.02.2 with loady but I have kernel panic

List of all partitions: 1f00 256 mtdblock0 (driver?) 1f01 128 mtdblock1 (driver?) 1f02 1024 mtdblock2 (driver?) 1f03 128 mtdblock3 (driver?) 1f04 128 mtdblock4 (driver?) usb 1-1: New USB device found, idVendor=0bda, idProduct=b720 1f05 128 mtdblock5 usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 (driver?) 1f06 128 mtdblock6 usb 1-1: Product: 802.11n WLAN Adapter usb 1-1: Manufacturer: Realtek (driver?) 1f07 3072 mtdblock7 usb 1-1: SerialNumber: 00e04c000001 (driver?) 1f08 11264 mtdblock8 (driver?) No filesystem could mount root, tried: squashfs vfat msdos Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,8)

Do you have any idea how to fix it?

I download and send DCS-8000LH_Ax_v2.02.02_3014.bin, it is the correct file? I do not have same size...

I do not find my partition start and size. It is the same for all DCS-8000LH? If no how can I found it?