Home Interests Raspberry Pi

Install or Recover Your Raspberry Pi 4 Bootloader

howchoo
howchoo   (467)
August 14, 2023
6 minutes

Share

You'll Need 2

What you'll need
Interests
Howchoo is reader-supported. As an Amazon Associate, we may earn a small affiliate commission at no cost to you when you buy through our links.
Posted in these interests:
pi • 92 guides

In this guide we’ll learn how to install a new bootloader on the Raspberry Pi 4. In most cases, the only reason you’d want to do this is if you’re having trouble booting your Pi. But there are some cases where, like I ran into recently, you want to load a custom bootloader.

In either case, this guide will show you how to load a new bootloader onto your Raspberry Pi 4.

What is a bootloader?

A bootloader is a program that loads the operating system. On the Raspberry Pi, the bootloader is stored on an EEPROM (basically just memory that persists even when the the device is powered off). Sometimes, for various reasons, that EEPROM can become corrupt, and needs to be reprogrammed.

1 – Check if your bootloader is working correctly

If you’re unable to boot the Pi, let’s check to see if your bootloader is working correctly before going through the steps to fix it. First, turn off the power, and unplug everything from the Pi, including the SD card. Then turn the power back on.

If the green LED is blinking in a repeating pattern then the bootloader is running properly, otherwise you’ve got an issue and the bootloader needs to be reinstalled.

2 – Download the bootloader

Go to the Raspberry Pi downloads page, and download the bootloader.

3 – Format a second Micro SD card

Format a second SD card using FAT (can be FAT16 or FAT32).

We’ll need to keep the operating system on the original SD card, that is, unless you want to scrap it and start over. If that’s the case, you can use a single SD card. Then follow our guide to install Raspberry Pi OS again when this process is complete.

How to Install Raspberry Pi OS on Your Raspberry Pi
Get the new official Raspberry Pi OS on your Pi.


4 – Extract the bootloader onto the Micro SD card

Since we downloaded a zip file containing the bootloader, we’ll need to extract it. You can typically do this by double-clicking on the file, and then dragging the contents onto the SD card, using a program like Finder or File Explorer.

If you’re comfortable with the CLI you can do something like this:

cd ~/Downloads
unzip rpi-boot-eeprom-recovery-2019-05-10.zip -d /Volumes/boot/

5 – Insert the Micro SD card into the Pi and power it back on

Now you can put the SD card back into the Pi, and turn the power back on. Wait at least 10 seconds. If the process is successful, you’ll see the green LED blink rapidly (forever). If you don’t see this blinking pattern, it failed, and you’ll need to repeat the process.

6 – Insert the original Micro SD card and boot the OS

Now you should be able to insert the original SD card and boot the operating system!

NEXT UP

How to Run a Minecraft Server on the Raspberry Pi

A whole world trapped inside your Pi.
howchoo   (467)
December 7, 2023

There are several ways to go about running a Minecraft server on the Raspberry Pi. In this guide, I’ll cover how to install Nukkit—a cross-platform Minecraft server that’s super easy to set up on the Raspberry Pi. This server should work with PCs, consoles, and tablets running Minecraft 1.14. I’ll be using a Raspberry Pi

Continue Reading

howchoo

 467 guides

Introducing Howchoo, an enigmatic author whose unique pen name reflects their boundless curiosity and limitless creativity. Mysterious and multifaceted, Howchoo has emerged as a captivating storyteller, leaving readers mesmerized by the uncharted realms they craft with their words. With an insatiable appetite for knowledge and a love for exploration, Howchoo's writing transcends conventional genres, blurring the lines between fantasy, science fiction, and the surreal. Their narratives are a kaleidoscope of ideas, weaving together intricate plots, unforgettable characters, and thought-provoking themes that challenge the boundaries of imagination.

Discover interesting things!

Explore Howchoo's most popular interests.

Explore