Filter results by

Accessing microSD and USB

This article describes how to use an SD card or USB to transfer or deploy a binary file to the ARTIK 520, 530, 710, and 1020 boards.

Access microSD Card

  1. In your serial terminal, type the command fdisk –l to list the disks that are accessible on ARTIK boards. The SD card device should be something like this:
  Device           Boot Start       End   Blocks  Id   System
  /dev/mmcblk1p1      8192     65535999 32763904   b  W95 FAT32

       Alternatively, you can use command blkid. The output looks like this:

  /dev/mmcblk0p1: SEC_TYPE="msdos" LABEL="boot" UUID="AC7E-B03B" 
   TYPE="vfat" PARTLABEL="boot" PARTUUID="d117f98e-6f2c-d04b-a5b2
  /dev/mmcblk0p2: LABEL="rootfs" UUID="ddd680fb-4343-4c74-b816-
   e8c81f1ccc5c" TYPE="ext4" PARTLABEL="rootfs" PARTUUID="25718777
  /dev/mmcblk1p1: LABEL="UNTITLED" UUID="3974-16F0" TYPE="vfat" 
  /dev/mmcblk0: PTUUID="00042021-0408-4601-9dcc-a8c51255994f" 
  /dev/mmcblk1: PTTYPE="dos” 
  1. Type the command
    mkdir /mnt/SD
    to create a mount point for the SD card. You can replace /mnt/SD with any directory name you prefer.
  2. Type the command
    mount /dev/mmcblk1p1 /mnt/SD
    to mount the SD card, replacing /dev/mmcblk1p1 with the device name from Step 1 and /mnt/SD with the name of the directory you created in Step 2.

Access USB

The steps are the same as above.

This option is not available on ARTIK 520 systems, as they do not implement USB host controller circuitry.

  1. Type fdisk -l from your serial terminal. The USB device is normally /dev/sda* or /dev/sdb*.
  Device    Boot Start       End   Blocks  Id System
  /dev/sda1          2  60751871 30375935   b W95 FAT32

       The output of blkid looks like:

  /dev/loop0: UUID="2fd71144-7dfa-4caa-90c6-08c822a7b9ca" 
  /dev/mmcblk0: PTTYPE="dos" 
  /dev/mmcblk0p1: UUID="847cfc70-1bda-4096-9a57-cff780001e5a" 
  /dev/sda1: LABEL="UNTITLED" UUID="8417-1618" TYPE="vfat" 

  1. Repeat steps 2 and 3 above, replacing the directory names as necessary.

Boot from microSD Card

If you build your image from source code, you can choose to create a version that will boot and operate from the microSD card (as opposed to just using the microSD card to Flash update the eMMC boot image).

To use the microSD card for booting and running, simply generate the sdfuse version as described in the Advanced Developers articles and load it to the microSD card as usual.

Last updated on: