Install Latest Image With SD Card - DigitalMediaProfessionals/dv-sdk GitHub Wiki
If one does not set up an internet connection for the AI FPGA module (referred to as MODULE), one can still install the latest image with SD card.
To install the latest image with SD card, do the following steps:
-
Download the latest SDK SD card image from DMP server:
https://zia-download.dmprof.com/images/zia-c3-sd-ubu1804-latest.img.gz
You will need to authenticate with username/password from DMP.(* One can download the checksum files to check the integrity of the image file.
https://zia-download.dmprof.com/images/checksums.md5
https://zia-download.dmprof.com/images/checksums.sha1
https://zia-download.dmprof.com/images/checksums.sha256 ) -
Write the SD card image to a SD card with at least 8GB capacity. Here are the steps for host PC using Windows or Linux system:
From Windows
- Please install Win32 Disk Imager.
- Decompress the image file with 7-zip or WinRAR.
- Write the decompressed image to a SD card.
From Linux
Insert the SD Card to the host PC and use the following command:
$ gzip -dc <SD card image> | sudo dd of=/dev/mmcblk0 bs=8M oflag=direct iflag=fullblock
-
Adjust the dip switch to boot from SD card, as the following image shows:
The leftmost 3 dip switch should be down, up, down to set the MODULE to boot from SD card. -
Switch on the MODULE, it will run some one-time scripts to initialize the environment, then it will automatically reboot.
-
After the MODULE rebooted, login to the system. (The username/password is ubuntu/ubuntu).
Then use the following command to install the SDK to the built-in eMMC storage.
NOTE: this step will overwrite the entire eMMC storage so be sure to backup any important data before this step.$ cd install_to_emmc $ sudo su [sudo] password for ubuntu:<enter ubuntu here>
There are two options for the
install_to_emmc.sh
script:--same
will copy current SD card content to eMMC including ssh host keys,/etc/hostname
and/etc/hosts
.--new
will copy current SD card content to eMMC and generate new ssh host keys, set hostname tozia-c3-<last_3_digits_of_MAC_address>
and update/etc/hosts
accordingly.
Usually, if you have one MODULE, then use
--same
option. If you want to set up several MODULEs using the same SD card contents, then use--new
option.# ./install_to_emmc.sh --same <enter y if asked whether to overwrite the eMMC>
-
Switch off the MODULE, then adjust the dip switch again to set the MODULE to boot from eMMC.
This time, the leftmost 3 dip switch should be up, down, down. -
Switch on the MODULE, and it will boot from eMMC.