Raspberry Pi Image builder
Go to file
Robert von Burg 2ddc3b47e8 [Major] Updated scripts for latest debian, retested 2020-06-25 12:41:21 +02:00
bin-files64 [Project] Initial Version 2020-03-03 10:22:26 +01:00
boot [Major] Updated scripts for latest debian, retested 2020-06-25 12:41:21 +02:00
debs64 [Minor] Updated wiringPi to 2.60-1 build from github.com/eitch/wiringPi/tree/arm64 2020-03-04 15:38:27 +01:00
etc [Project] Initial Version 2020-03-03 10:22:26 +01:00
signatures [Major] Updated scripts for latest debian, retested 2020-06-25 12:41:21 +02:00
.gitignore [Project] Added missing ignores 2020-03-03 10:57:27 +01:00
README.md [Project] Added README 2020-03-03 10:48:04 +01:00
autosizer.sh [Fix] Added missing autosizer.sh script 2020-03-03 10:56:56 +01:00
bootstrap_64.sh [Major] Updated scripts for latest debian, retested 2020-06-25 12:41:21 +02:00
build-kernel-64.sh [Major] Updated scripts for latest debian, retested 2020-06-25 12:41:21 +02:00
build-toolchain-64.sh [Project] Renamed scripts to -64, instead of -RPi4 2020-03-04 15:37:16 +01:00
clean-kernel-build-64.sh [Project] Renamed scripts to -64, instead of -RPi4 2020-03-04 15:37:16 +01:00
copy-kernel-64.sh [Major] Updated scripts for latest debian, retested 2020-06-25 12:41:21 +02:00
customize_64.sh [Major] Updated scripts for latest debian, retested 2020-06-25 12:41:21 +02:00
install-kernel-64.sh [Major] Updated scripts for latest debian, retested 2020-06-25 12:41:21 +02:00
tomcat-setenv.sh [Project] Initial Version 2020-03-03 10:22:26 +01:00

README.md

Raspberry Pi Image builder

This repository contains scripts to build a Raspberry Image from scratch.

Currently it is focused on Raspberry Pi 4 with a 64-bit architecture with the following features built-in:

Usage

Usage is simple:

  • Clone this repository
  • Change the default username of pi of the NEW_USER variable in the following files to suit your needs:
    • bootstrap_rpi4.sh
    • customize_rpi4.sh
    • etc/rc.local
  • Customize the customize_rpi4.sh script anyhow you see fit
  • Run the script as sudo ./bootstrap_rpi4.sh
  • After bulding, you will have a new file called raspbian-rpi4_arm64-<date>.img

Note: The initial build will take a long time, as it downloads the Kernel sources, tool chain and GCC and builds them all. Depending on the powerfulness of your system, you might want to modify the JOBS variable in install-kernel-rpi4.sh.

Issues

There is a bug where on an Ubuntu/Debian system the vmdebootstrap script might fail as it was not designed to build 64-bit ARM images. The workaround is to patch the script as follows:

sudo vi /usr/lib/python2.7/dist-packages/vmdebootstrap/constants.py
---
vmdebootstrap/constants.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vmdebootstrap/constants.py b/vmdebootstrap/constants.py
index 9f39415..3d807c6 100644
--- a/vmdebootstrap/constants.py
+++ b/vmdebootstrap/constants.py
@@ -46,7 +46,7 @@ arch_table = {  # pylint: disable=invalid-name
         'package': 'grub-efi-arm64',
         'bin_package': 'grub-efi-arm64-bin',
         'extra': None,
-        'exclusive': True,
+        'exclusive': False,
         'target': 'arm64-efi',
     }
 }
--
2.9.3

Resources

These scripts were built with help from: