Updated on 2022-08-19 GMT+08:00

Using an SD Card

HiLens Kit is multi-modal AI development suite featuring device-cloud synergy. It generates video and image data during use. Generally, data is stored in OBS through APIs. To store data locally, an external SD card is required because the disk space of HiLens Kit devices is limited.

Procedure

  1. Insert an SD card into the port (Micro SD) on the rear panel of the HiLens Kit device.
  2. Log in to the HiLens Kit device using SSH. For details, see Logging In to a HiLens Kit Device Using SSH.
  3. Run the following command to locate the SD card:

    ls -al /dev/mmcblk*

    The command output is as follows:

    dev/mmcblk1

  4. Run the following command to save and back up the data stored in the SD card and format the SD card.

    mkfs.ext4 /dev/mmcblk1

    Run the command at the EulerOS prompt.

    If the SD card has been formatted, skip this step.

  5. Run the following command to create the sd path:

    mkdir /mnt/sd

    The device is mounted to the mount /dev/ mmcblk1/mnt/sd path.

  6. Run the df command to query the file system.
    Run the following commands to perform a read/write test on the local file mount /dev/ mmcblk1/mnt/sd:
    • Write command: cp test.txt /mnt/sd
    • Read command: cp /mnt/sd/test.txt ./

Before removing the SD card, run the following command to unmount the partition from the device:

umount /mnt/sd

This prevents files from being damaged.