Giter Site home page Giter Site logo

fernador / edk2-rk356x Goto Github PK

View Code? Open in Web Editor NEW

This project forked from s199pwa1k9r/edk2-rk356x

0.0 0.0 0.0 18.31 MB

A port of Tianocore EDK II to the RK356x boards.

Shell 1.47% Python 0.11% C 92.80% Assembly 0.12% Makefile 0.11% NASL 0.62% ASL 4.76%

edk2-rk356x's Introduction

UEFI for Rockchip RK356X based Single Board Computers

This repository contains a port of Tianocore EDK II to various Rockchip RK356x based boards:

Building an SD card / eMMC image

If you want to build the image, checkout the repository and run: $ make sdcard

Prebuild images are also provided for stable ports and are available in the release section.

Note: The ROCK3 Compute Module port is still work in progress: as such no prebuild images are released for those boards.

Installing

In order to have the board booting in UEFI, the firmware has to be located in one of the supported boot devices. If the device (SD card, eMMC) are removable, the easiest way is to use dd, Etcher, etc. to write the appropriate .img file to the device.

Board specific installation guides

Running

Connect a serial console to UART2 using settings 115200 8n1.

Operating system support

OS Version Supported hardware Notes
ESXi-Arm 1.12 HDMI, USB2, USB3, serial, PCIe, ethernet
Fedora 38 HDMI, USB2, USB3, serial, PCIe, thermal sensors Needs irqchip.gicv3_nolpi=1 for MSI support
FreeBSD 14.0-CURRENT ? Mangled serial output, boot stuck waiting for random seed
NetBSD 9.99.x HDMI, USB2, USB3, serial, SD card, PCIe, eMMC, SATA, ethernet, thermal sensors, watchdog
OpenBSD 7.0-current HDMI, USB2, USB3, serial To use HDMI console, enter set tty fb0 at the bootloader prompt.
Ubuntu 21.04 HDMI, USB2, USB3, serial, PCIe, thermal sensors Needs irqchip.gicv3_nolpi=1 for MSI support
Windows PE ? HDMI, USB3, PCIe BSOD when plugging device in to USB2 port (#2)

eMMC controller Device-Specific Method (_DSM)

The divider register in the RK356x's SDHCI controller does not work, so to change the eMMC card clock we have to do it through the CRU. This is exposed to the OS as an ACPI Device-Specific Method (_DSM).

Function 1: Set Card Clock

The _DSM control method parameters for the Set Card Clock function are as follows:

Arguments

  • Arg0: UUID = 434addb0-8ff3-49d5-a724-95844b79ad1f
  • Arg1: Revision = 0
  • Arg2: Function Index = 1
  • Arg3: Target card clock rate in Hz.

Return

The actual card clock rate in Hz. Will be less than or equal to the target clock rate. Returns 0 if the target clock rate could not be set.

edk2-rk356x's People

Contributors

jaredmcneill avatar bluerise avatar andreamtp avatar s199pwa1k9r avatar gillham avatar jqln-0 avatar bcran avatar claplace avatar mariobalanica avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.