Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joshua-riek/ubuntu-raspberry-pi

Ubuntu 20.04 for Raspberry Pi
https://github.com/joshua-riek/ubuntu-raspberry-pi

aarch64 arm64 embedded-linux kernel linux pi4 pi4b qemu raspberry-pi raspberry-pi-3 raspberry-pi-4 rpi uboot ubuntu

Last synced: about 1 month ago
JSON representation

Ubuntu 20.04 for Raspberry Pi

Awesome Lists containing this project

README

        

## 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](https://www.electromaker.io/uploads/images/board-guide/single-board-computer/medium/Raspberry%20Pi%204B-540x386.png)

## 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.