Skip to content

maovidal/buildroot_external_kivy

Repository files navigation

Intro

⚠️ Help and pull requests are welcome ⚠️

The purpose of this repo is to use Buildroot to produce images that run a Kivy app. Currently Raspberry Pi Compute Module 4 has been tested and is working.

This repo is meant to be used implementing Buildroot's BR2_EXTERNAL tree mechanism.

Quick setup

Besides using this repo in your existing Buildroot installation using the external mechanism, there is also the option to use this docker-buildroot repo that provides a fast and convenient way to start working right away.

  1. Clone docker-buildroot:
git clone https://github.com/vidalastudillo/docker-buildroot
cd docker-buildroot
  1. Set up the Buildroot source:
./scripts/bootstrap.sh

See BUILDROOT_VERSION in docker-buildroot for the configured fork and branch, or to use a different one.

  1. Clone this repo into externals/kivy:
git clone https://github.com/maovidal/buildroot_external_kivy externals/kivy
  1. Build the shared Docker image (once):
docker buildx build -t va_buildroot .

These are the relevant folders on your host:

  • externals/kivy/: the external tree with configs and related files.
  • images/kivy/: build outputs.
  • target/kivy/: unpacked root filesystem for inspection.

Buildroot usage

A run script is provided at externals/kivy/run_cm4.sh. It must always be called from the root of the docker-buildroot project:

./externals/kivy/run_cm4.sh make rpi2_defconfig
./externals/kivy/run_cm4.sh make menuconfig
./externals/kivy/run_cm4.sh make all

For the Intel Stick defconfig:

./externals/kivy/run_cm4.sh make intelstick_defconfig
./externals/kivy/run_cm4.sh make all

To save a modified configuration:

./externals/kivy/run_cm4.sh make BR2_DEFCONFIG=/buildroot_externals/kivy/configs/mycustom_defconfig savedefconfig

Use of the images produced

  • SSH access is enabled for user root with password 1.
  • There is a folder kivyapp with a simple hello world test.

About the Kivy Package for Buildroot

Details about the purpose and status of this Kivy Package can be found at package/python-kivy/.

Extra work with the Raspberry Pi2

⚠️ This is still work in progress ⚠️

The next content has been based on this great post that shows how to build Kivy running on a RP2 by evgueni.

myrpi2_defconfig — basic image:

./externals/kivy/run_cm4.sh make myrpi2_defconfig
./externals/kivy/run_cm4.sh make

myrpi2_splash_kivy_defconfig:

./externals/kivy/run_cm4.sh make myrpi2_splash_kivy_defconfig
./externals/kivy/run_cm4.sh make

myrpi2_kivy_rofs_defconfig:

./externals/kivy/run_cm4.sh make myrpi2_kivy_rofs_defconfig
./externals/kivy/run_cm4.sh make

License

This software is licensed under MIT License.

© 2022 Mauricio Vidal.

About

Buildroot external folder to generate an image for Kivy running on RPi2 and Atom Intel Stick

Resources

License

Stars

3 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors