Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    YuzuKi X 100ask V851s 上手体验, 编译和烧录系统!

    V Series
    7
    8
    4294
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      fanfan LV 6 last edited by

      1 编译环境搭建

      1.1 开发主机配置

      使用 Ubuntu 18.04主机环境进行源码编译

      1.2 软件包配置

      编译 Tina Linux SDK 之前,需要先确定编译服务器安装了 gcc,binutils,bzip2,flex,python,perl,make,ia32-libs,find,grep,diff,unzip,gawk,getopt,subversion,libz-dev,libc headers。

      ubuntu 可直接执行以下命令安装:

      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 ia32-libs lib32z1 lib32z1-dev lib32stdc++6 libstdc++6 -y
      

      ubuntu 16.04 及以上版本,执行下面命令安装软件包:

      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 libc6:i386 libstdc++6:i386 lib32ncurses5 lib32z1
      

      2 编译打包

      2.1 编译系统

      (1) source build/envsetup.sh
      (2) lunch
      (3) make [-jN]
      (4) pack [-d]
      其中,
      步骤(1)建立编译环境,导出编译变量。
      步骤(2)提示需要选择你想要编译的方案。
      步骤(3)参数N为并行编译进程数量,依赖编译服务器CPU核心数,如4核PC,可"make -j4"
      步骤(4)打包固件,-d参数使生成固件包串口信息转到tf卡座输出。
      编译完成后系统镜像会打包在out/<board>/目录下
      

      step 1. cd命令跳转到tina-v853

      step 2. source build/envsetup.sh

      d1ac862a-b134-4431-a178-771aec736592-image.png

      step 3.lunch
      1db92e44-dfab-4fdd-8e57-d265b5ed413e-image.png

      step 4.make -j16

      错误 致命:不安全的存储库由其他人拥有

      567598a1-5d31-49cd-afbd-9e2831b3c556-image.png

      解决(该目录每个人都不一样):

      ~/tina-v853$ git config --global --add safe.directory ~/tina-v853
      

      错误 致命:

      8bfb9c47-6528-4f02-8ffb-e910bbbb3f35-image.png

      解决:
      3454e237-b10e-432b-b6f4-c179d3079968-image.png

      step 5.pack

      编译报错:
      2e55ab30-7990-4baf-9f4f-b0fbf512ac0f-image.png

      解决:

      在tina-v853目录下

      cd device/config/chips/v851s/configs/perf1/linux/
      vim sys_partition.fex
      

      根据报错信息中的rootfs.fex size too large 修改文件中的rootfs的size
      13d104db-b983-45b7-8c0d-8fa1297fce8b-image.png

      2.2 编译 boot

      命令 命令有效目录 作用
      mboot tina 下任意目录 编译 boot0 和 uboot
      mboot0 tina 下任意目录 编译 boot0
      muboot tina 下任意目录 编译 uboot

      2.3 编译内核

      命令 命令有效目录 作用
      mkernel tina 下任意目录 编译内核

      3 烧写系统

      3.1 烧写系统到nandflash

      注意:type-C接口此时需要反接才能进行烧录
      4fecec5b-e87d-4638-9175-ceeca127ff35-image.png

      打开全志官方烧写工具
      f9ac4dc5-98b2-4a98-853b-a7e1e00401f0-image.png

      1 Reply Last reply Reply Quote Share 0
      • M
        mysteryli LV 7 last edited by

        那个PhoenixSuit用1.10可以吗 没看到1.15在哪里下载呢
        还有就是需要安装驱动嘛,直接插上板子电脑就会识别到了?

        DAIZEBIN 1 Reply Last reply Reply Quote Share 0
        • DAIZEBIN
          DAIZEBIN LV 7 @mysteryli last edited by

          @mysteryli 烧录软件PhoenixSuit建议更新到最新的,但版本如果不是太低的话,也是不会影响正常使用的,驱动要下载全志对应的usb串口驱动,全志官网可以下载

          1 Reply Last reply Reply Quote Share 0
          • Y
            y1178427557 LV 4 last edited by

            a6e31dcf-ed2f-49c6-a7eb-87081a4b4122-image.png

            之前的步骤认真检测过了,是一样的。但是我在编译uboot的时候还是报错了。请问这个有办法解决吗。

            F 1 Reply Last reply Reply Quote Share 2
            • F
              fawen LV 5 @y1178427557 last edited by

              我也在这里发一下我的编译出错问题。
              AS arch/arm/boot/compressed/hyp-stub.o
              AS arch/arm/boot/compressed/lib1funcs.o
              AS arch/arm/boot/compressed/ashldi3.o
              AS arch/arm/boot/compressed/bswapsdi2.o
              AS arch/arm/boot/compressed/piggy.o
              LD arch/arm/boot/compressed/vmlinux
              OBJCOPY arch/arm/boot/zImage
              Kernel: arch/arm/boot/zImage is ready
              UIMAGE arch/arm/boot/uImage
              "mkimage" command not found - U-Boot images will not be built
              make[1]: *** [arch/arm/boot/Makefile:93:arch/arm/boot/uImage] 错误 1
              make: *** [arch/arm/Makefile:331: uImage] Error 2
              ERROR: build Failed
              INFO: build kernel failed
              解决办法:sudo apt-get install uboot-mkimage
              如果uboot-mkimage安装不了说明已弃用
              安装:sudo apt-get install u-boot-tools

              1 Reply Last reply Reply Quote Share 0
              • W
                wanghaoran LV 3 last edited by

                请问 V851s 有主线 uboot 和 Linux 吗?

                A 1 Reply Last reply Reply Quote Share 0
                • A
                  awwwwa LV 8 @wanghaoran last edited by

                  @wanghaoran 有主线Linux

                  W 1 Reply Last reply Reply Quote Share 0
                  • W
                    wanghaoran LV 3 @awwwwa last edited by

                    @awwwwa 好的, 多谢

                    1 Reply Last reply Reply Quote Share 0
                    • 1 / 1
                    • First post
                      Last post

                    Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

                    行为准则 | 用户协议 | 隐私权政策