Skip to content

sonnyhcl/petalinux-docker

Repository files navigation

petalinux-docker

package petalinux tools into docker image

If you feel this is helpful for you, please star me right now :)

https://github.com/sonnyhcl/petalinux-docker

Prerequisite

make sure you have pre-installed docker. If not, https://get.docker.com/ may be helpful.

curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh

Usage

run petalinux in one line docker command

  • source settings.sh has already been done in bashrc
  • the default working directory is /home/plnx/project, you can mount a host directory to persist your data.
  • the whole docker image is about 8GB, so make sure your network works in the right way.
docker run -ti -v `pwd`:/home/plnx/project sonnyhcl/petalinux

what you can do in the container:

petalinux -t project -s <path-to-bsp> -n <project-name>
cd <project-name>
petalinux-build # this will take a long time

Avaiable versions

Build you own images

./build-docker-image.sh <petalinux_run_dir> <version>

example

./build-docker-image.sh `pwd` 2018.2

Reference

About

run petalinux using docker tool

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published