Tina Compilation Introduction
Tina编译介绍
1.Environment setup
环境搭建
I am using the release version of ubuntu16.04. Other Linux distributions should also be able to compile, but you need to solve the errors in the compilation process yourself. Common causes of errors are lack of libraries, environment variable errors, and so on. Can be solved through google.
我使用的是ubuntu16.04的发行版本。其他的Linux发行版本应该也可以通过编译,但是需要自己解决编译过程中的错误。一般的错误原因都是库缺少,环境变量错误等等。都可以通过google解决。
2.Download Source Package
下载源码包
The file name of the source package is r16_tina.tar.bz2
源码包的文件文件名是r16_tina.tar.bz2
3.Unzip the source package
解压源码包
tar -jxvf r16_tina.tar.bz2
After the decompression is complete, there will be a directory named tinaV2.1.
解压完成后会有一个名为tinaV2.1 的目录。
4.Compile
编译
4.1 Set platform information and environment variables
设置平台信息以及环境变量
cd ~/tinaV2.1
source build/envsetup.sh
lunch astar_parrot-tina
4.2 Configure kernel parameters
配置内核参数
make kernel_menuconfig
Under normal circumstances, I do not need to make changes. Just exit and generate the .config configuration file.
一般情况下,我是不需要做修改的。直接退出生成.config配置文件就行了。
4.3 Configure tina parameters
配置tina的参数
make menuconfig
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-n2FG9Xk7-1598404323190)(C:\Users\Administrator\Desktop\图片素材\menuconfig.jpg)]
You can add the packages you need here, as well as the drivers and applications you write.
你可以在这里添加你需要的包,以及你写的驱动和应用程序。
4.4 Start Compile
开始编译
make
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-CHrXfHKe-1598404323192)(C:\Users\Administrator\Desktop\图片素材\compile-complete.jpg)]
Other compilation instructions
其他的编译指令
make -j1 //Use single-core compilation 采用单核的编译方式
make -j8 //Using 8-core compilation method 采用8核的编译方式
make V=s //Show all the details during compilation 显示在编译过程中的所有细节
When compiling for the first time, it is recommended to use single-core compilation.This can avoid some unnecessary errors.
第一次编译的时候,建议使用单核的编译方式.这样可以避免一些不必要的错误。
4.5 Compile U-boot
编译U-boot
cd /home/book/R16/tinaV2.1/lichee/brandy/u-boot-2011.09
make distclean
make sun8iw5p1_config
make
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-kC2hAwyJ-1598404323196)(C:\Users\Administrator\Desktop\图片素材\compile-complete.jpg)]
5.Pack
打包
pack
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-trcZkpOA-1598404323197)(C:\Users\Administrator\Desktop\图片素材\pack.jpg)]
The generated .img file is used to burn into R16.
pack
[外链图片转存中…(img-trcZkpOA-1598404323197)]
The generated .img file is used to burn into R16.
生成的.img文件用于烧录到R16中。