SlideShare ist ein Scribd-Unternehmen logo
1 von 92
Downloaden Sie, um offline zu lesen
Linux on RISC-V
Drew Fustini
drew@beagleboard.org
Twitter: @pdp7
Slides: https://github.com/pdp7/talks/blob/master/rv-elc.pdf
with open source hardware and open source FPGA tools
Embedded Linux Conference 2020
Open Source Hardware designer at OSH Park
(PCB manufacturing service in the USA)
drew@oshpark.com / Twitter: @oshpark
Board of Directors, BeagleBoard.org Foundation
drew@beagleboard.org
Board of Directors, Open Source Hardware Assoc.
Certification Program:
https://certification.oshwa.org/
RISC-V Ambassador for RISC-V International
https://riscv.org/
Find many more at: https://riscv.org/local/
RISC-V at ELC
●
RISC-V: Instruction Sets Want to be Free
– Krste Asanovic (UC Berkeley)
– Wednesday, 10:35am: https://sched.co/c4PV
●
State of RISC-V Software Development Tools
– Khem Raj (Comcast)
– Wednesday 12:15pm: https://sched.co/c3Yn
●
Ask the Expert Session with Calista Redmond
– CEO of RISC-V International
– Thursday 11:45am: https://sched.co/cosw
Statement of Principles:
Hardware whose design is
made publicly available so
that anyone can study,
modify, distribute, make,
and sell the design or
hardware based on that design
Documentation required for electronics:
Schematics Board Layout
Editable source files for CAD software such as KiCad or EAGLE
Bill of Materials (BoM)
Not strict requirement, but best practice is for all components available from
distributors in low quantity
36c3 talk:
Linux on Open Source Hardware with
Open Source chip design
Section:
RISC-V
the instruction set for everything?
Slides: https://github.com/pdp7/talks/blob/master/rv-elc.pdf
●
When you write a C or C++ program, it is
compiled into instructions for the
microprocessor (CPU) to execute.
●
How does the compiler know what instructions
the CPU understands?
– defined by the Instruction Set Architecture
– The ISA is a standard, a set of rules that define
the tasks the processor can perform.
– Examples: x86 (Intel/AMD) and ARM
●
Both are proprietary and need commercial licensing
●
RISC-V: Free & Open RISC Instruction Set Arch
– “new instruction set architecture (ISA) that was originally
designed to support computer architecture research and
education and is now set to become a standard open
architecture for industry”
– The 5th RISC instruction to come out out UC Berkeley
– RISC = Reduced Instruction Set Computer
●
OSS+ELC 2020 Keynote:
“RISC-V: Instruction Sets Want to be Free”
– Krste Asanovic, UC Berkeley
– https://sched.co/c4PV
●
Instruction Sets Want To Be Free: A Case for RISC-V
– David Patterson, UC Berekely (co-creator of the original RISC)
– youtube.com/watch?v=mD-njD2QKN0
RISC-V Summit 2019: State of the Union https://youtu.be/jdkFi9_Hw-c
RISC-V Summit 2019: State of the Union https://youtu.be/jdkFi9_Hw-c
“Co-developing RISC-V Hypervisor Support”, Anup Patel
https://youtu.be/4GoikHB5Qcw
"Co-developing RISC-V Hypervisor Support" - Anup Patel
https://youtu.be/4GoikHB5Qcw
Get up-to-speed
quick with the
RISC-V Reader
riscvbook.com
Deep dive with
updated classic!
RISC-V Summit 2019: State of the Union https://youtu.be/jdkFi9_Hw-c
Is RISC-V Open Source?
●
RISC-V is an open ISA specification
– Creative Commons Attribution 4.0 International
●
An open ISA spec is required to implement an
open source processor
●
Not possible to design an open source processor
for a proprietary ISA such as x86 and ARM
●
Implementations of RISC-V ISA can be both
open source and proprietary
"RISC-V software ecosystem in 2020" - Atish Patra (LCA 2020)
https://youtu.be/qwkab2Z44pk
RISC-V at ELC
●
Go RISC-V Go:
State of Software Development Tools for RISC-V
– Khem Raj
– Wednesday 12:15pm
– https://sched.co/c3Yn
“Clang/LLVM has newly added backends for RISC-V. In addition, there
is now a golang port, which is still out of tree but headed towards
upstream acceptance. Additionally, GCC is working towards the GCC-
10 release, with several new enhancements to its RISC-V backend.
The LLVM backend also means Rust can now cross-compile to the
RISC-V architecture. The MUSL C library also has a new RISCV 64-bit
port. Additionally, we will discuss the state of tools on the RV32
ecosystem, progress on the glibc port for RV32, and Yocto Project
support for RV32 in its core, where QEMU RV32 port is usable for
doing application port.”
"RISC-V software ecosystem in 2020" - Atish Patra (LCA 2020)
– https://youtu.be/qwkab2Z44pk
"OpenSBI Deep Dive" - Anup Patel (RV Workshop 2019)
– https://youtu.be/jstwB-o9ll0
"OpenSBI Deep Dive" - Anup Patel (RV Workshop 2019)
– https://youtu.be/jstwB-o9ll0
UEFI Support
●
[RFC PATCH 00/11] Add UEFI support for RISC-V
– Atish Patra (June 25, 2019)
– “This series adds UEFI support for RISC-V”
●
Linux kernel: 5.8-rc2
●
U-Boot: master
●
OpenSBI: master
"OpenSBI Deep Dive" - Anup Patel (RV Workshop 2019)
https://youtu.be/jstwB-o9ll0
"OpenSBI Deep Dive" - Anup Patel (RV Workshop 2019)
https://youtu.be/jstwB-o9ll0
RISC-V and Industry
●
Designed to be extensible from microcontroller to
supercomputer!
●
RISC-V International now controls specifications:
riscv.org
– Over 400 members: companies, universities and more
– RISC-V Foundation transitioning to Swiss-based
RISC-V International
– YouTube channel has hundreds of talks!
●
Companies like Nvidia and Western Digital will
ship millions of devices with RISC-V cores
RISC-V and Industry
●
Avoid ISA licensing and royalty fees
●
Freedom to choose micro-architecture
implementation
– only a few companies like Apple, Samsung and
Qualcomm have ARM architecture licenses which
allows them to do a custom implementation
●
Freedom to leverage existing open source
implementations
– Berkeley’s Rocket and BOOM, ETH Zurich’s PULP
cores, Western Digital SweRV
●
lowRISC is a not-for-profit organization whose goal
is to produce a fully open source System-on-Chip
(SoC) in volume
– “We will produce a SoC design to populate a low-cost
community development board and to act as an ideal
starting point for derivative open-source and
commercial designs”
●
OpenTitan project with Google
– Announcing OpenTitan, the First Transparent Silicon Root of Trust
SiFive
●
“founded by the creators of the free and open
RISC-V architecture as a reaction to the end of
conventional transistor scaling and escalating
chip design costs”
●
HiFive1: Arduino-Compatible RISC-V Dev Kit
SiFive FE310 microcontroller
Section:
Linux-capable RISC-V chips
Slides: https://github.com/pdp7/talks/blob/master/rv-elc.pdf
●
SiFive Freedom FU540 SoC
– FOSDEM 2018 talk: “Igniting the Open Hardware
Ecosystem with RISC-V”
●
SiFive Freedom FU540 SoC
– HiFive Unleashed board:
●
powerful but expensive ($1,000) and very limited
quantity
“Fedora on RISC-V”, Wei Fu (RV Summit 2019)
https://www.youtube.com/watch?v=WC6e3g8uWdk
Kendryte 210
●
400MHz dual core RV64GC
●
8MB SRAM
●
Sipeed MAix BiT for RISC-V is only $13!
●
Damien Le Moal at Linux Plumbers 2019
– “RISC-V NOMMU and M-mode Linux”
●
Full support coming in Linux 5.8
●
Buildroot with busybox
– https://git.io/JJflC
Kendryte 210
●
need NOMMU/FDPIC support for better
userspace
– https://youtu.be/GydyykyNjxs (Maciej W. Rozycki)
– 8MB runs out very quick!
●
there is a MMU but an earlier spec which is not
supported by Linux
●
u-boot patch series
– [PATCH v14 00/20] riscv: Add Sipeed Maix support
– Sean Anderson (June 24th)
Microchip PolarFire SoC FPGA
●
Hard RISC-V cores with FPGA fabric, similar to Xilinx
Zynq for ARM. Coming 2nd half 2020.
OpenHW Group: Core-V Chassis SoC
●
similar to NXP iMX but with RISC-V cores
●
tape-out 2nd half of 2020
Section:
Open Source FPGA tools
●
Keynote at Hackday Supercon 2019 by
Dr. Megan Wachs of SiFive
●
“RISC-V and FPGAs: Open Source Hardware
Hacking”
– https://www.youtube.com/watch?v=vCG5_nxm2G4
●
Project IceStorm for Lattice iCE40
●
“A Free and Open Source Verilog-to-Bitstream Flow for iC
E40 FPGAs”
by Claire Wolf (oe1cxw) at 32c3
Open Source toolchains for FPGAs
●
Project Trellis for Lattice ECP5
– “Project Trellis and nextpnr FOSS FPGA flow for the
Lattice ECP5”
- David Shah (@fpga_dave)
●
youtube.com/watch?v=0se7kNes3EU
Open Source toolchains for FPGAs
●
Project X-Ray & SymbiFlow for Xilinix Series 7
– Timothy ‘mithro’ Ansell: “Xilinx Series 7 FPGAs Now
Have a Fully Open Source Toolchain!” (almost)
●
youtube.com/watch?v=EHePto95qoE
Open Source toolchains for FPGAs
Hackspace Magazine column on how
open source FPGA tools developed by
Claire Wolf (oe1cxw), David Shah and others
have made FPGAs more accessible than ever
before to makers and hackers:
hackspace.raspberrypi.org/issues/26/
Open Source and FPGAs
Section:
Linux on the Hackaday Badge
Slides: https://github.com/pdp7/talks/blob/master/rv-elc.pdf
Hackaday 2019 Supercon badge
●
RISC-V “soft” core on ECP5 FPGA
●
Gigantic FPGA In A Game Boy Form Factor
“Team Linux on Badge”
“Team Linux on Badge”
●
Blog post: Hackaday Supercon badge boots
Linux using SDRAM cartridge
●
Michael Welling (@QwertyEmedded), Tim
Ansell (@mithro), Sean Cross (@xobs), Jacob
Creedon (@jacobcreedon)
●
First attempt: use the built-in 16MB SRAM

no luck :(
“Team Linux on Badge”
●
Second attempt:
– Jacob Creedon designed an a cartridge board that
adds 32MB of SDRAM to the Hackaday Supercon
badge
 before the event!
“Team Linux on Badge”
●
Second attempt:
– Jacob Creedon designed an a cartridge board that
adds 32MB of SDRAM to the Hackaday Supercon
badge
 before the event!
Designing Hardware in Python?
●
Yes!
●
“Using Python for creating hardware to record
FOSS conferences!”
●
Tim “mithro” Ansell
●
youtube.com/watch?v=MkVX_mh5dOU
Slides: https://github.com/litex-hub/fpga_101
●
LiteX used to build cores, create SoCs and full
FPGA designs.
●
LiteX is based on Migen
●
Migen lets you do FPGA design in Python!
●
https://github.com/enjoy-digital/litex
https://github.com/litex-hub/fpga_101
Slides: https://github.com/litex-hub/fpga_101
Linux on LiteX-VexRiscv
●
VexRiscv: 32-bit Linux Capable RISC-V CPU
●
SoC built using VexRiscv core and LiteX
modules like LiteDRAM, LiteEth, LiteSDCard, ...
– github.com/litex-hub/linux-on-litex-vexriscv
●
upstream support for Hackaday Supercon badge:
– https://github.com/litex-hub/litex-boards/pull/31
●
upstream support for Hackaday Supercon badge:
– https://github.com/litex-hub/litex-boards/pull/31
●
upstream support for Hackaday Supercon badge:
– https://github.com/litex-hub/litex-boards/pull/31
●
Greg Davill got the screen working with LiteVideo!
– twitter.com/GregDavill/status/1231082623633543168
Open Source boards with
ECP5 FPGA
(can run Linux)
Slides: https://github.com/pdp7/talks/blob/master/rv-elc.pdf
●
Radiona.org ULX3S
●
https://www.crowdsupply.com/radiona/ulx3s
Open Source ECP5 boards
●
Lattice ECP5 FPGA in Adafruit Feather form
factor and 128MB DDR RAM:
– Orange Crab by Greg Davill
●
https://github.com/gregdavill/OrangeCrab
●
https://groupgets.com/campaigns/710-orangecrab
Open Source ECP5 boards
Want to learn FPGAs? Try Fomu!
●
workshop.fomu.im
●
crowdsupply.com/sutajio-kosagi/fomu
●
Fits in USB port
●
RGB LED
●
Learn:
– MicroPython
– Verilog
– LiteX
No hardware? Try Renode!
●
https://renode.io/
No hardware? Try Renode!
●
https://renode.io/
from the RISC-V Munich (June 2020)
https://youtu.be/1sqS_VeRwS8?t=2605
●
December 8 - 10, 2020 in San Jose, California
●
https://tmt.knect365.com/risc-v-summit/
●
events.linuxfoundation.org/riscv-global-forum/
RISC-V at ELC
●
RISC-V: Instruction Sets Want to be Free
– Krste Asanovic (UC Berkeley)
– Wednesday, 10:35am: https://sched.co/c4PV
●
State of RISC-V Software Development Tools
– Khem Raj (Comcast)
– Wednesday 12:15pm: https://sched.co/c3Yn
●
Ask the Expert Session with Calista Redmond
– CEO of RISC-V International
– Thursday 11:45am: https://sched.co/cosw
●
Become a
●
Slides:
github.com/pdp7/talks/blob/master/rv-elc.pdf
●
Contact: @pdp7 || drew@beagleboard.org
●
36c3 talk

Weitere Àhnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Chips alliance omni xtend overview
Chips alliance omni xtend overviewChips alliance omni xtend overview
Chips alliance omni xtend overview
 
RISC-V 30910 kassem_ summit 2020 - so_c_gen
RISC-V 30910 kassem_ summit 2020 - so_c_genRISC-V 30910 kassem_ summit 2020 - so_c_gen
RISC-V 30910 kassem_ summit 2020 - so_c_gen
 
Developing for polar fire soc
Developing for polar fire socDeveloping for polar fire soc
Developing for polar fire soc
 
Linaro Connect San Francisco 2017 - Welcome Keynote by George Grey | #SFO17
Linaro Connect San Francisco 2017 - Welcome Keynote by George Grey | #SFO17Linaro Connect San Francisco 2017 - Welcome Keynote by George Grey | #SFO17
Linaro Connect San Francisco 2017 - Welcome Keynote by George Grey | #SFO17
 
RISC-V Online Tutor
RISC-V Online TutorRISC-V Online Tutor
RISC-V Online Tutor
 
Easily emulating full systems on amazon fpg as
Easily emulating full systems on amazon fpg asEasily emulating full systems on amazon fpg as
Easily emulating full systems on amazon fpg as
 
BKK16-307 LHG OE Initiative
BKK16-307 LHG OE InitiativeBKK16-307 LHG OE Initiative
BKK16-307 LHG OE Initiative
 
Development Boards for Tizen IoT
Development Boards for Tizen IoTDevelopment Boards for Tizen IoT
Development Boards for Tizen IoT
 
LAS16-106: GNU Toolchain Development Lifecycle
LAS16-106: GNU Toolchain Development LifecycleLAS16-106: GNU Toolchain Development Lifecycle
LAS16-106: GNU Toolchain Development Lifecycle
 
BUD17-TR01: Philosophy of Open Source
BUD17-TR01: Philosophy of Open SourceBUD17-TR01: Philosophy of Open Source
BUD17-TR01: Philosophy of Open Source
 
BKK16-100K1 George Grey, Linaro CEO Opening Keynote
BKK16-100K1 George Grey, Linaro CEO Opening KeynoteBKK16-100K1 George Grey, Linaro CEO Opening Keynote
BKK16-100K1 George Grey, Linaro CEO Opening Keynote
 
IoT: From Arduino Microcontrollers to Tizen Products using IoTivity
IoT: From Arduino Microcontrollers to Tizen Products using IoTivityIoT: From Arduino Microcontrollers to Tizen Products using IoTivity
IoT: From Arduino Microcontrollers to Tizen Products using IoTivity
 
Open j9 jdk on RISC-V
Open j9 jdk on RISC-VOpen j9 jdk on RISC-V
Open j9 jdk on RISC-V
 
Secure IoT Firmware for RISC-V
Secure IoT Firmware for RISC-VSecure IoT Firmware for RISC-V
Secure IoT Firmware for RISC-V
 
NAB 2019 Latest Technical and Business Progress with AV1
NAB 2019 Latest Technical and Business Progress with AV1NAB 2019 Latest Technical and Business Progress with AV1
NAB 2019 Latest Technical and Business Progress with AV1
 
An Introduction to RISC-V bootflow
An Introduction to RISC-V bootflowAn Introduction to RISC-V bootflow
An Introduction to RISC-V bootflow
 
IoTivity: From Devices to the Cloud
IoTivity: From Devices to the CloudIoTivity: From Devices to the Cloud
IoTivity: From Devices to the Cloud
 
Porting tock to open titan
Porting tock to open titanPorting tock to open titan
Porting tock to open titan
 
Introduction to Linux-wpan and Potential Collaboration
Introduction to Linux-wpan and Potential CollaborationIntroduction to Linux-wpan and Potential Collaboration
Introduction to Linux-wpan and Potential Collaboration
 
BKK16-310 The HiKey AOSP collaborative experience
BKK16-310 The HiKey AOSP collaborative experience BKK16-310 The HiKey AOSP collaborative experience
BKK16-310 The HiKey AOSP collaborative experience
 

Ähnlich wie Linux on RISC-V (ELC 2020)

Fedora on risc-v_tokyo_30_sep_2019_v4
Fedora on risc-v_tokyo_30_sep_2019_v4Fedora on risc-v_tokyo_30_sep_2019_v4
Fedora on risc-v_tokyo_30_sep_2019_v4
Wei Fu
 

Ähnlich wie Linux on RISC-V (ELC 2020) (20)

RISC-V and open source chip design
RISC-V and open source chip designRISC-V and open source chip design
RISC-V and open source chip design
 
Berlin Embedded Linux meetup: How to Linux on RISC-V
Berlin Embedded Linux meetup: How to Linux on RISC-VBerlin Embedded Linux meetup: How to Linux on RISC-V
Berlin Embedded Linux meetup: How to Linux on RISC-V
 
Linux on RISC-V with Open Source Hardware (Open Source Summit Japan 2020)
Linux on RISC-V with Open Source Hardware (Open Source Summit Japan 2020)Linux on RISC-V with Open Source Hardware (Open Source Summit Japan 2020)
Linux on RISC-V with Open Source Hardware (Open Source Summit Japan 2020)
 
Fedora on risc-v_tokyo_30_sep_2019_v4
Fedora on risc-v_tokyo_30_sep_2019_v4Fedora on risc-v_tokyo_30_sep_2019_v4
Fedora on risc-v_tokyo_30_sep_2019_v4
 
Linux on Open Source Hardware with Open Source chip design (36c3)
Linux on Open Source Hardware with Open Source chip design (36c3)Linux on Open Source Hardware with Open Source chip design (36c3)
Linux on Open Source Hardware with Open Source chip design (36c3)
 
Embedded Fest 2019. Wei Fu. Linux on RISC-V--Fedora and Firmware in practice
Embedded Fest 2019. Wei Fu. Linux on RISC-V--Fedora and Firmware in practiceEmbedded Fest 2019. Wei Fu. Linux on RISC-V--Fedora and Firmware in practice
Embedded Fest 2019. Wei Fu. Linux on RISC-V--Fedora and Firmware in practice
 
For the Love of Tux: Linux on RISC-V
For the Love of Tux: Linux on RISC-VFor the Love of Tux: Linux on RISC-V
For the Love of Tux: Linux on RISC-V
 
The Future of Operating Systems on RISC-V
The Future of Operating Systems on RISC-VThe Future of Operating Systems on RISC-V
The Future of Operating Systems on RISC-V
 
SFScon 22 - Roberto Innocenti - Start Enjoy Yourself with Open Hardware POWER...
SFScon 22 - Roberto Innocenti - Start Enjoy Yourself with Open Hardware POWER...SFScon 22 - Roberto Innocenti - Start Enjoy Yourself with Open Hardware POWER...
SFScon 22 - Roberto Innocenti - Start Enjoy Yourself with Open Hardware POWER...
 
Making Open Source Hardware IoT with Raspberry Pi
Making Open Source Hardware IoT with Raspberry PiMaking Open Source Hardware IoT with Raspberry Pi
Making Open Source Hardware IoT with Raspberry Pi
 
Open Source Hardware and Libre Silicon
Open Source Hardware and Libre SiliconOpen Source Hardware and Libre Silicon
Open Source Hardware and Libre Silicon
 
Introduction to Open Source Hardware, OSHWA and Open Hardware Summit
Introduction to Open Source Hardware, OSHWA and Open Hardware SummitIntroduction to Open Source Hardware, OSHWA and Open Hardware Summit
Introduction to Open Source Hardware, OSHWA and Open Hardware Summit
 
RISC-V software state of the union
RISC-V software state of the unionRISC-V software state of the union
RISC-V software state of the union
 
Cytoscape and External Data Analysis Tools
Cytoscape and External Data Analysis ToolsCytoscape and External Data Analysis Tools
Cytoscape and External Data Analysis Tools
 
Embedded Recipes 2019 - Linux on Open Source Hardware and Libre Silicon
Embedded Recipes 2019 - Linux on Open Source Hardware and Libre SiliconEmbedded Recipes 2019 - Linux on Open Source Hardware and Libre Silicon
Embedded Recipes 2019 - Linux on Open Source Hardware and Libre Silicon
 
CHIP: "The World's First $9 Computer"
CHIP: "The World's First $9 Computer"CHIP: "The World's First $9 Computer"
CHIP: "The World's First $9 Computer"
 
Automotive Grade Linux on Raspberry Pi: How Does It Work?
Automotive Grade Linux on Raspberry Pi: How Does It Work?Automotive Grade Linux on Raspberry Pi: How Does It Work?
Automotive Grade Linux on Raspberry Pi: How Does It Work?
 
SFScon 2020 - Roberto Innocenti - 202x Open Hardware Concrete Approach
SFScon 2020 - Roberto Innocenti - 202x Open Hardware Concrete ApproachSFScon 2020 - Roberto Innocenti - 202x Open Hardware Concrete Approach
SFScon 2020 - Roberto Innocenti - 202x Open Hardware Concrete Approach
 
IPMI is dead, Long live Redfish
IPMI is dead, Long live RedfishIPMI is dead, Long live Redfish
IPMI is dead, Long live Redfish
 
TFI2014 Session II - Requirements for SDN - Brian Field
TFI2014 Session II - Requirements for SDN - Brian FieldTFI2014 Session II - Requirements for SDN - Brian Field
TFI2014 Session II - Requirements for SDN - Brian Field
 

Mehr von Drew Fustini

fustini-resume-oshw
fustini-resume-oshwfustini-resume-oshw
fustini-resume-oshw
Drew Fustini
 
chilug-bbone-20140118-151216015606
chilug-bbone-20140118-151216015606chilug-bbone-20140118-151216015606
chilug-bbone-20140118-151216015606
Drew Fustini
 

Mehr von Drew Fustini (17)

Open Source Hardware, Linux and RISC-V
Open Source Hardware, Linux and RISC-VOpen Source Hardware, Linux and RISC-V
Open Source Hardware, Linux and RISC-V
 
Open Source Hardware for Good
Open Source Hardware for GoodOpen Source Hardware for Good
Open Source Hardware for Good
 
Autodesk EAGLE and OSH Park
Autodesk EAGLE and OSH ParkAutodesk EAGLE and OSH Park
Autodesk EAGLE and OSH Park
 
BeagleBone Blue at Maker Faire 2017
BeagleBone Blue at Maker Faire 2017BeagleBone Blue at Maker Faire 2017
BeagleBone Blue at Maker Faire 2017
 
Intro to Open Source Hardware (OSHW)
Intro to Open Source Hardware (OSHW)Intro to Open Source Hardware (OSHW)
Intro to Open Source Hardware (OSHW)
 
Portland Science Hack Day: Open Source Hardware
Portland Science Hack Day: Open Source HardwarePortland Science Hack Day: Open Source Hardware
Portland Science Hack Day: Open Source Hardware
 
Google Summer of Code and BeagleBoard.org
Google Summer of Code and BeagleBoard.orgGoogle Summer of Code and BeagleBoard.org
Google Summer of Code and BeagleBoard.org
 
Taking the BeagleBone Cookbook recipes beyond BeagleBone Black
Taking the BeagleBone Cookbook recipes beyond BeagleBone BlackTaking the BeagleBone Cookbook recipes beyond BeagleBone Black
Taking the BeagleBone Cookbook recipes beyond BeagleBone Black
 
Linux on Open Source Hardware
Linux on Open Source HardwareLinux on Open Source Hardware
Linux on Open Source Hardware
 
Software Defined Radio (SDR)
Software Defined Radio (SDR)Software Defined Radio (SDR)
Software Defined Radio (SDR)
 
Espruino - JavaScript for Microcontrollers
Espruino - JavaScript for MicrocontrollersEspruino - JavaScript for Microcontrollers
Espruino - JavaScript for Microcontrollers
 
Eudyptula Challenge
Eudyptula ChallengeEudyptula Challenge
Eudyptula Challenge
 
Open Hardware Summit 2014
Open Hardware Summit 2014Open Hardware Summit 2014
Open Hardware Summit 2014
 
fustini-resume-oshw
fustini-resume-oshwfustini-resume-oshw
fustini-resume-oshw
 
chilug-bbone-20140118-151216015606
chilug-bbone-20140118-151216015606chilug-bbone-20140118-151216015606
chilug-bbone-20140118-151216015606
 
MinnowBoard MAX: Open Source Hardware 64-bit x86 Single Board Computer
MinnowBoard MAX: Open Source Hardware  64-bit x86 Single Board ComputerMinnowBoard MAX: Open Source Hardware  64-bit x86 Single Board Computer
MinnowBoard MAX: Open Source Hardware 64-bit x86 Single Board Computer
 
Embedded Linux primer
Embedded Linux primerEmbedded Linux primer
Embedded Linux primer
 

KĂŒrzlich hochgeladen

Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
jaanualu31
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
Health
 

KĂŒrzlich hochgeladen (20)

Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Learn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksLearn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic Marks
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
 
BhubaneswarđŸŒčCall Girls Bhubaneswar ❀Komal 9777949614 💟 Full Trusted CALL GIRL...
BhubaneswarđŸŒčCall Girls Bhubaneswar ❀Komal 9777949614 💟 Full Trusted CALL GIRL...BhubaneswarđŸŒčCall Girls Bhubaneswar ❀Komal 9777949614 💟 Full Trusted CALL GIRL...
BhubaneswarđŸŒčCall Girls Bhubaneswar ❀Komal 9777949614 💟 Full Trusted CALL GIRL...
 

Linux on RISC-V (ELC 2020)

  • 1. Linux on RISC-V Drew Fustini drew@beagleboard.org Twitter: @pdp7 Slides: https://github.com/pdp7/talks/blob/master/rv-elc.pdf with open source hardware and open source FPGA tools Embedded Linux Conference 2020
  • 2. Open Source Hardware designer at OSH Park (PCB manufacturing service in the USA) drew@oshpark.com / Twitter: @oshpark Board of Directors, BeagleBoard.org Foundation drew@beagleboard.org Board of Directors, Open Source Hardware Assoc. Certification Program: https://certification.oshwa.org/ RISC-V Ambassador for RISC-V International https://riscv.org/
  • 3.
  • 4.
  • 5. Find many more at: https://riscv.org/local/
  • 6. RISC-V at ELC ● RISC-V: Instruction Sets Want to be Free – Krste Asanovic (UC Berkeley) – Wednesday, 10:35am: https://sched.co/c4PV ● State of RISC-V Software Development Tools – Khem Raj (Comcast) – Wednesday 12:15pm: https://sched.co/c3Yn ● Ask the Expert Session with Calista Redmond – CEO of RISC-V International – Thursday 11:45am: https://sched.co/cosw
  • 7. Statement of Principles: Hardware whose design is made publicly available so that anyone can study, modify, distribute, make, and sell the design or hardware based on that design
  • 8. Documentation required for electronics: Schematics Board Layout Editable source files for CAD software such as KiCad or EAGLE Bill of Materials (BoM) Not strict requirement, but best practice is for all components available from distributors in low quantity
  • 9. 36c3 talk: Linux on Open Source Hardware with Open Source chip design
  • 10. Section: RISC-V the instruction set for everything? Slides: https://github.com/pdp7/talks/blob/master/rv-elc.pdf
  • 11. ● When you write a C or C++ program, it is compiled into instructions for the microprocessor (CPU) to execute. ● How does the compiler know what instructions the CPU understands? – defined by the Instruction Set Architecture – The ISA is a standard, a set of rules that define the tasks the processor can perform. – Examples: x86 (Intel/AMD) and ARM ● Both are proprietary and need commercial licensing
  • 12. ● RISC-V: Free & Open RISC Instruction Set Arch – “new instruction set architecture (ISA) that was originally designed to support computer architecture research and education and is now set to become a standard open architecture for industry” – The 5th RISC instruction to come out out UC Berkeley – RISC = Reduced Instruction Set Computer
  • 13. ● OSS+ELC 2020 Keynote: “RISC-V: Instruction Sets Want to be Free” – Krste Asanovic, UC Berkeley – https://sched.co/c4PV ● Instruction Sets Want To Be Free: A Case for RISC-V – David Patterson, UC Berekely (co-creator of the original RISC) – youtube.com/watch?v=mD-njD2QKN0
  • 14. RISC-V Summit 2019: State of the Union https://youtu.be/jdkFi9_Hw-c
  • 15. RISC-V Summit 2019: State of the Union https://youtu.be/jdkFi9_Hw-c
  • 16. “Co-developing RISC-V Hypervisor Support”, Anup Patel https://youtu.be/4GoikHB5Qcw
  • 17. "Co-developing RISC-V Hypervisor Support" - Anup Patel https://youtu.be/4GoikHB5Qcw
  • 18. Get up-to-speed quick with the RISC-V Reader riscvbook.com
  • 20. RISC-V Summit 2019: State of the Union https://youtu.be/jdkFi9_Hw-c
  • 21. Is RISC-V Open Source? ● RISC-V is an open ISA specification – Creative Commons Attribution 4.0 International ● An open ISA spec is required to implement an open source processor ● Not possible to design an open source processor for a proprietary ISA such as x86 and ARM ● Implementations of RISC-V ISA can be both open source and proprietary
  • 22. "RISC-V software ecosystem in 2020" - Atish Patra (LCA 2020) https://youtu.be/qwkab2Z44pk
  • 23. RISC-V at ELC ● Go RISC-V Go: State of Software Development Tools for RISC-V – Khem Raj – Wednesday 12:15pm – https://sched.co/c3Yn “Clang/LLVM has newly added backends for RISC-V. In addition, there is now a golang port, which is still out of tree but headed towards upstream acceptance. Additionally, GCC is working towards the GCC- 10 release, with several new enhancements to its RISC-V backend. The LLVM backend also means Rust can now cross-compile to the RISC-V architecture. The MUSL C library also has a new RISCV 64-bit port. Additionally, we will discuss the state of tools on the RV32 ecosystem, progress on the glibc port for RV32, and Yocto Project support for RV32 in its core, where QEMU RV32 port is usable for doing application port.”
  • 24. "RISC-V software ecosystem in 2020" - Atish Patra (LCA 2020) – https://youtu.be/qwkab2Z44pk
  • 25. "OpenSBI Deep Dive" - Anup Patel (RV Workshop 2019) – https://youtu.be/jstwB-o9ll0
  • 26. "OpenSBI Deep Dive" - Anup Patel (RV Workshop 2019) – https://youtu.be/jstwB-o9ll0
  • 27. UEFI Support ● [RFC PATCH 00/11] Add UEFI support for RISC-V – Atish Patra (June 25, 2019) – “This series adds UEFI support for RISC-V” ● Linux kernel: 5.8-rc2 ● U-Boot: master ● OpenSBI: master
  • 28. "OpenSBI Deep Dive" - Anup Patel (RV Workshop 2019) https://youtu.be/jstwB-o9ll0
  • 29. "OpenSBI Deep Dive" - Anup Patel (RV Workshop 2019) https://youtu.be/jstwB-o9ll0
  • 30. RISC-V and Industry ● Designed to be extensible from microcontroller to supercomputer! ● RISC-V International now controls specifications: riscv.org – Over 400 members: companies, universities and more – RISC-V Foundation transitioning to Swiss-based RISC-V International – YouTube channel has hundreds of talks! ● Companies like Nvidia and Western Digital will ship millions of devices with RISC-V cores
  • 31. RISC-V and Industry ● Avoid ISA licensing and royalty fees ● Freedom to choose micro-architecture implementation – only a few companies like Apple, Samsung and Qualcomm have ARM architecture licenses which allows them to do a custom implementation ● Freedom to leverage existing open source implementations – Berkeley’s Rocket and BOOM, ETH Zurich’s PULP cores, Western Digital SweRV
  • 32. ● lowRISC is a not-for-profit organization whose goal is to produce a fully open source System-on-Chip (SoC) in volume – “We will produce a SoC design to populate a low-cost community development board and to act as an ideal starting point for derivative open-source and commercial designs” ● OpenTitan project with Google – Announcing OpenTitan, the First Transparent Silicon Root of Trust
  • 33. SiFive ● “founded by the creators of the free and open RISC-V architecture as a reaction to the end of conventional transistor scaling and escalating chip design costs”
  • 34. ● HiFive1: Arduino-Compatible RISC-V Dev Kit SiFive FE310 microcontroller
  • 35. Section: Linux-capable RISC-V chips Slides: https://github.com/pdp7/talks/blob/master/rv-elc.pdf
  • 36. ● SiFive Freedom FU540 SoC – FOSDEM 2018 talk: “Igniting the Open Hardware Ecosystem with RISC-V”
  • 37. ● SiFive Freedom FU540 SoC – HiFive Unleashed board: ● powerful but expensive ($1,000) and very limited quantity
  • 38. “Fedora on RISC-V”, Wei Fu (RV Summit 2019) https://www.youtube.com/watch?v=WC6e3g8uWdk
  • 39.
  • 40. Kendryte 210 ● 400MHz dual core RV64GC ● 8MB SRAM ● Sipeed MAix BiT for RISC-V is only $13! ● Damien Le Moal at Linux Plumbers 2019 – “RISC-V NOMMU and M-mode Linux” ● Full support coming in Linux 5.8 ● Buildroot with busybox – https://git.io/JJflC
  • 41. Kendryte 210 ● need NOMMU/FDPIC support for better userspace – https://youtu.be/GydyykyNjxs (Maciej W. Rozycki) – 8MB runs out very quick! ● there is a MMU but an earlier spec which is not supported by Linux ● u-boot patch series – [PATCH v14 00/20] riscv: Add Sipeed Maix support – Sean Anderson (June 24th)
  • 42.
  • 43. Microchip PolarFire SoC FPGA ● Hard RISC-V cores with FPGA fabric, similar to Xilinx Zynq for ARM. Coming 2nd half 2020.
  • 44.
  • 45. OpenHW Group: Core-V Chassis SoC ● similar to NXP iMX but with RISC-V cores ● tape-out 2nd half of 2020
  • 47. ● Keynote at Hackday Supercon 2019 by Dr. Megan Wachs of SiFive ● “RISC-V and FPGAs: Open Source Hardware Hacking” – https://www.youtube.com/watch?v=vCG5_nxm2G4
  • 48.
  • 49. ● Project IceStorm for Lattice iCE40 ● “A Free and Open Source Verilog-to-Bitstream Flow for iC E40 FPGAs” by Claire Wolf (oe1cxw) at 32c3 Open Source toolchains for FPGAs
  • 50. ● Project Trellis for Lattice ECP5 – “Project Trellis and nextpnr FOSS FPGA flow for the Lattice ECP5” - David Shah (@fpga_dave) ● youtube.com/watch?v=0se7kNes3EU Open Source toolchains for FPGAs
  • 51. ● Project X-Ray & SymbiFlow for Xilinix Series 7 – Timothy ‘mithro’ Ansell: “Xilinx Series 7 FPGAs Now Have a Fully Open Source Toolchain!” (almost) ● youtube.com/watch?v=EHePto95qoE Open Source toolchains for FPGAs
  • 52. Hackspace Magazine column on how open source FPGA tools developed by Claire Wolf (oe1cxw), David Shah and others have made FPGAs more accessible than ever before to makers and hackers: hackspace.raspberrypi.org/issues/26/ Open Source and FPGAs
  • 53. Section: Linux on the Hackaday Badge Slides: https://github.com/pdp7/talks/blob/master/rv-elc.pdf
  • 54. Hackaday 2019 Supercon badge ● RISC-V “soft” core on ECP5 FPGA ● Gigantic FPGA In A Game Boy Form Factor
  • 55. “Team Linux on Badge”
  • 56. “Team Linux on Badge” ● Blog post: Hackaday Supercon badge boots Linux using SDRAM cartridge ● Michael Welling (@QwertyEmedded), Tim Ansell (@mithro), Sean Cross (@xobs), Jacob Creedon (@jacobcreedon) ● First attempt: use the built-in 16MB SRAM
 no luck :(
  • 57. “Team Linux on Badge” ● Second attempt: – Jacob Creedon designed an a cartridge board that adds 32MB of SDRAM to the Hackaday Supercon badge
 before the event!
  • 58. “Team Linux on Badge” ● Second attempt: – Jacob Creedon designed an a cartridge board that adds 32MB of SDRAM to the Hackaday Supercon badge
 before the event!
  • 59.
  • 60. Designing Hardware in Python? ● Yes! ● “Using Python for creating hardware to record FOSS conferences!” ● Tim “mithro” Ansell ● youtube.com/watch?v=MkVX_mh5dOU
  • 62. ● LiteX used to build cores, create SoCs and full FPGA designs. ● LiteX is based on Migen ● Migen lets you do FPGA design in Python! ● https://github.com/enjoy-digital/litex
  • 64. Linux on LiteX-VexRiscv ● VexRiscv: 32-bit Linux Capable RISC-V CPU ● SoC built using VexRiscv core and LiteX modules like LiteDRAM, LiteEth, LiteSDCard, ... – github.com/litex-hub/linux-on-litex-vexriscv
  • 65.
  • 66. ● upstream support for Hackaday Supercon badge: – https://github.com/litex-hub/litex-boards/pull/31
  • 67. ● upstream support for Hackaday Supercon badge: – https://github.com/litex-hub/litex-boards/pull/31
  • 68. ● upstream support for Hackaday Supercon badge: – https://github.com/litex-hub/litex-boards/pull/31
  • 69.
  • 70.
  • 71.
  • 72.
  • 73.
  • 74. ● Greg Davill got the screen working with LiteVideo! – twitter.com/GregDavill/status/1231082623633543168
  • 75. Open Source boards with ECP5 FPGA (can run Linux) Slides: https://github.com/pdp7/talks/blob/master/rv-elc.pdf
  • 77. ● Lattice ECP5 FPGA in Adafruit Feather form factor and 128MB DDR RAM: – Orange Crab by Greg Davill ● https://github.com/gregdavill/OrangeCrab ● https://groupgets.com/campaigns/710-orangecrab Open Source ECP5 boards
  • 78. Want to learn FPGAs? Try Fomu! ● workshop.fomu.im ● crowdsupply.com/sutajio-kosagi/fomu ● Fits in USB port ● RGB LED ● Learn: – MicroPython – Verilog – LiteX
  • 79. No hardware? Try Renode! ● https://renode.io/
  • 80. No hardware? Try Renode! ● https://renode.io/
  • 81.
  • 82.
  • 83. from the RISC-V Munich (June 2020) https://youtu.be/1sqS_VeRwS8?t=2605
  • 84.
  • 85.
  • 86.
  • 87.
  • 88.
  • 89. ● December 8 - 10, 2020 in San Jose, California ● https://tmt.knect365.com/risc-v-summit/
  • 91. RISC-V at ELC ● RISC-V: Instruction Sets Want to be Free – Krste Asanovic (UC Berkeley) – Wednesday, 10:35am: https://sched.co/c4PV ● State of RISC-V Software Development Tools – Khem Raj (Comcast) – Wednesday 12:15pm: https://sched.co/c3Yn ● Ask the Expert Session with Calista Redmond – CEO of RISC-V International – Thursday 11:45am: https://sched.co/cosw