Skip to content

Joshua-Riek/ubuntu-raspberry-pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This is a collection of scripts that are used to build a Ubuntu 20.04 preinstalled desktop/server image for the Raspberry Pi Zero 2W, 3, 4, and 400.

Raspberry Pi 4

Recommended Hardware

To setup the build environment for the Ubuntu 20.04 image creation, a Linux host with the following configuration is recommended. A host machine with adequate processing power and disk space is ideal as the build process can be severial gigabytes in size and can take alot of time.

  • Intel Core i7 CPU (>= 8 cores)
  • Strong internet connection
  • 30 GB free disk space
  • 16 GB RAM

Requirements

Please install the below packages on your host machine:

sudo apt-get install -y build-essential gcc-aarch64-linux-gnu bison \
qemu-user-static qemu-system-arm qemu-efi u-boot-tools binfmt-support \
debootstrap flex libssl-dev bc rsync kmod cpio xz-utils fakeroot parted \
udev dosfstools uuid-runtime grub-pc

Building

To checkout the source and build:

git clone https://github.com/Joshua-Riek/ubuntu-raspberry-pi.git
cd ubuntu-raspberry-pi
sudo ./build.sh

Virtual Machine

To run the Ubuntu 20.04 preinstalled image in a virtual machine:

sudo ./qemu.sh images/ubuntu-20.04-preinstalled-server-arm64-rpi.img.xz

Login

There are two predefined users on the system: ubuntu and root. The password for each is root.

Ubuntu 20.04.5 TLS raspberry-pi tty1

raspberry-pi login: root
Password: root

Flash Removable Media

To flash the Ubuntu 20.04 preinstalled image to removable media:

xz -dc images/ubuntu-20.04-preinstalled-desktop-arm64-rpi.tar.xz | sudo dd of=/dev/sdX bs=4k

This assumes that the removable media is added as /dev/sdX and all it’s partitions are unmounted.