Main intention of this repository is to build a buildroot based build environment for i.MX6 based products.
The build script provides ready to use images that can be deployed on a micro SD card.
The build script will check for required tools, clone and build images and place results in output/ directory.
- Build the Docker image (Just once):
docker build --build-arg user=$(whoami) --build-arg userid=$(id -u) -t imx6 docker/
To check if the image exists in you machine, you can use the following command:
docker images | grep imx6
- Run the build script:
docker run --rm -it -v "$PWD":/imx6_build/imx6_buildroot imx6:latest /bin/bash
# Run the build script
cd /imx6_build/imx6_buildroot && ./runme.sh
Note: run the above commands from imx6_buildroot directory
To Delete all containers:
docker rm -f $(docker ps -a -q)
Simply:
./runme.sh
In order to create a bootable SD card, plug in a micro SD into your machine and run the following, where sdX is the location of the SD card got probed into your machine -
umount /media/<relevant directory>
sudo dd if=output/microsd-<hash>.img of=/dev/sdX
NOTE
If you use HummingBoard CBI Carrier board, you should change the U-Boot environment is_cbi for 'no' to 'yes' to enable the RS485 & CanBus interface, you can use the U-boot commands below:
setenv is_cbi yes; saveenv; boot