Vitro Crystal OS Installation

OS Installation

In this installation guide, we will show how to flash an SD card and boot Vitro Crystal for the first time. If you need more information regarding the OS, please check the Operating System documentation.

You will need some equipment to proceed in this installation guide:

  • Vitro Crystal board.
  • 12V Power Supply with DC jack.
  • Ethernet cable.
  • MicroSD card.
  • USB-UART converter (optional).
  • HDMI cable (optional).
  • Keyboard (optional).

The first step is to download the distro:

πŸ‘

You can check all the Yocto-based OS releases here.

Before flashing the SD card with the image, you should check the files (although not a requirement, it is good practice). You can read our Verifying Signed Binary documentation for a tutorial on how to set it up.

The method to flash the Vitro Crystal OS on the SD card is different for each OS on your host computer. The most universal and easiest way is to use balenaEtcher. It has a graphical user interface (GUI), it is open-source and cross-platform. Click here to go to this section. We also show how to flash the OS image using the command-line interface (CLI), just click here to go to the section.

Using balenaEtcher

You will need to download and install balenaEtcher for the OS of your host computer. Now follow these steps:

  1. Insert the micro SD card into the card reader on your host computer.

🚧

If you need to use a MicroSD to SD adapter, please pay attention to the write protection switch on the left-hand side. The switch must be slid up (unlock position). For more details, check here.

  1. Run balenaEtcher.
  2. Click on Select Image and select the downloaded Vitro Crystal OS image, e.g., vitroio-gateway-imx6dl-crystal-sd-2.2.10-debug.wic.gz.
  3. Make sure that the SD card is selected. Otherwise, click on Change and choose your SD card to be flashed.
  4. Click on the Flash! button to start flashing.

πŸ“˜

In this step, it is necessary to have administrator rights. Thus, you may be prompted for a sudo user or administrator password.

  1. Done! Just insert the microSD card into Vitro Crystal.

This is how it should look:

796

Etcher interface.

You can go to the next section to boot the board.

Using CLI

To flash the SD card, we use BMAP Tools. If you need help on installing it or what it is, please check our Requirements document. But essentially, it is a convenient tool to flash an image very fast. After making sure you have BMAP Tools installed (this is also cross-platform!), follow these steps:

  1. Insert the micro SD card into the card reader on your host computer.

🚧

If you need to use a MicroSD to SD adapter, please pay attention to the write protection switch on the left-hand side. The switch must be slid up (unlock position). For more details, check here.

  1. Identify the SD card descriptor by running the following command:
lsblk | grep sd

You should have an output that looks like this:

sda      8:0    0   50G  0 disk 
β”œβ”€sda1   8:1    0    1M  0 part 
β”œβ”€sda2   8:2    0  513M  0 part /boot/efi
└─sda3   8:3    0 49.5G  0 part /

You can also use other commands to identify your device, like dmesg or fdisk -l. Either way, here the device descriptor is sda.

  1. Unmount the SD card:
sudo umount /dev/<SD card descriptor>
  1. Flash it using BMAP Tools:
sudo bmaptool copy --bmap <file.bmap> <file.gz> /dev/<SD card descriptor>

πŸ‘

If you don't want to use BMAP Tools, you can run do the following:

  1. Unzip the file gzip -cdk <file.gz>.
  2. Use dd to flash the image to the SD card sudo dd of=/dev/<SD card descriptor> bs=16M status=progress.
  1. If it was successful, everything is done! Just insert the microSD card into Vitro Crystal.

You can go to the next section to boot the board.

Booting Vitro Crystal

You can choose to boot Vitro Crystal from two different storage spaces: eMMC and SD card. If you want to flash the eMMC, you can check out the eMMC documentation page, or if you want more information regarding the hardware side, please check our Hardware Guide. As you just flashed an SD card, use it to boot Vitro Crystal.

To prepare the board, please do the following:

  1. Short pins 1-2 on J12 header. You can use a jumper if you like.
  2. Configure SW2 switches accordingly:
Switch number12345678
Value10100010

πŸ“˜

Value 1 is for the upper switch position, while 0 is the opposite. Vitro Crystal can boot from the SD card or eMMC memory. For more information, please check the Hardware Guide.

  1. Connect the USB-UART converter to the UART (J14) header (optional).
    • Otherwise, you can connect a keyboard to the USB port and an HDMI cable to the HDMI port on Vitro Crystal. The HDMI cable should also be connected to a monitor.

🚧

If you are using the USB-UART converter, please don't forget to set it up. For more information, check the UART documentation.

  1. Connect an Ethernet cable.
  2. Power on Vitro Crystal.

Vitro Crystal should now boot up and prompt you for user and password. The default credentials are as follows:

OSUserPassword
Yocto-basedrootvitrotv

If this is the first time the board is booting up, and you want to connect it to Vitro Cloud Infrastructure, you will need to provision it. Please check our Provisioning documentation on how to do it.