Skip to content

ERNI-Academy/starterkit-dockerized-accelerator-embedded-erni-yocto

Repository files navigation

About starterkit-dockerized-accelerator-embedded-erni-yocto

This repo aims to boost the development with the Starterkit-embbeded-erni-yocto. It takes that repo as base and create a docker develoment environment. This development environment is ready to work. We offer the possibility to use the "devcontairner" feature of Visual Studio Code, as well.

All Contributors

Features

  • Development environment ready to start working with Yocto/poky.
  • Based on docker.
  • Non-dependency required.
    • Note: It doesn't requires sudo access unless docker hasn't been previously installed.

Prerequisites

Host OS

Ubuntu 22.04 and 20.04 are elegibles as Host OS.

Installation

  1. Clone the repo
git clone https://github.com/ERNI-Academy/starterkit-embedded-erni-yocto.git
  1. Initialize environment
./init-docker-env.sh

Note: You can use this repo natively without docker. In this case, you can install the depenpendecies with command below. This step has to be used just the very first time.

./installDevDeps.sh

Getting Started - Basic use

Build

You can build the entire image with settings by default. The result will a image bootable in a Raspberry Pi which runs a flutter app at the beggining. Just type:

./build.sh
# Building the image from scratch could take hours. Be patient

Before starting the building, you can set the Wi-Fi settings (ssid + pass).

./build.sh --wifi-interactive

Note: This will be skipped if you set the enviroment variables WIFISSID and WIFIPASS since the script will config the Wi-Fi automatically.

Note: See ./build.sh --help for further information.

Custom build command

Build script let you enter your custom bitbake commands. This can be done by using the -bc or --bitbake-cmd argument followed by the double-quoted command. This argument must be placed in the last position of command in order to avoid conflicts. See some examples:

./build.sh --bitbake-cmd bitbake -s | grep flutter
./build.sh -bc bitbake -D wifi -c clean
./build.sh --bitbake-cmd bitbake-layers show-layers
./build.sh -j 8 -wi --bitbake-cmd bitbake-layers show-layers

Interactive session

This is a powerful way to debug and develop either your recipes or your flutter apps. If you are interested in open an interative session run this:

./build.sh --shell

Once you are inside the shell you will be able to use commands like:

  • bitbake
  • bitbake-getvar
  • bitbake-layers
  • devtool

Cleaning

./cleanAll.sh
# Keep in mind it could be dangerous in case you have unsaved changes.
git clean -fdx

Contributing

Please see our Contribution Guide to learn how to contribute.

License

MIT

Code of conduct

Please see our Code of Conduct

Stats

Check https://repobeats.axiom.co/ for the right URL

Follow us

Twitter Follow Twitch Status YouTube Channel Views Linkedin

Contact

📧 esp-services@betterask.erni

Contributors ✨

Thanks goes to these wonderful people (emoji key):


gmatarrubia

💻 🖋 📖 🎨 🤔 🚧 ⚠️ 💡 👀

This project follows the all-contributors specification. Contributions of any kind welcome!

About

This a docker-based dev env for working with meta-erni layer and ideafix distro

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published