Skip to content

Instantly share code, notes, and snippets.

View stewdk's full-sized avatar

Stewart Hildebrand stewdk

View GitHub Profile
@stewdk
stewdk / rpi64ubuntu.sh
Last active May 22, 2022 15:56
Generate a 64-bit kernel with 64-bit Ubuntu 18.04 for the Raspberry Pi 3
#!/bin/bash -ex
# This script generates a 64-bit kernel and minimal 64-bit Ubuntu 18.04 rootfs for the Raspberry Pi 3 based on the Ubuntu Base release (https://wiki.ubuntu.com/Base).
# Requires a recent version of Ubuntu to run this build script. 8 GB RAM or more is recommended, and 5GB - 10GB free disk space.
# Optionally, a 32-bit kernel may be built for the Raspberry Pi 2 by exporting KERNEL=kernel7 before running the script.
# This script is a little bit like https://github.com/RPi-Distro/pi-gen but for Ubuntu instead of Raspbian.
# User name and host name may be customized in the following lines.
# Locale settings and user password are prompted for towards the end of the script.
@stewdk
stewdk / xen-qemu-aarch64.sh
Last active February 27, 2023 12:17
All-in-one script to run Xen on qemu-system-aarch64
#!/bin/bash -ex
# Copyright (c) 2018, DornerWorks, Ltd.
# Author: Stewart Hildebrand
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
# following conditions are met:
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
# disclaimer.