【代码编不过请看这里】D1 Tina SDK完整编译log
-
有开发者提到Tina编译会出现问题,不知道怎么解决,这里我们将完整Tina SDK编译时候的log打包一份供大家参考。下载地址:https://www.aw-ol.com/downloads/resources/41
我的代码仓库曾经编译过代码,故我先将out目录删掉全部重新编译,这样的log会比较全:
xiaowenge@ubuntu:~/workspace/d_tina_d1_open_v1.0$ rm -rf out/ xiaowenge@ubuntu:~/workspace/d_tina_d1_open_v1.0$ source build/envsetup.sh Setup env done! Please run lunch next. xiaowenge@ubuntu:~/workspace/d_tina_d1_open_v1.0$ lunch You're building on Linux Lunch menu... pick a combo: 1. d1_nezha_min-tina 2. d1_nezha-tina Which would you like? [Default d1_nezha]: 2 ============================================ TINA_BUILD_TOP=/home/xiaowenge/workspace/d_tina_d1_open_v1.0 TINA_TARGET_ARCH=riscv TARGET_PRODUCT=d1_nezha TARGET_PLATFORM=d1 TARGET_BOARD=d1-nezha TARGET_PLAN=nezha TARGET_BUILD_VARIANT=tina TARGET_BUILD_TYPE=release TARGET_KERNEL_VERSION=5.4 TARGET_UBOOT=u-boot-2018 TARGET_CHIP=sun20iw1p1 ============================================ xiaowenge@ubuntu:~/workspace/d_tina_d1_open_v1.0$ make -j > compilelog.log [1] 57825 Collecting target info: done+ mkdir -p /home/xiaowenge/workspace/d_tina_d1_open_v1.0/out/host + mkdir -p /home/xiaowenge/workspace/d_tina_d1_open_v1.0/out/d1-nezha/staging_dir/target + cd /home/xiaowenge/workspace/d_tina_d1_open_v1.0/out/host + mkdir -p bin lib include stamp + cd /home/xiaowenge/workspace/d_tina_d1_open_v1.0/out/d1-nezha/staging_dir/target + mkdir -p bin lib include stamp This is not dpkg install-info anymore, but GNU install-info See the man page for ginstall-info for command line arguments src/sstrip.c: In function 'readelfheader32': src/sstrip.c:363:1: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=] HEADER_FUNCTIONS(32) ^ src/sstrip.c:363:1: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=] src/sstrip.c:363:1: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=] src/sstrip.c:363:1: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=] ………………
完整log见上面的下载链接
编译成功后打包log:
xiaowenge@ubuntu:~/workspace/d_tina_d1_open_v1.0$ pack --==========-- PACK_CHIP sun20iw1p1 PACK_PLATFORM tina PACK_BOARD d1-nezha PACK_KERN PACK_DEBUG uart0 PACK_SIG none PACK_SECURE none PACK_MODE normal PACK_FUNC android PACK_PROGRAMMER none PACK_TAR_IMAGE none PACK_TOPDIR /home/kunyao/workspace/d_tina_d1_open_v1.0 --==========-- No kernel param, parse it from d1 copying tools file copying configs file storage_type value is 5 rm /home/xiaowenge/workspace/d_tina_d1_open_v1.0/out/d1-nezha/image/sys_partition_nor.fex rm /home/xiaowenge/workspace/d_tina_d1_open_v1.0/out/d1-nezha/image/image_nor.cfg copying boot resource LZMA 4.65 : Igor Pavlov : Public domain : 2009-02-03 copying boot file make user resource for : /home/xiaowenge/workspace/d_tina_d1_open_v1.0/out/d1-nezha/image/sys_partition.fex handle partition user-res no user resource partitions APP_PART_DOWNLOAD_FILE = /home/xiaowenge/workspace/d_tina_d1_open_v1.0/out/d1-nezha/image/app.fex Need size of filesystem no data resource partitions don't build dtbo ... update_chip pack boot package GetPrivateProfileSection read to end content_count=3 LICHEE_REDUNDANT_ENV_SIZE config in BoardConfig.mk --mkenvimage create redundant env data!-- ---redundant env data size 0x20000--- packing for tina linux normal this is not a partition key gpt_head->header_crc32 = 0x5277aea2 GPT----part num 8--- gpt_entry: 128 gpt_header: 92 GPT:boot-resource: 1f8 2177 GPT:env : 2178 236f GPT:env-redund : 2370 2567 GPT:boot : 2568 761f GPT:rootfs : 7620 11597 GPT:dsp0 : 11598 11987 GPT:recovery : 11988 187c7 GPT:UDISK : 187c8 187d7 update gpt file ok update mbr file ok ==================================== show "sys_partition_for_dragon.fex" message ------------------------------------ [mbr] mbr_size : 252 Kbyte ------------------------------------ partition_name : boot-resource partition_size : 8064 downloadfile : boot-resource.fex boot-resource.fex size : 3.0M byte ------------------------------------ partition_name : env partition_size : 504 downloadfile : env.fex env.fex size : 128K byte ------------------------------------ partition_name : env-redund partition_size : 504 downloadfile : env.fex env.fex size : 128K byte ------------------------------------ partition_name : boot partition_size : 20664 downloadfile : boot.fex boot.fex -> /home/xiaowenge/workspace/d_tina_d1_open_v1.0/out/d1-nezha/boot.img boot.img size : 9.1M byte ------------------------------------ partition_name : rootfs partition_size : 40824 downloadfile : rootfs.fex rootfs.fex -> /home/xiaowenge/workspace/d_tina_d1_open_v1.0/out/d1-nezha/rootfs.img rootfs.img size : 16M byte ------------------------------------ partition_name : dsp0 partition_size : 1008 downloadfile : dsp0.fex dsp0.fex size : 258K byte ------------------------------------ partition_name : recovery partition_size : 28224 ------------------------------------ /home/xiaowenge/workspace/d_tina_d1_open_v1.0/out/host/bin/ /home/xiaowenge/workspace/d_tina_d1_open_v1.0/out/d1-nezha/image Begin Parse sys_partion.fex Add partion boot-resource.fex BOOT-RESOURCE_FEX Add partion very boot-resource.fex BOOT-RESOURCE_FEX FilePath: boot-resource.fex FileLength=2f8c00Add partion env.fex ENV_FEX000000000 Add partion very env.fex ENV_FEX000000000 FilePath: env.fex FileLength=20000Add partion env.fex ENV_FEX000000000 Add partion very env.fex ENV_FEX000000000 FilePath: env.fex FileLength=20000Add partion boot.fex BOOT_FEX00000000 Add partion very boot.fex BOOT_FEX00000000 FilePath: boot.fex FileLength=912000Add partion rootfs.fex ROOTFS_FEX000000 Add partion very rootfs.fex ROOTFS_FEX000000 FilePath: rootfs.fex FileLength=fa0000Add partion dsp0.fex DSP0_FEX00000000 Add partion very dsp0.fex DSP0_FEX00000000 FilePath: dsp0.fex FileLength=4059csys_config.fex Len: 0x4ebe config.fex Len: 0x6c00 board.fex Len: 0x400 split_xxxx.fex Len: 0x200 sys_partition.fex Len: 0xbe3 sunxi.fex Len: 0xd400 boot0_nand.fex Len: 0x10000 boot0_sdcard.fex Len: 0x10000 u-boot.fex Len: 0xdc000 u-boot-crash.fex Len: 0x25 toc1.fex Len: 0x8 toc0.fex Len: 0x8 fes1.fex Len: 0xa560 boot_package.fex Len: 0xfc000 usbtool.fex Len: 0x24e00 usbtool_crash.fex Len: 0x1ec00 aultools.fex Len: 0x28a73 aultls32.fex Len: 0x25205 cardtool.fex Len: 0x11e00 cardscript.fex Len: 0x6de sunxi_gpt.fex Len: 0x2000 sunxi_mbr.fex Len: 0x10000 dlinfo.fex Len: 0x4000 arisc.fex Len: 0xf vmlinux.fex Len: 0x8 tinaconf.fex Len: 0xcd00 boot-resource.fex Len: 0x2f8c00 Vboot-resource.fex Len: 0x4 env.fex Len: 0x20000 Venv.fex Len: 0x4 env.fex Len: 0x20000 Venv.fex Len: 0x4 boot.fex Len: 0x912000 Vboot.fex Len: 0x4 rootfs.fex Len: 0xfa0000 Vrootfs.fex Len: 0x4 dsp0.fex Len: 0x4059c Vdsp0.fex Len: 0x4 BuildImg 0 Dragon execute image.cfg SUCCESS ! ----------image is for nand/emmc---------- ----------image is at---------- /home/xiaowenge/workspace/d_tina_d1_open_v1.0/out/d1-nezha/tina_d1-nezha_uart0.img pack finish
我的代码版本是v1.0.1的:
xiaowenge@ubuntu:~/workspace/d_tina_d1_open_v1.0/lichee/linux-5.4$ git log . commit 035e3450a899008ef15bb387d0ed41aafd733a8a (HEAD -> product-smartx-d1-tina-v1.0-release, tag: smartx-d1-tina-v1.0.1-release, tina/product-smartx-d1-tina-v1.0-release, m/master) Author: liwencong <liwencong@allwinnertech.com> Date: Fri May 21 14:01:26 2021 +0800 smartx-d1-tina-v1.0.1-release release commit 9e841db240d4f7161ac1c931bd889dc17eb9b076 (tag: smartx-d1-tina-v1.0.0-release) Author: liwencong <liwencong@allwinnertech.com> Date: Fri Apr 30 19:24:15 2021 +0800 smartx-d1-tina-v1.0.0-release release
-
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号