# petalinux-docker **Repository Path**: xrz/petalinux-docker ## Basic Information - **Project Name**: petalinux-docker - **Description**: ubuntu petalinux - **Primary Language**: Docker - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-30 - **Last Updated**: 2024-01-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # petalinux-docker package petalinux tools into docker image > If you feel this is helpful for you, please star me right now :) > > > > 国内 > > ## Prerequisite > make sure you have pre-installed docker. If not, 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. ```console docker run -ti -v `pwd`:/home/plnx/project xrz/petalinux ``` ### what you can do in the container: ``` petalinux -t project -s -n cd petalinux-build # this will take a long time ``` ## Avaiable versions - - base image: ubuntu 18.04 - petalinux version:2019.2 ## Build you own images ``` ./build-docker-image.sh ``` petalinux_run_dir: petalinux-v2019.2-final-installer.run 所在的路径,不含最后的一个/ version : 2019.2 这两个参数是指定 petalinux-v2019.2-final-installer.run 文件的,和生层的 image 无关 #### example ``` ./build-docker-image.sh `pwd` 2019.2 ``` ## Reference - - in Chinese - - [ug1144-petalinux-tools-reference-guide](https://www.xilinx.com/support/documentation/sw_manuals/xilinx2018_2/ug1144-petalinux-tools-reference-guide.pdf)