GithubHelp home page GithubHelp logo

ttruongatl / yocto-ec2 Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 40 KB

A project with some tools that may help embedded linux developers build linux image with Yocto on EC2

License: MIT License

Python 92.30% Shell 7.70%
yocto nxp imx6 imx7 imx8 aws-ec2

yocto-ec2's Introduction

YOCTO EC2

A project with some tools that may help embedded linux developers build linux image with Yocto on EC2.

The idea we may select a very cool computer with 16 cores and 32 GB RAM, this cost us ~$0.4 an hour for a build, it's a EC2 in AWS. We only run the EC2 once we start building the linux image and stop this once we are done. There is NO COST if your EC2 instance is stopped. So, the EC2 does not cost us more than $30-$40 a month, ~$400 a year. It's cheaper than you invest super desktop (over $1100) to build the code, plus utility bill and cooler as well.

If you usually take 8 - 10 hours to build your linux images with your work computer, you may want to enjoy a very fast build with Yocto EC2.

Setup AWS

  1. Create EC2 instance

    • Type: c5.4xlarge and ESB 120GB
    • OS: Ubuntu Server 18.04
  2. Add your ssh public key to the EC2

Clone source code and initialize build environment

You probaly follow your documentation to setup Yocto build enviroment and run Yocto setup environment variables as well. This is NXP iMX Yocto documentation

Installation

pip install yoctoEC2

Yocto build

You may want to modify build script build.sh with your project parameters.

Start EC2, build, copy image and Stop EC2

yocto-ec2 build

Usage: yocto-ec2 build [OPTIONS]

  Build Yocto project in EC2

Options:
  --instance-id TEXT   [required]
  --project-root TEXT  [required]
  --script-path TEXT   [required]
  --sdcard-image TEXT  [required]
  --local <string>     images file destination
  --help               Show this message and exit.

For instance:

yocto-ec2 build --instance-id=i-12345678  --project-root=/home/ubuntu/Workspace/iMX6ULEVK/ --script-path=./build.sh --sdcard-image=/home/ubuntu/Workspace/iMX6ULEVK/build/tmp/deploy/images/imx6ulevk/core-image-base-imx6ulevk.sdcard.bz2

yocto-ec2's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.