- ...
- SDK
- Yocto
- ...
- install SDK
- your first application
- ...
- download
- install
SDK downloads#
You will need…
a computer with internet access
a registration for our Github organization
Note
The provided links below always point to the latest release. To build a different release you need to manually build the matching SDK by running
$ scotty --manifest-revision=/refs/tags/<version> update
$ scotty build simplecore-simpleswitch-sdk -c populate_sdk
$ cd build/tmp/deploy/sdk
We strongly recommend to always use the latest release. Further info can be found in the documentation about Scotty.
Registration
If you want to test SimpleCore™, SimpleSwitch™ or any of our packages from our SimpleCore™ incubator program, please register here and we will grant you access.
Install the SDK#
Once you downloaded the archive, please unpack it into a destination of your choice. From this destination open a terminal window and run
$ ./*.sh
and follow the on-screen instructions.
You maybe need sudo
permissions depending on the installation path you choose during the setup.
Source the SDK#
To activate the installed SDK, you need to run (assuming you installed the SDK into /opt
)
$ . /opt/sc/0.1.0/qemux86-64/environment-setup-*
$ . /opt/sc/0.1.0/sm2s-intel-all/environment-setup-*
$ . /opt/sc/0.1.0/sm2s-imx8nano/environment-setup-*
$ . /opt/sc/0.1.0/sm2s-imx8mini/environment-setup-*
$ . /opt/sc/0.1.0/sm2s-imx8plus/environment-setup-*
Important hint
The SDK will only remain active as long as the terminal session exists. If you close the window, the SDK will become inactive again
Update the SDK#
To update the SDK, simply remove the previous installation directory and run the new installer.
If you installed the previous version at /opt/sc/2023.6/sm2s-imx8plus
simply run
$ sudo rm -r /opt/sc/2023.6/sm2s-imx8plus
$ ./*.sh
Use the SDK from a Docker container#
To download the repository, you need to login first, using the following command:
$ docker login -u "USER_NAME" -p "PAT" "ghcr.io/avnet-embedded/simpleswitch-sdk/"
Note
Use your GHCR credentials as described here: Github container registry (GHCR)
Then to retrieve the SDK, the folowing command can be used:
$ docker pull ghcr.io/avnet-embedded/simpleswitch-sdk/qemux86-64:latest
$ docker pull ghcr.io/avnet-embedded/simpleswitch-sdk/sm2s-intel-all:latest
$ docker pull ghcr.io/avnet-embedded/simpleswitch-sdk/sm2s-imx8nano:latest
$ docker pull ghcr.io/avnet-embedded/simpleswitch-sdk/sm2s-imx8mini:latest
$ docker pull ghcr.io/avnet-embedded/simpleswitch-sdk/sm2s-imx8plus:latest
Finally, to run the container, this command can be used:
$ docker run -it \
--volume ${PWD}/build:/build \
--volume ${HOME}/.simpleswitch:/home/user/.simpleswitch \
--env "GITHUB_USERNAME=$GITHUB_USERNAME" \
--env "GITHUB_TOKEN=$GITHUB_TOKEN" \
--env "uid=$(id --user)" \
--env "gid=$(id --group)" \
ghcr.io/avnet-embedded/simpleswitch-sdk/qemux86-64:latest
$ docker run -it \
--volume ${PWD}/build:/build \
--volume ${HOME}/.simpleswitch:/home/user/.simpleswitch \
--env "GITHUB_USERNAME=$GITHUB_USERNAME" \
--env "GITHUB_TOKEN=$GITHUB_TOKEN" \
--env "uid=$(id --user)" \
--env "gid=$(id --group)" \
ghcr.io/avnet-embedded/simpleswitch-sdk/sm2s-intel-all:latest
$ docker run -it \
--volume ${PWD}/build:/build \
--volume ${HOME}/.simpleswitch:/home/user/.simpleswitch \
--env "GITHUB_USERNAME=$GITHUB_USERNAME" \
--env "GITHUB_TOKEN=$GITHUB_TOKEN" \
--env "uid=$(id --user)" \
--env "gid=$(id --group)" \
ghcr.io/avnet-embedded/simpleswitch-sdk/sm2s-imx8nano:latest
$ docker run -it \
--volume ${PWD}/build:/build \
--volume ${HOME}/.simpleswitch:/home/user/.simpleswitch \
--env "GITHUB_USERNAME=$GITHUB_USERNAME" \
--env "GITHUB_TOKEN=$GITHUB_TOKEN" \
--env "uid=$(id --user)" \
--env "gid=$(id --group)" \
ghcr.io/avnet-embedded/simpleswitch-sdk/sm2s-imx8mini:latest
$ docker run -it \
--volume ${PWD}/build:/build \
--volume ${HOME}/.simpleswitch:/home/user/.simpleswitch \
--env "GITHUB_USERNAME=$GITHUB_USERNAME" \
--env "GITHUB_TOKEN=$GITHUB_TOKEN" \
--env "uid=$(id --user)" \
--env "gid=$(id --group)" \
ghcr.io/avnet-embedded/simpleswitch-sdk/sm2s-imx8plus:latest
Note
This will create a folder build
in your current working directory, that
shares the files between the docker container and your host installation