15
presented by A Common Platforms Tree UEFI Spring Plugfest – May 18-22, 2015 UEFI Plugfest – May 2015 www.uefi.org 1 Leif Lindholm Linaro Ltd. Updated 2011-06-01

A Common Platforms Tree · 6/1/2011  · •All platforms in one tree, all drivers in same tree •Many benefits –Simple to verify changes to core code do not break existing platforms

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: A Common Platforms Tree · 6/1/2011  · •All platforms in one tree, all drivers in same tree •Many benefits –Simple to verify changes to core code do not break existing platforms

presented by

A Common Platforms Tree

UEFI Spring Plugfest – May 18-22, 2015

UEFI Plugfest – May 2015 www.uefi.org 1

Leif LindholmLinaro Ltd.

Updated 2011-06-01

Page 2: A Common Platforms Tree · 6/1/2011  · •All platforms in one tree, all drivers in same tree •Many benefits –Simple to verify changes to core code do not break existing platforms

Agenda

• Introduction

• Plan

• Wrapup

UEFI Plugfest – May 2015 www.uefi.org 2

Page 3: A Common Platforms Tree · 6/1/2011  · •All platforms in one tree, all drivers in same tree •Many benefits –Simple to verify changes to core code do not break existing platforms

Introduction

UEFI Plugfest – May 2015 www.uefi.org 3

Page 4: A Common Platforms Tree · 6/1/2011  · •All platforms in one tree, all drivers in same tree •Many benefits –Simple to verify changes to core code do not break existing platforms

4

Current State of EDK2

• Platform support spread around the tree–PcAtChipset, BeagleBoard/Omap35xx, ARM Ltd. platforms, ValleyView2

–Virtual platforms (special case?)

• Very few drivers–Spread around the tree…

•Most “real” platforms not buildable–Require separately downloaded packages

–Coexistence of multiple platforms in one tree is … tricky

UEFI Plugfest – May 2015 www.uefi.org

Page 5: A Common Platforms Tree · 6/1/2011  · •All platforms in one tree, all drivers in same tree •Many benefits –Simple to verify changes to core code do not break existing platforms

5

Linux kernel

• All platforms in one tree, all drivers in same tree

• Many benefits–Simple to verify changes to core code do not break existing platforms

–Drivers for common components implemented once, then reused

–Components shared between different platforms

•… but does become more complex

UEFI Plugfest – May 2015 www.uefi.org

Page 6: A Common Platforms Tree · 6/1/2011  · •All platforms in one tree, all drivers in same tree •Many benefits –Simple to verify changes to core code do not break existing platforms

6

So we would like to...

• Have more reference code

• Have more open source drivers–Without mandating only open source

•Minimise code (and other) duplication

UEFI Plugfest – May 2015 www.uefi.org

Page 7: A Common Platforms Tree · 6/1/2011  · •All platforms in one tree, all drivers in same tree •Many benefits –Simple to verify changes to core code do not break existing platforms

7

Optimally...

• A set of new top-level directories–Platforms–SoC/Chipset–Drivers

•But we need to start somewhere

UEFI Plugfest – May 2015 www.uefi.org

Page 8: A Common Platforms Tree · 6/1/2011  · •All platforms in one tree, all drivers in same tree •Many benefits –Simple to verify changes to core code do not break existing platforms

Plan

UEFI Plugfest – May 2015 www.uefi.org 8

Page 9: A Common Platforms Tree · 6/1/2011  · •All platforms in one tree, all drivers in same tree •Many benefits –Simple to verify changes to core code do not break existing platforms

9

Plan

• Set up a new repository–Imported into existing edk2 tree, manually into a subdirectory or automated as a git submodule

• Convert current linaro-edk2 to use this–Instead of juggling topic branches

–Base our monthly releases on this

• Build-tests on all platforms in tree, not just the ones we release

UEFI Plugfest – May 2015 www.uefi.org

Page 10: A Common Platforms Tree · 6/1/2011  · •All platforms in one tree, all drivers in same tree •Many benefits –Simple to verify changes to core code do not break existing platforms

Common UEFI BIOS Layout

UEFI Plugfest – May 2015 www.uefi.org 10

UEFI BIOS

Tianocore EDK2 Vendor additions

Platform code & Drivers

CPU support Chipset/SoC support

Page 11: A Common Platforms Tree · 6/1/2011  · •All platforms in one tree, all drivers in same tree •Many benefits –Simple to verify changes to core code do not break existing platforms

Layout with OpenPlatformPkg

UEFI Plugfest – May 2015 www.uefi.org 11

Tianocore EDK2 Vendor additions

UEFI BIOS

OpenPlatformPkg

Page 12: A Common Platforms Tree · 6/1/2011  · •All platforms in one tree, all drivers in same tree •Many benefits –Simple to verify changes to core code do not break existing platforms

OpenPlatformPkg

UEFI Plugfest – May 2015 www.uefi.org 12

PlatformsDrivers

ARM

Dell

HP

SoC, CPU, Chipset

AMD

ARM

Cavium

Huawei

Block

Net

PCI

Huawei

Intel

USB

Page 13: A Common Platforms Tree · 6/1/2011  · •All platforms in one tree, all drivers in same tree •Many benefits –Simple to verify changes to core code do not break existing platforms

Wrapup

UEFI Plugfest – May 2015 www.uefi.org 13

Page 14: A Common Platforms Tree · 6/1/2011  · •All platforms in one tree, all drivers in same tree •Many benefits –Simple to verify changes to core code do not break existing platforms

Wrapup

• Interested in getting feedback on the overall approach

–This week, in public or private.–[email protected]

• Looking for more platform support and/or common drivers

UEFI Plugfest – May 2015 www.uefi.org 14

Page 15: A Common Platforms Tree · 6/1/2011  · •All platforms in one tree, all drivers in same tree •Many benefits –Simple to verify changes to core code do not break existing platforms

Thanks for attending the UEFI Spring Plugfest 2015

For more information on the Unified EFI Forum and UEFI Specifications, visit http://www.uefi.org

presented by

UEFI Plugfest – May 2015 www.uefi.org 15

Leif LindholmLinaro Ltd.