Repair instruction for IP Camera JVS-H411 (HZD-600DM)
- Write firmware file
IPC_flash_up.bin
in root of the sd-card - Insert sd-card in the camera and reboot (power off/on)
- Wait until camera boot up
If all done successfully you can connect to camera via browser by camera IP.
For the telnet connection try to use login root
and password jvbzd
.
- Insert sdcard and restar camera
- Connect via telnet
- Create mount point
mkdir /tmp/sdcard
- Mount sdcard
mount /dev/mmcblock0p1 /tmp/sdcard
- Check appfs mtd partition
cat /proc/mtd
- Create appfs image
dd if=/dev/mtdblockN of=/tmp/sdcard/appfs.sqsh
- Unmount sdcard
umount /tmp/sdcard
- Copy appfs image to the host system
- Decompress image
# unsquashfs appfs.sqsh
- Edit what you want in
./squashfs-root
- Check the squashfs options (compression type, block size) of the original image
unsquashfs -s appfs.sqsh
- Create new image
# mksquashfs ./squashfs-root ./appfs-new.sqsh -comp TYPE -b SIZE
- Check partition size
stat appfs.sqsh
(ORIGINAL_SIZE) - Check new image size
stat appfs-new.sqsh
(NEW_IMAGE_SIZE) - Important! Verify that the new image size is less then the original size
- Calculate padding file size
echo $((ORIGINAL_SIZE - NEW_IMAGE_SIZE))
(PADDING_SIZE) - Create padding file
dd if=/dev/zero ibs=PADDING_SIZE count=1 | tr "\000" "\377" > padding.bin
, wheretr
used to replace 0x00 to 0xFF - Merge the new image file with padding file
cat padding >> appfs-new.sqsh
- Copy new padded image to sdcard
- Repeat 1-4 steps (mount sdcard)
- Write new appfs image
dd if=/tmp/sdcard/appfs-new.sqsh of=/dev/mtdblockN bs=64K
- Unmount sdcard
- Reboot device
/cgi-bin/jvsweb.cgi?username=admin&password=admin&cmd=webhelp