概述
基本思想:收到了全志的R329开发板,主要是太忙了,没时间搞,今天调休,逐搞一下~
(1) 参考github说明: https://github.com/sipeed/R329-Tina-jishu
系统是ubuntu18.04 新建,然后进行编译R329系统的镜像文件img
ubuntu@ubuntu:~$ sudo apt-get install libncurses5-dev libssl-dev gawk python2 gcc g++ cmake make zlib1g-dev git build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 python2.7 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget curl swig rsync intltool busybox
ubuntu@ubuntu:~$ git clone https://github.com/sipeed/R329-Tina-jishu
ubuntu@ubuntu:~$ cd R329-Tina-jishu
ubuntu@ubuntu:~/R329-Tina-jishu$ git submodule update --init --recursive
正克隆到 'package'...
remote: Enumerating objects: 18730, done.
remote: Counting objects: 100% (11/11), done.
remote: Compressing objects: 100% (9/9), done.
......
remote: Enumerating objects: 504, done.
remote: Counting objects: 100% (504/504), done.
remote: Compressing objects: 100% (419/419), done.
remote: Total 504 (delta 52), reused 504 (delta 52), pack-reused 0
接收对象中: 100% (504/504), 19.12 MiB | 955.00 KiB/s, 完成.
处理 delta 中: 100% (52/52), 完成.
检查连接... 完成。
子模组路径 'tools':检出 '4228d9d95408e99730cb14ab5e6970c85b1287cc'
ubuntu@ubuntu:~/R329-Tina-jishu$ source build/envsetup.sh
Setup env done! Please run lunch next.
ubuntu@ubuntu:~/R329-Tina-jishu$ lunch r329_evb5-tina
============================================
TINA_BUILD_TOP=/home/ubuntu/R329-Tina-jishu
TINA_TARGET_ARCH=aarch64
TARGET_PRODUCT=r329_evb5
TARGET_PLATFORM=r329
TARGET_BOARD=r329-evb5
TARGET_PLAN=evb5
TARGET_BUILD_VARIANT=tina
TARGET_BUILD_TYPE=release
TARGET_KERNEL_VERSION=4.9
TARGET_UBOOT=u-boot-2018
TARGET_CHIP=sun50iw11p1
============================================
ubuntu@ubuntu:~/R329-Tina-jishu$ make -j32 #最好单线城编译
编译过程中遇到
&& FB_ARMCLCD && FB_MX3 && LCD_FB && USB_APPLEDISPLAY && FB_OLPC_DCON && ACPI_CMPC && SAMSUNG_Q10) selects BACKLIGHT_CLASS_DEVICE which has unmet direct dependencies (HAS_IOMEM && BACKLIGHT_LCD_SUPPORT)
*
* Restart config...
*
*
* V4L platform devices
*
V4L platform devices (V4L_PLATFORM_DRIVERS) [Y/n/?] y
SoC camera support (SOC_CAMERA) [N/m/y/?] n
eve (VIDEO_SUNXI_EVE) [N/m/y] (NEW) sunxi video input (camera csi/mipi isp vipp)driver (VIDEO_SUNXI_VIN) [N/m/y] (NEW)
感觉有问题啊,不应该使用默认配置吗?还需要我选择?不符合编译内核过程啊,难道因为我没执行make memconfig 重新搞一下,使用gitee拉取代码。github 太难了~~~~
(2)先把R329-Tina-jishu fork到自己的gitee中
ubuntu@ubuntu:~$ git clone https://gitee.com/sxj7315337300/R329-Tina-jishu.git
Cloning into 'R329-Tina-jishu'...
Username for 'https://gitee.com': 15069165433
Password for 'https://15069165433@gitee.com':
remote: Enumerating objects: 223, done.
remote: Counting objects: 100% (223/223), done.
remote: Compressing objects: 100% (137/137), done.
remote: Total 223 (delta 63), reused 223 (delta 63), pack-reused 0
Receiving objects: 100% (223/223), 103.98 MiB | 718.00 KiB/s, done.
Resolving deltas: 100% (63/63), done.
Updating files: 100% (136/136), done.
ubuntu@ubuntu:~$ cd R329-Tina-jishu/
因为需要执行 git submodule update --init --recursive ,所以修改一下 submodule 文件,将其内部地址都forK到gitee路径,将submodule 地址的github工程也fork过来
ubuntu@ubuntu:~/R329-Tina-jishu$ ls -a
. config dl .gitmodules package rules.mk toolchain
.. Config.in .git lichee prebuilt scripts tools
build device .gitignore Makefile README.md target
把github的工程fork到gitee中,修改一下地址,在执行 git submodule update --init --recursive
ubuntu@ubuntu:~/R329-Tina-jishu$ cat .gitmodules
[submodule "lichee/linux-4.9"]
path = lichee/linux-4.9
#url = https://github.com/sipeed/r329-linux-4.9.git
url = git@gitee.com:sxj7315337300/r329-linux-4.9.git
[submodule "build"]
path = build
# url = https://e.coding.net/sipeed_ai/r329/build.git
url = git@gitee.com:sxj7315337300/build.git
[submodule "config"]
path = config
#url = https://e.coding.net/sipeed_ai/r329/config.git
url = git@gitee.com:sxj7315337300/config.git
[submodule "prebuilt"]
path = prebuilt
#url = https://e.coding.net/sipeed_ai/r329/prebuilt.git
url = git@gitee.com:sxj7315337300/prebuilt.git
[submodule "scripts"]
path = scripts
#url = https://e.coding.net/sipeed_ai/r329/scripts.git
url= git@gitee.com:sxj7315337300/scripts.git
[submodule "target"]
path = target
#url = https://github.com/sipeed/r329-target.git
url= git@gitee.com:sxj7315337300/r329-target.git
[submodule "toolchain"]
path = toolchain
#url = https://e.coding.net/sipeed_ai/r329/toolchain.git
url = git@gitee.com:sxj7315337300/toolchain.git
[submodule "package"]
path = package
#url = https://github.com/sipeed/r329-package.git
url = git@gitee.com:sxj7315337300/r329-package.git
[submodule "tools"]
path = tools
#url = https://e.coding.net/sipeed_ai/r329/tools.git
url = git@gitee.com:sxj7315337300/tools.git
[submodule "dl"]
path = dl
#url = https://e.coding.net/sipeed_ai/r329/dl.git
url = git@gitee.com:sxj7315337300/dl.git
[submodule "lichee/brandy-2.0"]
path = lichee/brandy-2.0
#url = https://e.coding.net/sipeed_ai/r329/brandy-2.0.git
url = git@gitee.com:sxj7315337300/brandy-2.0.git
这是我的整个执行过程
ubuntu@ubuntu:~$ git clone git@gitee.com:sxj7315337300/R329-Tina-jishu.git
Cloning into 'R329-Tina-jishu'...
remote: Enumerating objects: 223, done.
remote: Counting objects: 100% (223/223), done.
remote: Compressing objects: 100% (137/137), done.
remote: Total 223 (delta 63), reused 223 (delta 63), pack-reused 0
Receiving objects: 100% (223/223), 103.98 MiB | 9.63 MiB/s, done.
Resolving deltas: 100% (63/63), done.
ubuntu@ubuntu:~$ cd R329-Tina-jishu/
ubuntu@ubuntu:~/R329-Tina-jishu$ gedit .gitmodules
ubuntu@ubuntu:~/R329-Tina-jishu$ git submodule update --init --recursive
Submodule 'build' (git@gitee.com:sxj7315337300/build.git) registered for path 'build'
Submodule 'config' (git@gitee.com:sxj7315337300/config.git) registered for path 'config'
Submodule 'dl' (git@gitee.com:sxj7315337300/dl.git) registered for path 'dl'
Submodule 'lichee/brandy-2.0' (git@gitee.com:sxj7315337300/brandy-2.0.git) registered for path 'lichee/brandy-2.0'
Submodule 'lichee/linux-4.9' (git@gitee.com:sxj7315337300/r329-linux-4.9.git) registered for path 'lichee/linux-4.9'
Submodule 'package' (git@gitee.com:sxj7315337300/r329-package.git) registered for path 'package'
Submodule 'prebuilt' (git@gitee.com:sxj7315337300/prebuilt.git) registered for path 'prebuilt'
Submodule 'scripts' (git@gitee.com:sxj7315337300/scripts.git) registered for path 'scripts'
Submodule 'target' (git@gitee.com:sxj7315337300/r329-target.git) registered for path 'target'
Submodule 'toolchain' (git@gitee.com:sxj7315337300/toolchain.git) registered for path 'toolchain'
Submodule 'tools' (git@gitee.com:sxj7315337300/tools.git) registered for path 'tools'
Cloning into '/home/ubuntu/R329-Tina-jishu/build'...
Cloning into '/home/ubuntu/R329-Tina-jishu/config'...
Cloning into '/home/ubuntu/R329-Tina-jishu/dl'...
Cloning into '/home/ubuntu/R329-Tina-jishu/lichee/brandy-2.0'...
Cloning into '/home/ubuntu/R329-Tina-jishu/lichee/linux-4.9'...
Cloning into '/home/ubuntu/R329-Tina-jishu/package'...
Cloning into '/home/ubuntu/R329-Tina-jishu/prebuilt'...
Cloning into '/home/ubuntu/R329-Tina-jishu/scripts'...
Cloning into '/home/ubuntu/R329-Tina-jishu/target'...
Cloning into '/home/ubuntu/R329-Tina-jishu/toolchain'...
Cloning into '/home/ubuntu/R329-Tina-jishu/tools'...
Submodule path 'build': checked out '9ac1d53f550113f67b1c2902bc5049cf7bd48474'
Submodule path 'config': checked out '703ca1b44135c36aeec2a7ae315188f06aa1ea8e'
Submodule path 'dl': checked out '4b3d47f66c400612604125d582602b82e9b2d30b'
Submodule path 'lichee/brandy-2.0': checked out 'f9777e4d754b81d4b256ce4255463ce976411b08'
Submodule path 'lichee/linux-4.9': checked out '706f65057a3ea4d968d849f7c05fcfb913db5767'
Submodule path 'package': checked out 'c2260033501a14a18ad8dc5d84ef461a4c9ac826'
Submodule path 'prebuilt': checked out '91e55a1287f0c4b85b511d3d507c209eec661ce3'
Submodule path 'scripts': checked out '18c02081caef2a4f9b5491b7fe4d866aeabd51b6'
Submodule path 'target': checked out '3225ebdd0ffff76e927b585ff7ced7aea3469b67'
Submodule path 'toolchain': checked out '5ee02ba23449478aa9e2b605095fb2b9b880fb9f'
Submodule path 'tools': checked out '4228d9d95408e99730cb14ab5e6970c85b1287cc
然后进行编译源码
ubuntu@ubuntu:~/R329-Tina-jishu$ source build/envsetup.sh
Setup env done! Please run lunch next.
ubuntu@ubuntu:~/R329-Tina-jishu$ lunch r329_evb5-tina
============================================
TINA_BUILD_TOP=/home/ubuntu/R329-Tina-jishu
TINA_TARGET_ARCH=aarch64
TARGET_PRODUCT=r329_evb5
TARGET_PLATFORM=r329
TARGET_BOARD=r329-evb5
TARGET_PLAN=evb5
TARGET_BUILD_VARIANT=tina
TARGET_BUILD_TYPE=release
TARGET_KERNEL_VERSION=4.9
TARGET_UBOOT=u-boot-2018
TARGET_CHIP=sun50iw11p1
============================================
ubuntu@ubuntu:~/R329-Tina-jishu$ make memconfig # 选保存 然后退出就行 什么也不要动
ubuntu@ubuntu:~/R329-Tina-jishu$ make -j32
ubuntu@ubuntu:~/R329-Tina-jishu$ pack
编译有问题 需要自己选择配置,不知道选啥 或许看手册可以根据硬件架构选择,但是不应该默认生成r329_evb5 配置吗????
查.config文件来生成过程,然r329_evb5并未在库中发现,并没有对应开发板的target~
ubuntu@ubuntu:~/R329-Tina-jishu$ ls -al target/allwinner/
total 36
drwxr-xr-x 6 ubuntu ubuntu 4096 Aug 16 22:13 .
drwxr-xr-x 6 ubuntu ubuntu 4096 Aug 16 22:13 ..
drwxr-xr-x 10 ubuntu ubuntu 4096 Aug 16 22:13 generic
-rw-r--r-- 1 ubuntu ubuntu 898 Aug 16 22:13 .gitignore
-rw-r--r-- 1 ubuntu ubuntu 407 Aug 16 22:13 Makefile
drwxr-xr-x 3 ubuntu ubuntu 4096 Aug 16 22:13 r329-common
drwxr-xr-x 5 ubuntu ubuntu 4096 Aug 16 22:13 r329-evb5
drwxr-xr-x 5 ubuntu ubuntu 4096 Aug 16 22:13 r329-evb5_min
-rw-r--r-- 1 ubuntu ubuntu 267 Aug 16 22:13 .standard
ubuntu@ubuntu:~/R329-Tina-jishu$ ls -al target/allwinner/
(3)、最后被大佬们劝退了·~ 哎 先用官方提供的ARMBIAN镜像吧、
链接: https://pan.baidu.com/s/1d7orzJ-W5JbKhVPgjouM4A 提取码: dgtk
然后参考:R329开发板教程之四|Debian系统初体验 - 极术社区 - 连接 AIoT 开发者与生态服务
使用Win32 Disk Imager download | SourceForge.net
https://nchc.dl.sourceforge.net/project/win32diskimager/Archive/win32diskimager-1.0.0-install.exe
未完待续 20210816
最后
以上就是辛勤金鱼为你收集整理的22、R329刷机受阻和测试仿真环境demo的全部内容,希望文章能够帮你解决22、R329刷机受阻和测试仿真环境demo所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复