Skip to content

Simplest possible code to demonstrate RPi 3 running AArch64 code

Notifications You must be signed in to change notification settings

sukantoghosh/rpi-3-aarch64-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains a proposed "ARM boot stub" for the Raspberry Pi 3 running in AArch64 mode. It is anticipated the boot stub will be integrated into the VC FW. A very simple test application is included to demonstrate its use.

The ARM boot stub was inspired by the AArch32 boot stub code that the Raspberry Pi Foundation published at my request in raspberrypi/firmware#579 The license/copyright match their code release.

Some of the application code is stolen from U-Boot, including some from my not-yet-upstream AArch32 port of U-Boot to the Raspberry Pi:

  • git://git.denx.de/u-boot.git
  • git://github.com/swarren/u-boot.git

To build, simply run ./build.sh. This was tested on Ubuntu 14.04/16.04. You will need an aarch64-linux-gnu-gcc binary (i.e. gcc-aarch64-linux-gnu package) or equivalent.

To make a bootable SD card, start with a recent Raspbian image, update all the firmware files to the latest from firmware.git, then:

  • Copy config.txt to the boot partition.
  • Delete kernel.img from the boot partition.
  • Copy test.bin to the boot partition as kernel7.img.

You'll need a serial console running at 115200 baud to observe the code running.

About

Simplest possible code to demonstrate RPi 3 running AArch64 code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Assembly 57.2%
  • C 34.0%
  • Shell 8.8%