首页 > 其他分享 >22、R329刷机受阻和测试仿真环境demo

22、R329刷机受阻和测试仿真环境demo

时间:2022-09-28 11:34:27浏览次数:77  
标签:git 22 demo R329 jishu Tina ubuntu path


基本思想:收到了全志的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://[email protected]':
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 = [email protected]:sxj7315337300/r329-linux-4.9.git
[submodule "build"]
path = build
# url = https://e.coding.net/sipeed_ai/r329/build.git
url = [email protected]:sxj7315337300/build.git
[submodule "config"]
path = config
#url = https://e.coding.net/sipeed_ai/r329/config.git
url = [email protected]:sxj7315337300/config.git
[submodule "prebuilt"]
path = prebuilt
#url = https://e.coding.net/sipeed_ai/r329/prebuilt.git
url = [email protected]:sxj7315337300/prebuilt.git
[submodule "scripts"]
path = scripts
#url = https://e.coding.net/sipeed_ai/r329/scripts.git
url= [email protected]:sxj7315337300/scripts.git
[submodule "target"]
path = target
#url = https://github.com/sipeed/r329-target.git
url= [email protected]:sxj7315337300/r329-target.git
[submodule "toolchain"]
path = toolchain
#url = https://e.coding.net/sipeed_ai/r329/toolchain.git
url = [email protected]:sxj7315337300/toolchain.git
[submodule "package"]
path = package
#url = https://github.com/sipeed/r329-package.git
url = [email protected]:sxj7315337300/r329-package.git
[submodule "tools"]
path = tools
#url = https://e.coding.net/sipeed_ai/r329/tools.git
url = [email protected]:sxj7315337300/tools.git
[submodule "dl"]
path = dl
#url = https://e.coding.net/sipeed_ai/r329/dl.git
url = [email protected]: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 = [email protected]:sxj7315337300/brandy-2.0.git

这是我的整个执行过程

ubuntu@ubuntu:~$ git clone [email protected]: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' ([email protected]:sxj7315337300/build.git) registered for path 'build'
Submodule 'config' ([email protected]:sxj7315337300/config.git) registered for path 'config'
Submodule 'dl' ([email protected]:sxj7315337300/dl.git) registered for path 'dl'
Submodule 'lichee/brandy-2.0' ([email protected]:sxj7315337300/brandy-2.0.git) registered for path 'lichee/brandy-2.0'
Submodule 'lichee/linux-4.9' ([email protected]:sxj7315337300/r329-linux-4.9.git) registered for path 'lichee/linux-4.9'
Submodule 'package' ([email protected]:sxj7315337300/r329-package.git) registered for path 'package'
Submodule 'prebuilt' ([email protected]:sxj7315337300/prebuilt.git) registered for path 'prebuilt'
Submodule 'scripts' ([email protected]:sxj7315337300/scripts.git) registered for path 'scripts'
Submodule 'target' ([email protected]:sxj7315337300/r329-target.git) registered for path 'target'
Submodule 'toolchain' ([email protected]:sxj7315337300/toolchain.git) registered for path 'toolchain'
Submodule 'tools' ([email protected]: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 配置吗????

22、R329刷机受阻和测试仿真环境demo_git

22、R329刷机受阻和测试仿真环境demo_git_02

查.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

 

22、R329刷机受阻和测试仿真环境demo_ubuntu_03

22、R329刷机受阻和测试仿真环境demo_git_04

未完待续 20210816

标签:git,22,demo,R329,jishu,Tina,ubuntu,path
From: https://blog.51cto.com/u_12504263/5719077

相关文章

  • 2022杭电多校1
    1002Dragonslayer题目大意:给出一张的网格地图,给出起点和终点(均为方格的正中心),其中地图中有面墙阻隔了道路,每面墙都在网格线上并保证墙横平竖直,以线段端点的形式给,问......
  • 开学总动员!2022华为开发者大赛等你来挑战!
    摘要:9月23日开启2022华为开发者大赛“开学季总动员”主题直播活动。金秋开学季,为了吸引更多高校开发者关注与参与华为开发者大赛,华为于9月23日开启2022华为开发者大赛“开......
  • Ubuntu22.04 Windows10安装netifaces失败的问题
    执行命令pipinstall-ihttp://pypi.douban.com/simple/--trusted-host=pypi.douban.com/simplesyfthagrid来安装pysyft和hagrid,但是卡在了netifaces上,重新pipinstall......
  • serialportscreeen-2022-09-27
    1、继续单元格反色问题,因为大的表格包含许多小的单元格,因此在工程中通过一个反色单元格占用一个背景图片,然后在变量数据录入过程选择好页面切换,如果所需表格很多,就需要考虑......
  • 2022年09月22日11:43:20
    1、rviz-d[文件名]使用指定的配置文件打开rviz-d/home/ubuntu/work/bkth/ros_ws/src/RFans_Rviz_cfg.rviz2、rviz-f【frame名】接收指定的framerviz-fworld......
  • Jenkins 20220927笔记本4
                          ......
  • 互联网摸鱼日报(2022-09-28)
    互联网摸鱼日报(2022-09-28)InfoQ热门话题靠谱CTO必须是技术高手?前Facebook总监:技术越好,bug越少TDSQL破局敏态业务背后的技术演进|DBTalk技术公开课第3期在敏......
  • English words chapter 20220927
    ......
  • 20222.9.27-代码大全-9月读后感1
    近期,我阅读了这本书的一切皆有可能这一部分。这本书的作者在出版这本书的时候,遇到了各种各样的麻烦,但是由于他坚信一切皆有可能的观点,克服了重重困难,这本书终于得到了出版......
  • [Oracle] LeetCode 227 Basic Calculator II
    Givenastringswhichrepresentsanexpression,evaluatethisexpressionandreturnitsvalue.Theintegerdivisionshouldtruncatetowardzero.Youmayassum......