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.
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.
- Clone docker-buildroot:
git clone https://github.com/vidalastudillo/docker-buildroot
cd docker-buildroot- Set up the Buildroot source:
./scripts/bootstrap.shSee BUILDROOT_VERSION in docker-buildroot for the configured fork and branch, or to use a different one.
- Clone this repo into
externals/kivy:
git clone https://github.com/maovidal/buildroot_external_kivy externals/kivy- 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.
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 allFor the Intel Stick defconfig:
./externals/kivy/run_cm4.sh make intelstick_defconfig
./externals/kivy/run_cm4.sh make allTo save a modified configuration:
./externals/kivy/run_cm4.sh make BR2_DEFCONFIG=/buildroot_externals/kivy/configs/mycustom_defconfig savedefconfig- SSH access is enabled for user
rootwith password1. - There is a folder
kivyappwith a simplehello worldtest.
Details about the purpose and status of this Kivy Package can be found
at package/python-kivy/.
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 makemyrpi2_splash_kivy_defconfig:
./externals/kivy/run_cm4.sh make myrpi2_splash_kivy_defconfig
./externals/kivy/run_cm4.sh makemyrpi2_kivy_rofs_defconfig:
./externals/kivy/run_cm4.sh make myrpi2_kivy_rofs_defconfig
./externals/kivy/run_cm4.sh makeThis software is licensed under MIT License.
© 2022 Mauricio Vidal.