Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Open source VPU side bootloader for Raspberry Pi.

License

NotificationsYou must be signed in to change notification settings

christinaa/rpi-open-firmware

Repository files navigation

rpi-open-firmware is a small firmware for theRPi VPU, capable of initializing UART, VPU PLL (PLLC), and ARM itself. It's intended as a libre replacement for the stockbootcode.bin normally loaded from the SD card. A UART cable is highly recommended for the time being, though not strictly necessary. Additionally, there is a second-stage chainloader running on ARM capable of initializing eMMC, FAT, and the Linux kernel.

Seeissue #31 for a compatibility table and related discourse.

Technical discussion occurs in#raspberrypi-internals onFreenode. Please come on IRC before randomly hacking on the codebase :-)

All Broadcom headers are licensed under 3-Clause BSD License while our code is under GPLv2+. SeeLICENSE for more information. Various external projects are mirrored under a mix of GPL-compatible licenses.

Is this project dead or abandoned?

It's not dead and not abandoned in a conventional sense.

However, it is on an indefinite hold. I wrote a detailed explanationin issue #37 of its current situation.

Building

As a prerequisite, Julian Brown'sVC4 toolchain is necessary as well as thearm-none-eabi- toolchain (Debian packagegcc-arm-none-eabi). You can tweak the VC4 toolchain path inCROSS_COMPILE inMakefile and the ARM path inarm_chainloader/Makefile if necessary. Contributors should not commit their personal paths. After configuration, runbuildall.sh. The binary is atbuild/bootcode.bin, ready to be copied to an SD card.

Building on macOS

macOS compilation is similar to GNU/Linux, save platform errata described here. Instructions to build the ARM toolchain arehere. Due to symlinking by default, GCC must be installed manually, and, an older version of guile is necessary (homebrew packagesgcc-6 andguile18, respectively). Finally, set the environment variableLIBRARY_PATH to/lib:/lib64 when running `buildall.sh.

Technical Details

The firmware is split into two parts, one running on the VC4 and the other on ARM. The VC4 part initializes PLLC and moves VPU over to it, and then brings up UART. It performs SDRAM initialization, mapping it to0xC0000000 (uncached alias). Next, ARM is initialized, and the embedded bootloader is mapped to ARM address0x0.arm_chainloader is then executed.

The ARM chainloader initializes the eMMC controller and accesses the FAT boot partition. From here, it chainloads the Linux kernel (other payloads likely do not work due to mailbox usage).

Does it boot Linux?

Yes, with some conditions. You can boot a very minimal version of Linux without the firmware and get it to work with UART and eMMC. Support for USB, DMA, and Ethernet are in the works, which will be sufficient for certain headless systems. Still, many other peripherals require bringup, such as video. Additionally, drivers for power management need to written.

Thanks To

  • Herman Hermitage for his VC4 documentation and for helping determine suitable ARM PLL configurations.
  • Julian Brown for reviewing the code and for his awesome VC4 toolchain.
  • Alyssa Rosenzweig for her contributions to the firmware especially in areas of Linux bringup and early ARM side initialization, as well as fixing mailbox support.
  • David Given for his initial LLVM project used as the base for the initial LLVM toolchain before moving to GCC.
  • Scott Mansell for reviewing the code.
  • Broadcom for their header release.
  • Various other people not mentioned here.

About

Open source VPU side bootloader for Raspberry Pi.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors8


[8]ページ先頭

©2009-2025 Movatter.jp