Skip to content

Instantly share code, notes, and snippets.

@G-UK
G-UK / Gridcoin Build - One Command.md
Last active September 30, 2021 22:43
Gridcoin Build - One Command

These are setup for building for my specific machines and use my network mounts for transferring files, they may however be useful as reference for someone else.

Build client

x64 PC Debian WSL (Bullseye) running on Windows 10, GCC version 10, MingW version 6 (GCC 8) - Held due to build problem on version 8(GCC 10)

Prod client

Raspberry Pi 4 (4GB)

@G-UK
G-UK / Debootstrap Debian Arm64 OS for Raspberry Pi 3 & 4.md
Last active April 20, 2024 16:00
Build a 64bit Debian OS for the Raspberry Pi using Debootstrap

Introduction

The objective of these instructions is to create a complete Arm64 OS (Userland and Kernel) using Debian Debootstrap and RPI-Update for use on the Raspberry Pi 3 and 4.

Prerequisites:

  • An existing Debian/Raspbian system (any architecture will do)
  • An empty SD card formatted as per a standard Raspbian installation mounted to /mnt/sd on the build system
    • 1st Partition 0-256MB = FAT32 (Mount to /mnt/sd/boot)
    • 2nd Partition 256MB+ = EXT4 (Mount to /mnt/sd)

Set-up basic Debian system

@G-UK
G-UK / Raspberry Pi 4 Arm64 Kernel Cross-Compile.md
Last active August 24, 2023 13:31
Building the Raspberry Pi 4 Arm64 Linux Kernel

The Raspberry Pi foundation have now released a beta version of an official 64-bit Kernel which can be installed using the rpi-update script. The rpi-update script can be found at https://github.com/Hexxeh/rpi-update/blob/master/rpi-update or through the Raspbian repositories

Introduction

The objective of these instructions is to build a stock 64bit Linux Kernel for use on the Raspberry Pi 4B on a Debian x64 machine (Windows Subsystem for Linux in my case), and deploy on the Raspberry Pi.

Notes:

  • Transfer to Pi is using my NAS in this example, replace with shared drive/memory stick etc. as required.
    • (N: drive on Windows and /mnt/NAS on Linux in this example).
  • For a specific Kernel version replace the 4.19 with the wanted version in the git clone command.
  • Greater than 3GB RAM only currently available on Kernel 4.19
@G-UK
G-UK / Netbooting Raspberry Pi 3B's.md
Last active June 19, 2023 15:35
Setting up multiple Raspberry Pi3's with Netboot and NFS Root partitions

Introduction

The objective of these instructions is to run a number of Raspberry Pi 3b's without SD cards. This is achieved through providing the Bootloader and Linux Kerenel to the Pi's via PXE network boot using a TFTP server.

Notes:

  • Please ensure your Server and Clients all have reserved IP's, you don't want them changing on you.
  • Netboot will only work over an Ethernet connection. Wireless netboot is not supported on the Raspberry Pi3.

Client set-up

By default the Raspberry Pi 3 has netbooting disabled so before we start lets enable it on each Pi.

@G-UK
G-UK / Gridcoin Cross-Compile.md
Last active November 23, 2020 03:55
Cross-Compiling the Gridcoin client using the built in depends system.

Introduction

Testing

These build instructions have been tested on Debian Bullseye WSL (Windows Subsystem for Linux) and deployed on all listed host platforms.

!!!BDB (Berkeley DataBase) Warnings!!!

BDB 5.3 is optional and is NOT backwards compatible with the default BDB version

Once you have updated, your wallet will no longer run on clients using the old version of BDB

BDB 5.3 is currently not supported on Microsoft Windows.

@G-UK
G-UK / Raspberry Pi 3 Arm64 Kernel Cross-Compile.md
Last active August 27, 2023 15:09
Building the Raspberry Pi 3 Arm64 Linux Kernel

The Raspberry Pi foundation have now released a beta version of an official 64-bit Kernel which can be installed using the rpi-update script. The rpi-update script can be found at https://github.com/Hexxeh/rpi-update/blob/master/rpi-update or through the Raspbian repositories.

Introduction

The objective of these instructions is to build a stock 64bit Linux Kernel for use on the Raspberry Pi 3B on a Debian x64 machine (Windows Subsystem for Linux in my case), and deploy on the Raspberry Pi.

Notes:

  • Transfer to Pi is using my NAS in this example, replace with shared drive/memory stick etc. as required.
    • (N: drive on Windows and /mnt/NAS on Linux in this example).
  • For a specific Kernel version replace the 4.19 with the wanted version in the git clone command.