Allwinner D1 RISC-V SDK processor and documentation

We published information about Allwinner D1 SBC and its processor a few weeks ago. The news was quite interesting as it is the company’s first RISC-V processor and one of the first affordable RISC-V SBCs.

But all we had at the time was material information from a leak, or rather, developer Allwinner’s website only in China. But now the company has added more information to its open source development website with the release of the documentation, now only in chinese, as well as the Allwinner D1 Tina SDK.

Eventually there should be a better SDK through the linux-sunxi community and some are already working on the Allwinner D1 SBC, but let’s try to get the Allwinner SDK and build the code from source using the documentation.

First of all, you will need to register on the Allwinner open source website and click on register.

You will probably want to select the email recording. Now fill in your username, select a country, enter a company name, password and email address. For the country everything is probably OK, but I would avoid the default (China) in case it sets the interface to Chinese. This is unless you can read Chinese of course!

Now click on the blue button next to the verification code field and you should receive an email with the code. Now accept the terms and conditions (in Chinese only), and check or uncheck the last line to receive (or not) information from Quan Zhi (aka Allwinner).

Allwinner D1 SDK

We now have access to several SDKs and documentations, but the one we are interested in here is D1_Tina_Open. We can click on the text “SDK” and then download it. At this point we are presented with a warning stating that whatever happens is not Allwinner’s responsibility and that you will need to license any third party code yourself.

Allwinner SDK DisclaimerI agreed and got the following basic instructions:

Download the SDK Allwinner D1 Tina V1.0I then clicked on “Create a public key” and inserted the public key of my Ubuntu 20.04 laptop to access the Allwinner repositories.

We don’t need to install the repo startup script from the command as follows:

then edit repo / repo to change the ssh username, for example to cnxsoft

Optionally copy the binary to your path and change the permissions:

We are now ready to get the code:

We can run lunch to choose the minimum image or the full image:

We can install dependencies and start the build.

The build process will take some time, and it’s still going on as I finish this article. The Tina SDK is based on OpenWrt, more precisely OpenWrt 14.07… The SDK also contains the Linux 5.4 kernel source code, drivers, tools, middleware and application packages, as described in the block diagram below.

Functional diagram Allwinner Tina SDK

Source link

Sam D. Gomez