Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docs:techref:hardware:soc:soc.allwinner.d1 [2024/02/26 21:46] – add boards wigyoridocs:techref:hardware:soc:soc.allwinner.d1 [2024/02/26 22:05] (current) – [Allwinner D1 (sun20i)] wigyori
Line 4: Line 4:
  
 Allwinner D1 (sun20i, also known as D1-H) is the first SoC of Allwinner which is based on a RISC-V core. D1 features single RV64GCV core XuanTie C906 from T-Head Semiconductor (subsidiary of Alibaba) and an additional 600 MHz Tensilica HiFi4 DSP. Allwinner D1 (sun20i, also known as D1-H) is the first SoC of Allwinner which is based on a RISC-V core. D1 features single RV64GCV core XuanTie C906 from T-Head Semiconductor (subsidiary of Alibaba) and an additional 600 MHz Tensilica HiFi4 DSP.
 +
 +Peripherals and devices mostly match the sunxi H3 board's ones, as the same IP blocks are being used. Supporting them is generally adding new compatibles into the drivers and a few quirks.
  
 ==== Status ==== ==== Status ====
  
-Port status: https://github.com/openwrt/openwrt/pull/12845+   Port status: https://github.com/openwrt/openwrt/pull/12845 
 +   * Official doc site: https://d1.docs.aw-ol.com/
  
 ==== Hardware Highlights ==== ==== Hardware Highlights ====
  
 ^ Model ^ RAM ^ [[docs:techref:flash.layout|Storage]] ^ Network ^ USB ^ [[docs:techref:hardware:port.serial|Serial]] ^ [[docs:techref:hardware:port.jtag|JTAG]] ^ [[wp>UEXT]] ^ Other ^ linux-sunxi page ^ ^ Model ^ RAM ^ [[docs:techref:flash.layout|Storage]] ^ Network ^ USB ^ [[docs:techref:hardware:port.serial|Serial]] ^ [[docs:techref:hardware:port.jtag|JTAG]] ^ [[wp>UEXT]] ^ Other ^ linux-sunxi page ^
-| [[toh:allwinner:nezha|Nezha D1]] | 512MiB/1GiB/2GiB DDR3 | μSD | Gigabit Ethernet | 1x USB2 | yes | n/a | n/a | HDMI, audio, CSI | [[https://linux-sunxi.org/Allwinner_Nezha|Page]] | +| [[toh:allwinner:nezha|Nezha D1]] | 512MiB/1GiB/2GiB DDR3 | μSD, 256Mb NAND | Gigabit Ethernet | 1x USB2 | yes | n/a | n/a | HDMI, audio, CSI | [[https://linux-sunxi.org/Allwinner_Nezha|Page]] | 
-| [[toh:sinovoip:banana_pi_m2_plus|BananaPi M2 Plus]] | 1024MiB | μSD, 8GB eMMC | Gigabit Ethernet, Ampak AP6212 2x USB21x USB OTG | yes | n/a | n/a | HDMI, IRGPIOCSI | [[http://linux-+| [[toh:dongshanpi:nezha_stu|DongshanPi Nezha STU]] | 512MiB | μSD | Gigabit Ethernet | - | yes | n/a | n/a | HDMI2x20 GPIO [[https://linux-sunxi.org/DongshanPi_Nezha_STU|Page]] | 
 +| [[toh:mangopi:mq_pro|MangoPi MQ-Pro]] | 512MiB/1GiB | μSDoptional SPI flash | RTL8723 | - | yes | n/a | n/a | HDMI, I2Sadditional dock | [[https://linux-sunxi.org/MangoPi_MQ-Pro|Page]] | 
 +| [[toh:sipeed:licheepi_rv|Sipeed LicheePi RV]] | 512MiB | μSD | RTL8723 | - | yes | n/a | n/a | HDMIadditional dock | [[https://linux-sunxi.org/Sipeed_Lichee_RV|Page]] | 
 + 
 +===== Installing OpenWrt ===== 
 + 
 +Standard SD-card installation via dd-ing the generated image to an SD-card of at least 256Mb. 
 + 
 +===== Upgrading OpenWrt ===== 
 +->[[docs:guide-user:installation:generic.sysupgrade]] 
 + 
 +sysupgrade works out of the box, using (at least) the ext4-sdcard.img.gz files. 
 + 
 + 
 +==== Pre-built release and snapshot images ==== 
 +++++ OpenWrt firmware downloads for d1| 
 +<!-- ToH: { 
 +  "source": "json", 
 +  "dom": "t", 
 +  "paging": false, 
 +  "shownColumns": ["brand", "model", "version", "supportedcurrentrel", "unsupported_functions", "cpu", "target", "subtarget", "firmwareopenwrtinstallurl", "firmwareopenwrtsnapshotinstallurl", "deviceid"], 
 +  "filterColumns": {"target": "^d1$"
 +} --> 
 +++++ 
 + 
 + 
 + 
 +===== Boot process ===== 
 + 
 +(Credits goes to the https://linux-sunxi.org/Allwinner_Nezha page) 
 + 
 +==== U-Boot ==== 
 + 
 +Boot firmware on the D1 consists of three parts, which largely correspond to the components used by 64-bit ARM SoCs: 
 + 
 +U-Boot SPL (Secondary Program Loader) which is responsible for initializing DRAM and loading further firmware from storage. 
 +OpenSBI, which runs in machine mode and provides a standard "SBI" interface to less privileged modes. This is similar to how TF-A runs in EL3 and provides PSCI on 64-bit ARM. 
 +U-Boot proper, which initializes additional hardware and loads Linux from storage or the network. 
 + 
 +==== OpenSBI ==== 
 + 
 +Mainline OpenSBI fully supports the C906 CPU and the Allwinner D1 SoC out of the box since version 1.1. You should use upstream OpenSBI, not any fork. 
 + 
 +==== Mainline U-Boot ==== 
 + 
 +Mainline U-Boot support is mostly complete, but is not merged yet. Booting Linux from the network, USB, and an SD card works. Some refactoring of the various sunxi device drivers is still needed before any RISC-V sunxi platforms can be upstreamed. Full U-Boot SPL support is available, so using the BSP boot0 or a TOC1 image is no longer necessary.
  
  
  
  • Last modified: 2024/02/26 21:46
  • by wigyori