您尚未登录。

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

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

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

全志AIC800 手册: aic800g3_datasheet_v1.4.pdf

原理图: SC3904Q-mb-V00-20112600.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 2021-09-09 12:57:25

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

Re: 全志A133/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
已发帖子: 21
积分: 16.5

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

搞定了?

离线

页脚

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

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