Skip to content

SolidRun/imx6_buildroot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imx6_buildroot

SolidRun's i.MX6 based build scripts

Introduction

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.

Source code versions

Building Image

The build script will check for required tools, clone and build images and place results in output/ directory.

Docker build (recommended)

  • 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)

Native Build

Simply:

./runme.sh

Deploying

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

About

Generate full imx6 image based on Buildroot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published