# 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 EC2 with 16 cores and 32 GB RAM, this cost us ~$0.4 an hour for a build. We only run the EC2 once we start building the linux image and stop this once we are done. So, the EC2 does not cost us more than $30-$40 a month. it’s cheaper than you invest super desktop to build the code, plus utility bill and cooler as well.
### THE CURRENT VERSION IS ONLY SUPPORT NXP iMX SOURCE CODE
## Setup AWS
Create EC2 instance:
Type: c5.4xlarge and ESB 120GB
OS: Ubuntu Server 18.04
Note: Use ubuntu user for everything.
Add your ssh public key to the EC2
- Copy your public key
`bash ssh-keygen cat ~/.ssh/id_rsa.pub | pbcopy `
- Paste the key to EC2
`bash vim .ssh/authorized_keys `
## Clone source code and initialize build environment
Clone your code to your EC2
## Installation
`bash pip install yoctoEC2 `
#### For current version, I suggest you to initialize build environment and accept EULA by manual.
## 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 –instance-id=<instance-id> –project-root=<project-path> –DISTRO=<distro> –MACHINE=<machine> –IMAGE=<image>
`bash 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 `
Metadata
Release files for yoctoEC2 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yoctoEC2-0.2.1.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yoctoEC2-0.2.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 7.9 kB
Release files / yoctoEC2-0.2.1.tar.gz
| Download URL | yoctoEC2-0.2.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
70efb7ace769812bcfd7901e22d1311029bb5dd7eb920b579803112e4ccec780
|
|
BLAKE2b-256 checksum How to use checksums |
539666b2e2d499211951cd607ba4457748180b114c04eb2672596690369a9963
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.5
|
Release files / yoctoEC2-0.2.1-py2.py3-none-any.whl
| Download URL | yoctoEC2-0.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ae93bc2b0ca82e41fd56f047ceb8b8fbe1e05e747879c6975a19bed6923e29ef
|
|
BLAKE2b-256 checksum How to use checksums |
b64a1ed1d0bdd0f3ce44a6d183120cedc75d6034afd584d5d053b8581a742ce5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.5
|