A 64-bit Linux machine with Internet connection.
A Linux distribution supported by the Yocto Project.
Digi Embedded Yocto is developed using Ubuntu 18.04 LTS. For successful Digi Embedded Yocto projects, Digi recommends you use a Yocto Project-supported Ubuntu distribution. You can find Yocto Project-supported distributions in the Yocto Project system requirements at https://docs.yoctoproject.org/3.2/ref-manual/ref-system-requirements.html#supported-linux-distribution.
8 GB of RAM.
8 CPU cores.
250 GB of free disk space. SSDs are highly recommended for faster build times.
1. Install required packages
Install the following list of required packages for Ubuntu Linux distribution:
$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib g++-multilib build-essential chrpath socat libsdl1.2-dev xterm minicom
|If you are using a different Linux distribution, find the list of packages at https://docs.yoctoproject.org/3.2/ref-manual/ref-system-requirements.html#required-packages-for-the-build-host.|
2. Set up a TFTP server
You also need to set up a TFTP server on your host so you can program your built images.
Install a TFTP server. For Ubuntu, you can execute the following command to install a TFTP server:
$ sudo apt-get install tftpd-hpa
After completing installation, create a directory
/tftpbootwhere exported files will be located (only root user can create this directory):
$ sudo mkdir /tftpboot $ sudo chmod 1777 /tftpboot
To make sure the TFTP server is using the
/tftpbootdirectory, edit the daemon’s configuration file
/etc/default/tftpd-hpaand change the constant
TFTP_DIRECTORYto point to your recently created
TFTP_USERNAME="tftp" TFTP_DIRECTORY="/tftpboot" TFTP_ADDRESS="0.0.0.0:69" TFTP_OPTIONS="--secure"
Restart the daemon so that it uses the new TFTP folder:
$ sudo service tftpd-hpa restart tftpd-hpa start/running, process 3297
3. Set up an NFS server
Booting from NFS during system development can significantly reduce idle time compared to flashing an image directly in your device.
Follow these steps in your Linux machine to install and configure the NFS server:
Install the NFS server:
$ sudo apt-get install nfs-kernel-server
Create a directory to use as root of the NFS server, for example
$ sudo mkdir -p /exports/nfsroot-ccimx6ulsbc
Export the whole
/exports/nfsroot-ccimx6ulsbcdirectory. To do so, edit the
/etc/exportsfile of your development machine as root and add the following line:/etc/exports
Restart the NFS server with the following command:
$ sudo service nfs-kernel-server restart