Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

ROC-RK3308-CC Docker container for Buildroot building

1661

Credits

0

Prestige

0

Contribution

administrator

Rank: 9Rank: 9Rank: 9

Credits
1661

ROC-RK3308-CC Docker container for Buildroot building

Posted at 4/13/2019 10:26:09      View4564 | Replies5        Print      Only Author   [Copy Link] 1#
Preface

This is a Docker container for Buildroot building. It was created to support the Firefly Open Source Project. We install the required dependencies and make the development environment based on Ubuntu 16.04 LTS.

It currently only supports to ROC-RK3308-CC Buildroot SDK.


Install Docker CE

To install Docker CE, you need the 64-bit version of one of these Ubuntu versions:

  • Bionic 18.04 (LTS)
  • Xenial 16.04 (LTS)
  • Trusty 14.04 (LTS) (older than Docker CE v18.06)

You can refer to Get Docker CE for Ubuntu to install Docker CE.


The Automatic tool: DKCook

DKCook is a hell script programming, put at FFTools/DockerCook/.


If you cant find FFTools, please update the SDK.


DKCookdefault use a docker image tchip/buildroot-builderit will automatically download the buildroot-builder from Docker Hub.


To build the SDK, you can add ./FFTools/DockerCook/DKCook in front of the building command. As below:


Building the whole SDK


  1. $ cd SDK/
  2. $ ./FFTools/DockerCook/DKCook ./build.sh
Copy the code

Building kernel

  1. $ cd SDK/
  2. $ ./FFTools/DockerCook/DKCook ./build.sh kernel
Copy the code

Or building kernel step by step

  1. $ cd SDK/
  2. $ ./FFTools/DockerCook/DKCook --run
Copy the code


NOTE


If you have build the SDK on PC, and want to do it in container instead. Or the opposite. You must rebuild the whole SDK with new environment(rm SDK/buildroot/output/ directory), to avoid some misstake.


Advanced

If you are familiar with Docker, you can customize the Docker operation by referring to the following.


Docker image from

There are two ways to get Docker image:

  • Generating a Docker image by Dockerfile
  • Get the docker image from Docker Hub

Generating the Docker image

Github for Dockerfile: https://github.com/T-Firefly/buildroot-builder

Get the project:


  1. $ git clone https://github.com/T-Firefly/buildroot-builder.git
Copy the code

Run commands

  1. $ cd DockerCook/
  2. $ docker build -t buildroot-builder .
Copy the code


Download the Docker image

You can download the docker image from Docker Hub , search for tchip/buildroot-builder.

Run commands:


  1. $ docker pull tchip/buildroot-builder:latest
Copy the code


Command line

The container default working directory is /home/project, it is also a mountpoint that can be used to mount your current working directory into the container, like:


  1. docker run -it --rm \
  2.             -e USER_ID=$UID \
  3.             --mount type=bind,source="$PWD",target="/home/project" \
  4.             buildroot-builder \
  5.             /bin/bash
Copy the code


Run bash into container, to build the SDK refer to Building System Firmware.



Docs

Docker Documentation

Access Firefly Wiki to know more










Reply

Use props Report

98

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
98
Posted at 1/10/2026 05:19:53        Only Author  2#
Fast2test의Microsoft인증 MB-330덤프는 인터넷에서 검색되는Microsoft인증 MB-330시험공부자료중 가장 출중한 시험준비 자료입니다. Microsoft인증 MB-330덤프를 공부하면 시험패스는 물론이고 IT지식을 더 많이 쌓을수 있어 일거량득입니다.자격증을 취득하여 자신있게 승진하여 연봉협상하세요.
Reply

Use props Report

93

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
93
Posted at 1/11/2026 06:19:40        Only Author  3#
A޵ģҪărֵLԇһ҂Fast2test SalesforceMule-Dev-202ԇӖYϡ҂Fast2testԞITJC{oĿǰW·ܚgӭеӖYϾWվMule-Dev-202ԇšIеһ̱@NҵYκΕr@ñ^Ҫ҂C׌һpͨ^ԇҲ׌Ĺճ׃ζ߀ԎھSµ;͙C@ڌ@rXărֵhh@X
Reply

Use props Report

82

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
82
Posted at 1/11/2026 22:39:58        Only Author  4#
PSM-IIIԇY}ϸƷ|ǤꡢԇY˺g˺ϸ񤹤Τޤ PSM-IIIԇY|ˤꡢ99κϸʤȸߤҥåʤä뤿ᡢScrumԇY˺ϸǤʤȤ䤹ҪϤޤ PSM-IIIԇYȥȤϡTҤˤäƾ졢UYNʌTҤˤäƳJ졢ՓȌg_k״rˏꤸƸ¤ޤ PSM-IIIɥȥȤϡԇY򥷥ߥ`Ȥƥߥ󥰙CܤϤ뤳ȤǤޤ
Reply

Use props Report

104

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
104
Posted at 1/18/2026 13:42:31        Only Author  5#
Thank you for your article, it was incredibly thought-provoking. The F5CAB5 valid exam camp file exam is near! Hope I nail it!
Reply

Use props Report

101

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
101
Posted at 2/8/2026 13:59:03        Only Author  6#
Your article is absolutely mesmerizing, thank you for sharing! About to face the HPE0-G04 latest free study questions exam C hoping for good results!
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list