TheRemote / Ubuntu-Server-raspi4-unofficial

Ubuntu Server 18.04.4 Raspberry Pi 4 Image + Build Script (unofficial)
https://jamesachambers.com/raspberry-pi-4-ubuntu-server-desktop-18-04-3-image-unofficial/
Apache License 2.0
536 stars 93 forks source link
debian firmware linux raspberry-pi ubuntu

Overview

This is a Raspberry Pi 4 compatible Ubuntu 18.04.4 preinstalled desktop/server for the new (and currently unsupported officially in the 18.04 LTS series) Raspberry Pi 4.

For more information visit https://jamesachambers.com/raspberry-pi-4-ubuntu-server-desktop-18-04-3-image-unofficial/ including a walkthrough and lots of comments / discussion.

The early official 19.10 release seems to be having a lot of issues particularly with USB devices (I couldn't get my USB devices to connect to it either during initial testing). I also saw a lot of warnings in the log files especially with a full desktop installed. I personally am not concerned about these early hardware issues and I expect those to improve quickly but be advised just because it's an official release doesn't mean it's rock solid stable yet!

This unofficial Ubuntu image is a compilation of all the latest knowledge/firmware/fixes for running a 64 bit operating system on the new Raspberry Pi 4. If you find problems report it in the issues section and I and others will assist!

If you are looking to USB boot Ubuntu 20.04 / 20.10 I have released a tool to assist with creating USB bootable Ubuntu images. Check it out at https://jamesachambers.com/raspberry-pi-4-ubuntu-20-04-usb-mass-storage-boot-guide/

Highlights

Getting Updates

First and foremost all of your updates will be coming from Ubuntu directly in apt as it would with any official image. The only things set on package hold (using apt-mark hold flash-kernel linux-raspi2 linux-image-raspi2 linux-headers-raspi2 linux-firmware-raspi2) to prevent them from overwriting the firmware already on the image.

If you wish, you may apt-mark unhold those same packages and you will be 100% official Ubuntu. The firmware is old right now so you will probably have issues, but presumably at some point the firmware will be backported for 18.04.4 and they'll be safe to use on the Pi 4 but it may take some time.

Updates to the firmware and fixes to common problems will be provided as long as there is interest.

I have also included an updater that will give you the latest kernel/firmware/modules/fixes that are included in each release. If Ubuntu's 18.04.4 update servers get working firmware for the Raspberry Pi 4 I will change the update script to remove the apt-mark holds on the Raspberry Pi firmware package in apt and close the project down (leaving this here for people to learn from to hack an unsupported device into their own distros, or until I do it again on the next Pi release!)

Building Image Yourself

I have included both the script to create the image yourself (BuildPiKernel64bit.sh) using the official images as a base. Binary releases are also available as a preinstalled image (available in the "Releases" section at the top of this page) that you can download and write to a SD card without building anything yourself.

Note that the script is more of a process and not one that you can just clone and use. Please read through it if you want to build the image as there are lines commented that you will want read if you are building from scratch.

The idea is that with the build script and the kernel source code built directly into the IMG file (/usr/src/rpi-linux-*) you don't need me to personally update it for you and customize every kernel flag for you or even plan on me being around in the future. The kernel is just the plain Raspbian 4.19.y kernel source built directly from Git (see build script). You have all the tools you need to change kernel flags and recompile, build kernel modules, and really do anything that I can do now. This whole page is a set of tools and a process to let you customize if you need to.

Support

If you come across a problem definitely open a GitHub issue or drop by the jamesachambers.com page linked at the top. I can add these issues as fixes and include them in the firmware/kernel updates provided through Updater.sh

To download the prebuilt image go to the "Releases" section.



Update History

February 16th 2021

December 25th 2020 - BootFix.sh Fixes / Safety Checks

December 13th 2020 - BootFix.sh and README fixes

December 5th 2020 - BootFix.sh and README fixes

December 4th 2020 - BootFix.sh Ubuntu 20.04 / 20.10 USB Boot Image Fixer Release

February 24th 2020 - v28 Release

January 20th 2020 - v27 Release

December 20th 2019 - v26 Release

December 3rd 2019 - v25 Release

November 29th 2019 - v24 Release

November 21st 2019 - v23 Release

November 17th 2019 - v22 Release

November 8th 2019 - v21 Release

November 7th 2019 - v20 Release

November 6th 2019 - v19 Release

November 3rd 2019 - v18 Release

November 1st 2019 - v17 Release

October 31st 2019 - v16 Release

October 28th 2019 - v15 Official Release

October 26th 2019 - v14 Desktop Pre-Release

October 23nd 2019 - v13 Desktop Pre-Release

October 6th 2019 - v12 Desktop Pre-Release

October 5th 2019 - v11 Desktop Pre-Release

October 3rd 2019 - v10 Desktop Pre-Release

October 2nd 2019 - v9 Desktop Pre-Release

September 19th 2019 - v8 Desktop Pre-Release

September 8th 2019 - v7 Desktop Pre-Release

September 7th 2019 - v6 Desktop Pre-Release

September 3rd 2019 - v5 Desktop Pre-Release Test

September 2nd 2019 - v4 Pre-Release Test

September 2nd 2019 - v3 Pre-Release Test

August 31st 2019 - v2 Pre-Release Test