Skip to content

Buildroot project to build Linux with PREEMPT_RT for Raspberry Pi

Notifications You must be signed in to change notification settings

waterloop/WLoopOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WLoopOS

The best OS ever created!!!

In all seriousness, this repo contains a buildroot project to build a minimal Linux image to be used for the RPi on the pod.

Dependencies

The only real dependency here is buildroot (and all of buildroot's dependencies). That being said, all dependencies can be installed via make dependencies.

Building

For a one-shot, fully automated build, you can run ./build.sh.

For a more manual approach:

make kernel
make buildroot
make defconfig
make

Parallelizing Build

The defconfig for this proejct is configured to build with 8 parallel jobs. This can be changed via the BR2_JLEVEL variable in the defconfig.

Flashing SD Card

Once the base image has been created (sdcard.img), you can write it to an SD card with:

make sdcard

There also exist many GUIs to do this as well (including the official Raspberry Pi imager).

Developing for WLoopOS

The main thing you will probably be tweaking is the rpi4_defconfig, short for "default configuration". Buildroot provides a "GUI" to edit defconfig files (accessible via make menuconfig).

The process of editing the defconfig is as such:

make buildroot      # if you haven't done this yet...
make defconfig      # if you haven't done this yet...

make menuconfig
# make some changes in the menuconfig...

make savedefconfig  # save the changes back

A similar process can be applied to the kernel.conf for configuring the kernel.

make linux-menuconfig
# make some changes

make linux-update-defconfig

About

Buildroot project to build Linux with PREEMPT_RT for Raspberry Pi

Resources

Stars

Watchers

Forks

Packages

No packages published