当前位置:网站首页>D1-h development board - Introduction to Nezha development
D1-h development board - Introduction to Nezha development
2022-07-23 22:31:00 【InfoQ】
Background
repo2 Tina Linux System introduction


3 Introduction to development
3.1 Source download
3.1.1 The official website of Quanzhi customer service platform :
Quanzhi customer service platform
register .
- Upload public key
- install repo Boot script
- Download code
3.1.2 Upload public key
ssh-keygen~/.ssh/
- Public and private key files must be saved , Can't delete . It is best to back up these two files , It can be recovered in case of accidental deletion .
- When the customer downloads the code , If the command line is preceded by
sudo, Then the command to generate the public key ssh-keygen front Noodles should also be added sudo( That is, either add sudo, Or not at all , Must be consistent ).
3.1.3 install repo Boot script
- Download and install from Quanzhi server repo Boot script , take username Replace with the user name of the customer's download account
$ git clone ssh://[email protected]/git_repo/repo.git- modify
repo/repo The next line in the file , take username Replace with the user name of the customer's download account
REPO_URL='ssh://[email protected]/git_repo/repo.git'- hold repo Add the boot script to your computer environment variable
$ cp repo/repo /usr/bin/repo$ chmod 777 /usr/bin/repo3.1.4 The code download
$ mkdir tina-d1-h$ cd tina-d1-h$ python2.7 /usr/bin/repo init -u ssh://<username>@sdk.allwinnertech.com/git_repo/D1_Tina_Open/manifest.git -b master -m tina-d1-h.xml$ python2.7 /usr/bin/repo sync$ python2.7 /usr/bin/repo start product-smartx-d1-h-tina-stable-v2.0 --all # After the download is complete , Create a branch 3.2 Compile environment configuration
$ sudo apt-get update$ sudo apt-get install build-essential subversion git-core libncurses5-dev zlib1g-dev gawk flex quilt libssl-dev xsltproc libxml-parser-perl mercurial bzr ecj cvs unzip lib32z1 lib32z1-dev lib32stdc++6 libstdc++6 -y$ sudo apt-get install libc6-i386 libstdc++6-i386-cross lib32ncurses6 lib32z1 -y3.3 Compile and burn
3.3.1 compile
source build/envsetup.shlunch d1_nezha-tinamake -j32packsource build/envsetup.sh : Get environment variables
lunch d1_nezha-tina choice d1_nezha-tina programme , You can also directly lunch, There will be options to choose , among lunch d1_nezha-tina yes d1_nezha-tina The standard solution for ,lunch d1_nezha_min-tina It is the smallest system solution that can only make the system run .
make -j32 : compile , among -j The following numerical parameters are the number of threads used for compilation , It can be compiled according to the developer PC Choose... According to the actual situation .
pack : pack , Package the compiled firmware into a .img Format firmware , Firmware path /out/d1_nezha-tina/tina_d1-nezha_uart0.img.
3.3.2 burning

3.4 Introduction to development board hardware


3.5 Compile the first program :Hello World
hello_world.c#include <stdio.h>int main(int argc, char const *argv[]){ printf("Hello NeZha\n"); return 0;}./prebuilt/gcc/linux-x86/riscv/toolchain-thead-glibc/riscv64-glibc-gcc-thead_20200702/bin/riscv64-unknown-linux-gnu-gcc -o hello_world hello_world.c- ADB Tools
- nfs Mount file system
- Use SD Card mount
$ adb push hello_world ./
3.6 USB Take pictures with the camera Demo


4 Reference documents
- D1-H Chip introduction
- D1_SDK_Howto
- ADB Download - Get the latest version of ADB and fastboot
边栏推荐
- TreeMap
- The font of Siyuan notes is thinner and lighter than that in other editors (atom, VSC, sublime)
- Use of [golang learning notes] package
- Memory search - DP
- 达梦数据库tools包中的工具(操作达梦数据库)
- 【golang学习笔记】Go语言中参数的传递是值传递还是引用传递
- Preliminary discussion on POC compilation
- 如何徹底强制殺死後臺無關進程?
- JS - event proxy and application scenarios
- 疯狂的牛市,下半场何去何从?2021-04-30
猜你喜欢

Microsoft SQL Server database language and function usage (XIII)

Crazy bull market, where to go in the second half? 2021-04-30

作为开发,你不得不知道的三个性能测试工具|Jmeter、Apipost、JMH使用指南

ospf终极实验——学会ospf世纪模板例题

狂神redis笔记10

Preliminary discussion on POC compilation

Neo4j application

Golang invalid argument to INTN

D2admin framework is basically used

Still worrying about xshell cracking, try tabby
随机推荐
如何徹底强制殺死後臺無關進程?
【golang学习笔记】Go语言中参数的传递是值传递还是引用传递
除了钱,创业者还需要什么?专访明月湖创赛创投机构
121. The best time to buy and sell stocks
接口测试
Programming in the novel [serial 20] the moon bends in the yuan universe
Application of performance test knowledge to actual combat
[problem handling] merge made by the 'ort' strategy
Programmation JDBC pour MySQL
为了一劳永逸而写的数独
MySQL的JDBC编程
Linked list - 203. remove linked list elements
多线程问题:为什么不应该使用多线程读写同一个socket连接?
狂神redis笔记10
Preliminary discussion on POC compilation
【golang学习笔记】flag包的简单使用,命令行解析
D2admin framework is basically used
Leetcode high frequency question 62. different paths: how many paths does the robot have from the upper left corner to the lower right corner? Pure probability permutation and combination problem, not
ADB 命令结合 monkey 的简单使用,超详细
STM32单片机使用ADC功能驱动手指检测心跳模块