Git Product home page Git Product logo

br-template's Introduction

br-template

Your faster way to startup a buildroot project

About

br-template is a set of Makefile rules and configurations files to easily setup a buildroot based project. It's a template: you can fork it and personalize it as you want.

What br-template offers:

  • Easy to use project structure: your files are under a br2-external tree so the don't mess with the main buildroot files
  • Buildroot is downloaded and extracted as is, so you can version only your files.
  • Easily generates an swu update files for swupdate

Command line

br-template help

Building
  all                    - compiles everything
  image                  - produces images files in out/images
  update                 - produces an update swu file in out/update

Cleaning
  clean                  - removes everything but keeps dl folder
  distclean              - reset the project to a clean state
  withdocker             - builds using docker

Buildroot management
qemu_arm_versatile_custom [TARGET]
                         - calls TARGET on qemu_arm_versatile_custom buildroot makefile
qemu_arm_versatile_custom_recovery [TARGET]
                         - calls TARGET on qemu_arm_versatile_custom_recovery buildroot makefile

br-template's People

Contributors

angeloc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

br-template's Issues

Recovery build fails withdocker option

I know this is very old so apologies. Commenting back in the recovery lines in br-template.config and building with "make withdocker all" yields this error:

make[1]: Leaving directory '/home/br-user/out/qemu_arm_versatile_custom'
BR2_DL_DIR=/home/br-user/out/dl BR2_JLEVEL=20 \
	make -C out/qemu_arm_versatile_custom_recovery source all
make[1]: Entering directory '/home/br-user/out/qemu_arm_versatile_custom_recovery'
for f in board/qemu/arm-versatile/linux-4.13.config ; do if [ ! -f "${f}" ]; then printf "Kconfig fragment '%s' for '%s' does not exist\n" "${f}" "linux"; exit 1; fi; done
make[2]: *** [linux/linux.mk:607: board/qemu/arm-versatile/linux-4.13.config] Error 1
Kconfig fragment 'board/qemu/arm-versatile/linux-4.13.config' for 'linux' does not exist
make[1]: *** [Makefile:23: _all] Error 2
make[1]: Leaving directory '/home/br-user/out/qemu_arm_versatile_custom_recovery'
make: *** [Makefile:51: image] Error 2
make: *** [Makefile:87: withdocker] Error 2

The qemu_arm_versatile_custom board images all seem to be built okay just prior.

Another question, do you have example files of how to achieve the update scheme you outlined in your Linuxlab Conf talk with a redundant bootloader and recovery partition? The "official" swupdate docs all point to a traditional A/B double copy scheme of just having a copy of rootfs. We'd like to update the entire system (including U-boot bootloader) and thus far your proposal sounds best but I am not sure how to implement it without a full example. Thanks!

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.