Quick start with prebuilt Linux microPlatform (LmP) images
This guide shows you how to get started with Izuma Edge and Linux microPlatform (LmP) using prebuilt images. LmP is a Yocto-built distribution maintained by Foundries.io. At the end of this tutorial, you will have downloaded and flashed an LmP image and provisioned and run Izuma Edge.
You can use this guide to try Izuma Edge on one of these boards:
Note: The prebuilt images are intended only for development or testing purposes; they are not for production use. To build production images, please follow the build instructions and factory provisioning process.
Download the image
The WIC image files are attached to the latest release in manifest-edge.
Flash the image
Flash lmp-base-console-image-<MACHINE_NAME>.wic
to an SD card:
-
macOS:
-
Be sure to verify your device's path. This example assumes the SD card is enumerated as
/dev/diskX
. -
Make sure the SD card drive and its partitions, if any, are unmounted. To unmount all partitions, run the following command:
ls /dev/diskX?* | xargs -n1 diskutil umount
-
Use
dd
:sudo dd if=lmp-base-console-image-<MACHINE_NAME>.wic bs=4m of=/dev/diskX conv=sync
Alternatively, you can use the Etcher app or bmaptools, which can result in significant time savings over using
dd
:- Choose the file to flash.
- Choose the destination SD card.
- Click Flash.
-
-
Linux:
-
Make sure the SD card drive and its partitions, if any, are unmounted. You can use
lsblk
to find the name of your SD card block device. To unmount all partitions, run:ls /dev/mmcblkX?* | xargs -n1 umount -l
-
Use
dd
:sudo dd if=lmp-base-console-image-<MACHINE_NAME>.wic bs=4M of=/dev/mmcblkX conv=fsync status=progress iflag=fullblock oflag=direct
or with
bmaptools
:sudo bmaptool copy lmp-base-console-image-<MACHINE_NAME>.rootfs.wic /dev/<sd card device>
-
Provision and run Izuma Edge
After preparing the SD card, you are ready to run Izuma Edge:
-
Insert the prepared SD card.
-
Power on the device.
-
Use the serial connection of your board to communicate with the device. Please consult the user's guide of your board on how to do this.
-
Modify the login credentials:
The default login user for the system is
fio
. The default password is set tofio
. The user hassudo
-permissions. To modify the default password, use thepasswd
command after login. -
Create and download a developer certificate to allow the edge gateway to connect to your Izuma account:
-
Go to Izuma Device Management Portal:
-
Go to Device Identity > Certificates.
-
Create a developer certificate.
-
Download the certificate
mbed_cloud_dev_credentials.c
Note: The downloaded developer certificate is confidential to your account. Store it securely in a place where unauthorized users can't access or use it.
-
-
Create the corresponding
update_default_resources.c
file to apply firmware updates to the gateway device:manifest-dev-tool init
For more information, please refer to the manifest tool README.
-
Secure copy the above file to the gateway, and place it at
/userdata/mbed/
.scp mbed_cloud_dev_credentials.c update_default_resources.c fio@<gw-ip-address>:~/ ssh fio@<gw-ip-address> sudo mv *.c /userdata/mbed/
The gateway is now connected to Izuma Device Management.
-
Run
sudo edge-info
on the gateway to validate the connection and find theDevice ID
.
You can view and access your gateway through the Izuma Device Management Portal.