Technical Application Note 0006

How to flash the camera

Revision: 1.0
Date: 2018-3-9
Contact: support@carrida-technologies.com
Copyright: 2017-2018 Carrida Technologies GmbH, Ettlingen, Germany
Author: Carrida Technologies

Home page

Table of Contents

1   Introduction

This document explains how to create an image of a VC Z camera to be able to clone it on another camera. There are basically 4 steps: 1. start the rescue operating system on the source camera 2. run a script provided by us (attachment) 3. download the image using a browser 4. on the receiving camera, start the rescue operating system and get the image generated in 3. from an FTP server

2   Necessary components

The necessary components are: - the scripts to boot the rescue system: http://files.vision-components.com/VCLinux/image/boot_rescue_system.zip - the script to create webserver allowing to download the camera image: http://files.vision-components.com/VCLinux/image/gen_scripts.zip

3   Starting the rescue operating system

There are two possibilities.
  1. By connecting camera via RS232 cable to the PC.
  2. Over Ethernet. See file "boot_rescue_system.zip".

3.1   Connecting the camera via RS232 cable to the PC

This is only possible if you have an SBC nano Z or a VC pro Z camera with the corresponding RS232 cable

STEPS:
  1. Before you start this process , write down your current camera IP
  2. Plug RS232 cable from the camera on PCs serial line port (COM1/2) .
  3. Start serial interface(eg. PuTTy) and set its speed at 115200 bauds.
  4. Make sure that your serial port number at serial port interface is the same as one where you connect your camera.
  5. Turn off the camera from power
  6. Run serial interface terminal
  7. Plug in the power cable in camera and press RETURN [ENTER] several times in on serial interface terminal.

If a message “Waiting for PHY autonegotiation to complete…” appears, wait for the camera to finish the process than press RETURN and run : run qboot command to start rescue operating system. If the message does not appear repeat the aforementioned steps.

4   Running the script to create the image

5   Downloading the disk image

  1. Open any browser of your choice and connect the the IP 192.168.3.11. You should get a webpage similar to this:

    ./images/1.png
  2. Download the file xxxxxxx-mmcblk0p2.data, where xxxxxxx is the serial number of the camera. This is an image of the whole eMMC, so 15GB+. Rename the file to "mmcblk0p2.img"

    ./images/2.png
  3. Compress the image with gzip (for Windows here: http://www.gzip.org/#exe ). You will get a file "mmcblk0p2.img.gz"

6   Uploading the image to the receiving camera

  1. Start the rescue system on the receiving camera as described in Chapter 3.
  2. Start an FTP server on your PC (for example FileZilla server on Windows). Put the file "mmcblk0p2.img.gz" on this server.
  3. Make sure that your "mmcblk0p2.img.gz" is in right format (zipped)
  4. On the camera , where you've already started rescue operating system, run the command:

Note

wget ftp://name@192.168.x.x/mmcblk0p2.img.gz -O - | zcat > /dev/mmcblk0p2

Replace name@192.168.x.x with the name and IP address of your PC where the FTP server server is running. 1. Wait until the process is finished, it can last 15-20 minutes. 2. Reboot the camera with "reboot" or turn the power of. 3. After rebooting check if the IP of the camera is the same as the one you wrote down on the beginning of this process or 192.168.3.15.