/X6100Buildroot

A project to build a Linux kernel and OS for the Xiegu X6100 without having to copy files from the vendor's kernel.

Primary LanguageShellGNU General Public License v2.0GPL-2.0

Aether X6100

A project to build a Linux kernel and OS for the Xiegu X6100 without having to copy files from the vendor's kernel.

Building

Building on Linux

To build on a Linux machine, just:

.\br_build.sh

And then you'll have a sdcard.img in the build directory, you can then flash.

Buildroot dependencies

If you are indeed using Linux, check the pre-requesites of Buildroot here.

Building on other OSes

The recomended way of building this repo on other systems is using Docker, as described below.

Changing buildroot configurations

If you want to change the Buildroot configuration, first do this:

./br_make.sh menuconfig

And the menu configuration will open. Do your changes, save, and exit. Then, to save the configurations, do:

cd build; make savedefconfig; cd ..

⚠️ You can't just make ./br_make.sh savedefconfig because it will override your changes!

Changing U-Boot and Linux kernel configurations

For those you can just:

./br_make.sh uboot-menuconfig
# or
./br_make.sh linux-menuconfig

and:

./br_make.sh uboot-savedefconfig
# or
./br_make.sh linux-savedefconfig

to save.

Other useful recipes

If you change the boot.cmd file, then you have to run:

./br_make.sh host-uboot-tools-rebuild; ./br_build.sh

source

Dockerfile and VSCode (cross-platform development)

You can have a nice development environment, including developing on Windows, you can use the included Docker setup. You'll need Visual Studio Code and Docker installed (on Windows machines, Docker requires WSL2), and the proper extensions for VSCode: the remote development pack, and the docker support extension.

With this configured, if you open the repository directory with VSCode, it'll ask you if you want to reopen the directory in the container. Say yes, and you'll have a development environment fully configured. Use the integrated terminal from VSCode and you'll have a Linux terminal ready for you.