您尚未登录。

楼主 # 2021-09-09 12:17:56

X3
会员
注册时间: 2020-04-08
已发帖子: 85
积分: 73.5

全志A133/T509/AIC800 编译 longan SDK 出现这个错误

全志AIC800 手册: aic800g3_datasheet_v1.4.pdf

原理图: SC3904Q-mb-V00-20112600.pdf


LCD手册: B070EW01-V0-AUO.pdf

a_support.o
  CC [M]  /opt/a133/longan/kernel/linux-4.9/modules/gpu/img-rgx/linux/rogue_km/binary_sunxi_linux_release/target_aarch64/kbuild/services/system/common/vz_physheap_                  generic.o
  CC [M]  /opt/a133/longan/kernel/linux-4.9/modules/gpu/img-rgx/linux/rogue_km/binary_sunxi_linux_release/target_aarch64/kbuild/services/system/common/vz_physheap_                  common.o
  CC [M]  /opt/a133/longan/kernel/linux-4.9/modules/gpu/img-rgx/linux/rogue_km/binary_sunxi_linux_release/target_aarch64/kbuild/services/system/common/vmm_pvz_clie                  nt.o
  CC [M]  /opt/a133/longan/kernel/linux-4.9/modules/gpu/img-rgx/linux/rogue_km/binary_sunxi_linux_release/target_aarch64/kbuild/services/system/common/vmm_pvz_serv                  er.o
  CC [M]  /opt/a133/longan/kernel/linux-4.9/modules/gpu/img-rgx/linux/rogue_km/binary_sunxi_linux_release/target_aarch64/kbuild/services/system/common/vz_vmm_pvz.o
  CC [M]  /opt/a133/longan/kernel/linux-4.9/modules/gpu/img-rgx/linux/rogue_km/binary_sunxi_linux_release/target_aarch64/kbuild/services/system/common/vz_vmm_vm.o
  CC [M]  /opt/a133/longan/kernel/linux-4.9/modules/gpu/img-rgx/linux/rogue_km/binary_sunxi_linux_release/target_aarch64/kbuild/services/system/common/vz_support.o
  CC [M]  /opt/a133/longan/kernel/linux-4.9/modules/gpu/img-rgx/linux/rogue_km/binary_sunxi_linux_release/target_aarch64/kbuild/services/system/common/vmm_type_stu                  b.o
  CC [M]  /opt/a133/longan/kernel/linux-4.9/modules/gpu/img-rgx/linux/rogue_km/binary_sunxi_linux_release/target_aarch64/kbuild/services/3rdparty/dc_sunxi/dc_sunxi                  .o
In file included from ./include/linux/mm.h:9:0,
                 from /opt/a133/longan/kernel/linux-4.9/modules/gpu/img-rgx/linux/rogue_km/binary_sunxi_linux_release/target_aarch64/kbuild/services/system/common/                  env/linux/dma_support.c:44:
/opt/a133/longan/kernel/linux-4.9/modules/gpu/img-rgx/linux/rogue_km/binary_sunxi_linux_release/target_aarch64/kbuild/services/system/common/env/linux/dma_support.                  c: In function 'SysDmaAllocMem':
/opt/a133/longan/kernel/linux-4.9/modules/gpu/img-rgx/linux/rogue_km/binary_sunxi_linux_release/target_aarch64/kbuild/services/system/common/env/linux/dma_support.                  c:205:45: error: implicit declaration of function '__get_order' [-Werror=implicit-function-declaration]
  else if ((psPage = alloc_pages(GFP_KERNEL, __get_order(uiSize))))
                                             ^
./include/linux/gfp.h:478:46: note: in definition of macro 'alloc_pages'
   alloc_pages_node(numa_node_id(), gfp_mask, order)
                                              ^
cc1: some warnings being treated as errors
scripts/Makefile.build:334: recipe for target '/opt/a133/longan/kernel/linux-4.9/modules/gpu/img-rgx/linux/rogue_km/binary_sunxi_linux_release/target_aarch64/kbuil                  d/services/system/common/env/linux/dma_support.o' failed
make[4]: *** [/opt/a133/longan/kernel/linux-4.9/modules/gpu/img-rgx/linux/rogue_km/binary_sunxi_linux_release/target_aarch64/kbuild/services/system/common/env/linu                  x/dma_support.o] Error 1
make[4]: *** Waiting for unfinished jobs....
Makefile:1615: recipe for target '_module_/opt/a133/longan/kernel/linux-4.9/modules/gpu/img-rgx/linux/rogue_km/binary_sunxi_linux_release/target_aarch64/kbuild' fa                  iled
make[3]: *** [_module_/opt/a133/longan/kernel/linux-4.9/modules/gpu/img-rgx/linux/rogue_km/binary_sunxi_linux_release/target_aarch64/kbuild] Error 2
build/linux/kbuild/kbuild.mk:64: recipe for target 'kbuild' failed
make[2]: *** [kbuild] Error 2
../config/core.mk:1862: recipe for target 'build' failed
make[1]: *** [build] Error 2
make[1]: Leaving directory '/opt/a133/longan/kernel/linux-4.9/modules/gpu/img-rgx/linux/rogue_km/build/linux/sunxi_linux'
Makefile:122: recipe for target 'build' failed
make: *** [build] Error 2
make: Leaving directory '/opt/a133/longan/kernel/linux-4.9/modules/gpu'
ERROR: build kernel Failed
INFO: mkkernel failed

参考1: https://licheeone.readthedocs.io/zh/latest/camdroid/camdroid_build.html
参考2: https://www.jianshu.com/p/8bd49a3e721f

离线

楼主 #1 2021-09-09 12:57:25

X3
会员
注册时间: 2020-04-08
已发帖子: 85
积分: 73.5

Re: 全志A133/T509/AIC800 编译 longan SDK 出现这个错误

QQ图片20210909125508.png

ubuntu:/opt/a133/longan$ ./build.sh config

Welcome to mkscript setup progress
All available platform:
   0. android
   1. linux
Choice [linux]: 1
All available linux_dev:
   0. bsp
   1. dragonboard
Choice [dragonboard]: 0
All available kern_ver:
   0. linux-4.9
Choice [linux-4.9]: 0
All available ic:
   0. aic800
Choice [aic800]: 0
All available board:
   0. demo
   1. demo_nopmu
Choice [demo_nopmu]: 0
All available flash:
   0. default
   1. nor
Choice [nor]: 0
INFO: kernel defconfig: generate /opt/a133/longan/kernel/linux-4.9/.config by /opt/a133/longan/kernel/linux-4.9/arch/arm64/configs/sun50iw10p1smp_defconfig
INFO: Prepare toolchain ...
*** Default configuration is based on 'sun50iw10p1smp_defconfig'
#
# configuration written to .config
#
INFO: skip buildroot

简直就像走迷宫一样:

$ ./build.sh pack
ACTION List: mkpack ;========
Execute command: mkpack
INFO: packing firmware ...
INFO: Use BIN_PATH: /opt/a133/longan/device/config/chips/aic800//bin
copying tools file
copying configs file
copying product configs file
/opt/a133/longan/out/pack_out/aultls32.fex
/opt/a133/longan/out/pack_out/aultools.fex
/opt/a133/longan/out/pack_out/boot_package.cfg
/opt/a133/longan/out/pack_out/boot_package.fex
/opt/a133/longan/out/pack_out/boot_package_nor.cfg
/opt/a133/longan/out/pack_out/cardscript.fex
/opt/a133/longan/out/pack_out/cardscript_secure.fex
/opt/a133/longan/out/pack_out/cardtool.fex
/opt/a133/longan/out/pack_out/diskfs.fex
/opt/a133/longan/out/pack_out/dragon_toc.cfg
/opt/a133/longan/out/pack_out/dragon_toc_android.cfg
/opt/a133/longan/out/pack_out/env.cfg
/opt/a133/longan/out/pack_out/env_burn.cfg
/opt/a133/longan/out/pack_out/env_dragon.cfg
/opt/a133/longan/out/pack_out/esm.fex
/opt/a133/longan/out/pack_out/image.cfg
/opt/a133/longan/out/pack_out/image_android.cfg
/opt/a133/longan/out/pack_out/image_crashdump.cfg
/opt/a133/longan/out/pack_out/image_dragonboard.cfg
renamed '/opt/a133/longan/out/pack_out/image_linux.cfg' -> '/opt/a133/longan/out/pack_out/image.cfg'
/opt/a133/longan/out/pack_out/image_nor.cfg
/opt/a133/longan/out/pack_out/parameter.fex
/opt/a133/longan/out/pack_out/split_xxxx.fex
/opt/a133/longan/out/pack_out/sunxi.fex
/opt/a133/longan/out/pack_out/sys_config.fex
/opt/a133/longan/out/pack_out/sys_partition.fex
/opt/a133/longan/out/pack_out/sys_partition_dump.fex
/opt/a133/longan/out/pack_out/sys_partition_private.fex
/opt/a133/longan/out/pack_out/sysrecovery.fex
/opt/a133/longan/out/pack_out/toc0.fex
/opt/a133/longan/out/pack_out/toc1.fex
/opt/a133/longan/out/pack_out/usbtool.fex
/opt/a133/longan/out/pack_out/usbtool_crash.fex
/opt/a133/longan/out/pack_out/usbtool_test.fex
/opt/a133/longan/out/pack_out/verity_block.fex
copying boot resource
copying boot file
Script_to_dts: use board special dts file board.dts
sunxi_dtb create
p=soc c=product state=0
p=soc c=platform state=0
p=soc c=target state=0
p=soc c=power_sply state=0
p=soc c=card_boot state=0
p=soc c=fastboot_key state=0
p=soc c=recovery_key state=0
p=soc c=pm_para state=0
p=soc c=card0_boot_para state=0
p=soc c=card2_boot_para state=0
p=soc c=gpio_bias state=0
p=soc c=auto_print state=0
p=soc c=uart_para state=0
p=soc c=jtag_para state=0
p=soc c=clock state=0
p=soc c=dram state=0
p=soc c=uart0 state=0
p=soc c=nand0 state=0
p=soc c=charger0 state=0
Conver script to dts ok.
update scp
update optee

sboot file Path=/opt/a133/longan/out/pack_out/sboot.bin
script file Path=/opt/a133/longan/out/pack_out/sys_config.bin

update:unable to open sboot file
script update sboot ok
pack boot package
GetPrivateProfileSection read to end
content_count=4
packing for linux
normal
this is not a partition key
gpt_head->header_crc32 = 0xdf85ff9d
GPT----part num 5---
gpt_entry: 128
gpt_header: 92
GPT:boot-resource: 8000          17fff
GPT:env         : 18000         1ffff
GPT:boot        : 20000         3ffff
GPT:rootfs      : 40000         13ffff
GPT:UDISK       : 140000        14000f
update gpt file ok
update mbr file ok
/opt/a133/longan/tools/pack/pctools/linux/eDragonEx/
/opt/a133/longan/out/pack_out
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=91ac00Add 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=e62800Add partion rootfs.fex ROOTFS_FEX000000
Add partion very rootfs.fex ROOTFS_FEX000000
FilePath: rootfs.fex
FileLength=7039800sys_config.fex Len: 0x1f43
config.fex Len: 0x2000
board.fex Len: 0x400
split_xxxx.fex Len: 0x200
sys_partition.fex Len: 0xa55
sunxi.fex Len: 0x21400
boot0_nand.fex Len: 0xc000
boot0_sdcard.fex Len: 0xc000
u-boot.fex Len: 0xa8000
u-boot-crash.fex Len: 0x25
toc1.fex Len: 0x8
toc0.fex Len: 0x8
fes1.fex Len: 0x6e80
boot_package.fex Len: 0xf0000
usbtool.fex Len: 0x24400
usbtool_crash.fex Len: 0x97a00
aultools.fex Len: 0x2897d
aultls32.fex Len: 0x251f1
cardtool.fex Len: 0x11e00
cardscript.fex Len: 0x779
sunxi_gpt.fex Len: 0x2000
sunxi_mbr.fex Len: 0x10000
dlinfo.fex Len: 0x4000
arisc.fex Len: 0x6
vmlinux.fex Len: 0x2ef126d
boot-resource.fex Len: 0x91ac00
Vboot-resource.fex Len: 0x4
env.fex Len: 0x20000
Venv.fex Len: 0x4
boot.fex Len: 0xe62800
Vboot.fex Len: 0x4
rootfs.fex Len: 0x7039800
Vrootfs.fex Len: 0x4
BuildImg 0
Dragon execute image.cfg SUCCESS !
----------image is at----------

/opt/a133/longan/out/aic800_linux_demo_uart0.img

pack finish

离线

#2 2021-09-14 12:23:14

cloudxxcloud
会员
注册时间: 2021-02-20
已发帖子: 39
积分: 26.5

Re: 全志A133/T509/AIC800 编译 longan SDK 出现这个错误

搞定了?

离线

楼主 #3 2021-10-01 09:07:05

X3
会员
注册时间: 2020-04-08
已发帖子: 85
积分: 73.5

Re: 全志A133/T509/AIC800 编译 longan SDK 出现这个错误

cloudxxcloud 说:

搞定了?

搞定了:

me@ubuntu:/opt/a133/longan$ source build/envsetup.sh

Welcome to mkscript setup progress
All available platform:
   0. android
   1. linux
Choice [linux]: 1
All available linux_dev:
   0. bsp
   1. dragonboard
Choice [dragonboard]: 1
All available ic:
   0. a133
   1. t509
Choice [t509]: 1
All available board:
   0. a3
   1. demo
   2. demo2
   3. fpga
   4. qa
   5. srandway
   6. ver
Choice [a3]: 0
All available flash:
   0. default
   1. nor
Choice [default]: 0
INFO: kernel defconfig: generate /opt/a133/longan/kernel/linux-4.9/.config by /opt/a133/longan/kernel/linux-4.9/arch/arm64/configs/sun50iw10p1smp_t509_dragonboard_defconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/bin2c
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/zconf.tab.o

先支持 ./build.sh ,再执行 ./build.sh pack :

me@ubuntu:/opt/a133/longan$ ./build.sh
ACTION List: mklichee;========
Execute command: mklichee
INFO: ----------------------------------------
INFO: build lichee ...
INFO: chip: sun50iw10p1
INFO: platform: linux
INFO: kernel: linux-4.9
INFO: board: a3
INFO: output: /opt/a133/longan/out/t509/a3/dragonboard
INFO: ----------------------------------------
INFO: build dtbo ...
debug: main,line:309
debug: main,line:311
debug: main,line:309
debug: main,line:311
debug: main,line:309
debug: main,line:311
debug: main,line:309
debug: main,line:311
debug: main,line:309
debug: main,line:311
debug: main,line:309
debug: main,line:311
debug: main,line:309
debug: main,line:311
debug: main,line:309
debug: main,line:311
INFO: mkdtbo: make  dtboimg start.
create image file: /opt/a133/longan/out/t509/a3/dragonboard/dtbo.img...
Total 8 entries.
dt_table_header:
               magic = d7b7ab1e
          total_size = 21012
         header_size = 32
       dt_entry_size = 32
      dt_entry_count = 8
   dt_entries_offset = 32
           page_size = 2048
         reserved[0] = 00000000
dt_table_entry[0]:
             dt_size = 480
           dt_offset = 288
                  id = 00000001
                 rev = 00000000
           custom[0] = 00000123
           custom[1] = 00000000
           custom[2] = 00000000
           custom[3] = 00000000
           (FDT)size = 480
     (FDT)compatible = board_manufacturer,board_model
dt_table_entry[1]:
             dt_size = 2880
           dt_offset = 768
                  id = 00000002
                 rev = 00000000
           custom[0] = 55551234
           custom[1] = 55551234
           custom[2] = 55551234
           custom[3] = 55551234
           (FDT)size = 2880
     (FDT)compatible = board_manufacturer,board_model
dt_table_entry[2]:
             dt_size = 2356
           dt_offset = 3648
                  id = 00000003
                 rev = 00000000
           custom[0] = 55551234
           custom[1] = 55551234
           custom[2] = 55551234
           custom[3] = 55551234
           (FDT)size = 2356
     (FDT)compatible = board_manufacturer,board_model
dt_table_entry[3]:
             dt_size = 1680
           dt_offset = 6004
                  id = 00000004
                 rev = 00000000
           custom[0] = 55551234
           custom[1] = 55551234
           custom[2] = 55551234
           custom[3] = 55551234
           (FDT)size = 1680
     (FDT)compatible = board_manufacturer,board_model
dt_table_entry[4]:
             dt_size = 728
           dt_offset = 7684
                  id = 00000005
                 rev = 00000000
           custom[0] = 55551234
           custom[1] = 55551234
           custom[2] = 55551234
           custom[3] = 55551234
           (FDT)size = 728
     (FDT)compatible = board_manufacturer,board_model
dt_table_entry[5]:
             dt_size = 2260
           dt_offset = 8412
                  id = 00000006
                 rev = 00000000
           custom[0] = 55551234
           custom[1] = 55551234
           custom[2] = 55551234
           custom[3] = 55551234
           (FDT)size = 2260
     (FDT)compatible = board_manufacturer,board_model
dt_table_entry[6]:
             dt_size = 4212
           dt_offset = 10672
                  id = 00000007
                 rev = 00000000
           custom[0] = 55551234
           custom[1] = 55551234
           custom[2] = 55551234
           custom[3] = 55551234
           (FDT)size = 4212
     (FDT)compatible = board_manufacturer,board_model
dt_table_entry[7]:
             dt_size = 6128
           dt_offset = 14884
                  id = 00000008
                 rev = 00000000
           custom[0] = 55551234
           custom[1] = 55551234
           custom[2] = 55551234
           custom[3] = 55551234
           (FDT)size = 6128
     (FDT)compatible = board_manufacturer,board_model
INFO: build arisc
make: Entering directory '/opt/a133/longan/brandy/arisc'
arisc defconfig: generate ar100s/.config by sun50iw10p1_defconfig
#
# configuration written to .config
#
  CHK     include/generated/conf.h
  CC       driver/intc/intc.o
  CC       driver/intc/intc_manager.o
  LD       driver/intc/obj-in.o
  CC       driver/pin/pin.o
  CC       driver/pin/pin_int.o
  LD       driver/pin/obj-in.o
  CC       driver/timer/timer.o
  CC       driver/timer/timer_cdelay.o
  CC       driver/timer/timer_delay.o
  LD       driver/timer/obj-in.o
  CC       driver/uart/uart.o
  LD       driver/uart/obj-in.o
  CC       driver/twi/twi.o
  LD       driver/twi/obj-in.o
  CC       driver/hwmsgbox/hwmsgbox.o
  LD       driver/hwmsgbox/obj-in.o
  CC       driver/pmu/pmu-sun50iw10p1/pmu.o
  LD       driver/pmu/pmu-sun50iw10p1/obj-in.o
  LD       driver/pmu/obj-in.o
  CC       driver/watchdog/watchdog.o
  LD       driver/watchdog/obj-in.o
  LD       driver/obj-in.o
  CC       library/library.o
  CC       library/string.o
  CC       library/libfdt/fdt.o
  CC       library/libfdt/fdt_ro.o
  CC       library/libfdt/fdt_strerror.o
  CC       library/libfdt/fdt_addresses.o
  LD       library/libfdt/obj-in.o
use lib
  LD       library/obj-in.o
  CC       service/standby/standby.o
  CC       service/standby/standby_dram_crc.o
  CC       service/standby/wakeup_source.o
  CC       service/standby/standby-sun50iw10p1/plat_standby.o
  LD       service/standby/standby-sun50iw10p1/obj-in.o
  LD       service/standby/obj-in.o
  LD       service/obj-in.o
  CC       system/notifier/notifier.o
  LD       system/notifier/obj-in.o
  CC       system/message_manager/message_manager.o
  LD       system/message_manager/obj-in.o
  CC       system/debugger/debugger.o
  LD       system/debugger/obj-in.o
  CC       system/daemon/daemon.o
  CC       system/daemon/para.o
  LD       system/daemon/obj-in.o
  LD       system/obj-in.o

        --- Linking ---
or32-elf-ld: total time in link: 0.006004
or32-elf-ld: data size 18060608
   text    data     bss     dec     hex filename
      0       0       0       0       0 arch/obj-in.o
  13238     736      20   13994    36aa driver/obj-in.o
  10105       0       0   10105    2779 library/obj-in.o
   6172      12     168    6352    18d0 service/obj-in.o
   3634     144     228    4006     fa6 system/obj-in.o
  62916     972    1968   65856   10140 scp.elf
be2le scp.raw scp.bin
open file: scp.raw
Open file: scp.bin
copy scp.bin to /opt/a133/longan/device/config/chips/t509/bin
make: Leaving directory '/opt/a133/longan/brandy/arisc'
INFO: build kernel ...
INFO: Prepare toolchain ...
build_system: longan
Building kernel
/opt/a133/longan/kernel/linux-4.9/output/lib/modules/4.9.170
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/mod/modpost.o
  CHK     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/sumversion.o
  HOSTCC  scripts/dtc/dtc.o
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/flattree.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/updatetree.o
  HOSTCC  scripts/dtc/srcpos.o
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/dtc/util.o
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTLD  scripts/mod/modpost
  HOSTLD  scripts/dtc/dtc
  CHK     include/generated/timeconst.h
  CHK     include/generated/bounds.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  HOSTCC  usr/gen_init_cpio
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  GEN     usr/initramfs_data.cpio.gz
  AS      usr/initramfs_data.o
  LD      usr/built-in.o
  LD      init/built-in.o
  CHK     kernel/config_data.h
  DTC     arch/arm64/boot/dts/sunxi/board.dtb
  GEN     .version
  LD      vmlinux.o
  MODPOST vmlinux.o
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
  KSYM    .tmp_kallsyms1.o
  KSYM    .tmp_kallsyms2.o
  LD      vmlinux
  SORTEX  vmlinux
  SYSMAP  System.map
  OBJCOPY arch/arm64/boot/Image
  Building modules, stage 2.
  MODPOST 29 modules
  GZIP    arch/arm64/boot/Image.gz
make: Nothing to be done for 'modules'.
Script_to_dts: use board special dts file board.dts
sunxi_dtb create
p=soc c=product state=0
p=soc c=platform state=0
p=soc c=target state=0
p=soc c=power_sply state=0
p=soc c=card_boot state=0
p=soc c=fastboot_key state=0
p=soc c=recovery_key state=0
p=soc c=pm_para state=0
p=soc c=card0_boot_para state=0
p=soc c=card2_boot_para state=0
p=soc c=gpio_bias state=0
p=soc c=auto_print state=0
p=soc c=uart_para state=0
p=soc c=jtag_para state=0
p=soc c=clock state=0
p=soc c=dram state=0
p=soc c=uart0 state=0
p=soc c=nand0 state=0
p=soc c=charger0 state=0
Conver script to dts ok.
'arch/arm64/boot/Image' -> 'output/bImage'
'arch/arm64/boot/Image.gz' -> 'output/Image.gz'
Copy rootfs.cpio.gz for arm64
Building modules
make: Entering directory '/opt/a133/longan/kernel/linux-4.9/modules/nand'
[NAND] NOT buid as ko
make: Leaving directory '/opt/a133/longan/kernel/linux-4.9/modules/nand'
[GPU]: No GPU type is configured in /opt/a133/longan/kernel/linux-4.9/.config.
regenerate rootfs cpio
15757 blocks
15758 blocks
build_ramfs
Copy boot.img to output directory ...
./scripts/build.sh

sun50iw10p1 compile Kernel successful


INFO: build kernel OK.
INFO: build rootfs ...
INFO: Prepare dragonboard toolchain ...
Regenerating dragonboard Rootfs...
extract dragonboard rootfs.tar.gz
  CC    adb.c
  CC    backup_service.c
  CC    fdevent.c
  CC    transport.c
  CC    transport_local.c
  CC    transport_usb.c
  CC    adb_auth_client.c
  CC    sockets.c
  CC    services.c
  CC    file_sync_service.c
  CC    jdwp_service.c
  CC    framebuffer_service.c
  CC    remount_service.c
  CC    usb_linux_client.c
  CC    log_service.c
  CC    utils.c
make -C libs/libcutils
make[1]: Entering directory '/opt/a133/longan/test/dragonboard/common/adb/libs/libcutils'
  CC    array.c
  CC    hashmap.c
  CC    native_handle.c
  CC    buffer.c
  CC    socket_inaddr_any_server.c
  CC    socket_local_client.c
  CC    socket_local_server.c
  CC    socket_loopback_client.c
  CC    socket_loopback_server.c
  CC    socket_network_client.c
  CC    sockets.c
  CC    config_utils.c
  CC    cpu_info.c
  CC    load_file.c
  CC    list.c
  CC    open_memstream.c
  CC    strdup16to8.c
  CC    strdup8to16.c
  CC    record_stream.c
  CC    process_name.c
  CC    qsort_r_compat.c
  CC    threads.c
  CC    sched_policy.c
  CC    iosched_policy.c
  CC    str_parms.c
  CC    properties.c
  CC    abort_socket.c
  CC    fs.c
  CC    selector.c
  CC    tztime.c
  CC    multiuser.c
  CC    zygote.c
  CC    android_reboot.c
  CC    ashmem-dev.c
  CC    debugger.c
  CC    klog.c
  CC    mq.c
  CC    partition_utils.c
  CC    qtaguid.c
  CC    uevent.c
  CC    misc_rw.c
  CC    memory.c
  AR    array.o
ar: creating libcutils.a
make[1]: Leaving directory '/opt/a133/longan/test/dragonboard/common/adb/libs/libcutils'
cp -f libs/libcutils/libcutils.a .
make -C libs/libmincrypt
make[1]: Entering directory '/opt/a133/longan/test/dragonboard/common/adb/libs/libmincrypt'
  LN    rsa.c -> rsa.o
  LN    rsa_e_3.c -> rsa_e_3.o
  LN    rsa_e_f4.c -> rsa_e_f4.o
  LN    sha.c -> sha.o
  AR    rsa.o rsa_e_3.o rsa_e_f4.o sha.o -> libmincrypt.a
ar: creating libmincrypt.a
make[1]: Leaving directory '/opt/a133/longan/test/dragonboard/common/adb/libs/libmincrypt'
cp -f libs/libmincrypt/libmincrypt.a .
  LN    adb.o backup_service.o fdevent.o transport.o transport_local.o transport_usb.o adb_auth_client.o sockets.o services.o file_sync_service.o jdwp_service.o framebuffer_service.o remount_service.o usb_linux_client.o log_service.o utils.o libcutils libmincrypt -> adbd
install adbd /opt/a133/longan/test/dragonboard/rootfs/bin
install scripts/adb_shell /opt/a133/longan/test/dragonboard/rootfs/bin
install scripts/adbd.init /opt/a133/longan/test/dragonboard/rootfs/etc/init.d
install scripts/adb_profile /opt/a133/longan/test/dragonboard/rootfs/etc
install scripts/start_adb.sh /opt/a133/longan/test/dragonboard/rootfs/bin
extract sysroot.tar.gz
  CC    core/script.c
  CC    core/audio_id.c
  AR    core/script.o core/audio_id.o -> libscript.a
  CC    core/core.c
  CC    core/script_parser.c
  CC    view/view.c
  CC    view/df_view_pad.c
  CC    view/tp_track.c
  CC    view/ion_alloc.c
  CC    view/camera_sun50iw10p1.c
  LN    core/core.o core/script_parser.o view/view.o view/df_view_pad.o view/tp_track.o view/ion_alloc.o view/camera_sun50iw10p1.o -> core
  CC    core/launcher.c
  LN    core/launcher.o -> launcher
make -C lib/"tinyalsa-master"
make[1]: Entering directory '/opt/a133/longan/test/dragonboard/src/lib/tinyalsa-master'
arm-linux-gnueabi-gcc --sysroot=/opt/a133/longan/test/dragonboard/sysroot -c -fPIC -Wall -O3 -Os -pipe -mtune=cortex-a8 -march=armv7-a -mabi=aapcs-linux -mfloat-abi=softfp -mfpu=neon -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_REENTRANT  mixer.c -Iinclude
arm-linux-gnueabi-gcc --sysroot=/opt/a133/longan/test/dragonboard/sysroot -c -fPIC -Wall -O3 -Os -pipe -mtune=cortex-a8 -march=armv7-a -mabi=aapcs-linux -mfloat-abi=softfp -mfpu=neon -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_REENTRANT  pcm.c -Iinclude
arm-linux-gnueabi-gcc --sysroot=/opt/a133/longan/test/dragonboard/sysroot -shared mixer.o pcm.o -o libtinyalsa.so
arm-linux-gnueabi-gcc --sysroot=/opt/a133/longan/test/dragonboard/sysroot -c -fPIC -Wall -O3 -Os -pipe -mtune=cortex-a8 -march=armv7-a -mabi=aapcs-linux -mfloat-abi=softfp -mfpu=neon -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_REENTRANT  tinyplay.c -Iinclude
arm-linux-gnueabi-gcc --sysroot=/opt/a133/longan/test/dragonboard/sysroot tinyplay.o -L. -ltinyalsa -o tinyplay
arm-linux-gnueabi-gcc --sysroot=/opt/a133/longan/test/dragonboard/sysroot -c -fPIC -Wall -O3 -Os -pipe -mtune=cortex-a8 -march=armv7-a -mabi=aapcs-linux -mfloat-abi=softfp -mfpu=neon -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_REENTRANT  tinycap.c -Iinclude
arm-linux-gnueabi-gcc --sysroot=/opt/a133/longan/test/dragonboard/sysroot tinycap.o -L. -ltinyalsa -o tinycap
arm-linux-gnueabi-gcc --sysroot=/opt/a133/longan/test/dragonboard/sysroot -c -fPIC -Wall -O3 -Os -pipe -mtune=cortex-a8 -march=armv7-a -mabi=aapcs-linux -mfloat-abi=softfp -mfpu=neon -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_REENTRANT  tinymix.c -Iinclude
arm-linux-gnueabi-gcc --sysroot=/opt/a133/longan/test/dragonboard/sysroot tinymix.o -L. -ltinyalsa -o tinymix
cp tinyplay tinycap tinymix /opt/a133/longan/test/dragonboard/output/bin/
cp libtinyalsa.so ./../../../sysroot/lib/
cp libtinyalsa.so ./../../../rootfs/lib/
make[1]: Leaving directory '/opt/a133/longan/test/dragonboard/src/lib/tinyalsa-master'
make -C testcases
make[1]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases'
cp script_parser.sh /opt/a133/longan/test/dragonboard/output/bin/
cp send_cmd_pipe.sh /opt/a133/longan/test/dragonboard/output/bin/
cp log.sh /opt/a133/longan/test/dragonboard/output/bin/
make -C gsensortester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/gsensortester'
  CC    gsensortester.c
  LN    gsensortester.o -> gsensortester
cp gsensortester.sh /opt/a133/longan/test/dragonboard/output/bin/
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/gsensortester'
make -C hdmitester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/hdmitester'
  CC    hdmitester.c
  LN    hdmitester.o -> hdmitester
cp hdmitester.sh /opt/a133/longan/test/dragonboard/output/bin/
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/hdmitester'
make -C irtester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/irtester'
  CC    irtester.c
  LN    irtester.o -> irtester
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/irtester'
make -C keytester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/keytester'
  CC    keytester.c
  LN    keytester.o -> keytester
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/keytester'
make -C memtester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/memtester'
cp memtester.sh /opt/a133/longan/test/dragonboard/output/bin/
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/memtester'
make -C mictester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/mictester'
  CC    mixer.c
  CC    pcm.c
  CC    tiny_cap_play_sun50iw10p.c
tiny_cap_play_sun50iw10p.c: In function 'main':
tiny_cap_play_sun50iw10p.c:317:15: warning: variable 'frames' set but not used [-Wunused-but-set-variable]
  unsigned int frames;
               ^
tiny_cap_play_sun50iw10p.c: In function 'cap_play_sample':
tiny_cap_play_sun50iw10p.c:539:7: warning: variable 'mic_passed' set but not used [-Wunused-but-set-variable]
  bool mic_passed =false;
       ^
  LN    mixer.o pcm.o tiny_cap_play_sun50iw10p.o -> mictester
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/mictester'
make -C mmctester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/mmctester'
cp mmctester.sh /opt/a133/longan/test/dragonboard/output/bin/
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/mmctester'
make -C nandtester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/nandtester'
  CC    nandrw.c
  LN    nandrw.o -> nandrw
cp nandtester.sh /opt/a133/longan/test/dragonboard/output/bin/
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/nandtester'
make -C rtctester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/rtctester'
cp rtctester.sh /opt/a133/longan/test/dragonboard/output/bin/
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/rtctester'
make -C udisktester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/udisktester'
cp udisktester.sh /opt/a133/longan/test/dragonboard/output/bin/
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/udisktester'
make -C wifitester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/wifitester'
cp wifitester.sh /opt/a133/longan/test/dragonboard/output/bin/
cp -rax firmware/* /opt/a133/longan/test/dragonboard/output/firmware/
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/wifitester'
make -C host1tester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/host1tester'
cp host1tester.sh /opt/a133/longan/test/dragonboard/output/bin/
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/host1tester'
make -C host2tester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/host2tester'
cp host2tester.sh /opt/a133/longan/test/dragonboard/output/bin/
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/host2tester'
make -C otgtester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/otgtester'
cp otgtester.sh /opt/a133/longan/test/dragonboard/output/bin/
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/otgtester'
make -C 2gtester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/2gtester'
  CC    2gtester.c
  LN    2gtester.o -> 2gtester
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/2gtester'
make -C bluetooth
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/bluetooth'
cp bttester.sh /opt/a133/longan/test/dragonboard/output/bin/
cp -rax firmware/* /opt/a133/longan/test/dragonboard/output/firmware/
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/bluetooth'
make -C gyrotester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/gyrotester'
  CC    gyrotester.c
  LN    gyrotester.o -> gyrotester
cp gyrotester.sh /opt/a133/longan/test/dragonboard/output/bin/
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/gyrotester'
make -C gyroiiotester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/gyroiiotester'
  CC    gyroiiotester.c
  LN    gyroiiotester.o -> gyroiiotester
cp gyroiiotester.sh /opt/a133/longan/test/dragonboard/output/bin/
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/gyroiiotester'
make -C vrcmptester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/vrcmptester'
  CC    vrcmptester.c
  LN    vrcmptester.o -> vrcmptester
cp vrcmptester.sh /opt/a133/longan/test/dragonboard/output/bin/
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/vrcmptester'
make -C vrlstester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/vrlstester'
  CC    vrlstester.c
  LN    vrlstester.o -> vrlstester
cp vrlstester.sh /opt/a133/longan/test/dragonboard/output/bin/
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/vrlstester'
make -C vrpstester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/vrpstester'
  CC    vrpstester.c
  LN    vrpstester.o -> vrpstester
cp vrpstester.sh /opt/a133/longan/test/dragonboard/output/bin/
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/vrpstester'
make -C compasstester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/compasstester'
  CC    compasstester.c
  LN    compasstester.o -> compasstester
cp compasstester.sh /opt/a133/longan/test/dragonboard/output/bin/
cp compasstester /opt/a133/longan/test/dragonboard/output/bin/
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/compasstester'
make -C emmctester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/emmctester'
  CC    emmcrw.c
  LN    emmcrw.o -> emmcrw
cp emmctester.sh /opt/a133/longan/test/dragonboard/output/bin/
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/emmctester'
make -C ethtester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/ethtester'
cp ethtester.sh /opt/a133/longan/test/dragonboard/output/bin/
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/ethtester'
make -C pmutester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/pmutester'
cp pmutester.sh /opt/a133/longan/test/dragonboard/output/bin/
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/pmutester'
make -C brcm_patchram_plus
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/brcm_patchram_plus'
  CC    brcm_patchram_plus.c
  LN    brcm_patchram_plus.o -> brcm_patchram_plus
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/brcm_patchram_plus'
make -C hcitools
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/hcitools'
  CC    hciattach.c
  CC    hciattach_ath3k.c
  CC    hciattach_bcm43xx.c
  CC    hciattach_intel.c
  CC    hciattach_qualcomm.c
  CC    hciattach_st.c
  CC    hciattach_ti.c
  CC    hciattach_tialt.c
  CC    hciattach_rtk.c
  CC    hciattach_xr.c
  CC    hciattach_sprd.c
arm-linux-gnueabi-gcc --sysroot=/opt/a133/longan/test/dragonboard/sysroot -Wall -O3 -Os -pipe -mtune=cortex-a8 -march=armv7-a -mabi=aapcs-linux -mfloat-abi=softfp -mfpu=neon -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_REENTRANT -I. -Ilib -Wall -DVERSION=\"5.10\" -Wno-strict-aliasing -Ilib/bluetooth  -I/opt/a133/longan/test/dragonboard/src/include  -c -o lib/bluetooth.o lib/bluetooth.c
arm-linux-gnueabi-gcc --sysroot=/opt/a133/longan/test/dragonboard/sysroot -Wall -O3 -Os -pipe -mtune=cortex-a8 -march=armv7-a -mabi=aapcs-linux -mfloat-abi=softfp -mfpu=neon -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_REENTRANT -I. -Ilib -Wall -DVERSION=\"5.10\" -Wno-strict-aliasing -Ilib/bluetooth  -I/opt/a133/longan/test/dragonboard/src/include  -c -o lib/hci.o lib/hci.c
arm-linux-gnueabi-gcc --sysroot=/opt/a133/longan/test/dragonboard/sysroot -Wall -O3 -Os -pipe -mtune=cortex-a8 -march=armv7-a -mabi=aapcs-linux -mfloat-abi=softfp -mfpu=neon -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_REENTRANT -I. -Ilib -Wall -DVERSION=\"5.10\" -Wno-strict-aliasing -Ilib/bluetooth  -I/opt/a133/longan/test/dragonboard/src/include  -c -o lib/sdp.o lib/sdp.c
  LN    hciattach.o hciattach_ath3k.o hciattach_bcm43xx.o hciattach_intel.o hciattach_qualcomm.o hciattach_st.o hciattach_ti.o hciattach_tialt.o hciattach_rtk.o hciattach_xr.o hciattach_sprd.o lib/bluetooth.o lib/hci.o lib/sdp.o -> hciattach
  CC    hciconfig.c
  CC    csr.c
  LN    hciconfig.o csr.o lib/bluetooth.o lib/hci.o lib/sdp.o -> hciconfig
  CC    hcitool.c
  LN    hcitool.o lib/bluetooth.o lib/hci.o lib/sdp.o -> hcitool
  CC    monitor/main.c
  CC    monitor/mainloop.c
  CC    monitor/display.c
  CC    monitor/hcidump.c
  CC    monitor/btsnoop.c
  CC    monitor/control.c
  CC    monitor/packet.c
  CC    monitor/vendor.c
  CC    monitor/lmp.c
  CC    monitor/l2cap.c
  CC    monitor/uuid.c
  CC    monitor/sdp.c
  CC    monitor/crc.c
  CC    monitor/ll.c
  LN    monitor/main.o monitor/mainloop.o monitor/display.o monitor/hcidump.o monitor/btsnoop.o monitor/control.o monitor/packet.o monitor/vendor.o monitor/lmp.o monitor/l2cap.o monitor/uuid.o monitor/sdp.o monitor/crc.o monitor/ll.o lib/bluetooth.o lib/hci.o lib/sdp.o -> btmon
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/hcitools'
make -C getevent
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/getevent'
  CC    getevent.c
  LN    getevent.o -> getevent
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/getevent'
make -C sensorhubtester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/sensorhubtester'
  CC    sensorhubtester.c
  LN    sensorhubtester.o -> sensorhubtester
cp sensorhub.sh  /opt/a133/longan/test/dragonboard/output/bin/
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/sensorhubtester'
make -C iperf
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/iperf'
  CC    compat/Thread.c
  CC    compat/error.c
  CC    compat/delay.c
  CC    compat/gettimeofday.c
  CC    compat/inet_ntop.c
  CC    compat/inet_pton.c
  CC    compat/signal.c
  CC    compat/snprintf.c
  CC    compat/string.c
  CC    src/Extractor.c
  CC    src/Locale.c
  CC    src/ReportCSV.c
  CC    src/ReportDefault.c
  CC    src/Reporter.c
  CC    src/SocketAddr.c
  CC    src/gnu_getopt.c
  CC    src/gnu_getopt_long.c
  CC    src/histogram.c
  CC    src/service.c
  CC    src/sockets.c
  CC    src/stdio.c
  CC    src/tcp_window_size.c
  CC    src/checksums.c
  CC    src/pdfs.c
  CC    src/main.cpp
  CC    src/Settings.cpp
  CC    src/Server.cpp
  CC    src/Client.cpp
  CC    src/isochronous.cpp
  CC    src/Launch.cpp
  CC    src/List.cpp
  CC    src/Listener.cpp
  CC    src/PerfSocket.cpp
  LN    compat/Thread.o compat/error.o compat/delay.o compat/gettimeofday.o compat/inet_ntop.o compat/inet_pton.o compat/signal.o compat/snprintf.o compat/string.o src/Extractor.o src/Locale.o src/ReportCSV.o src/ReportDefault.o src/Reporter.o src/SocketAddr.o src/gnu_getopt.o src/gnu_getopt_long.o src/histogram.o src/service.o src/sockets.o src/stdio.o src/tcp_window_size.o src/checksums.o src/pdfs.o src/main.o src/Settings.o src/Server.o src/Client.o src/isochronous.o src/Launch.o src/List.o src/Listener.o src/PerfSocket.o -> iperf
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/iperf'
make -C ledtester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/ledtester'
cp ledtester.sh /opt/a133/longan/test/dragonboard/output/bin/
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/ledtester'
make -C tvtester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/tvtester'
cp tvtester.sh /opt/a133/longan/test/dragonboard/output/bin/
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/tvtester'
make -C spdiftester
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/spdiftester'
cp spdiftester.sh /opt/a133/longan/test/dragonboard/output/bin/
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/spdiftester'
make -C fpgademo
make[2]: Entering directory '/opt/a133/longan/test/dragonboard/src/testcases/fpgademo'
  CC    fpgademo.c
  LN    fpgademo.o -> fpgademo
make[2]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases/fpgademo'
make[1]: Leaving directory '/opt/a133/longan/test/dragonboard/src/testcases'
make -C view
make[1]: Entering directory '/opt/a133/longan/test/dragonboard/src/view'
#make -C stp_uart_launcher
#make -C write_devnode
cp -rf hawkview /opt/a133/longan/test/dragonboard/output/bin/
make[1]: Leaving directory '/opt/a133/longan/test/dragonboard/src/view'
generating rootfs...
blocks: 77M -> 96M
Creating filesystem with parameters:
    Size: 100663296
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 6144
    Inode size: 256
    Journal blocks: 1024
    Label:
    Blocks: 24576
    Block groups: 1
    Reserved block group size: 7
Created filesystem with 1143/6144 inodes and 21096/24576 blocks
e2fsck 1.44.1 (24-Mar-2018)
success in generating rootfs
Build at: Fri Oct  1 09:08:53 CST 2021
INFO: ----------------------------------------
INFO: build lichee OK.
INFO: ----------------------------------------
me@ubuntu:/opt/a133/longan$
me@ubuntu:/opt/a133/longan$
me@ubuntu:/opt/a133/longan$ ./build.sh pack
ACTION List: mkpack ;========
Execute command: mkpack
INFO: packing firmware ...
INFO: Use BIN_PATH: /opt/a133/longan/device/config/chips/t509//bin
copying tools file
copying configs file
copying product configs file
/opt/a133/longan/out/pack_out/aultls32.fex
/opt/a133/longan/out/pack_out/aultools.fex
/opt/a133/longan/out/pack_out/boot_package.cfg
/opt/a133/longan/out/pack_out/boot_package.fex
/opt/a133/longan/out/pack_out/boot_package_nor.cfg
/opt/a133/longan/out/pack_out/cardscript.fex
/opt/a133/longan/out/pack_out/cardscript_secure.fex
/opt/a133/longan/out/pack_out/cardtool.fex
/opt/a133/longan/out/pack_out/diskfs.fex
/opt/a133/longan/out/pack_out/dragon_toc.cfg
/opt/a133/longan/out/pack_out/dragon_toc_android.cfg
/opt/a133/longan/out/pack_out/dtboimg.cfg
/opt/a133/longan/out/pack_out/env.cfg
/opt/a133/longan/out/pack_out/env_burn.cfg
/opt/a133/longan/out/pack_out/env_dragon.cfg
/opt/a133/longan/out/pack_out/esm.fex
/opt/a133/longan/out/pack_out/image.cfg
/opt/a133/longan/out/pack_out/image_android.cfg
/opt/a133/longan/out/pack_out/image_crashdump.cfg
renamed '/opt/a133/longan/out/pack_out/image_dragonboard.cfg' -> '/opt/a133/longan/out/pack_out/image.cfg'
/opt/a133/longan/out/pack_out/image_linux.cfg
/opt/a133/longan/out/pack_out/image_nor.cfg
/opt/a133/longan/out/pack_out/parameter.fex
/opt/a133/longan/out/pack_out/split_xxxx.fex
/opt/a133/longan/out/pack_out/sunxi.fex
/opt/a133/longan/out/pack_out/sys_config.fex
/opt/a133/longan/out/pack_out/sys_partition.fex
/opt/a133/longan/out/pack_out/sys_partition_dump.fex
/opt/a133/longan/out/pack_out/sys_partition_private.fex
/opt/a133/longan/out/pack_out/sysrecovery.fex
/opt/a133/longan/out/pack_out/test_config.fex
/opt/a133/longan/out/pack_out/toc0.fex
/opt/a133/longan/out/pack_out/toc1.fex
/opt/a133/longan/out/pack_out/usbtool.fex
/opt/a133/longan/out/pack_out/usbtool_crash.fex
/opt/a133/longan/out/pack_out/usbtool_test.fex
/opt/a133/longan/out/pack_out/verity_block.fex
copying boot resource
copying boot file
Script_to_dts: use board special dts file board.dts
sunxi_dtb create
p=soc c=product state=0
p=soc c=platform state=0
p=soc c=target state=0
p=soc c=power_sply state=0
p=soc c=card_boot state=0
p=soc c=fastboot_key state=0
p=soc c=recovery_key state=0
p=soc c=pm_para state=0
p=soc c=card0_boot_para state=0
p=soc c=card2_boot_para state=0
p=soc c=gpio_bias state=0
p=soc c=auto_print state=0
p=soc c=uart_para state=0
p=soc c=jtag_para state=0
p=soc c=clock state=0
p=soc c=dram state=0
p=soc c=uart0 state=0
p=soc c=nand0 state=0
p=soc c=charger0 state=0
Conver script to dts ok.
update scp
update optee

sboot file Path=/opt/a133/longan/out/pack_out/sboot.bin
script file Path=/opt/a133/longan/out/pack_out/sys_config.bin

update:unable to open sboot file
script update sboot ok
do not set LINUX_DTBO_FILE
pack boot package
GetPrivateProfileSection read to end
content_count=4
packing for dragonboard
normal
this is not a partition key
gpt_head->header_crc32 = 0xe26cf7d0
GPT----part num 6---
gpt_entry: 128
gpt_header: 92
GPT:boot-resource: 8000          ffff
GPT:env         : 10000         17fff
GPT:boot        : 18000         27fff
GPT:rootfs      : 28000         127fff
GPT:klog        : 128000        12ffff
GPT:UDISK       : 130000        13000f
update gpt file ok
update mbr file ok
/opt/a133/longan/tools/pack/pctools/linux/eDragonEx/
/opt/a133/longan/out/pack_out
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=91fc00Add 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=e6b000Add partion rootfs.fex ROOTFS_FEX000000
Add partion very rootfs.fex ROOTFS_FEX000000
FilePath: rootfs.fex
FileLength=6000000sys_config.fex Len: 0x1f47
board.fex Len: 0x400
config.fex Len: 0x2000
split_xxxx.fex Len: 0x200
sys_partition.fex Len: 0xaee
sunxi.fex Len: 0x1fe00
boot0_nand.fex Len: 0xc000
boot0_sdcard.fex Len: 0xc000
u-boot.fex Len: 0xa8000
u-boot-crash.fex Len: 0x25
toc1.fex Len: 0x8
toc0.fex Len: 0x8
fes1.fex Len: 0x6e80
boot_package.fex Len: 0xec000
usbtool.fex Len: 0x24400
usbtool_crash.fex Len: 0x97a00
aultools.fex Len: 0x28999
aultls32.fex Len: 0x25205
cardtool.fex Len: 0x11e00
cardscript.fex Len: 0x779
sunxi_gpt.fex Len: 0x2000
sunxi_mbr.fex Len: 0x10000
dlinfo.fex Len: 0x4000
arisc.fex Len: 0x6
boot-resource.fex Len: 0x91fc00
Vboot-resource.fex Len: 0x4
env.fex Len: 0x20000
Venv.fex Len: 0x4
boot.fex Len: 0xe6b000
Vboot.fex Len: 0x4
rootfs.fex Len: 0x6000000
Vrootfs.fex Len: 0x4
BuildImg 0
Dragon execute image.cfg SUCCESS !
----------image is at----------

/opt/a133/longan/out/t509_dragonboard_a3_uart0.img

pack finish
me@ubuntu:/opt/a133/longan$

最近编辑记录 X3 (2021-10-01 09:11:39)

离线

楼主 #4 2021-10-01 16:34:00

X3
会员
注册时间: 2020-04-08
已发帖子: 85
积分: 73.5

Re: 全志A133/T509/AIC800 编译 longan SDK 出现这个错误

build/mkcmd.sh 里面定义了 kernel版本 / 系统结构 / gcc版本 / rootfs版本:

cross_compiler=(
'linux-3.4      arm      gcc-linaro.tar.bz2      target_arm.tar.bz2'
'linux-3.4      arm64   gcc-linaro-aarch64.tar.xz       target_arm64.tar.bz2'
'linux-3.10     arm      gcc-linaro-arm.tar.xz   target_arm.tar.bz2'
'linux-3.10     arm64   gcc-linaro-aarch64.tar.xz       target_arm64.tar.bz2'
'linux-4.4      arm       gcc-linaro-5.3.1-2016.05-x86_64_arm-linux-gnueabi.tar.xz        target-arm-linaro-5.3.tar.bz2'
'linux-4.4      arm64   gcc-linaro-5.3.1-2016.05-x86_64_aarch64-linux-gnu.tar.xz        target-arm64-linaro-5.3.tar.bz2'
'linux-4.9      arm       gcc-linaro-5.3.1-2016.05-x86_64_arm-linux-gnueabi.tar.xz        target-arm-linaro-5.3.tar.bz2'
'linux-4.9      arm64   gcc-linaro-5.3.1-2016.05-x86_64_aarch64-linux-gnu.tar.xz        target-arm64-linaro-5.3.tar.bz2'
)

离线

楼主 #5 2021-10-02 09:47:54

X3
会员
注册时间: 2020-04-08
已发帖子: 85
积分: 73.5

Re: 全志A133/T509/AIC800 编译 longan SDK 出现这个错误

开机画面直接替换: device/config/chips/t509/boot-resource/boot-resource/bootlogo.bmp

离线

楼主 #6 2021-10-02 10:24:57

X3
会员
注册时间: 2020-04-08
已发帖子: 85
积分: 73.5

Re: 全志A133/T509/AIC800 编译 longan SDK 出现这个错误

修改 build/mkcommon.sh

添加 rootfs 子命令:

...
        buildroot)
                ACTION="mkbr;";
                module=buildroot;
                break;
                ;;
        rootfs)
                ACTION="mkrootfs;";
                module=rootfs;
                break;
                ;;
        ramfs)
                ACTION="mkramfs;";
                module=ramfs;
                break;
                ;;
...

执行 ./build.sh rootfs 之后:

/opt/a133/longan$ ./build.sh rootfs
ACTION List: mkrootfs;========
Execute command: mkrootfs 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
INFO: build rootfs ...
INFO: Build default rootfs ...
tune2fs 1.44.1 (24-Mar-2018)
tune2fs 1.44.1 (24-Mar-2018)

Please run e2fsck -f on the filesystem.

Creating journal inode: done
This filesystem will be automatically checked every 20 mounts or
0 days, whichever comes first.  Use tune2fs -c or -i to override.

mke2img: e2fsck was successfully run on '/opt/a133/longan/out/t509/a3/bsp/rootfs.ext4' (ext4)

tune2fs 1.44.1 (24-Mar-2018)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
Error: max_leb_cnt too low (200 needed)
rootdir=/opt/a133/longan/out/t509/a3/bsp/rootfs_def
table='/opt/a133/longan/device/config/rootfs_tar/_device_table.txt'
Parallel mksquashfs: Using 4 processors
Creating 4.0 filesystem on /opt/a133/longan/out/t509/a3/bsp/rootfs.squashfs, block size 131072.

Exportable Squashfs 4.0 filesystem, xz compressed, data block size 131072
	compressed data, compressed metadata, compressed fragments, no xattrs
	duplicates are removed
Filesystem size 31395.40 Kbytes (30.66 Mbytes)
	32.75% of uncompressed filesystem size (95855.94 Kbytes)
Inode table size 27310 bytes (26.67 Kbytes)
	23.06% of uncompressed inode table size (118406 bytes)
Directory table size 32446 bytes (31.69 Kbytes)
	47.24% of uncompressed directory table size (68683 bytes)
Number of duplicate files found 210
Number of inodes 3500
Number of files 2830
Number of fragments 239
Number of symbolic links  473
Number of device nodes 3
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 194
Number of ids (unique uids + gids) 1
Number of uids 1
	root (0)
Number of gids 1
	root (0)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
X3@ubuntu:/opt/a133/longan$ 

重新构建了 rootfs.ext4 rootfs.squashfs 文件系统

离线

楼主 #7 2021-10-02 12:30:55

X3
会员
注册时间: 2020-04-08
已发帖子: 85
积分: 73.5

Re: 全志A133/T509/AIC800 编译 longan SDK 出现这个错误

执行 ./build.sh rootfs 会把 out/t509/a3/bsp/rootfs_def 打包成 out/t509/a3/bsp/rootfs.ext4out/t509/a3/bsp/rootfs.squashfs,所以,如果要buildroot自己制作文件系统,那么需要把 output/target/* 复制到 out/t509/a3/bsp/rootfs_def

离线

#8 2021-10-04 08:23:23

cloudxxcloud
会员
注册时间: 2021-02-20
已发帖子: 39
积分: 26.5

Re: 全志A133/T509/AIC800 编译 longan SDK 出现这个错误

X3 说:

执行 ./build.sh rootfs 会把 out/t509/a3/bsp/rootfs_def 打包成 out/t509/a3/bsp/rootfs.ext4out/t509/a3/bsp/rootfs.squashfs,所以,如果要buildroot自己制作文件系统,那么需要把 output/target/* 复制到 out/t509/a3/bsp/rootfs_def

t509是啥?

离线

楼主 #9 2021-10-04 09:08:56

X3
会员
注册时间: 2020-04-08
已发帖子: 85
积分: 73.5

Re: 全志A133/T509/AIC800 编译 longan SDK 出现这个错误

离线

#10 2021-11-07 18:20:19

ubuntu
会员
注册时间: 2020-03-30
已发帖子: 270
积分: 248

Re: 全志A133/T509/AIC800 编译 longan SDK 出现这个错误

X3 说:

好像还有一个马甲叫 MR813 ?

离线

#11 2022-01-31 15:43:12

马前卒
会员
注册时间: 2020-08-08
已发帖子: 60
积分: 57

Re: 全志A133/T509/AIC800 编译 longan SDK 出现这个错误

2022-01-30_184803.png

这个是两个LVDS LCD 吗?

离线

#12 2022-01-31 17:20:43

cloudxxcloud
会员
注册时间: 2021-02-20
已发帖子: 39
积分: 26.5

Re: 全志A133/T509/AIC800 编译 longan SDK 出现这个错误

aic800也凉凉了

离线

#13 2022-01-31 17:35:24

cube
会员
注册时间: 2021-03-11
已发帖子: 288
积分: 202.5

Re: 全志A133/T509/AIC800 编译 longan SDK 出现这个错误

cloudxxcloud 说:

aic800也凉凉了

没有凉,只是换马甲了而已。

离线

#14 2022-02-05 08:21:54

lghtjpu
会员
注册时间: 2020-02-23
已发帖子: 41
积分: 30.5

Re: 全志A133/T509/AIC800 编译 longan SDK 出现这个错误

cube 说:
cloudxxcloud 说:

aic800也凉凉了

没有凉,只是换马甲了而已。

新的马甲型号是什么了???

离线

#15 2022-02-05 09:22:45

arychen
会员
注册时间: 2019-04-06
已发帖子: 271
积分: 246.5

Re: 全志A133/T509/AIC800 编译 longan SDK 出现这个错误

新马甲啥价钱

离线

楼主 #16 2022-03-17 10:04:06

X3
会员
注册时间: 2020-04-08
已发帖子: 85
积分: 73.5

Re: 全志A133/T509/AIC800 编译 longan SDK 出现这个错误

gpu清除:

make package/libs/libgpu/clean

gpu编译:

make package/libs/libgpu/compile

gpu安装:

make package/libs/libgpu/install

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn