How to Compile firmware - thirdreality/LinuxBox GitHub Wiki

This page show the procedure how to compile the source code of ThirdRealithy LinuxBox Dev edition:

1、download the source code from github

Supported OS: Debian 12, Ubuntu 22.04

git clone [email protected]:thirdreality/LinuxBox.git

Here is the similiar log:

Cloning into 'LinuxBox'...
remote: Enumerating objects: 84723, done.
remote: Total 84723 (delta 0), reused 0 (delta 0), pack-reused 84723 (from 1)
Receiving objects: 100% (84723/84723), 497.58 MiB | 1.13 MiB/s, done.
Resolving deltas: 100% (56121/56121), done.
Updating files: 100% (11012/11012), done.

2、quick way to compile the source code

cd LinuxBox; ./make_armbian_for_hubv3.sh

Here is part of the compile log:

** Board selected: [ trhubv3 ]
** Destination selected: [  ]
** HomeAssistant supported: [ no ]
cp: cannot stat '/root/github/LinuxBox/custom/*.deb': No such file or directory
[ o.k. ] This script will try to update
[ o.k. ] Create example config file using template [ config-default.conf ]
[ o.k. ] Using config file [ /root/github/LinuxBox/userpatches/config-hubv3-images.conf ]

3、custom way to compile the source code

./compile.sh hubv3-images BOARD=${board} BRANCH=current RELEASE=bookworm \
        BUILD_MINIMAL=no BUILD_DESKTOP=no KERNEL_ONLY=no KERNEL_CONFIGURE=no \
        COMPRESS_OUTPUTIMAGE=sha,gpg,img INSTALL_HEADERS=no WIREGUARD=no

More usage please refer to Armbian Document

4、About the output image

LinuxBox/output/images/*.burn.image

image

Here is a pre-compiled image. If you don't have time to compile the image yourself and don't mind if it's slightly outdated, you can give it a try:

linuxbox-image-5.10.239-v1.0.0

Thank you!