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      View:4304 | Replies:4        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 can’t find FFTools, please update the SDK.


DKCookdefault use a docker image tchip/buildroot-builder,it 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

128

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
128
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

135

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
135
Posted at 1/11/2026 06:19:40        Only Author  3#
如果你的預算是有限的,但需要完整的價值包,不如嘗試一下我們Fast2test Salesforce的Mule-Dev-202考試培訓資料。我們Fast2test可以為你的IT認證保駕護航,是目前網路上最受歡迎的最可行的培訓資料網站,Mule-Dev-202考試是你職業生涯中的一個里程碑,在這種競爭激烈的世界裏,它比以往任何時候都顯得比較重要,我們保證讓你一次輕鬆的通過考試,也讓你以後的工作及日常工作變得有滋有味。還可以幫你挖掘到許多新的途徑和機會。這實在對著起這個價錢,它所創造的價值遠遠大於這個金錢。
Reply

Use props Report

120

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
120
Posted at 1/11/2026 22:39:58        Only Author  4#
PSM-III試験問題は高品質であり、試験に簡単かつ正常に合格するのに役立ちます。 PSM-III試験の質問により、99%の合格率と高いヒット率が得られるため、Scrum試験に合格できないことを心配する必要はありません。 当社のPSM-III試験トレントは、専門家によって編集され、経験豊富な専門家によって承認され、理論と実践の開発状況に応じて更新されます。 当社のPSM-IIIガイドトレントは、試験をシミュレートしてタイミング機能を向上させることができます。
Reply

Use props Report

136

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
136
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

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

This forum Credits Rules

Quick Reply Back to top Back to list