Upstream Allwinner ARM SoC (sunxi) Support

Chen-Yu Tsai
Chen-Yu TsaiSoftware Engineer at CloudMosa
Upstream Allwinner
ARM SoC Support
Chen-Yu Tsai (wens)
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License
Original Talk by Hans de Goede:
https://archive.fosdem.org/2015/schedule/event/allwinner_upstream/
Topics
• Allwinner SoCs
• U-boot Status
• Kernel Status
• U-boot Roadmap
• Kernel Roadmap
Allwinner SoCs
Allwinner SoCs
A10 A10s/
A13/R8
A20 A23 A31 A33 A80 A83
CPU A8 A8 2x A7 2x A7 4x A7 4x A7 4x A7 +
4x A15
8x A7
GPU Mali400 Mali400 Mali400 Mali400 PowerVR
SGX544
Mali400 PowerVR
G6320
PowerVR
SGX544
SATA Yes No Yes No No No No No
Eth Yes Yes (*) Yes No Yes No Yes Yes
HDMI Yes Yes (*) Yes No Yes No Yes Yes
* A10s only
Upstream?
• 3.4 kernel is very old
• Deprecated
• No support for new SoCs
• Probably no bugfixes
• Upstream has more features
• Less maintenance work
U-boot Status
http://linux-sunxi.org/Mainline_U-Boot
U-boot Status
Feb 2014 u-boot-sunxi Aug 2015 upstream u-boot
Upstream No (fork) Yes
A10/A13/A20 Yes Yes
A23/A31/A33 No Yes
A80 No WIP
PSCI (hyp / kvm) No A20/A23/A31/A33
Video output No HDMI, LCD, VGA & Composite
USB No Host & OTG
SATA No Yes
Eth Yes Yes
MMC Yes Yes
NAND No SPL
Upstream Kernel Status
http://linux-sunxi.org/Linux_mainlining_effort
Upstream kernel status
• Last year we had only basic support for old SoCs
• A10/A10s/A13/A20/A31
• Clocks, interrupts, uart, ethernet
• Now we support (4.2)
• USB host (OHCI/EHCI), SATA
• A23/A33/A31s/A80 SoC, IR, tablet keys
• resistive touchscreens, CPUfreq
• MMC, proper rootfs
• Simplefb, using framebuffer setup by U-boot
Linux v3.16 (Aug 2014)
A10 A10s/A13 A20 A31
Basic (*) Yes Yes Yes Yes
SMP N/A N/A Yes (PSCI) Yes
I2C Yes Yes Yes Yes
SPI Yes Yes Yes Yes
USB Host Yes Yes Yes Yes
SATA Yes N/A Yes N/A
Ethernet Yes Yes Yes No
MMC Yes Yes Yes Yes
DMA No No No Yes
Linux v4.2 (Late Aug)
A10 A13 A20 A31 A23 A33 A80
Boot Yes Yes Yes Yes Yes Yes Yes
SMP N/A N/A Yes (PSCI) Yes (PSCI) Yes (PSCI) Yes (PSCI) No
I2C Yes Yes Yes Yes Yes Yes Yes
SPI Yes Yes Yes Yes No (**) No (**) No (**)
USB Host Yes Yes Yes Yes No No Yes
SATA Yes N/A Yes N/A N/A N/A N/A
Ethernet Yes Yes Yes No N/A N/A No
MMC Yes Yes Yes Yes Yes Yes Yes
DMA No No No Yes Yes Yes No
SimpleFB Yes Yes Yes Yes Yes Yes No
Cpufreq Yes Yes Yes Yes No No No
Linux v4.3 (planned)
A10 A13 A20 A31 A23 A33 A80
Boot Yes Yes Yes Yes Yes Yes Yes
SMP N/A N/A Yes (PSCI) Yes (PSCI) Yes (PSCI) Yes (PSCI) No
I2C Yes Yes Yes Yes Yes Yes Yes
SPI Yes Yes Yes Yes No (**) No (**) No (**)
USB Host Yes Yes Yes Yes Yes Yes Yes
SATA Yes N/A Yes N/A N/A N/A N/A
Ethernet Yes Yes Yes No N/A N/A No
MMC Yes Yes Yes Yes Yes Yes Yes
DMA No No No Yes Yes Yes No
SimpleFB Yes Yes Yes Yes Yes Yes No
Cpufreq Yes Yes Yes Yes No No No
Crypto Yes Yes Yes Yes N/A No No
USB OTG Yes Yes Yes Yes Yes Yes No
U-boot Roadmap
U-boot Roadmap
• New SoC support comes in 3 steps:
1. Get u-boot.bin going, this requires uart & mmc
support. This uses Allwinner's boot0 binary to
initialize DRAM and then load u-boot.bin
2. Figure out clock and PMIC initialization, reverse
engineer DRAM init (no docs), replace boot0 with SPL
3. Add support for Ethernet, USB, video out, etc.
U-boot Roadmap
• A80 support
• Step 1 is complete
• Can talk to the PMIC, but there are 2 of them and it is
not clear yet which voltage is hooked up to what
• DRAM controller looks significantly different from
previous models :|
• A83 support
• Docs & Hardware exist
• No one has started work on it
• H3 support WIP
Kernel roadmap
Kernel roadmap
• Real soon now (4.3)
• Hardware crypto engine
• USB OTG
• WIP
• A10 / A13 / A20 Audio codec support
• Raw NAND support
• RSB (Reduced Serial Bus) support
• A80 SMP
• H3 Bring-up
• I2S
• S/PDIF
Kernel roadmap
• Planned
• KMS driver (Boris Brezillon)
• A80 companion ICs (AXP806/AXP809/AC100)
• Open tasks
• http://linux-sunxi.org/Mainlining_Effort#Left_to_be_done
• Support your board
Powered by Allwinner R8
Things to look forward to
• Next Thing Co. pledges Mainline support
• https://www.kickstarter.com/projects/1598272670/chip
-the-worlds-first-9-computer/posts/1247188
• Partnering with Free Electrons (*)
• More or less feature complete kernel by next year
• Display, Audio, Storage, Network
• No 3D, hardware decoding or fancy display
Past Sunxi Talks
• FOSDEM 2014 by Olliver Schinagl
• https://archive.fosdem.org/2014/schedule/event/arm_allwinner_sunxi_socs/
• FOSDEM 2014 by Luc Verhaegen
• https://archive.fosdem.org/2014/schedule/event/sunxi_kms/
• ELC 2014 by Maxime Ripard
• https://lwn.net/Articles/597916/
• OSDC 2014 Lightning Talk by me
• http://www.slideshare.net/wens213/osdc-lightning-talk-sunxi
• FOSDEM 2015 by Hans de Goede
• https://archive.fosdem.org/2015/schedule/event/allwinner_upstream/
• Maybe more…
Questions?
Thank You!
Check out http://linux-sunxi.org/ for more!
1 of 23

Recommended

linux-sunxi - OSDC.tw 2014 Lightning Talk by
linux-sunxi - OSDC.tw 2014 Lightning Talklinux-sunxi - OSDC.tw 2014 Lightning Talk
linux-sunxi - OSDC.tw 2014 Lightning TalkChen-Yu Tsai
1K views17 slides
Kernel Recipes 2014 - Supporting a new ARM platform: the Allwinner example by
Kernel Recipes 2014 - Supporting a new ARM platform: the Allwinner exampleKernel Recipes 2014 - Supporting a new ARM platform: the Allwinner example
Kernel Recipes 2014 - Supporting a new ARM platform: the Allwinner exampleAnne Nicolas
3.1K views36 slides
Allwinner Kernel Upstreaming Experiences by
Allwinner Kernel Upstreaming ExperiencesAllwinner Kernel Upstreaming Experiences
Allwinner Kernel Upstreaming ExperiencesChen-Yu Tsai
830 views38 slides
Kernel Recipes 2017 - The Serial Device Bus - Johan Hovold by
Kernel Recipes 2017 - The Serial Device Bus - Johan HovoldKernel Recipes 2017 - The Serial Device Bus - Johan Hovold
Kernel Recipes 2017 - The Serial Device Bus - Johan HovoldAnne Nicolas
633 views35 slides
Kernel Recipes 2017 - What's inside the input stack? - Benjamain Tissoires by
Kernel Recipes 2017 - What's inside the input stack? - Benjamain TissoiresKernel Recipes 2017 - What's inside the input stack? - Benjamain Tissoires
Kernel Recipes 2017 - What's inside the input stack? - Benjamain TissoiresAnne Nicolas
651 views42 slides
Kernel Recipes 2017 - HDMI CEC: Status Report - Hans Verkuil by
Kernel Recipes 2017 - HDMI CEC: Status Report - Hans VerkuilKernel Recipes 2017 - HDMI CEC: Status Report - Hans Verkuil
Kernel Recipes 2017 - HDMI CEC: Status Report - Hans VerkuilAnne Nicolas
1.1K views28 slides

More Related Content

What's hot

Janus + Audio @ Open Source World by
Janus + Audio @ Open Source WorldJanus + Audio @ Open Source World
Janus + Audio @ Open Source WorldLorenzo Miniero
1K views105 slides
Scaling WebRTC deployments with multicast @ IETF 110 MBONED by
Scaling WebRTC deployments with multicast @ IETF 110 MBONEDScaling WebRTC deployments with multicast @ IETF 110 MBONED
Scaling WebRTC deployments with multicast @ IETF 110 MBONEDLorenzo Miniero
1K views34 slides
Kernel Recipes 2017 - An introduction to the Linux DRM subsystem - Maxime Ripard by
Kernel Recipes 2017 - An introduction to the Linux DRM subsystem - Maxime RipardKernel Recipes 2017 - An introduction to the Linux DRM subsystem - Maxime Ripard
Kernel Recipes 2017 - An introduction to the Linux DRM subsystem - Maxime RipardAnne Nicolas
7.2K views32 slides
Janus Workshop pt.2 @ ClueCon 2021 by
Janus Workshop pt.2 @ ClueCon 2021Janus Workshop pt.2 @ ClueCon 2021
Janus Workshop pt.2 @ ClueCon 2021Lorenzo Miniero
265 views36 slides
WebRTC security+more @ KamailioWorld 2018 by
WebRTC security+more @ KamailioWorld 2018WebRTC security+more @ KamailioWorld 2018
WebRTC security+more @ KamailioWorld 2018Lorenzo Miniero
1.4K views83 slides
WebRTC, Whats in it for me? by
WebRTC, Whats in it for me?WebRTC, Whats in it for me?
WebRTC, Whats in it for me?SeanDuBois3
252 views35 slides

What's hot(20)

Scaling WebRTC deployments with multicast @ IETF 110 MBONED by Lorenzo Miniero
Scaling WebRTC deployments with multicast @ IETF 110 MBONEDScaling WebRTC deployments with multicast @ IETF 110 MBONED
Scaling WebRTC deployments with multicast @ IETF 110 MBONED
Lorenzo Miniero1K views
Kernel Recipes 2017 - An introduction to the Linux DRM subsystem - Maxime Ripard by Anne Nicolas
Kernel Recipes 2017 - An introduction to the Linux DRM subsystem - Maxime RipardKernel Recipes 2017 - An introduction to the Linux DRM subsystem - Maxime Ripard
Kernel Recipes 2017 - An introduction to the Linux DRM subsystem - Maxime Ripard
Anne Nicolas7.2K views
Janus Workshop pt.2 @ ClueCon 2021 by Lorenzo Miniero
Janus Workshop pt.2 @ ClueCon 2021Janus Workshop pt.2 @ ClueCon 2021
Janus Workshop pt.2 @ ClueCon 2021
Lorenzo Miniero265 views
WebRTC security+more @ KamailioWorld 2018 by Lorenzo Miniero
WebRTC security+more @ KamailioWorld 2018WebRTC security+more @ KamailioWorld 2018
WebRTC security+more @ KamailioWorld 2018
Lorenzo Miniero1.4K views
WebRTC, Whats in it for me? by SeanDuBois3
WebRTC, Whats in it for me?WebRTC, Whats in it for me?
WebRTC, Whats in it for me?
SeanDuBois3252 views
Can WebRTC help musicians? @ FOSDEM 2021 by Lorenzo Miniero
Can WebRTC help musicians? @ FOSDEM 2021Can WebRTC help musicians? @ FOSDEM 2021
Can WebRTC help musicians? @ FOSDEM 2021
Lorenzo Miniero523 views
2012 workshop wed_ethernet_servicesoveri_poib by strelecru
2012 workshop wed_ethernet_servicesoveri_poib2012 workshop wed_ethernet_servicesoveri_poib
2012 workshop wed_ethernet_servicesoveri_poib
strelecru725 views
Can SFUs and MCUs be friends @ IIT-RTC 2020 by Lorenzo Miniero
Can SFUs and MCUs be friends @ IIT-RTC 2020Can SFUs and MCUs be friends @ IIT-RTC 2020
Can SFUs and MCUs be friends @ IIT-RTC 2020
Lorenzo Miniero1.1K views
Opening last bits of the infrastructure by Erwan Velu
Opening last bits of the infrastructureOpening last bits of the infrastructure
Opening last bits of the infrastructure
Erwan Velu441 views
Talk@JanusCon2019: Janus, WebRTC and ML - Fantastic technologies and how to m... by Paolo Saviano
Talk@JanusCon2019: Janus, WebRTC and ML - Fantastic technologies and how to m...Talk@JanusCon2019: Janus, WebRTC and ML - Fantastic technologies and how to m...
Talk@JanusCon2019: Janus, WebRTC and ML - Fantastic technologies and how to m...
Paolo Saviano559 views
Raspberry Pi 3 + UART/Bluetooth issues by yeokm1
Raspberry Pi 3 + UART/Bluetooth issuesRaspberry Pi 3 + UART/Bluetooth issues
Raspberry Pi 3 + UART/Bluetooth issues
yeokm1119.7K views
ONIE LinuxCon 2015 by Curt Brune
ONIE LinuxCon 2015ONIE LinuxCon 2015
ONIE LinuxCon 2015
Curt Brune753 views
WHIP WebRTC Broadcasting @ FOSDEM 2022 by Lorenzo Miniero
WHIP WebRTC Broadcasting @ FOSDEM 2022WHIP WebRTC Broadcasting @ FOSDEM 2022
WHIP WebRTC Broadcasting @ FOSDEM 2022
Lorenzo Miniero404 views
LCA14: LCA14-418: Testing a secure framework by Linaro
LCA14: LCA14-418: Testing a secure frameworkLCA14: LCA14-418: Testing a secure framework
LCA14: LCA14-418: Testing a secure framework
Linaro911 views
Embedded Recipes 2019 - Pipewire a new foundation for embedded multimedia by Anne Nicolas
Embedded Recipes 2019 - Pipewire a new foundation for embedded multimediaEmbedded Recipes 2019 - Pipewire a new foundation for embedded multimedia
Embedded Recipes 2019 - Pipewire a new foundation for embedded multimedia
Anne Nicolas1.4K views
BKK16-201 Play Ready OPTEE Integration with Secure Video Path lhg-1 by Linaro
BKK16-201 Play Ready OPTEE Integration with Secure Video Path lhg-1BKK16-201 Play Ready OPTEE Integration with Secure Video Path lhg-1
BKK16-201 Play Ready OPTEE Integration with Secure Video Path lhg-1
Linaro2.8K views
Write a SocialTV app @ OpenSIPS 2021 by Lorenzo Miniero
Write a SocialTV app @ OpenSIPS 2021Write a SocialTV app @ OpenSIPS 2021
Write a SocialTV app @ OpenSIPS 2021
Lorenzo Miniero398 views

Similar to Upstream Allwinner ARM SoC (sunxi) Support

Adding IEEE 802.15.4 and 6LoWPAN to an Embedded Linux Device by
Adding IEEE 802.15.4 and 6LoWPAN to an Embedded Linux DeviceAdding IEEE 802.15.4 and 6LoWPAN to an Embedded Linux Device
Adding IEEE 802.15.4 and 6LoWPAN to an Embedded Linux DeviceSamsung Open Source Group
31.9K views42 slides
Training2 ppt by
Training2 pptTraining2 ppt
Training2 pptBhavya Bakshi
506 views25 slides
Linux-wpan: IEEE 802.15.4 and 6LoWPAN in the Linux Kernel - BUD17-120 by
Linux-wpan: IEEE 802.15.4 and 6LoWPAN in the Linux Kernel - BUD17-120Linux-wpan: IEEE 802.15.4 and 6LoWPAN in the Linux Kernel - BUD17-120
Linux-wpan: IEEE 802.15.4 and 6LoWPAN in the Linux Kernel - BUD17-120Linaro
4.8K views37 slides
LCA14: LCA14-112: Upstreaming 201 by
LCA14: LCA14-112: Upstreaming 201LCA14: LCA14-112: Upstreaming 201
LCA14: LCA14-112: Upstreaming 201Linaro
3.4K views26 slides
Nuevo Portafolio QNAP 2017 by
Nuevo Portafolio QNAP 2017Nuevo Portafolio QNAP 2017
Nuevo Portafolio QNAP 2017Fernando Barrientos
427 views39 slides
PLNOG16: Obsługa 100M pps na platformie PC , Przemysław Frasunek, Paweł Mała... by
PLNOG16: Obsługa 100M pps na platformie PC, Przemysław Frasunek, Paweł Mała...PLNOG16: Obsługa 100M pps na platformie PC, Przemysław Frasunek, Paweł Mała...
PLNOG16: Obsługa 100M pps na platformie PC , Przemysław Frasunek, Paweł Mała...PROIDEA
288 views47 slides

Similar to Upstream Allwinner ARM SoC (sunxi) Support(20)

Linux-wpan: IEEE 802.15.4 and 6LoWPAN in the Linux Kernel - BUD17-120 by Linaro
Linux-wpan: IEEE 802.15.4 and 6LoWPAN in the Linux Kernel - BUD17-120Linux-wpan: IEEE 802.15.4 and 6LoWPAN in the Linux Kernel - BUD17-120
Linux-wpan: IEEE 802.15.4 and 6LoWPAN in the Linux Kernel - BUD17-120
Linaro4.8K views
LCA14: LCA14-112: Upstreaming 201 by Linaro
LCA14: LCA14-112: Upstreaming 201LCA14: LCA14-112: Upstreaming 201
LCA14: LCA14-112: Upstreaming 201
Linaro3.4K views
PLNOG16: Obsługa 100M pps na platformie PC , Przemysław Frasunek, Paweł Mała... by PROIDEA
PLNOG16: Obsługa 100M pps na platformie PC, Przemysław Frasunek, Paweł Mała...PLNOG16: Obsługa 100M pps na platformie PC, Przemysław Frasunek, Paweł Mała...
PLNOG16: Obsługa 100M pps na platformie PC , Przemysław Frasunek, Paweł Mała...
PROIDEA288 views
Practical Guide to Run an IEEE 802.15.4 Network with 6LoWPAN Under Linux by Samsung Open Source Group
Practical Guide to Run an IEEE 802.15.4 Network with 6LoWPAN Under LinuxPractical Guide to Run an IEEE 802.15.4 Network with 6LoWPAN Under Linux
Practical Guide to Run an IEEE 802.15.4 Network with 6LoWPAN Under Linux
Porting_uClinux_CELF2008_Griffin by Peter Griffin
Porting_uClinux_CELF2008_GriffinPorting_uClinux_CELF2008_Griffin
Porting_uClinux_CELF2008_Griffin
Peter Griffin111 views
S5429_LanceBrown by Lance Brown
S5429_LanceBrownS5429_LanceBrown
S5429_LanceBrown
Lance Brown416 views
Tesla Hacking to FreedomEV by Jasper Nuyens
Tesla Hacking to FreedomEVTesla Hacking to FreedomEV
Tesla Hacking to FreedomEV
Jasper Nuyens873 views
LCU14 114- Upstreaming 201 by Linaro
LCU14 114- Upstreaming 201LCU14 114- Upstreaming 201
LCU14 114- Upstreaming 201
Linaro3.9K views
Practical reverse engineering and exploit development for AVR-based Embedded ... by Alexander Bolshev
Practical reverse engineering and exploit development for AVR-based Embedded ...Practical reverse engineering and exploit development for AVR-based Embedded ...
Practical reverse engineering and exploit development for AVR-based Embedded ...
Alexander Bolshev13.9K views
HKG15-902: Upstreaming 201 by Linaro
HKG15-902: Upstreaming 201HKG15-902: Upstreaming 201
HKG15-902: Upstreaming 201
Linaro3.3K views
How to Make an Eight Bit Computer and Save the World! by elliando dias
How to Make an Eight Bit Computer and Save the World!How to Make an Eight Bit Computer and Save the World!
How to Make an Eight Bit Computer and Save the World!
elliando dias1.7K views
44CON 2014 - Stupid PCIe Tricks, Joe Fitzpatrick by 44CON
44CON 2014 - Stupid PCIe Tricks, Joe Fitzpatrick44CON 2014 - Stupid PCIe Tricks, Joe Fitzpatrick
44CON 2014 - Stupid PCIe Tricks, Joe Fitzpatrick
44CON2.7K views

Recently uploaded

Page Object Model by
Page Object ModelPage Object Model
Page Object Modelartembondar5
6 views5 slides
Introduction to Git Source Control by
Introduction to Git Source ControlIntroduction to Git Source Control
Introduction to Git Source ControlJohn Valentino
7 views18 slides
How To Make Your Plans Suck Less — Maarten Dalmijn at the 57th Hands-on Agile... by
How To Make Your Plans Suck Less — Maarten Dalmijn at the 57th Hands-on Agile...How To Make Your Plans Suck Less — Maarten Dalmijn at the 57th Hands-on Agile...
How To Make Your Plans Suck Less — Maarten Dalmijn at the 57th Hands-on Agile...Stefan Wolpers
42 views38 slides
Team Transformation Tactics for Holistic Testing and Quality (Japan Symposium... by
Team Transformation Tactics for Holistic Testing and Quality (Japan Symposium...Team Transformation Tactics for Holistic Testing and Quality (Japan Symposium...
Team Transformation Tactics for Holistic Testing and Quality (Japan Symposium...Lisi Hocke
35 views124 slides
FOSSLight Community Day 2023-11-30 by
FOSSLight Community Day 2023-11-30FOSSLight Community Day 2023-11-30
FOSSLight Community Day 2023-11-30Shane Coughlan
7 views18 slides
predicting-m3-devopsconMunich-2023-v2.pptx by
predicting-m3-devopsconMunich-2023-v2.pptxpredicting-m3-devopsconMunich-2023-v2.pptx
predicting-m3-devopsconMunich-2023-v2.pptxTier1 app
12 views33 slides

Recently uploaded(20)

Introduction to Git Source Control by John Valentino
Introduction to Git Source ControlIntroduction to Git Source Control
Introduction to Git Source Control
John Valentino7 views
How To Make Your Plans Suck Less — Maarten Dalmijn at the 57th Hands-on Agile... by Stefan Wolpers
How To Make Your Plans Suck Less — Maarten Dalmijn at the 57th Hands-on Agile...How To Make Your Plans Suck Less — Maarten Dalmijn at the 57th Hands-on Agile...
How To Make Your Plans Suck Less — Maarten Dalmijn at the 57th Hands-on Agile...
Stefan Wolpers42 views
Team Transformation Tactics for Holistic Testing and Quality (Japan Symposium... by Lisi Hocke
Team Transformation Tactics for Holistic Testing and Quality (Japan Symposium...Team Transformation Tactics for Holistic Testing and Quality (Japan Symposium...
Team Transformation Tactics for Holistic Testing and Quality (Japan Symposium...
Lisi Hocke35 views
FOSSLight Community Day 2023-11-30 by Shane Coughlan
FOSSLight Community Day 2023-11-30FOSSLight Community Day 2023-11-30
FOSSLight Community Day 2023-11-30
Shane Coughlan7 views
predicting-m3-devopsconMunich-2023-v2.pptx by Tier1 app
predicting-m3-devopsconMunich-2023-v2.pptxpredicting-m3-devopsconMunich-2023-v2.pptx
predicting-m3-devopsconMunich-2023-v2.pptx
Tier1 app12 views
Bootstrapping vs Venture Capital.pptx by Zeljko Svedic
Bootstrapping vs Venture Capital.pptxBootstrapping vs Venture Capital.pptx
Bootstrapping vs Venture Capital.pptx
Zeljko Svedic15 views
Dev-HRE-Ops - Addressing the _Last Mile DevOps Challenge_ in Highly Regulated... by TomHalpin9
Dev-HRE-Ops - Addressing the _Last Mile DevOps Challenge_ in Highly Regulated...Dev-HRE-Ops - Addressing the _Last Mile DevOps Challenge_ in Highly Regulated...
Dev-HRE-Ops - Addressing the _Last Mile DevOps Challenge_ in Highly Regulated...
TomHalpin96 views
predicting-m3-devopsconMunich-2023.pptx by Tier1 app
predicting-m3-devopsconMunich-2023.pptxpredicting-m3-devopsconMunich-2023.pptx
predicting-m3-devopsconMunich-2023.pptx
Tier1 app8 views
Automated Testing of Microsoft Power BI Reports by RTTS
Automated Testing of Microsoft Power BI ReportsAutomated Testing of Microsoft Power BI Reports
Automated Testing of Microsoft Power BI Reports
RTTS10 views
AI and Ml presentation .pptx by FayazAli87
AI and Ml presentation .pptxAI and Ml presentation .pptx
AI and Ml presentation .pptx
FayazAli8714 views
Ports-and-Adapters Architecture for Embedded HMI by Burkhard Stubert
Ports-and-Adapters Architecture for Embedded HMIPorts-and-Adapters Architecture for Embedded HMI
Ports-and-Adapters Architecture for Embedded HMI
Burkhard Stubert33 views
360 graden fabriek by info33492
360 graden fabriek360 graden fabriek
360 graden fabriek
info33492165 views
Electronic AWB - Electronic Air Waybill by Freightoscope
Electronic AWB - Electronic Air Waybill Electronic AWB - Electronic Air Waybill
Electronic AWB - Electronic Air Waybill
Freightoscope 5 views
Top-5-production-devconMunich-2023-v2.pptx by Tier1 app
Top-5-production-devconMunich-2023-v2.pptxTop-5-production-devconMunich-2023-v2.pptx
Top-5-production-devconMunich-2023-v2.pptx
Tier1 app8 views
Understanding HTML terminology by artembondar5
Understanding HTML terminologyUnderstanding HTML terminology
Understanding HTML terminology
artembondar57 views

Upstream Allwinner ARM SoC (sunxi) Support

  • 1. Upstream Allwinner ARM SoC Support Chen-Yu Tsai (wens) This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License Original Talk by Hans de Goede: https://archive.fosdem.org/2015/schedule/event/allwinner_upstream/
  • 2. Topics • Allwinner SoCs • U-boot Status • Kernel Status • U-boot Roadmap • Kernel Roadmap
  • 4. Allwinner SoCs A10 A10s/ A13/R8 A20 A23 A31 A33 A80 A83 CPU A8 A8 2x A7 2x A7 4x A7 4x A7 4x A7 + 4x A15 8x A7 GPU Mali400 Mali400 Mali400 Mali400 PowerVR SGX544 Mali400 PowerVR G6320 PowerVR SGX544 SATA Yes No Yes No No No No No Eth Yes Yes (*) Yes No Yes No Yes Yes HDMI Yes Yes (*) Yes No Yes No Yes Yes * A10s only
  • 5. Upstream? • 3.4 kernel is very old • Deprecated • No support for new SoCs • Probably no bugfixes • Upstream has more features • Less maintenance work
  • 7. U-boot Status Feb 2014 u-boot-sunxi Aug 2015 upstream u-boot Upstream No (fork) Yes A10/A13/A20 Yes Yes A23/A31/A33 No Yes A80 No WIP PSCI (hyp / kvm) No A20/A23/A31/A33 Video output No HDMI, LCD, VGA & Composite USB No Host & OTG SATA No Yes Eth Yes Yes MMC Yes Yes NAND No SPL
  • 9. Upstream kernel status • Last year we had only basic support for old SoCs • A10/A10s/A13/A20/A31 • Clocks, interrupts, uart, ethernet • Now we support (4.2) • USB host (OHCI/EHCI), SATA • A23/A33/A31s/A80 SoC, IR, tablet keys • resistive touchscreens, CPUfreq • MMC, proper rootfs • Simplefb, using framebuffer setup by U-boot
  • 10. Linux v3.16 (Aug 2014) A10 A10s/A13 A20 A31 Basic (*) Yes Yes Yes Yes SMP N/A N/A Yes (PSCI) Yes I2C Yes Yes Yes Yes SPI Yes Yes Yes Yes USB Host Yes Yes Yes Yes SATA Yes N/A Yes N/A Ethernet Yes Yes Yes No MMC Yes Yes Yes Yes DMA No No No Yes
  • 11. Linux v4.2 (Late Aug) A10 A13 A20 A31 A23 A33 A80 Boot Yes Yes Yes Yes Yes Yes Yes SMP N/A N/A Yes (PSCI) Yes (PSCI) Yes (PSCI) Yes (PSCI) No I2C Yes Yes Yes Yes Yes Yes Yes SPI Yes Yes Yes Yes No (**) No (**) No (**) USB Host Yes Yes Yes Yes No No Yes SATA Yes N/A Yes N/A N/A N/A N/A Ethernet Yes Yes Yes No N/A N/A No MMC Yes Yes Yes Yes Yes Yes Yes DMA No No No Yes Yes Yes No SimpleFB Yes Yes Yes Yes Yes Yes No Cpufreq Yes Yes Yes Yes No No No
  • 12. Linux v4.3 (planned) A10 A13 A20 A31 A23 A33 A80 Boot Yes Yes Yes Yes Yes Yes Yes SMP N/A N/A Yes (PSCI) Yes (PSCI) Yes (PSCI) Yes (PSCI) No I2C Yes Yes Yes Yes Yes Yes Yes SPI Yes Yes Yes Yes No (**) No (**) No (**) USB Host Yes Yes Yes Yes Yes Yes Yes SATA Yes N/A Yes N/A N/A N/A N/A Ethernet Yes Yes Yes No N/A N/A No MMC Yes Yes Yes Yes Yes Yes Yes DMA No No No Yes Yes Yes No SimpleFB Yes Yes Yes Yes Yes Yes No Cpufreq Yes Yes Yes Yes No No No Crypto Yes Yes Yes Yes N/A No No USB OTG Yes Yes Yes Yes Yes Yes No
  • 14. U-boot Roadmap • New SoC support comes in 3 steps: 1. Get u-boot.bin going, this requires uart & mmc support. This uses Allwinner's boot0 binary to initialize DRAM and then load u-boot.bin 2. Figure out clock and PMIC initialization, reverse engineer DRAM init (no docs), replace boot0 with SPL 3. Add support for Ethernet, USB, video out, etc.
  • 15. U-boot Roadmap • A80 support • Step 1 is complete • Can talk to the PMIC, but there are 2 of them and it is not clear yet which voltage is hooked up to what • DRAM controller looks significantly different from previous models :| • A83 support • Docs & Hardware exist • No one has started work on it • H3 support WIP
  • 17. Kernel roadmap • Real soon now (4.3) • Hardware crypto engine • USB OTG • WIP • A10 / A13 / A20 Audio codec support • Raw NAND support • RSB (Reduced Serial Bus) support • A80 SMP • H3 Bring-up • I2S • S/PDIF
  • 18. Kernel roadmap • Planned • KMS driver (Boris Brezillon) • A80 companion ICs (AXP806/AXP809/AC100) • Open tasks • http://linux-sunxi.org/Mainlining_Effort#Left_to_be_done • Support your board
  • 20. Things to look forward to • Next Thing Co. pledges Mainline support • https://www.kickstarter.com/projects/1598272670/chip -the-worlds-first-9-computer/posts/1247188 • Partnering with Free Electrons (*) • More or less feature complete kernel by next year • Display, Audio, Storage, Network • No 3D, hardware decoding or fancy display
  • 21. Past Sunxi Talks • FOSDEM 2014 by Olliver Schinagl • https://archive.fosdem.org/2014/schedule/event/arm_allwinner_sunxi_socs/ • FOSDEM 2014 by Luc Verhaegen • https://archive.fosdem.org/2014/schedule/event/sunxi_kms/ • ELC 2014 by Maxime Ripard • https://lwn.net/Articles/597916/ • OSDC 2014 Lightning Talk by me • http://www.slideshare.net/wens213/osdc-lightning-talk-sunxi • FOSDEM 2015 by Hans de Goede • https://archive.fosdem.org/2015/schedule/event/allwinner_upstream/ • Maybe more…
  • 23. Thank You! Check out http://linux-sunxi.org/ for more!