We published information about Allwinner D1 SBC and processor a few weeks ago. The news was pretty interesting as it’s the first RISC-V processor from the company, and one of the first affordable RISC-V SBC.
But all we had at the time was hardware information from a leak, or rather from China-only Allwinner developer website. But now the company has added more information to its open-source development website with the release of documentation, now only in Chinese, as well as the Allwinner D1 Tina SDK.
Eventually, there should be a better SDK via linux-sunxi community and some are already working on the Allwinner D1 SBC, but let’s try to get the SDK from Allwinner and build the code from source using the documentation.
First, you’d need to register on Allwinner open-source website and click on signup.
You’ll probably want to select Email registration. Now fill your username, select a country, enter a company name, password, and email. For the country, anything is probably OK, but I’d avoid the default (China) just in case it sets the interface in Chinese. That 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 tick or untick the last line to receive information (or not) from Quan Zhi (aka Allwinner).
We now have access to several SDK’s and documentation, but the one that interests us here is D1_Tina_Open. We can click on the “SDK” text and then download it. At this point, we are presented with a disclaimer saying that whatever happens is not Allwinner’s responsibility, and you’d have to handle the license for any third-party code yourself.
We should not install the repo boot script from the command as follows:
git clone ssh://[email protected]/git_repo/repo.git
then edit repo/repo to change to the ssh username, e.g. to cnxsoft
# repo default configuration
REPO_URL = 'ssh://[email protected]/git_repo/repo.git'
REPO_REV = 'master'
Optionally copy the binary to your path and change the permissions:
sudo cp repo/repo /usr/bin/repo
sudo chmod 555 /usr/bin/repo
repo init -u ssh://[email protected]/git_repo/D1_Tina_Open/manifest.git -b master -m tina-d1-open.xml
repo start product-smartx-d1-tina-v1.0-release --all
We can run lunch to pick either the minimal image or the full image:
You're building on Linux
Lunch menu... pick a combo:
Which would you like?: 2
We can install some dependencies and start the build.
sudo apt install build-essential ncurses-dev libssl-dev
The build process will take a while, and it’s still running as I’m completing this article. The Tina SDK is based on OpenWrt, more specifically OpenWrt 14.07… The software development kit also contains the Linux 5.4 kernel source code, drivers, tools, middleware, and application packages as described in the block diagtam below.