Author Topic: Swann DVR (security camera recorder) bricked after firmware update (Fixed)  (Read 10199 times)

0 Members and 1 Guest are viewing this topic.

Offline dc101

  • Regular Contributor
  • *
  • Posts: 220
  • Country: us
Re: Swann DVR (security camera recorder) bricked after firmware update
« Reply #50 on: April 25, 2021, 05:57:02 pm »
I have attached the output of the boot log to this post as it is too long for the forum once I flashed the Application partition using dd.  It is now booted and I went through the initial setup wizard but now it is asking for a password to let me in that I did not set in the setup wizard so I will have to figure that out as well.  Not sure if the extra data that was in the Application partition is still there or not.

That's great news, glad it's working now! Hopefully it is easy enough to find the default password or figure out how to reset it. I recall seeing some forum posts about this when searching for the manuals.
 

Offline dc101

  • Regular Contributor
  • *
  • Posts: 220
  • Country: us
Re: Swann DVR (security camera recorder) bricked after firmware update
« Reply #51 on: April 25, 2021, 06:01:30 pm »
I have attached the output of the boot log to this post as it is too long for the forum once I flashed the Application partition using dd.  It is now booted and I went through the initial setup wizard but now it is asking for a password to let me in that I did not set in the setup wizard so I will have to figure that out as well.  Not sure if the extra data that was in the Application partition is still there or not.

You probably already discovered this but in case not "The default all-access username is admin, the default password is 12345" https://www.swann.com/us/downloads/dl/file/id/1611/product/257/4400_series_4_8_16_channel_manual.pdf
 

Offline poot36Topic starter

  • Frequent Contributor
  • **
  • Posts: 678
  • Country: ca
Re: Swann DVR (security camera recorder) bricked after firmware update
« Reply #52 on: April 25, 2021, 06:09:11 pm »
I did find the password in this manual: https://www.appliancesonline.com.au/manuals/SWDVR-44000H/17102012100716SWDVR-44000H.pdf.  The one you linked to is somewhat different from the one I found perhaps this one is for the version of the recorder that has the different firmware that does not work on my unit or vise versa (it mentioned SRDVR-84400 (8 cameras perhaps) under the system information screen(my manual shows dvr5808 (8 cameras as well)?. I tried the firmware update option and it got stuck trying to open the USB file browser and is giving me this error in the terminal:

WARNING: at drivers/usb/musb/musb_host.c:148 musb_h_tx_flush_fifo+0x94/0xd4()
Could not flush host TX2 fifo: csr: 3403
Modules linked in: ti_cir ti_sndbase ti_gpio ti81xxhdmi ti81xxfb vpss osa_kermod syslink
Backtrace:
[<c0048b70>] (dump_backtrace+0x0/0x110) from [<c03cb950>] (dump_stack+0x18/0x1c)
 r7:c4bb7e10 r6:c02b5768 r5:c04c3955 r4:00000094
[<c03cb938>] (dump_stack+0x0/0x1c) from [<c006a1f8>] (warn_slowpath_common+0x54/0x6c)
[<c006a1a4>] (warn_slowpath_common+0x0/0x6c) from [<c006a2b4>] (warn_slowpath_fmt+0x38/0x40)
 r9:00000000 r8:c4845bac r7:c881e522 r6:ffffffff r5:00003403
r4:00003403
[<c006a27c>] (warn_slowpath_fmt+0x0/0x40) from [<c02b5768>] (musb_h_tx_flush_fifo+0x94/0xd4)
 r3:00000002 r2:c04c3972
[<c02b56d4>] (musb_h_tx_flush_fifo+0x0/0xd4) from [<c02b6890>] (musb_cleanup_urb+0x108/0x164)
 r8:c4b96900 r7:c881e520 r6:00000000 r5:c4811060 r4:c4845bac
[<c02b6788>] (musb_cleanup_urb+0x0/0x164) from [<c02b70a8>] (musb_urb_dequeue+0x150/0x180)
[<c02b6f58>] (musb_urb_dequeue+0x0/0x180) from [<c02a1eb8>] (unlink1+0xa4/0xb0)
[<c02a1e14>] (unlink1+0x0/0xb0) from [<c02a1fe8>] (usb_hcd_unlink_urb+0x58/0x74)
 r9:c4967844 r8:c4bb6000 r7:ffffff98 r6:c4b96900 r5:a0000093
r4:00000000
[<c02a1f90>] (usb_hcd_unlink_urb+0x0/0x74) from [<c02a21a0>] (usb_unlink_urb+0x40/0x44)
 r7:c023c264 r6:c4967800 r5:c4bb7f7c r4:c4967b20
[<c02a2160>] (usb_unlink_urb+0x0/0x44) from [<c02b0d70>] (usb_stor_stop_transport+0x38/0x64)
[<c02b0d38>] (usb_stor_stop_transport+0x0/0x64) from [<c02b05fc>] (command_abort+0x78/0x8c)
 r5:c4bb7f7c r4:c4967b20
[<c02b0584>] (command_abort+0x0/0x8c) from [<c023a8d4>] (scsi_try_to_abort_cmd+0x2c/0x30)
 r5:c4bb7f7c r4:c32179c0
[<c023a8a8>] (scsi_try_to_abort_cmd+0x0/0x30) from [<c023c390>] (scsi_error_handler+0x12c/0x370)
[<c023c264>] (scsi_error_handler+0x0/0x370) from [<c0081558>] (kthread+0x8c/0x94)
[<c00814cc>] (kthread+0x0/0x94) from [<c006d400>] (do_exit+0x0/0x5e4)
 r7:00000013 r6:c006d400 r5:c00814cc r4:c48abb78
---[ end trace 53cb76d1ab031c95 ]---
_IR
   recv key: KEY_ENTER_IR
                         hub 1-1:1.0: cannot reset port 3 (err = -110)
hub 1-1:1.0: cannot reset port 3 (err = -110)
hub 1-1:1.0: cannot reset port 3 (err = -110)
hub 1-1:1.0: cannot reset port 3 (err = -110)
hub 1-1:1.0: cannot reset port 3 (err = -110)
hub 1-1:1.0: Cannot enable port 3.  Maybe the USB cable is bad?
hub 1-1:1.0: cannot disable port 3 (err = -110)
hub 1-1:1.0: cannot reset port 3 (err = -110)
hub 1-1:1.0: cannot reset port 3 (err = -110)
hub 1-1:1.0: cannot reset port 3 (err = -110)
hub 1-1:1.0: cannot reset port 3 (err = -110)
hub 1-1:1.0: cannot reset port 3 (err = -110)
hub 1-1:1.0: Cannot enable port 3.  Maybe the USB cable is bad?
hub 1-1:1.0: cannot disable port 3 (err = -110)
hub 1-1:1.0: cannot reset port 3 (err = -110)
hub 1-1:1.0: cannot reset port 3 (err = -110)
hub 1-1:1.0: cannot reset port 3 (err = -110)
hub 1-1:1.0: cannot reset port 3 (err = -110)
AUDIO >> read recover return -32
                                AUDIO >> read rehub 1-1:1.0: cannot reset port 3 (err = -110)
cover return -32hub 1-1:1.0: Cannot enable port 3.  Maybe the USB cable is bad?

AUDIO >> read recover return -32
                                AUDIO >> read recover return -32
                                                                AUDIO >> read recover return -32
                hub 1-1:1.0: cannot disable port 3 (err = -110)
AUDIO >> read rehub 1-1:1.0: cannot reset port 3 (err = -110)
cover return -32
                AUDIO >> read rehub 1-1:1.0: cannot reset port 3 (err = -110)
cover return -32

Not sure what is going on here but I suspect that there is still issues with the boot or the flash drive is somehow incompatible with the OS (it worked fine for the dd stuff though).  The unit did eventually crash and reboot on its own.
« Last Edit: April 25, 2021, 06:27:08 pm by poot36 »
 

Offline poot36Topic starter

  • Frequent Contributor
  • **
  • Posts: 678
  • Country: ca
Re: Swann DVR (security camera recorder) bricked after firmware update
« Reply #53 on: April 25, 2021, 09:39:28 pm »
Well I managed to get the firmware update loader screen to show by booting the unit with the USB drive not connected and then connecting it when I was in the update screen.  Here is the terminal output of the update process if anyone is interested (is continued on 2nd post as it is to long):

Sending discover...
                                                     usb 1-1.3: new high speed USB device using musb-hdrc and address 4
Sending discover...
                   usb 1-1.3: New USB device found, idVendor=090c, idProduct=1000
usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1.3: Product: USB DISK
usb 1-1.3: Manufacturer: SMI Corporation
scsi3 : usb-storage 1-1.3:1.0
scsi 3:0:0:0: Direct-Access     SMI      USB DISK         1100 PQ: 0 ANSI: 4
sd 3:0:0:0: Attached scsi generic sg2 type 0
sd 3:0:0:0: [sdc] 15974400 512-byte logical blocks: (8.17 GB/7.61 GiB)
sd 3:0:0:0: [sdc] Write Protect is off
sd 3:0:0:0: [sdc] Assuming drive cache: write through
sd 3:0:0:0: [sdc] Assuming drive cache: write through
 sdc: sdc1
sd 3:0:0:0: [sdc] Assuming drive cache: write through
sd 3:0:0:0: [sdc] Attached SCSI removable disk
umount: /mnt/usb/: not mounted
                              mount usb device ok,Leftsize:0 B
                                                              clean list control and linklist.
              clean list control and linklist ok.
                                                 no file in dir "/mnt/usb/"
                                                                           winBackupInfo.pFiles count:24
                        list file ok.


                                     func:BackupProc line:299 winBackupInfo.Leftsize=236 MB
           Sending discover...
                              recv key: KEY_ENTER_IR
                                                    mount usb device ok,Leftsize:236 MB
       clean list control and linklist.
                                       clean list control and linklist ok.
                                                                          no file in dir "/mnt/usb/"
                    winBackupInfo.pFiles count:24
                                                 list file ok.


                                                              func:BackupProc line:299 winBackupInfo.Leftsize=236 MB
                                    usb 1-1.3: USB disconnect, address 4
Save Child Window hMenu is 0 !
                              umount -f /mnt/usb/
                                                 res = 0
                                                        x:320 y:168
                                                                   Sending discover...
      Sending discover...
                         Sending discover...
                                            Sending discover...
                                                               Sending discover...
  Sending discover...
                     Sending discover...
                                        Sending discover...
                                                           usb 1-1.3: new high speed USB device using musb-hdrc and address 5
Sending discover...
                   usb 1-1.3: New USB device found, idVendor=090c, idProduct=1000
usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1.3: Product: USB DISK
usb 1-1.3: Manufacturer: SMI Corporation
scsi4 : usb-storage 1-1.3:1.0
scsi 4:0:0:0: Direct-Access     SMI      USB DISK         1100 PQ: 0 ANSI: 4
sd 4:0:0:0: Attached scsi generic sg2 type 0
sd 4:0:0:0: [sdc] 15974400 512-byte logical blocks: (8.17 GB/7.61 GiB)
sd 4:0:0:0: [sdc] Write Protect is off
sd 4:0:0:0: [sdc] Assuming drive cache: write through
sd 4:0:0:0: [sdc] Assuming drive cache: write through
 sdc: sdc1
sd 4:0:0:0: [sdc] Assuming drive cache: write through
sd 4:0:0:0: [sdc] Attached SCSI removable disk
umount: /mnt/usb/: not mounted
                              mount usb device ok,Leftsize:0 B
                                                              clean list control and linklist.
              clean list control and linklist ok.
                                                 no file in dir "/mnt/usb/"
                                                                           winBackupInfo.pFiles count:25
                        list file ok.


                                     func:BackupProc line:299 winBackupInfo.Leftsize=216 MB
           func:BackupProc line:299 winBackupInfo.Leftsize=216 MB
                                                                 recv key: KEY_DOWN_IR
      recv key: KEY_DOWN_IR
                           recv key: KEY_DOWN_IR
                                                recv key: KEY_UP_IR
                                                                   recv key: KEY_ENTER_IR
         recv key: KEY_ENTER_IR
                               recv key: KEY_DOWN_IR
                                                    recv key: KEY_DOWN_IR
                                                                         recv key: KEY_DOWN_IR
              recv key: KEY_UP_IR
                                 recv key: KEY_UP_IR
                                                    recv key: KEY_ENTER_IR
                                                                          recv key: KEY_DOWN_IR
               recv key: KEY_DOWN_IR
                                    recv key: KEY_DOWN_IR
                                                         recv key: KEY_DOWN_IR
                                                                              Sending discover...
                 recv key: KEY_DOWN_IR
                                      recv key: KEY_DOWN_IR
                                                           recv key: KEY_DOWN_IR
                                                                                recv key: KEY_DOWN_IR
                     recv key: KEY_DOWN_IR
                                          recv key: KEY_DOWN_IR
                                                               recv key: KEY_DOWN_IR
    recv key: KEY_DOWN_IR
                         recv key: KEY_DOWN_IR
                                              Sending discover...
                                                                 recv key: KEY_DOWN_IR
      recv key: KEY_DOWN_IR
                           recv key: KEY_DOWN_IR
                                                recv key: KEY_DOWN_IR
                                                                     recv key: KEY_DOWN_IR
          recv key: KEY_DOWN_IR
                               recv key: KEY_DOWN_IR
                                                    recv key: KEY_DOWN_IR
                                                                         recv key: KEY_DOWN_IR
              recv key: KEY_DOWN_IR
                                   Sending discover...
                                                      recv key: KEY_DOWN_IR
                                                                           recv key: KEY_DOWN_IR
                recv key: KEY_DOWN_IR
                                     recv key: KEY_ENTER_IR
                                                           recv key: KEY_DOWN_IR
                                                                                recv key: KEY_ENTER_IR
                      recv key: KEY_DOWN_IR
                                           recv key: KEY_DOWN_IR
                                                                recv key: KEY_DOWN_IR
     recv key: KEY_DOWN_IR
                          recv key: KEY_IR_EXIT
                                               recv key: KEY_DOWN_IR
                                                                    recv key: KEY_DOWN_IR
         recv key: KEY_UP_IR
                            recv key: KEY_ENTER_IR
                                                  recv key: KEY_DOWN_IR
                                                                       recv key: KEY_ENTER_IR
             Selected file is DVR4-4000_GA1.9_1025.pak.
                                                       source file is "DVR4-4000_GA1.9_1025.pak"
                upgrade soft ware.path:/mnt/usb/DVR4-4000_GA1.9_1025.pak
                                                                        ftp exit already
        kill net server
                       Sending discover...
Erasing 128 Kibyte @ 1a0000 -- 40 % cyaffs: dev is 32505862 name is "mtdblock6" rw
Erasingyaffs: passed flags ""
Erasing 128 Kibyte @ 400000 -- 100 % complete.
                                              killall: ntpclient: no process killed
   killall: ddns-start: no process killed
                                         DDNS stoped
                                                    AUDIO >> disable -1
                                                                       AUDIO >> disable -1
          AUDIO >> disable -1
                             AUDIO >> disable -1
                                                killall: msmtp: no process killed
 killall: httpd: no process killed
                                  killall: jffs2_gcd_mtd1: no process killed
                                                                            killall: jffs2_gcd_mtd3: no process killed
                                      watchdog not enabled!

                                                           ---image layer out---
                                                                                uboot1 in /dev/mtd0     0x00000000      +0x0    0x20000
                                                       uboot2 in /dev/mtd1      0x00020000      +0x0    0x240000
                                bootargs in /dev/mtd2   0x00260000      +0x0    0x20000
       kernel in /dev/mtd3      0x00280000      +0x0    0x440000
                                                                fs in /dev/mtd4 0x006c0000      +0x0    0x800000
                                app in /dev/mtd5        0x00ec0000      +0x0    0xc00000
        para in /dev/mtd6       0x01ac0000      +0x0    0x400000
                                                                logo in /dev/mtd8       0x01ee0000      +0x0    0x100000
                                        version in /dev/mtd7    0x01ec0000      +0x0    0x20000
               ---------------------


                                    prepare update uboot1 to mtd:/dev/mtd0
                                                                          ioctl(): Bad file descriptor
                      This doesn't seem to be a valid MTD flash device!
                                                                       update uboot1 err

        prepare update uboot2 to mtd:/dev/mtd1
                                              writing ...
                                                         erasing start:0,len:131072 ...ok !Erased 131072 bytes
                              ok ! Wrote 131072 / 195328 bytes
                                                              erasing start:131072,len:131072 ...ok !Erased 131072 bytes
                                        watchdog not enabled!
                                                             ok ! Wrote 195328 / 195328 bytes
             update uboot2 success

                                  prepare update bootargs to mtd:/dev/mtd2
                                                                          writing ...
     erasing start:0,len:131072 ...ok !Erased 131072 bytes
                                                          ok ! Wrote 131072 / 131072 bytes
          update bootargs success

                                 prepare update kernel to mtd:/dev/mtd3
                                                                       writing ...
  erasing start:0,len:131072 ...ok !Erased 131072 bytes
                                                       ok ! Wrote 131072 / 2662480 bytes
        erasing start:131072,len:131072 ...ok !Erased 131072 bytes
                                                                  ok ! Wrote 262144 / 2662480 bytes
                   erasing start:262144,len:131072 ...ok !Erased 131072 bytes
                                                                             watchdog not enabled!
                  ok ! Wrote 393216 / 2662480 bytes
                                                   erasing start:393216,len:131072 ...ok !Erased 131072 bytes
                             ok ! Wrote 524288 / 2662480 bytes
                                                              erasing start:524288,len:131072 ...ok !Erased 131072 bytes
                                        ok ! Wrote 655360 / 2662480 bytes
                                                                         erasing start:655360,len:131072 ...ok !Erased 131072 bytes
                                                   watchdog not enabled!
                                                                        ok ! Wrote 786432 / 2662480 bytes
                         erasing start:786432,len:131072 ...ok !Erased 131072 bytes
   ok ! Wrote 917504 / 2662480 bytes
                                    erasing start:917504,len:131072 ...ok !Erased 131072 bytes
              ok ! Wrote 1048576 / 2662480 bytes
                                                erasing start:1048576,len:131072 ...ok !Erased 131072 bytes
                           ok ! Wrote 1179648 / 2662480 bytes
                                                             erasing start:1179648,len:131072 ...ok !Erased 131072 bytes
                                        watchdog not enabled!
                                                             ok ! Wrote 1310720 / 2662480 bytes
               erasing start:1310720,len:131072 ...ok !Erased 131072 bytes
                                                                          ok ! Wrote 1441792 / 2662480 bytes
                            erasing start:1441792,len:131072 ...ok !Erased 131072 bytes
       ok ! Wrote 1572864 / 2662480 bytes
                                         erasing start:1572864,len:131072 ...ok !Erased 131072 bytes
                    ok ! Wrote 1703936 / 2662480 bytes
                                                      erasing start:1703936,len:131072 ...ok !Erased 131072 bytes
                                 watchdog not enabled!
                                                      ok ! Wrote 1835008 / 2662480 bytes
        erasing start:1835008,len:131072 ...ok !Erased 131072 bytes
                                                                   ok ! Wrote 1966080 / 2662480 bytes
                     erasing start:1966080,len:131072 ...ok !Erased 131072 bytes
                                                                                ok ! Wrote 2097152 / 2662480 bytes
                                  erasing start:2097152,len:131072 ...ok !Erased 131072 bytes
             watchdog not enabled!
                                  ok ! Wrote 2228224 / 2662480 bytes
                                                                    erasing start:2228224,len:131072 ...ok !Erased 131072 bytes
                                               ok ! Wrote 2359296 / 2662480 bytes
 erasing start:2359296,len:131072 ...ok !Erased 131072 bytes
                                                            ok ! Wrote 2490368 / 2662480 bytes
              erasing start:2490368,len:131072 ...ok !Erased 131072 bytes
                                                                         ok ! Wrote 2621440 / 2662480 bytes
                           erasing start:2621440,len:131072 ...ok !Erased 131072 bytes
      watchdog not enabled!
                           ok ! Wrote 2662480 / 2662480 bytes
                                                             update kernel success

  prepare update fs to mtd:/dev/mtd4
                                    writing ...
                                               erasing start:0,len:131072 ...ok !Erased 131072 bytes
                    ok ! Wrote 131072 / 8011776 bytes
                                                     erasing start:131072,len:131072 ...ok !Erased 131072 bytes
                               ok ! Wrote 262144 / 8011776 bytes
                                                                erasing start:262144,len:131072 ...ok !Erased 131072 bytes
                                          ok ! Wrote 393216 / 8011776 bytes
                                                                           erasing start:393216,len:131072 ...ok !Erased 131072 bytes
                                                     watchdog not enabled!
                                                                          ok ! Wrote 524288 / 8011776 bytes
                           erasing start:524288,len:131072 ...ok !Erased 131072 bytes
     ok ! Wrote 655360 / 8011776 bytes
                                      erasing start:655360,len:131072 ...ok !Erased 131072 bytes
                ok ! Wrote 786432 / 8011776 bytes
                                                 erasing start:786432,len:131072 ...ok !Erased 131072 bytes
                           watchdog not enabled!
                                                ok ! Wrote 917504 / 8011776 bytes
 erasing start:917504,len:131072 ...ok !Erased 131072 bytes
                                                           ok ! Wrote 1048576 / 8011776 bytes
             erasing start:1048576,len:131072 ...ok !Erased 131072 bytes
                                                                        ok ! Wrote 1179648 / 8011776 bytes
                          erasing start:1179648,len:131072 ...ok !Erased 131072 bytes
     ok ! Wrote 1310720 / 8011776 bytes
                                       erasing start:1310720,len:131072 ...ok !Erased 131072 bytes
                  watchdog not enabled!
                                       ok ! Wrote 1441792 / 8011776 bytes
                                                                         erasing start:1441792,len:131072 ...ok !Erased 131072 bytes
                                                    ok ! Wrote 1572864 / 8011776 bytes
      erasing start:1572864,len:131072 ...ok !Erased 131072 bytes
                                                                 ok ! Wrote 1703936 / 8011776 bytes
                   erasing start:1703936,len:131072 ...ok !Erased 131072 bytes
                                                                              ok ! Wrote 1835008 / 8011776 bytes
                                erasing start:1835008,len:131072 ...ok !Erased 131072 bytes
           watchdog not enabled!
                                ok ! Wrote 1966080 / 8011776 bytes
                                                                  erasing start:1966080,len:131072 ...ok !Erased 131072 bytes
                                             ok ! Wrote 2097152 / 8011776 bytes
                                                                               erasing start:2097152,len:131072 ...ok !Erased 131072 bytes
                                                          ok ! Wrote 2228224 / 8011776 bytes
            erasing start:2228224,len:131072 ...ok !Erased 131072 bytes
                                                                       watchdog not enabled!
            ok ! Wrote 2359296 / 8011776 bytes
                                              erasing start:2359296,len:131072 ...ok !Erased 131072 bytes
                         ok ! Wrote 2490368 / 8011776 bytes
                                                           erasing start:2490368,len:131072 ...ok !Erased 131072 bytes
                                      ok ! Wrote 2621440 / 8011776 bytes
                                                                        erasing start:2621440,len:131072 ...ok !Erased 131072 bytes
                                                   ok ! Wrote 2752512 / 8011776 bytes
     erasing start:2752512,len:131072 ...ok !Erased 131072 bytes
                                                                watchdog not enabled!
     ok ! Wrote 2883584 / 8011776 bytes
                                       erasing start:2883584,len:131072 ...ok !Erased 131072 bytes
                  ok ! Wrote 3014656 / 8011776 bytes
                                                    erasing start:3014656,len:131072 ...ok !Erased 131072 bytes
                               ok ! Wrote 3145728 / 8011776 bytes
                                                                 erasing start:3145728,len:131072 ...ok !Erased 131072 bytes
                                            watchdog not enabled!
                                                                 ok ! Wrote 3276800 / 8011776 bytes
                   erasing start:3276800,len:131072 ...ok !Erased 131072 bytes
                                                                              ok ! Wrote 3407872 / 8011776 bytes
                                erasing start:3407872,len:131072 ...ok !Erased 131072 bytes
           ok ! Wrote 3538944 / 8011776 bytes
                                             erasing start:3538944,len:131072 ...ok !Erased 131072 bytes
                        ok ! Wrote 3670016 / 8011776 bytes
                                                          erasing start:3670016,len:131072 ...ok !Erased 131072 bytes
                                     watchdog not enabled!
                                                          ok ! Wrote 3801088 / 8011776 bytes
            erasing start:3801088,len:131072 ...ok !Erased 131072 bytes
                                                                       ok ! Wrote 3932160 / 8011776 bytes
                         erasing start:3932160,len:131072 ...ok !Erased 131072 bytes
    ok ! Wrote 4063232 / 8011776 bytes
                                      erasing start:4063232,len:131072 ...ok !Erased 131072 bytes
                 ok ! Wrote 4194304 / 8011776 bytes
                                                   erasing start:4194304,len:131072 ...ok !Erased 131072 bytes
                              watchdog not enabled!
                                                   ok ! Wrote 4325376 / 8011776 bytes
     erasing start:4325376,len:131072 ...ok !Erased 131072 bytes
                                                                ok ! Wrote 4456448 / 8011776 bytes
                  erasing start:4456448,len:131072 ...ok !Erased 131072 bytes
                                                                             ok ! Wrote 4587520 / 8011776 bytes
                               erasing start:4587520,len:131072 ...ok !Erased 131072 bytes
          watchdog not enabled!
                               ok ! Wrote 4718592 / 8011776 bytes
                                                                 erasing start:4718592,len:131072 ...ok !Erased 131072 bytes
                                            ok ! Wrote 4849664 / 8011776 bytes
                                                                              erasing start:4849664,len:131072 ...ok !Erased 131072 bytes
                                                         ok ! Wrote 4980736 / 8011776 bytes
           erasing start:4980736,len:131072 ...ok !Erased 131072 bytes
                                                                      ok ! Wrote 5111808 / 8011776 bytes
                        erasing start:5111808,len:131072 ...ok !Erased 131072 bytes
   watchdog not enabled!
                        ok ! Wrote 5242880 / 8011776 bytes
                                                          erasing start:5242880,len:131072 ...ok !Erased 131072 bytes
                                     ok ! Wrote 5373952 / 8011776 bytes
                                                                       erasing start:5373952,len:131072 ...ok !Erased 131072 bytes
                                                  ok ! Wrote 5505024 / 8011776 bytes
    erasing start:5505024,len:131072 ...ok !Erased 131072 bytes
                                                               ok ! Wrote 5636096 / 8011776 bytes
                 erasing start:5636096,len:131072 ...ok !Erased 131072 bytes
                                                                            watchdog not enabled!
                 ok ! Wrote 5767168 / 8011776 bytes
                                                   erasing start:5767168,len:131072 ...ok !Erased 131072 bytes
                              ok ! Wrote 5898240 / 8011776 bytes
                                                                erasing start:5898240,len:131072 ...ok !Erased 131072 bytes
                                           ok ! Wrote 6029312 / 8011776 bytes
                                                                             erasing start:6029312,len:131072 ...ok !Erased 131072 bytes
                                                        watchdog not enabled!
                                                                             ok ! Wrote 6160384 / 8011776 bytes
                               erasing start:6160384,len:131072 ...ok !Erased 131072 bytes
          ok ! Wrote 6291456 / 8011776 bytes
                                            erasing start:6291456,len:131072 ...ok !Erased 131072 bytes
                       ok ! Wrote 6422528 / 8011776 bytes
                                                         erasing start:6422528,len:131072 ...ok !Erased 131072 bytes
                                    ok ! Wrote 6553600 / 8011776 bytes
                                                                      erasing start:6553600,len:131072 ...ok !Erased 131072 bytes
                                                 watchdog not enabled!
                                                                      ok ! Wrote 6684672 / 8011776 bytes
                        erasing start:6684672,len:131072 ...ok !Erased 131072 bytes
   ok ! Wrote 6815744 / 8011776 bytes
                                     erasing start:6815744,len:131072 ...ok !Erased 131072 bytes
                ok ! Wrote 6946816 / 8011776 bytes
                                                  erasing start:6946816,len:131072 ...ok !Erased 131072 bytes
                             ok ! Wrote 7077888 / 8011776 bytes
                                                               erasing start:7077888,len:131072 ...ok !Erased 131072 bytes
                                          watchdog not enabled!
                                                               ok ! Wrote 7208960 / 8011776 bytes
                 erasing start:7208960,len:131072 ...ok !Erased 131072 bytes
                                                                            ok ! Wrote 7340032 / 8011776 bytes
                              erasing start:7340032,len:131072 ...ok !Erased 131072 bytes
         ok ! Wrote 7471104 / 8011776 bytes
                                           erasing start:7471104,len:131072 ...ok !Erased 131072 bytes
                      watchdog not enabled!
                                           ok ! Wrote 7602176 / 8011776 bytes
                                                                             erasing start:7602176,len:131072 ...ok !Erased 131072 bytes
                                                        ok ! Wrote 7733248 / 8011776 bytes
          erasing start:7733248,len:131072 ...ok !Erased 131072 bytes
                                                                     ok ! Wrote 7864320 / 8011776 bytes
                       erasing start:7864320,len:131072 ...ok !Erased 131072 bytes
  ok ! Wrote 7995392 / 8011776 bytes
                                    erasing start:7995392,len:131072 ...ok !Erased 131072 bytes
               watchdog not enabled!
                                    ok ! Wrote 8011776 / 8011776 bytes
                                                                      update fs success
« Last Edit: April 25, 2021, 09:47:04 pm by poot36 »
 

Offline poot36Topic starter

  • Frequent Contributor
  • **
  • Posts: 678
  • Country: ca
Re: Swann DVR (security camera recorder) bricked after firmware update
« Reply #54 on: April 25, 2021, 09:46:02 pm »
prepare update app to mtd:/dev/mtd5
                                          writing ...
                                                     erasing start:0,len:131072 ...ok !Erased 131072 bytes
                          ok ! Wrote 131072 / 8957952 bytes
                                                           erasing start:131072,len:131072 ...ok !Erased 131072 bytes
                                     ok ! Wrote 262144 / 8957952 bytes
                                                                      erasing start:262144,len:131072 ...ok !Erased 131072 bytes
                                                ok ! Wrote 393216 / 8957952 bytes
 erasing start:393216,len:131072 ...ok !Erased 131072 bytes
                                                           watchdog not enabled!
                                                                                ok ! Wrote 524288 / 8957952 bytes
                                 erasing start:524288,len:131072 ...ok !Erased 131072 bytes
           ok ! Wrote 655360 / 8957952 bytes
                                            erasing start:655360,len:131072 ...ok !Erased 131072 bytes
                      ok ! Wrote 786432 / 8957952 bytes
                                                       erasing start:786432,len:131072 ...ok !Erased 131072 bytes
                                 watchdog not enabled!
                                                      ok ! Wrote 917504 / 8957952 bytes
       erasing start:917504,len:131072 ...ok !Erased 131072 bytes
                                                                 ok ! Wrote 1048576 / 8957952 bytes
                   erasing start:1048576,len:131072 ...ok !Erased 131072 bytes
                                                                              ok ! Wrote 1179648 / 8957952 bytes
                                erasing start:1179648,len:131072 ...ok !Erased 131072 bytes
           ok ! Wrote 1310720 / 8957952 bytes
                                             erasing start:1310720,len:131072 ...ok !Erased 131072 bytes
                        watchdog not enabled!
                                             ok ! Wrote 1441792 / 8957952 bytes
                                                                               erasing start:1441792,len:131072 ...ok !Erased 131072 bytes
                                                          ok ! Wrote 1572864 / 8957952 bytes
            erasing start:1572864,len:131072 ...ok !Erased 131072 bytes
                                                                       ok ! Wrote 1703936 / 8957952 bytes
                         erasing start:1703936,len:131072 ...ok !Erased 131072 bytes
    ok ! Wrote 1835008 / 8957952 bytes
                                      erasing start:1835008,len:131072 ...ok !Erased 131072 bytes
                 watchdog not enabled!
                                      ok ! Wrote 1966080 / 8957952 bytes
                                                                        erasing start:1966080,len:131072 ...ok !Erased 131072 bytes
                                                   ok ! Wrote 2097152 / 8957952 bytes
     erasing start:2097152,len:131072 ...ok !Erased 131072 bytes
                                                                ok ! Wrote 2228224 / 8957952 bytes
                  erasing start:2228224,len:131072 ...ok !Erased 131072 bytes
                                                                             watchdog not enabled!
                  ok ! Wrote 2359296 / 8957952 bytes
                                                    erasing start:2359296,len:131072 ...ok !Erased 131072 bytes
                               ok ! Wrote 2490368 / 8957952 bytes
                                                                 erasing start:2490368,len:131072 ...ok !Erased 131072 bytes
                                            ok ! Wrote 2621440 / 8957952 bytes
                                                                              erasing start:2621440,len:131072 ...ok !Erased 131072 bytes
                                                         ok ! Wrote 2752512 / 8957952 bytes
           erasing start:2752512,len:131072 ...ok !Erased 131072 bytes
                                                                      watchdog not enabled!
           ok ! Wrote 2883584 / 8957952 bytes
                                             erasing start:2883584,len:131072 ...ok !Erased 131072 bytes
                        ok ! Wrote 3014656 / 8957952 bytes
                                                          erasing start:3014656,len:131072 ...ok !Erased 131072 bytes
                                     ok ! Wrote 3145728 / 8957952 bytes
                                                                       erasing start:3145728,len:131072 ...ok !Erased 131072 bytes
                                                  ok ! Wrote 3276800 / 8957952 bytes
    erasing start:3276800,len:131072 ...ok !Erased 131072 bytes
                                                               watchdog not enabled!
    ok ! Wrote 3407872 / 8957952 bytes
                                      erasing start:3407872,len:131072 ...ok !Erased 131072 bytes
                 ok ! Wrote 3538944 / 8957952 bytes
                                                   erasing start:3538944,len:131072 ...ok !Erased 131072 bytes
                              ok ! Wrote 3670016 / 8957952 bytes
                                                                erasing start:3670016,len:131072 ...ok !Erased 131072 bytes
                                           watchdog not enabled!
                                                                ok ! Wrote 3801088 / 8957952 bytes
                  erasing start:3801088,len:131072 ...ok !Erased 131072 bytes
                                                                             ok ! Wrote 3932160 / 8957952 bytes
                               erasing start:3932160,len:131072 ...ok !Erased 131072 bytes
          ok ! Wrote 4063232 / 8957952 bytes
                                            erasing start:4063232,len:131072 ...ok !Erased 131072 bytes
                       ok ! Wrote 4194304 / 8957952 bytes
                                                         erasing start:4194304,len:131072 ...ok !Erased 131072 bytes
                                    watchdog not enabled!
                                                         ok ! Wrote 4325376 / 8957952 bytes
           erasing start:4325376,len:131072 ...ok !Erased 131072 bytes
                                                                      ok ! Wrote 4456448 / 8957952 bytes
                        erasing start:4456448,len:131072 ...ok !Erased 131072 bytes
   ok ! Wrote 4587520 / 8957952 bytes
                                     erasing start:4587520,len:131072 ...ok !Erased 131072 bytes
                ok ! Wrote 4718592 / 8957952 bytes
                                                  erasing start:4718592,len:131072 ...ok !Erased 131072 bytes
                             watchdog not enabled!
                                                  ok ! Wrote 4849664 / 8957952 bytes
    erasing start:4849664,len:131072 ...ok !Erased 131072 bytes
                                                               ok ! Wrote 4980736 / 8957952 bytes
                 erasing start:4980736,len:131072 ...ok !Erased 131072 bytes
                                                                            ok ! Wrote 5111808 / 8957952 bytes
                              erasing start:5111808,len:131072 ...ok !Erased 131072 bytes
         watchdog not enabled!
                              ok ! Wrote 5242880 / 8957952 bytes
                                                                erasing start:5242880,len:131072 ...ok !Erased 131072 bytes
                                           ok ! Wrote 5373952 / 8957952 bytes
                                                                             erasing start:5373952,len:131072 ...ok !Erased 131072 bytes
                                                        ok ! Wrote 5505024 / 8957952 bytes
          erasing start:5505024,len:131072 ...ok !Erased 131072 bytes
                                                                     ok ! Wrote 5636096 / 8957952 bytes
                       erasing start:5636096,len:131072 ...ok !Erased 131072 bytes
  watchdog not enabled!
                       ok ! Wrote 5767168 / 8957952 bytes
                                                         erasing start:5767168,len:131072 ...ok !Erased 131072 bytes
                                    ok ! Wrote 5898240 / 8957952 bytes
                                                                      erasing start:5898240,len:131072 ...ok !Erased 131072 bytes
                                                 ok ! Wrote 6029312 / 8957952 bytes
   erasing start:6029312,len:131072 ...ok !Erased 131072 bytes
                                                              watchdog not enabled!
   ok ! Wrote 6160384 / 8957952 bytes
                                     erasing start:6160384,len:131072 ...ok !Erased 131072 bytes
                ok ! Wrote 6291456 / 8957952 bytes
                                                  erasing start:6291456,len:131072 ...ok !Erased 131072 bytes
                             ok ! Wrote 6422528 / 8957952 bytes
                                                               erasing start:6422528,len:131072 ...ok !Erased 131072 bytes
                                          ok ! Wrote 6553600 / 8957952 bytes
                                                                            erasing start:6553600,len:131072 ...ok !Erased 131072 bytes
                                                       watchdog not enabled!
                                                                            ok ! Wrote 6684672 / 8957952 bytes
                              erasing start:6684672,len:131072 ...ok !Erased 131072 bytes
         ok ! Wrote 6815744 / 8957952 bytes
                                           erasing start:6815744,len:131072 ...ok !Erased 131072 bytes
                      ok ! Wrote 6946816 / 8957952 bytes
                                                        erasing start:6946816,len:131072 ...ok !Erased 131072 bytes
                                   ok ! Wrote 7077888 / 8957952 bytes
                                                                     erasing start:7077888,len:131072 ...ok !Erased 131072 bytes
                                                watchdog not enabled!
                                                                     ok ! Wrote 7208960 / 8957952 bytes
                       erasing start:7208960,len:131072 ...ok !Erased 131072 bytes
  ok ! Wrote 7340032 / 8957952 bytes
                                    erasing start:7340032,len:131072 ...ok !Erased 131072 bytes
               ok ! Wrote 7471104 / 8957952 bytes
                                                 erasing start:7471104,len:131072 ...ok !Erased 131072 bytes
                            watchdog not enabled!
                                                 ok ! Wrote 7602176 / 8957952 bytes
   erasing start:7602176,len:131072 ...ok !Erased 131072 bytes
                                                              ok ! Wrote 7733248 / 8957952 bytes
                erasing start:7733248,len:131072 ...ok !Erased 131072 bytes
                                                                           ok ! Wrote 7864320 / 8957952 bytes
                             erasing start:7864320,len:131072 ...ok !Erased 131072 bytes
        ok ! Wrote 7995392 / 8957952 bytes
                                          erasing start:7995392,len:131072 ...ok !Erased 131072 bytes
                     watchdog not enabled!
                                          ok ! Wrote 8126464 / 8957952 bytes
                                                                            erasing start:8126464,len:131072 ...ok !Erased 131072 bytes
                                                       ok ! Wrote 8257536 / 8957952 bytes
         erasing start:8257536,len:131072 ...ok !Erased 131072 bytes
                                                                    ok ! Wrote 8388608 / 8957952 bytes
                      erasing start:8388608,len:131072 ...ok !Erased 131072 bytes
 ok ! Wrote 8519680 / 8957952 bytes
                                   erasing start:8519680,len:131072 ...ok !Erased 131072 bytes
              watchdog not enabled!
                                   ok ! Wrote 8650752 / 8957952 bytes
                                                                     erasing start:8650752,len:131072 ...ok !Erased 131072 bytes
                                                ok ! Wrote 8781824 / 8957952 bytes
  erasing start:8781824,len:131072 ...ok !Erased 131072 bytes
                                                             ok ! Wrote 8912896 / 8957952 bytes
               erasing start:8912896,len:131072 ...ok !Erased 131072 bytes
                                                                          watchdog not enabled!
               ok ! Wrote 8957952 / 8957952 bytes
                                                 update app success

                                                                   prepare update logo to mtd:/dev/mtd8
                       writing ...
                                  erasing start:0,len:131072 ...ok !Erased 131072 bytes
       ok ! Wrote 131072 / 935766 bytes
                                       erasing start:131072,len:131072 ...ok !Erased 131072 bytes
                 ok ! Wrote 262144 / 935766 bytes
                                                 erasing start:262144,len:131072 ...ok !Erased 131072 bytes
                           ok ! Wrote 393216 / 935766 bytes
                                                           erasing start:393216,len:131072 ...ok !Erased 131072 bytes
                                     watchdog not enabled!
                                                          ok ! Wrote 524288 / 935766 bytes
          erasing start:524288,len:131072 ...ok !Erased 131072 bytes
                                                                    ok ! Wrote 655360 / 935766 bytes
                    erasing start:655360,len:131072 ...ok !Erased 131072 bytes
                                                                              ok ! Wrote 786432 / 935766 bytes
                              erasing start:786432,len:131072 ...ok !Erased 131072 bytes
        ok ! Wrote 917504 / 935766 bytes
                                        erasing start:917504,len:131072 ...ok !Erased 131072 bytes
                  watchdog not enabled!
                                       ok ! Wrote 93576nand_do_write_ops: Attempt to write not page aligned data
6 / 935766 bytes
                update logo success
                                   write version
                                                read uboot1 's version:v1.0.0.1
                                                                               read uboot2 's version:v1.0.0.1
                              read bootargs 's version:v1.0.0.1
                                                               read kernel 's version:v1.0.0.1
              read fs 's version:v1.0.0.2
                                         read app 's version:v1.0.0.9
                                                                     the section:para is not found in img
                         get para 's info err
                                             read logo 's version:v1.0.0.1
                                                                          the section:version is not found in img
                                 get version 's info err
                                                        write version err:-1
                                                                            **********update logo from file**********
                                     file doesn't exist.
                                                        file:update.cpp line:154  reset.
        watchdog not enabled!
                             watchdog not enabled!
                                                  CCCCC
 

Offline poot36Topic starter

  • Frequent Contributor
  • **
  • Posts: 678
  • Country: ca
Re: Swann DVR (security camera recorder) bricked after firmware update
« Reply #55 on: April 25, 2021, 10:18:22 pm »
After examining the output it looks like it can not flash the first stage bootloader for some reason.  Also it is having issues with a few other partitions.  Got any idea how to fix this?  The 2nd stage bootloader is working as I was able to boot the DVR after I manually loaded the first stage bootloader over serial (u-boot-min.nand in this case).  I found that you do not need to send the u-boot-min.serial to get it to boot off serial, you can send any of the compatible u-boot-min.XXXX versions and it should execute them.  I also took a look at the cramfs files in my Linux vm (mounted them) and found out that the incorrect firmware was for the DM810x version of the main chip.  I have attached to this post the u-boot-min.nand and u-boot files that are for this incorrect main chip that I wound up flashing to my unit (dumped from my unit).  These are labeled u-boot-min, u-boot, and u-boot env by the kernel.  They are partitions 0, 1 , and 2.  May help someone with this other unit fix theirs.
 

Offline dc101

  • Regular Contributor
  • *
  • Posts: 220
  • Country: us
Re: Swann DVR (security camera recorder) bricked after firmware update
« Reply #56 on: April 25, 2021, 11:47:36 pm »
The unit I ordered from eBay is supposed to arrived tomorrow. I will take a look at it and dump the partitions and compare them to yours.

After examining the output it looks like it can not flash the first stage bootloader for some reason.  Also it is having issues with a few other partitions.  Got any idea how to fix this?  The 2nd stage bootloader is working as I was able to boot the DVR after I manually loaded the first stage bootloader over serial (u-boot-min.nand in this case).  I found that you do not need to send the u-boot-min.serial to get it to boot off serial, you can send any of the compatible u-boot-min.XXXX versions and it should execute them.  I also took a look at the cramfs files in my Linux vm (mounted them) and found out that the incorrect firmware was for the DM810x version of the main chip.  I have attached to this post the u-boot-min.nand and u-boot files that are for this incorrect main chip that I wound up flashing to my unit (dumped from my unit).  These are labeled u-boot-min, u-boot, and u-boot env by the kernel.  They are partitions 0, 1 , and 2.  May help someone with this other unit fix theirs.
 

Offline poot36Topic starter

  • Frequent Contributor
  • **
  • Posts: 678
  • Country: ca
Re: Swann DVR (security camera recorder) bricked after firmware update
« Reply #57 on: April 26, 2021, 01:13:19 am »
That is good to know.  Also figured out that the Application partition has extra data in it even after I ran the firmware updater so I manually erased the partition and re-loaded the Application data through the serial port under the u-boot environment.  It did not fix the failure to have the firmware update flash the u-boot-min though.  Is there a way to stop Linux from loading the DVR program and drop me to a login prompt so that I can try re-dumping the partitions now that I have fixed some of them?
 

Offline dc101

  • Regular Contributor
  • *
  • Posts: 220
  • Country: us
Re: Swann DVR (security camera recorder) bricked after firmware update
« Reply #58 on: April 26, 2021, 01:38:07 am »
If you want to prevent it from loading the dvr program you just need to edit /etc/rc5.d/S81appinit and comment out ./daemon ./dvr &

Output of cat /etc/rc5.d/S81appinit:

root@dm814x-evm:~# cat /etc/rc5.d/S81appinit
if [ -r /dev/usb/usbhd1 ];then
        mount -t vfat /dev/usb/usbhd1 /mnt/usb
        if [ -r /mnt/usb/autoexec.sh ];then
                chmod +x /mnt/usb/autoexec.sh
                /mnt/usb/autoexec.sh
        else
                echo "autoexec is not ready for running"
        fi
        umount -f /mnt/usb
else
        echo "usb is not ready for autoexec"
fi

mount -t cramfs /dev/mtdblock5 /mnt/app
mount -t yaffs2 /dev/mtdblock6 /mnt/para

cd /mnt/app
./logo&

cd /mnt/app/ti814x/
./init.sh
./load.sh

cd /mnt/app
./daemon ./dvr &

Output of ls -alF /mnt/app/ti814x:

root@dm814x-evm:~# ls -alF /mnt/app/ti814x
drwxr-xr-x    1 1002     234           132 Jan  1  1970 bin/
-rwxr-xr-x    1 1002     234          1039 Jan  1  1970 env.sh*
drwxr-xr-x    1 1002     234           108 Jan  1  1970 firmware/
-rwxr-xr-x    1 1002     234          1593 Jan  1  1970 init.sh*
drwxr-xr-x    1 1002     234           200 Jan  1  1970 kermod/
-rwxr-xr-x    1 1002     234           646 Jan  1  1970 load.sh*
-rwxr-xr-x    1 1002     234            32 Jan  1  1970 run.sh*
drwxr-xr-x    1 1002     234           220 Jan  1  1970 scripts/
-rwxr-xr-x    1 1002     234           522 Jan  1  1970 unload.sh*
-rwxr-xr-x    1 1002     234           568 Jan  1  1970 validate.sh*

I updated it through the GUI, the interesting thing is that the original firmware saw one of my flash drives but not another one and once I updated to the newer firmware (that was the working one) it did not see my original flash drive but did see the other one and then I tired the what I thought was even later firmware that resulted in the brick I have now.  Odd behavior with the flash drives don't you think?  They were formatted with the same filesystem as far as I can remember.  I have also extracted the 2nd cramfs file system from the .pak file if I need it (I think it is the Application partition but I am not sure).
 

Offline poot36Topic starter

  • Frequent Contributor
  • **
  • Posts: 678
  • Country: ca
Re: Swann DVR (security camera recorder) bricked after firmware update
« Reply #59 on: April 26, 2021, 01:55:39 am »
Ok, but that is in the cramfs partition that gets uncompressed when it runs.  Not sure how to edit that from u-boot either.  Is there a key combination that I can press in the serial terminal that will stop boot and drop me to to a login prompt?
 

Offline dc101

  • Regular Contributor
  • *
  • Posts: 220
  • Country: us
Re: Swann DVR (security camera recorder) bricked after firmware update
« Reply #60 on: April 26, 2021, 08:28:58 pm »
You might be able to ctrl-c escape out of it, but I'm not sure that works since the commands are coming from the rc.d startup process.
I popped the lid off my DVR that arrived today, it's a little dusty inside but seems to boot ok. Can you post a picture of the the serial port and mark the TX and RX?

Cheers
-Tim
 

Offline dc101

  • Regular Contributor
  • *
  • Posts: 220
  • Country: us
Re: Swann DVR (security camera recorder) bricked after firmware update
« Reply #61 on: April 26, 2021, 09:37:55 pm »
So it turns out you can just press enter when it's done booting to get the login prompt and then it's just root with no password.

I've attached my boot log for comparison. I only glanced at it, but I noticed similar error messages as yours despite it working fine.

Ok, but that is in the cramfs partition that gets uncompressed when it runs.  Not sure how to edit that from u-boot either.  Is there a key combination that I can press in the serial terminal that will stop boot and drop me to to a login prompt?
 

Offline poot36Topic starter

  • Frequent Contributor
  • **
  • Posts: 678
  • Country: ca
Re: Swann DVR (security camera recorder) bricked after firmware update
« Reply #62 on: April 27, 2021, 01:38:01 am »
I wonder if you have the original firmware that these units shipped with.  Yours does not have the dvr configure start section that mine has.  Do you want me to dump my partitions again?  By the way can you recommend a good windows based hex file compare program that preferably has the ability to show if the file being compared is part of a larger file?  I am currently using FlexHEX but it has it's issues and I do not fully trust it to make the best decisions when comparing files.
 

Offline poot36Topic starter

  • Frequent Contributor
  • **
  • Posts: 678
  • Country: ca
Re: Swann DVR (security camera recorder) bricked after firmware update
« Reply #63 on: April 27, 2021, 02:17:41 am »
I have got the terminal but it keeps popping up with Sending discover message that interferes with me typing in commands.  What process do I need to kill to stop it from sending these messages?  I have attached a list of all the running processes found with the ps command:

PID USER       VSZ STAT COMMAND
1 root      1708 S    init [5]
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    4 root         0 SW   [kworker/0:0]
    5 root         0 SW   [kworker/u:0]
    6 root         0 SW<  [khelper]
    7 root         0 SW   [irq/72-serial i]
    8 root         0 SW   [irq/73-serial i]
    9 root         0 SW   [irq/74-serial i]
   10 root         0 SW   [irq/44-serial i]
   11 root         0 SW   [irq/45-serial i]
   12 root         0 SW   [irq/46-serial i]
   13 root         0 SW<  [mboxd]
   14 root         0 SW   [sync_supers]
   15 root         0 SW   [bdi-default]
   16 root         0 SW<  [kblockd]
   17 root         0 SW<  [omap2_mcspi]
   18 root         0 SW   [khubd]
   19 root         0 SW   [kseriod]
   20 root         0 SW<  [kmmcd]
   21 root         0 SW<  [musb-hdrc.0]
   22 root         0 SW<  [musb-hdrc.1]
   23 root         0 SW<  [rpciod]
   24 root         0 SW   [kswapd0]
   25 root         0 SW   [kworker/0:1]
   26 root         0 SW<  [aio]
   27 root         0 SW<  [nfsiod]
   28 root         0 SW<  [crypto]
   37 root         0 SW   [scsi_eh_0]
   38 root         0 SW   [kworker/u:1]
   39 root         0 SW   [kworker/u:2]
   40 root         0 SW   [mtdblock0]
   41 root         0 SW   [mtdblock1]
   42 root         0 SW   [mtdblock2]
   43 root         0 SW   [mtdblock3]
   44 root         0 SW   [mtdblock4]
   45 root         0 SW   [mtdblock5]
   46 root         0 SW   [mtdblock6]
   47 root         0 SW   [mtdblock7]
   48 root         0 SW   [mtdblock8]
   49 root         0 SW   [mtdblock9]
   50 root         0 SW   [mtdblock10]
   59 root         0 SW<  [usbhid_resumer]
   60 root         0 SW   [scsi_eh_1]
   61 root         0 SW   [usb-storage]
   84 root      1956 S <  /sbin/udevd -d
  782 root      2936 S    /usr/sbin/telnetd
  787 root      3000 S    /sbin/syslogd -n -C64 -m 20
  789 root      2936 S    /sbin/klogd -n
  793 root         0 SW   [yaffs-bg-1]
  808 root      1752 S    ./bin/remote_debug_client.out 0xbff00000
  888 root      3092 S    ./daemon ./dvr
  890 root      2516 S    login -- root
  891 root      1964 S    /sbin/getty 38400 tty1
  892 root      3092 S    ./daemon ./dvr
  893 root      2936 S    sh -c ./dvr
  894 root      369m R    ./dvr
  937 root         0 SW   [flush-31:6]
  942 root         0 SW   [kjournald]
  943 root         0 SW   [flush-8:0]
  954 root      2940 S    udhcpc -i eth0
  971 root      2936 S    httpd -h /mnt/app/www -p 85
  976 root      3128 S    -sh
 1013 root         0 SW   [scsi_eh_2]
 1014 root         0 SW   [usb-storage]
 1065 root      3128 R    ps
 

Offline dc101

  • Regular Contributor
  • *
  • Posts: 220
  • Country: us
Re: Swann DVR (security camera recorder) bricked after firmware update
« Reply #64 on: April 27, 2021, 02:30:19 am »
I'm not sure what version I have. Our kernel version are different though.
Mine is: Linux version 2.6.37 (zr@pub-desktop) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #126 Tue May 22 19:07:21 CST 2012
And yours is: Linux version 2.6.37 (zr@pub-desktop) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #4 Fri Sep 21 11:11:53 CST 2012

In the system menu, my system information is:
Device Name   : DVR
Model         : DVR4-4000
Build No.     : build 0618
Hw No.        : TCCB01
Cfg version   : v1.0.0.1
Fw version    :


As far as the messages that pop up, I get a regular stream of these messages. They're just output though and won't actually change the command you're typing. You can just ignore them and continue typing.
Code: [Select]
sendto: Network is unreachable
No IGD UPnP Device found on the network !
 

Offline poot36Topic starter

  • Frequent Contributor
  • **
  • Posts: 678
  • Country: ca
Re: Swann DVR (security camera recorder) bricked after firmware update
« Reply #65 on: April 27, 2021, 02:49:23 am »
I did figure out that they do not interfere with command typing but I want to copy some of the commands I run to make sure I don't screw up typing in the command when I am dumping the partitions.  If I plugged in the network cable would that stop them?
 

Offline dc101

  • Regular Contributor
  • *
  • Posts: 220
  • Country: us
Re: Swann DVR (security camera recorder) bricked after firmware update
« Reply #66 on: April 27, 2021, 03:04:20 am »
No, I have a network cable plugged in and still receive those messages.

It looks like it's caused by the UPnP client (/mnt/app/upnpc), but I haven't looked to see what's calling it. Running the command manually produces the same message.

Code: [Select]
root@dm814x-evm:/mnt/app# ./upnpc -l
sendto: Network is unreachable
No IGD UPnP Device found on the network !
 

Offline dc101

  • Regular Contributor
  • *
  • Posts: 220
  • Country: us
Re: Swann DVR (security camera recorder) bricked after firmware update
« Reply #67 on: April 27, 2021, 03:18:33 am »
As far as Windows hex editors go, I use HxD and 010. I believe only 010 can do comparison between binary files though. I don't ever use 010 for file comparison though. In my opinion vbindiff for Linux is much more flexible and faster and is what I use 99.9% of the time. The biggest thing I like about vbindiff is that it will let you re-align files so you can continue the comparison so something like an extra character in the middle of the file doesn't throw off the comparison when it would have otherwise matched.

I wonder if you have the original firmware that these units shipped with.  Yours does not have the dvr configure start section that mine has.  Do you want me to dump my partitions again?  By the way can you recommend a good windows based hex file compare program that preferably has the ability to show if the file being compared is part of a larger file?  I am currently using FlexHEX but it has it's issues and I do not fully trust it to make the best decisions when comparing files.
 

Offline dc101

  • Regular Contributor
  • *
  • Posts: 220
  • Country: us
Re: Swann DVR (security camera recorder) bricked after firmware update
« Reply #68 on: April 27, 2021, 03:24:04 am »
I did figure out that they do not interfere with command typing but I want to copy some of the commands I run to make sure I don't screw up typing in the command when I am dumping the partitions.  If I plugged in the network cable would that stop them?

It looks like upnpc is called directly from the main dvr program. I've tried killing the dvr program a few times and it always results in the system rebooting, probably some watch dog checking to see if it died.
 

Offline poot36Topic starter

  • Frequent Contributor
  • **
  • Posts: 678
  • Country: ca
Re: Swann DVR (security camera recorder) bricked after firmware update
« Reply #69 on: April 27, 2021, 03:27:40 am »
When I killed that process my unit ended up crashing and rebooting.  I plugged a network cable into the unit and the messages stopped.  Could also be that I was also trying pressing Ctrl z,x,c at various times in the boot process along with enter that may have had an effect.  I have re-dumped the partitions and there are some differences, partition 6 has changed with the units configuration info in it and partition 10 (I am starting from partition 0) has changed in size (now 96,414 KB instead of the orignal 97,408 KB).  Partition 0 is still incorrect but I think the rest of them are now correct.  I have attached partitions 0, 1, and 2 to this post.
 

Offline dc101

  • Regular Contributor
  • *
  • Posts: 220
  • Country: us
Re: Swann DVR (security camera recorder) bricked after firmware update
« Reply #70 on: April 27, 2021, 04:23:36 am »
If you wanted to try doing a firmware update, it looks like you can run it from the command line by running update 1 release.pak all. I found this command in the .ash_history file of the root user.

I will probably wait to make copies of all the mtd partitions and analyze it before I decide if I want to upgrade the firmware.
 

Offline poot36Topic starter

  • Frequent Contributor
  • **
  • Posts: 678
  • Country: ca
Re: Swann DVR (security camera recorder) bricked after firmware update
« Reply #71 on: April 28, 2021, 01:55:00 am »
I will give that command a go.  Hopefully it will update partition 0 and I will be out of the woods.  Thank you for all the help you have provided.  It is rare to get an expert on the thing that you are trying to fix.
 

Offline poot36Topic starter

  • Frequent Contributor
  • **
  • Posts: 678
  • Country: ca
Re: Swann DVR (security camera recorder) bricked after firmware update
« Reply #72 on: April 28, 2021, 02:02:14 am »
That did not work, update command not found.
 

Offline dc101

  • Regular Contributor
  • *
  • Posts: 220
  • Country: us
Re: Swann DVR (security camera recorder) bricked after firmware update
« Reply #73 on: April 28, 2021, 11:35:32 am »
It should be in /mnt/app which is not in $PATH. You will need to run it either as /mnt/app/update or cd to /mnt/app and then ./update
You will also need to make sure to point to the full path of your .pak file as well. Probably easiest to put it on a thumb drive, I don't believe any of the file systems have enough room for the update file.
« Last Edit: April 28, 2021, 11:39:23 am by dc101 »
 

Offline poot36Topic starter

  • Frequent Contributor
  • **
  • Posts: 678
  • Country: ca
Re: Swann DVR (security camera recorder) bricked after firmware update
« Reply #74 on: April 29, 2021, 03:07:47 am »
Well running it from there worked but still did not update partition 0.  Here is the log:

root@dm814x-evm:/mnt/app# ./update 1 /proc/bus/usb/DVR4-4000_GA1.9_1025.pak all
sh: killall: not found
sh: killall: not found
sh: killall: not found
sh: killall: not found
sh: killall: not found
sh: killall: not found
sh: killall: not found
sh: killall: not found
sh: killall: not found
sh: killall: not found

---image layer out---
uboot1 in /dev/mtd0     0x00000000      +0x0    0x20000
uboot2 in /dev/mtd1     0x00020000      +0x0    0x240000
bootargs in /dev/mtd2   0x00260000      +0x0    0x20000
kernel in /dev/mtd3     0x00280000      +0x0    0x440000
fs in /dev/mtd4 0x006c0000      +0x0    0x800000
app in /dev/mtd5        0x00ec0000      +0x0    0xc00000
para in /dev/mtd6       0x01ac0000      +0x0    0x400000
logo in /dev/mtd8       0x01ee0000      +0x0    0x100000
version in /dev/mtd7    0x01ec0000      +0x0    0x20000
---------------------


prepare update uboot1 to mtd:/dev/mtd0
ioctl(): Bad file descriptor
This doesn't seem to be a valid MTD flash device!
update uboot1 err

prepare update uboot2 to mtd:/dev/mtd1
writing ...
erasing start:0,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 131072 / 195328 bytes
erasing start:131072,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 195328 / 195328 bytes
update uboot2 success

prepare update bootargs to mtd:/dev/mtd2
writing ...
erasing start:0,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 131072 / 131072 bytes
update bootargs success

prepare update kernel to mtd:/dev/mtd3
writing ...
erasing start:0,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 131072 / 2662480 bytes
erasing start:131072,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 262144 / 2662480 bytes
erasing start:262144,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 393216 / 2662480 bytes
erasing start:393216,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 524288 / 2662480 bytes
erasing start:524288,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 655360 / 2662480 bytes
erasing start:655360,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 786432 / 2662480 bytes
erasing start:786432,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 917504 / 2662480 bytes
erasing start:917504,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 1048576 / 2662480 bytes
erasing start:1048576,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 1179648 / 2662480 bytes
erasing start:1179648,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 1310720 / 2662480 bytes
erasing start:1310720,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 1441792 / 2662480 bytes
erasing start:1441792,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 1572864 / 2662480 bytes
erasing start:1572864,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 1703936 / 2662480 bytes
erasing start:1703936,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 1835008 / 2662480 bytes
erasing start:1835008,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 1966080 / 2662480 bytes
erasing start:1966080,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 2097152 / 2662480 bytes
erasing start:2097152,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 2228224 / 2662480 bytes
erasing start:2228224,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 2359296 / 2662480 bytes
erasing start:2359296,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 2490368 / 2662480 bytes
erasing start:2490368,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 2621440 / 2662480 bytes
erasing start:2621440,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 2662480 / 2662480 bytes
update kernel success

prepare update fs to mtd:/dev/mtd4
writing ...
erasing start:0,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 131072 / 8011776 bytes
erasing start:131072,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 262144 / 8011776 bytes
erasing start:262144,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 393216 / 8011776 bytes
erasing start:393216,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 524288 / 8011776 bytes
erasing start:524288,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 655360 / 8011776 bytes
erasing start:655360,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 786432 / 8011776 bytes
erasing start:786432,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 917504 / 8011776 bytes
erasing start:917504,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 1048576 / 8011776 bytes
erasing start:1048576,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 1179648 / 8011776 bytes
erasing start:1179648,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 1310720 / 8011776 bytes
erasing start:1310720,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 1441792 / 8011776 bytes
erasing start:1441792,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 1572864 / 8011776 bytes
erasing start:1572864,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 1703936 / 8011776 bytes
erasing start:1703936,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 1835008 / 8011776 bytes
erasing start:1835008,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 1966080 / 8011776 bytes
erasing start:1966080,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 2097152 / 8011776 bytes
erasing start:2097152,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 2228224 / 8011776 bytes
erasing start:2228224,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 2359296 / 8011776 bytes
erasing start:2359296,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 2490368 / 8011776 bytes
erasing start:2490368,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 2621440 / 8011776 bytes
erasing start:2621440,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 2752512 / 8011776 bytes
erasing start:2752512,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 2883584 / 8011776 bytes
erasing start:2883584,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 3014656 / 8011776 bytes
erasing start:3014656,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 3145728 / 8011776 bytes
erasing start:3145728,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 3276800 / 8011776 bytes
erasing start:3276800,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 3407872 / 8011776 bytes
erasing start:3407872,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 3538944 / 8011776 bytes
erasing start:3538944,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 3670016 / 8011776 bytes
erasing start:3670016,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 3801088 / 8011776 bytes
erasing start:3801088,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 3932160 / 8011776 bytes
erasing start:3932160,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 4063232 / 8011776 bytes
erasing start:4063232,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 4194304 / 8011776 bytes
erasing start:4194304,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 4325376 / 8011776 bytes
erasing start:4325376,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 4456448 / 8011776 bytes
erasing start:4456448,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 4587520 / 8011776 bytes
erasing start:4587520,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 4718592 / 8011776 bytes
erasing start:4718592,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 4849664 / 8011776 bytes
erasing start:4849664,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 4980736 / 8011776 bytes
erasing start:4980736,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 5111808 / 8011776 bytes
erasing start:5111808,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 5242880 / 8011776 bytes
erasing start:5242880,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 5373952 / 8011776 bytes
erasing start:5373952,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 5505024 / 8011776 bytes
erasing start:5505024,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 5636096 / 8011776 bytes
erasing start:5636096,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 5767168 / 8011776 bytes
erasing start:5767168,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 5898240 / 8011776 bytes
erasing start:5898240,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 6029312 / 8011776 bytes
erasing start:6029312,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 6160384 / 8011776 bytes
erasing start:6160384,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 6291456 / 8011776 bytes
erasing start:6291456,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 6422528 / 8011776 bytes
erasing start:6422528,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 6553600 / 8011776 bytes
erasing start:6553600,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 6684672 / 8011776 bytes
erasing start:6684672,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 6815744 / 8011776 bytes
erasing start:6815744,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 6946816 / 8011776 bytes
erasing start:6946816,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 7077888 / 8011776 bytes
erasing start:7077888,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 7208960 / 8011776 bytes
erasing start:7208960,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 7340032 / 8011776 bytes
erasing start:7340032,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 7471104 / 8011776 bytes
erasing start:7471104,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 7602176 / 8011776 bytes
erasing start:7602176,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 7733248 / 8011776 bytes
erasing start:7733248,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 7864320 / 8011776 bytes
erasing start:7864320,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 7995392 / 8011776 bytes
erasing start:7995392,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 8011776 / 8011776 bytes
update fs success

prepare update app to mtd:/dev/mtd5
writing ...
erasing start:0,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 131072 / 8957952 bytes
erasing start:131072,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 262144 / 8957952 bytes
erasing start:262144,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 393216 / 8957952 bytes
erasing start:393216,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 524288 / 8957952 bytes
erasing start:524288,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 655360 / 8957952 bytes
erasing start:655360,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 786432 / 8957952 bytes
erasing start:786432,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 917504 / 8957952 bytes
erasing start:917504,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 1048576 / 8957952 bytes
erasing start:1048576,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 1179648 / 8957952 bytes
erasing start:1179648,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 1310720 / 8957952 bytes
erasing start:1310720,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 1441792 / 8957952 bytes
erasing start:1441792,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 1572864 / 8957952 bytes
erasing start:1572864,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 1703936 / 8957952 bytes
erasing start:1703936,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 1835008 / 8957952 bytes
erasing start:1835008,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 1966080 / 8957952 bytes
erasing start:1966080,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 2097152 / 8957952 bytes
erasing start:2097152,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 2228224 / 8957952 bytes
erasing start:2228224,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 2359296 / 8957952 bytes
erasing start:2359296,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 2490368 / 8957952 bytes
erasing start:2490368,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 2621440 / 8957952 bytes
erasing start:2621440,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 2752512 / 8957952 bytes
erasing start:2752512,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 2883584 / 8957952 bytes
erasing start:2883584,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 3014656 / 8957952 bytes
erasing start:3014656,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 3145728 / 8957952 bytes
erasing start:3145728,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 3276800 / 8957952 bytes
erasing start:3276800,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 3407872 / 8957952 bytes
erasing start:3407872,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 3538944 / 8957952 bytes
erasing start:3538944,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 3670016 / 8957952 bytes
erasing start:3670016,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 3801088 / 8957952 bytes
erasing start:3801088,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 3932160 / 8957952 bytes
erasing start:3932160,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 4063232 / 8957952 bytes
erasing start:4063232,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 4194304 / 8957952 bytes
erasing start:4194304,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 4325376 / 8957952 bytes
erasing start:4325376,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 4456448 / 8957952 bytes
erasing start:4456448,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 4587520 / 8957952 bytes
erasing start:4587520,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 4718592 / 8957952 bytes
erasing start:4718592,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 4849664 / 8957952 bytes
erasing start:4849664,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 4980736 / 8957952 bytes
erasing start:4980736,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 5111808 / 8957952 bytes
erasing start:5111808,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 5242880 / 8957952 bytes
erasing start:5242880,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 5373952 / 8957952 bytes
erasing start:5373952,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 5505024 / 8957952 bytes
erasing start:5505024,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 5636096 / 8957952 bytes
erasing start:5636096,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 5767168 / 8957952 bytes
erasing start:5767168,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 5898240 / 8957952 bytes
erasing start:5898240,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 6029312 / 8957952 bytes
erasing start:6029312,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 6160384 / 8957952 bytes
erasing start:6160384,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 6291456 / 8957952 bytes
erasing start:6291456,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 6422528 / 8957952 bytes
erasing start:6422528,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 6553600 / 8957952 bytes
erasing start:6553600,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 6684672 / 8957952 bytes
erasing start:6684672,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 6815744 / 8957952 bytes
erasing start:6815744,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 6946816 / 8957952 bytes
erasing start:6946816,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 7077888 / 8957952 bytes
erasing start:7077888,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 7208960 / 8957952 bytes
erasing start:7208960,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 7340032 / 8957952 bytes
erasing start:7340032,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 7471104 / 8957952 bytes
erasing start:7471104,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 7602176 / 8957952 bytes
erasing start:7602176,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 7733248 / 8957952 bytes
erasing start:7733248,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 7864320 / 8957952 bytes
erasing start:7864320,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 7995392 / 8957952 bytes
erasing start:7995392,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 8126464 / 8957952 bytes
erasing start:8126464,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 8257536 / 8957952 bytes
erasing start:8257536,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 8388608 / 8957952 bytes
erasing start:8388608,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 8519680 / 8957952 bytes
erasing start:8519680,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 8650752 / 8957952 bytes
erasing start:8650752,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 8781824 / 8957952 bytes
erasing start:8781824,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 8912896 / 8957952 bytes
erasing start:8912896,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 8957952 / 8957952 bytes
update app success

prepare update logo to mtd:/dev/mtd8
writing ...
erasing start:0,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 131072 / 935766 bytes
erasing start:131072,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 262144 / 935766 bytes
erasing start:262144,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 393216 / 935766 bytes
erasing start:393216,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 524288 / 935766 bytes
erasing start:524288,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 655360 / 935766 bytes
erasing start:655360,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 786432 / 935766 bytes
erasing start:786432,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 917504 / 935766 bytes
erasing start:917504,len:131072 ...ok !Erased 131072 bytes
ok ! Wrote 93576nand_do_write_ops: Attempt to write not page aligned data
6 / 935766 bytes
update logo success
write version
read uboot1 's version:v1.0.0.1
read uboot2 's version:v1.0.0.1
read bootargs 's version:v1.0.0.1
read kernel 's version:v1.0.0.1
read fs 's version:v1.0.0.2
read app 's version:v1.0.0.9
the section:para is not found in img
get para 's info err
read logo 's version:v1.0.0.1
the section:version is not found in img
get version 's info err
write version err:-1
**********update logo from file**********
file doesn't exist.
file:update.cpp line:51 misc_wdt_open failed!
file:update.cpp line:98 misc_wdt_settimeout failed!!
file:update.cpp line:154  reset.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf