Skip to content

Build Meshed Banana Image

Vault2501 edited this page Oct 1, 2022 · 6 revisions

Build a Meshed Banana Image

This is the original intend of the script. you can build a Meshed Banana image with reticulum preinstalled and configuredby following these instructions.

Pre built image can be downloaded here

Install the Armbian Build Bystem

Based on the instructions on how to build Armbian images:

  • Download a Ubuntu Jammy image for the hypervisor of your choice (in my case kvm)

    wget https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64-disk-kvm.img
  • See Armbian Build System Tipps for info on e.g. resizing the image and enabling network

  • Boot the image in your hypervisor Minimum system requirements:

    • Disk size: 60GB
    • Ram: 8GB
  • Login to the booted system and install the Armbian build system

    cd ~
    apt-get -y install git
    git clone https://github.com/armbian/build
    cd build
  • Run a test build without any modifications to make sure all works and to get the userpatches directory created

    ./compile.sh  \
        BOARD=bananapim2zero \
        BRANCH=current \
        RELEASE=jammy \
        BUILD_MINIMAL=yes \
        BUILD_DESKTOP=no \
        KERNEL_ONLY=no \
        KERNEL_CONFIGURE=no \
        COMPRESS_OUTPUTIMAGE=sha,gpg,img

Add the Meshed Banana Customisation

  • Install the overlay files from this repo inside the build directory

    cd ~
    git clone https://github.com/Vault2501/Meshed-Banana-image.git
    cp -r Meshed-Banana-image/userpatches build
    cd build
  • Add run_scripts.sh to userpatches/customize-image.sh

    You need to add it to the section of the selected RELEASE you want to build. Please see userpatches/customize-image.sh_example on how to add it e.g. to buster and bullseye builds

  • Build again with the overlay added.

    Notes:

    • you can change BUILD_MINIMAL, BUILD_DESKTOP to get e.g. a UI installed.
    • if you change RELEASE, make sure you have run_scripts.sh added accordingly
    • changing BRANCH might make reticulum not work due to different device names
    ./compile.sh  \
        BOARD=bananapim2zero \
        BRANCH=current \
        RELEASE=jammy \
        BUILD_MINIMAL=yes \
        BUILD_DESKTOP=no \
        KERNEL_ONLY=no \
        KERNEL_CONFIGURE=no \
        COMPRESS_OUTPUTIMAGE=sha,gpg,img

Boot

The image will be available at build/output/images.
Please follow the Admin guide for boot and setup instructions.