Code Monkey home page Code Monkey logo

xmz-firmware's Introduction

Buikldroot driven xmz firmware generation toolchain.

Start custom build

First you have to check out the buildroot. Buildroot is an git submodule. So first checkout the submodule and update to the version this repo holds.

git submodule init
git submodule update

Now you have to create the basic buildroot Makefiles. Call these commands:

cd buildroot
make O=../make BR2_EXTERNAL=../custom xmz_bananapro_defconfig

Finaly change into the make dir (You have to call ALL buildroot commands from here!) and call a defconfig for the needed board. In this example we call the configuration for the Lemaker BananaPro board.

cd ..
cd make
# make menuconfig
make

Directory structure of this project

buildroot Source code of buildroot. Only call update tasks from here. See the '#Update buildroot' capter below.

custom Custom buildroot configuration files.

make "Out of the Buildroot tree" - Configuration https://buildroot.org/downloads/manual/manual.html#outside-br-custom

releases Releases should placed here.

download Download cache of buildroot.

cache Compiler Cache (ccache) of buildroot.

Tips and advance usage

Update buildroot

Buildroot itselfs can be updated easily via the following commands.

It's strong adverticed to use the buildroot version, configured in the master branch of this repo!

cd ~/buildroot
git pull
# git branch -a
git checkout <LATEST_BRANCH>
make O=../make BR2_EXTERNAL=../custom help

Burn SD card

# umount sdcard
sudo umount /dev/mmcblk0p{1,2}
# burn image
dd if=images/sdcard.img |pv|sudo dd bs=1M of=/dev/mmcblk0

Build just kernel and uboot

First create a time stamp. Then clean linux and uboot build dirs. Then build the time command prints the time stats after the build.

set TSTAMP build-(date +%F_%T_%N)
make linux-dirclean
make uboot-dirclean
time -p make | tee $TSTAMP.log
echo log file>>> $TSTAMP.log

To view the latest build.log

vim (ls -a build*.log|tail -n1)

xmz-firmware's People

Contributors

zzeroo avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.