1. Set up Putty on host PC for serial communication Putty is recommended to be used in order to read serial information from the board. It can be downloaded from the link below. Other software such as Hyperterminal or tera term can also be used. http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Once Putty is installed, open it and select Serial. Configure it as shown below. Note: You can find the COM port number in the Device Manager. After setting up the parameter, click open and you'll see the interface.
2. Setup TFTP Server on Windows We need the TFTP protocol downloaded in order to program the firmware onto the board. If the TFTP server is already set up, you can skip this part. If not, we recommend using the software below, which is the TFTP server on Windows OS. 2.1 The software can be downloaded from http://tftpd32.jounin.net/ You can download 32bit or 64bit according to your computer. (We use 64 bit OS). 2.2 Install TFTP Server Click "tftpd64 standard edition (installer) (599KB)". *Note: If you do not want to keep the EXE file, click "Run". 2
Click "I Agree", then click "Next"---->"Install" to install this server. Once installation is complete, you will notice a new folder with the name: Tftp64 located under C: /Program Files We'll come back to how to use this software later after the hardware is connected properly. 3 Set up the Hardware Environment Plug debug board (LI-DM-DEBUG) to J9 of Main Board, then plug serial cable (LI-SER-01) to debug board. Note: LI-DM-DEBUG and LI-SER-01 can be purchased from our website, and you can also use your own debug board and serial cable. Plug the other side of the serial cable to serial interface (or adapter) on the Host PC. 3
4 Program the firmware (uimage, cramfs, cramfs_root, data1, vendor) 4.1 Set up the boot environment After the power is inserted, the serial port should start the log information. (To Putty on Host machine) Press any key immediately to stop the auto boot at the very beginning and you should see the u-boot prompt (Leopard 365 :>). In putty (or another serial interface), enter the commands below to set the boot environment variables and save them. (*Note: All setenv and saveenv commands indicate a new line and should be on separate lines. Enter each line, one at a time followed by pressing Enter on the keyboard. When you see < > you need to input your own unique specifications here. Do not include the < > brackets in the putty screen commands.) setenv ipaddr <Board_IP> setenv serverip <TFTP_server_IP> setenv bootcmd 'nboot 0x80000000 0 0x500000;bootm 0x80000000' setenv bootargs console=ttys0,115200n8 root=/dev/mtdblock3 rootfs=cramfs mem=48m ip=none eth=00:01:01:00:00:11 mtdparts=nand_davinci.0:3m(bootloader)ro,2m(params),5m@5242880(kernel1),16m@10 485760(rootfs),2m@27262976(private),24m@29360128(filefs),-@54525952(vendor) saveenv Note: The value of eth can be changed to change the IP address when you use the network as DHCP. Please make sure different camera has different eth. You can set the <Board_IP> by yourself, e.g. 192.168.0.30; The server IP is the IP address of your TFTP server, e.g. 192.168.0.105 4.2 Download the uimage, cramfsimage, cramfs_root, file data1 and vendor. Please download the files from the link below. https://www.dropbox.com/sh/q60lya04q1k9bq2/akqgdrnyqa 4
Make sure the files: uimage, cramfsimage, cramfs_root, data1 and vendor sit on the host PC and open the TFTPDxx that was just downloaded. Browse the Current Directory to the one that holds the uimage and file system to make sure the server interface has the correct IP (it should be the serverip saved on the board). 4.3 Load firmware to board and save them on NAND flash On Putty, enter the commands below to download the firmware and save them onto the board tftp 80000000 uimage_ipnc_dm368 nand erase 500000 400000 nand write 80000000 500000 400000 tftp 82000000 cramfsimage_ipnc_dm368 nand erase 1c00000 1000000 nand write 82000000 1c00000 1000000 tftp 82000000 cramfsimage_root_dm368 nand erase a00000 1000000 nand write 82000000 a00000 1000000 tftp 80000000 data1_ipnc_dm368.jffs2 nand erase 1a00000 200000 nand write 80000000 1a00000 200000 tftp 80000000 vendor_ipnc_dm368.cramfs nand erase 3400000 200000 nand write 80000000 3400000 200000 Note: Sometimes, nand flash may have bad blocks on above addresses. It s normal for flash memory. You can change them to other addresses to skip the bad blocks, or you can also contact with us via the S/N of your IP camera, and we will set up a new address for you. 5
4.4 Set Mode setenv ethaddr 00:01:01:00:00:11 setenv pro_model LI-1080PTZOV setenv pro_sensor OV2715_2MP setenv pro_hwver B10 setenv pro_extent P saveenv Note: If the IP camera is running with WiFi, the following command is required. setenv pro_extent W Note: After reprogramming the firmware, all the settings will be restore to factory default settings, please refer to the Quick start guide and User s guide to run the camera. 6