Container will pull in any NXP i.MX yocto bsp (source/image) to host using menu or command line
1.1K
This container's single purpsoe is to pull down any i.MX Yocto source/image repository
It is flexible in that if you map a volume to /root/nxp on your host machine, the full Yocto repository will be copied to that volume on the host.
There are two modes of operation:
This mode launches a simple terminal based script that presents you a menu of options. Choosing option 1) Install i.MX BSP will then guide you through specifying which one. It has a series of defaults to use if you don't know which one to pull down. The default is rocko
In this example i have included a host volume in the command string. You can omit the volume if you do not want it
docker run -i -v /mypath/mydir:/root/poky <imx_install_bsp> --interactive
You can shorten the --interactive to just -i and it will run interactively
The continer will execute and the menu system will appear in your terminal. select option 1, hit enter and the process will begin.
Once you exit the menu, the container stops.
This mode will run straight through installing the default i.MX BSP (default is rocko)
There are two primary methods:
Non-interactive mode instructs the container to download the yocto repository to /root/nxp inside the container.
to run non-interactive mode, use the docker run command listed above in interactive mode but omit the argument "interactive" so:
docker run -i -v /mypath/mydir:/root/poky <imx_install_bsp>
if you want the container to process a specific BSP, then the format for your command is the following:
docker run -i -v /mypath/mydir:/root/nxp <imx_install_bsp> --source ARG1 ARG2 ARG3
where:
ARG1 = URL for the codeaurora site where the BSP resides (e.g.: https://source.codeaurora.org/external/imx/imx-manifest)
ARG2 = Name of the i.MX BSP you desire (e.g. imx-linux-rocko)
ARG3 = version of the i.MX BSP (e.g. imx-4.9.88-2.0.0_ga.xml) \
As an example:
docker run -i -v /mypath/mydir:/root/nxp imx_install_bsp --source https://source.codeaurora.org/external/imx/imx-manifest imx-linux-rocko imx-4.9.88-2.0.0_ga.xml
if you don't specify all three values, the container will use its defaults (which is the rocko bsp version) however, you cannot skip a value.. e.g. if you only want to include an i.MX BSP version # on the command line, you must include the URL and BSP name. however, if you include the Code Aurora URL and the i.MX BSP name but leave off the BSP version, then the container will default the version to the internal default it was programmed with.
assume the name of the docker image is imx_install_bsp and this is what you will docker run
Basic interactive examples:
docker run -i imx_install_bsp --interactive
runs the container interactively with the terminal based menu. You can choose your BSP to download within the menu the BSP will be placed within the container at /root/nxp.
docker run -i imx_install_bsp --interactive --source https://source.codeaurora.org/external/imx/imx-manifest imx-linux-rock imx-4.9.88-2.0.0_ga.xml
this will run the interactive version and the default BSP sources will be what you placed in the command line (e.g. imx-linux-rocko). The BSP will be placed within the container at /root/nxp
docker run -i -v /mypath/mydir:/root/nxp imx_install_bsp --interactive\
same as 1st example however the output of the container will appear in the host directory /mypath/mydir as well as in the container /root/nxp/
docker run -i -v /mypath/mydir:/root/nxp imx_install_bsp --interactive --source https://source.codeaurora.org/external/imx/imx-manifest imx-linux-rock imx-4.9.88-2.0.0_ga.xml
same as 2nd example except the BSP will be placed within the container at /root/nxp as well as the host directory /mypath/mydir
Basic non-interactive examples:
simple clone the project to your local host and run the following:
Makefile based. Here are some simple build options you can use:
$ make build <- builds the container
$ make run <- runs a test container with default options
$ make build run <- builds the container and runs it in a test mode
$ make shell <-- after performing a make run, executing a make shell command will docker exec -it bash to the running container
Content type
Image
Digest
Size
400.9 MB
Last updated
about 7 years ago
docker pull kylefoxaustin/imx_install_bsp