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.