rpdzkj@ubuntu:~/Documents/t509-android10.0$ ./build.sh andriod INIT: Envsetup common script /home/rpdzkj/Documents/t509-android10.0 processing option: andriod ./build.sh: line 201: build_andriod: command not found Welcome to mkscript setup progress All available platform: 0. android 1. linux All available ic: 0. a133 1. t509 All available board: 0. aw 1. aw2 2. demo 3. demo2 4. fpga 5. qa 6. ver including device/softwinner/common/vendorsetup.sh longan project path: /home/rpdzkj/Documents/t509-android10.0/longan INFO: Prepare toolchain ... INFO: kernel defconfig: generate /home/rpdzkj/Documents/t509-android10.0/longan/kernel/linux-4.9/.config by /home/rpdzkj/Documents/t509-android10.0/longan/kernel/linux-4.9/arch/arm64/configs/sun50iw10p1smp_t509_android_defconfig INFO: Prepare toolchain ... make: Entering directory '/home/rpdzkj/Documents/t509-android10.0/longan/kernel/linux-4.9' *** Default configuration is based on 'sun50iw10p1smp_t509_android_defconfig' # # configuration written to .config # make: Leaving directory '/home/rpdzkj/Documents/t509-android10.0/longan/kernel/linux-4.9' ============================================ PLATFORM_VERSION_CODENAME=REL PLATFORM_VERSION=10 TARGET_PRODUCT=pluto_aw2 TARGET_BUILD_VARIANT=userdebug TARGET_BUILD_TYPE=release TARGET_ARCH=arm TARGET_ARCH_VARIANT=armv7-a-neon TARGET_CPU_VARIANT=cortex-a7 HOST_ARCH=x86_64 HOST_2ND_ARCH=x86 HOST_OS=linux HOST_OS_EXTRA=Linux-5.4.0-124-generic-x86_64-Ubuntu-18.04.6-LTS HOST_CROSS_OS=windows HOST_CROSS_ARCH=x86 HOST_CROSS_2ND_ARCH=x86_64 HOST_BUILD_TYPE=release BUILD_ID=QP1A.191105.004 OUT_DIR=out ============================================ Copy /home/rpdzkj/Documents/t509-android10.0/longan/out/t509/aw2/android/bImage to /home/rpdzkj/Documents/t509-android10.0/android/device/softwinner/pluto-aw/kernel Copy /home/rpdzkj/Documents/t509-android10.0/longan/out/t509/aw2/android/dtbo.img to /home/rpdzkj/Documents/t509-android10.0/android/device/softwinner/pluto-aw/dtbo.img Copy /home/rpdzkj/Documents/t509-android10.0/longan/out/t509/aw2/android/lib/modules/*/* to /home/rpdzkj/Documents/t509-android10.0/android/device/softwinner/pluto-aw/modules! Copy /home/rpdzkj/Documents/t509-android10.0/longan/out/t509/aw2/android/sunxi.dtb to /home/rpdzkj/Documents/t509-android10.0/android/device/softwinner/pluto-aw/sunxi.dtb ============================================ PLATFORM_VERSION_CODENAME=REL PLATFORM_VERSION=10 TARGET_PRODUCT=pluto_aw2 TARGET_BUILD_VARIANT=userdebug TARGET_BUILD_TYPE=release TARGET_ARCH=arm TARGET_ARCH_VARIANT=armv7-a-neon TARGET_CPU_VARIANT=cortex-a7 HOST_ARCH=x86_64 HOST_2ND_ARCH=x86 HOST_OS=linux HOST_OS_EXTRA=Linux-5.4.0-124-generic-x86_64-Ubuntu-18.04.6-LTS HOST_CROSS_OS=windows HOST_CROSS_ARCH=x86 HOST_CROSS_2ND_ARCH=x86_64 HOST_BUILD_TYPE=release BUILD_ID=QP1A.191105.004 OUT_DIR=out ============================================ [100% 11268/11268] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja cedarc config go file start cedarx config go file start sdkVersion: 29 board: pluto sdkVersion: 29 board: pluto Platform config has NOT been set. Please check it. cryptolevel: 3 playreadytype: Include_dirs has NOT been set. Please check it. registry_table has NOT been set. Please check it. Environment variable BUILD_NUMBER was modified (202212131249 => 202212131647), regenerating... Environment variable BUILD_NUMBER was modified (202212131249 => 202212131647), regenerating... [ 97% 11474/11743] including hardware/aw/camera/Android.mk ... hardware/aw/camera/3_4/allwinnertech/libAWIspApi/Android.mk:23: warning: Use ceres include libisp_new! hardware/aw/camera/3_4/allwinnertech/libAWIspApi/libisp_new/Android.mk:66: warning: Use pluto libisp_new! [ 97% 11483/11743] including hardware/aw/playready/Android.mk ... hardware/aw/playready/lib/Android.mk:17: warning: libplayreadydrmplugin=nonsecure/lib32/libplayreadydrmplugin.so hardware/aw/playready/lib/Android.mk:40: warning: libplayreadydrmplugin=nonsecure/lib64/libplayreadydrmplugin.so hardware/aw/playready/lib/Android.mk:63: warning: libplayreadypk=nonsecure/lib32/libplayreadypk.so hardware/aw/playready/lib/Android.mk:87: warning: libplayreadypk=nonsecure/lib64/libplayreadypk.so [ 99% 11742/11743] finishing build rules ... platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module 'NexusLauncherOutOfProcTests' platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module 'NexusLauncherDebug' platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module 'NexusLauncherTests' platform_testing/build/tasks/tests/platform_test_list.mk: warning: platform_tests: Unknown installed file for module 'LauncherRotationStressTest' platform_testing/build/tasks/tests/platform_test_list.mk: warning: platform_tests: Unknown installed file for module 'PlatformScenarioTests' out/target/product/pluto-aw/obj/CONFIG/kati_packaging/dist.mk was modified, regenerating... [ 93% 11867/12728] build out/target/product/pluto-aw/installed-files-ramdisk-deb Installed file list: out/target/product/pluto-aw/installed-files-ramdisk-debug.txt [ 96% 12344/12728] //art/build/apex:art-check-release-apex-gen generate --bitness=auto, trying to autodetect. This may be incorrect! Detected 32-only [ 99% 12726/12728] build check-all-partition-sizes The sum of sizes of [system vendor product] is within BOARD_SUPER_PARTITION_SIZE: 613494784+120860672+247164928 == 981520384 <= 3758096384 == 3758096384 The sum of sizes of [system vendor product] is within BOARD_SB_SIZE: 613494784+120860672+247164928 == 981520384 <= 3749707776 == 3749707776 The sum of sizes of [sb] is within BOARD_SUPER_PARTITION_SIZE: 3749707776 == 3749707776 <= 3758096384 == 3758096384 [100% 12728/12728] Target super fs image for debug: out/target/product/pluto-aw/ 2022-12-13 17:05:16 - build_super_image.py - INFO : Building super image from info dict... 2022-12-13 17:05:16 - sparse_img.py - INFO : Total of 149779 4096-byte output blocks in 11 input chunks. 2022-12-13 17:05:16 - sparse_img.py - INFO : Total of 29507 4096-byte output blocks in 7 input chunks. 2022-12-13 17:05:16 - sparse_img.py - INFO : Total of 60343 4096-byte output blocks in 9 input chunks. 2022-12-13 17:05:16 - common.py - INFO : Running: "lpmake --metadata-size 65536 --super-name super --metadata-slots 2 --device super:3758096384 --group sb:3749707776 --partition system:readonly:613494784:sb --image system=out/target/product/pluto-aw/system.img --partition vendor:readonly:120860672:sb --image vendor=out/target/product/pluto-aw/vendor.img --partition product:readonly:247164928:sb --image product=out/target/product/pluto-aw/product.img --sparse --output out/target/product/pluto-aw/super.img" 2022-12-13 17:05:25 - common.py - INFO : lpmake I 12-13 17:05:17 20642 20642 builder.cpp:949] [liblp]Partition system will resize from 0 bytes to 613494784 bytes lpmake I 12-13 17:05:17 20642 20642 builder.cpp:949] [liblp]Partition vendor will resize from 0 bytes to 120860672 bytes lpmake I 12-13 17:05:17 20642 20642 builder.cpp:949] [liblp]Partition product will resize from 0 bytes to 247164928 bytes 2022-12-13 17:05:25 - build_super_image.py - INFO : Done writing image out/target/product/pluto-aw/super.img #### build completed successfully (17:32 (mm:ss)) #### INFO: /home/rpdzkj/Documents/t509-android10.0/longan/out/t509/common/keys INFO: No kernel param, parse it from .buildconfig copying tools file copying configs file copying product configs file /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/aultls32.fex /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/aultools.fex /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/boot_package.cfg /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/boot_package.fex /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/boot_package_nor.cfg /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/cardscript.fex /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/cardscript_secure.fex /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/cardtool.fex /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/diskfs.fex /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/dragon_toc.cfg renamed '/home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/dragon_toc_android.cfg' -> '/home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/dragon_toc.cfg' /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/dtboimg.cfg /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/env.cfg /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/env_burn.cfg /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/env_dragon.cfg /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/esm.fex /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/image.cfg renamed '/home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/image_android.cfg' -> '/home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/image.cfg' /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/image_crashdump.cfg /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/image_dragonboard.cfg /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/image_linux.cfg /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/image_nor.cfg /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/parameter.fex /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/split_xxxx.fex /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/sunxi.fex /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/sys_config.fex /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/sys_partition.fex /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/sys_partition_dump.fex /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/sys_partition_private.fex /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/sysrecovery.fex /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/toc0.fex /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/toc1.fex /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/usbtool.fex /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/usbtool_crash.fex /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/usbtool_test.fex /home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/verity_block.fex copying boot resource copying boot file '/home/rpdzkj/Documents/t509-android10.0/longan/device/config/chips/t509/bin/boot0_nand_sun50iw10p1.bin' -> '/home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/boot0_nand.fex' '/home/rpdzkj/Documents/t509-android10.0/longan/device/config/chips/t509/bin/boot0_sdcard_sun50iw10p1.bin' -> '/home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/boot0_sdcard.fex' '/home/rpdzkj/Documents/t509-android10.0/longan/device/config/chips/t509/bin/fes1_sun50iw10p1.bin' -> '/home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/fes1.fex' '/home/rpdzkj/Documents/t509-android10.0/longan/device/config/chips/t509/bin/u-boot-sun50iw10p1.bin' -> '/home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/u-boot.fex' '/home/rpdzkj/Documents/t509-android10.0/longan/device/config/chips/t509/bin/bl31.bin' -> '/home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/monitor.fex' '/home/rpdzkj/Documents/t509-android10.0/longan/device/config/chips/t509/bin/scp.bin' -> '/home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/scp.fex' '/home/rpdzkj/Documents/t509-android10.0/longan/device/config/chips/t509/bin/optee_sun50iw10p1.bin' -> '/home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/optee.fex' '/home/rpdzkj/Documents/t509-android10.0/longan/device/config/chips/t509//bin/boot0_nand_sun50iw10p1.bin' -> '/home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/boot0_nand.fex' '/home/rpdzkj/Documents/t509-android10.0/longan/device/config/chips/t509//bin/boot0_sdcard_sun50iw10p1.bin' -> '/home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/boot0_sdcard.fex' '/home/rpdzkj/Documents/t509-android10.0/longan/device/config/chips/t509//bin/fes1_sun50iw10p1.bin' -> '/home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/fes1.fex' '/home/rpdzkj/Documents/t509-android10.0/longan/device/config/chips/t509//bin/u-boot-sun50iw10p1.bin' -> '/home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/u-boot.fex' '/home/rpdzkj/Documents/t509-android10.0/longan/device/config/chips/t509//bin/bl31.bin' -> '/home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/monitor.fex' '/home/rpdzkj/Documents/t509-android10.0/longan/device/config/chips/t509//bin/scp.bin' -> '/home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/scp.fex' '/home/rpdzkj/Documents/t509-android10.0/longan/device/config/chips/t509//bin/optee_sun50iw10p1.bin' -> '/home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/optee.fex' copying boot file 2.0 copying additional files handle partition_size sunxi_dtb create Warning (reg_format): "reg" property in /soc@03000000/ctp has invalid length (4 bytes) (#address-cells == 2, #size-cells == 2) Warning (reg_format): "reg" property in /soc@03000000/ctp2 has invalid length (4 bytes) (#address-cells == 2, #size-cells == 2) 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 Warning (reg_format): "reg" property in /soc@03000000/ctp has invalid length (4 bytes) (#address-cells == 2, #size-cells == 2) Warning (reg_format): "reg" property in /soc@03000000/ctp2 has invalid length (4 bytes) (#address-cells == 2, #size-cells == 2) Conver script to dts ok. Warning (reg_format): "reg" property in /soc@03000000/ctp has invalid length (4 bytes) (#address-cells == 2, #size-cells == 2) Warning (reg_format): "reg" property in /soc@03000000/ctp2 has invalid length (4 bytes) (#address-cells == 2, #size-cells == 2) ./pack: line 837: update_chip: command not found ./pack: line 838: update_chip: command not found update scp update optee sboot file Path=/home/rpdzkj/Documents/t509-android10.0/longan/out/pack_out/sboot.bin script file Path=/home/rpdzkj/Documents/t509-android10.0/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 android link boot.img -> boot.fex link super.img -> super.fex link recovery.img -> recovery.fex link vbmeta.img -> vbmeta.fex link vbmeta_system.img -> vbmeta_system.fex link vbmeta_vendor.img -> vbmeta_vendor.fex link dtbo.img -> dtbo.fex normal this is not a partition key gpt_head->header_crc32 = 0x273ca445 GPT----part num 17--- gpt_entry: 128 gpt_header: 92 GPT:bootloader : 8000 17fff GPT:env : 18000 1ffff GPT:boot : 20000 2ffff GPT:super : 30000 72ffff GPT:misc : 730000 737fff GPT:recovery : 738000 747fff GPT:cache : 748000 887fff GPT:vbmeta : 888000 88ffff GPT:vbmeta_system: 890000 897fff GPT:vbmeta_vendor: 898000 89ffff GPT:metadata : 8a0000 8a7fff GPT:private : 8a8000 8affff GPT:frp : 8b0000 8b03ff GPT:empty : 8b0400 8b7fff GPT:dtbo : 8b8000 8b8fff GPT:media_data : 8b9000 8c0fff GPT:UDISK : 8c1000 8c100f update gpt file ok update mbr file ok /home/rpdzkj/Documents/t509-android10.0/longan/tools/pack/pctools/linux/eDragonEx/ /home/rpdzkj/Documents/t509-android10.0/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=9de400Add 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=2000000Add partion super.fex SUPER_FEX0000000 Add partion very super.fex SUPER_FEX0000000 FilePath: super.fex FileLength=39e2a494Add partion recovery.fex RECOVERY_FEX0000 Add partion very recovery.fex RECOVERY_FEX0000 FilePath: recovery.fex FileLength=2000000Add partion vbmeta.fex VBMETA_FEX000000 Add partion very vbmeta.fex VBMETA_FEX000000 FilePath: vbmeta.fex FileLength=2000Add partion vbmeta_system.fex VBMETA_SYSTEM_FEX Add partion very vbmeta_system.fex VBMETA_SYSTEM_FEX FilePath: vbmeta_system.fex FileLength=1000Add partion vbmeta_vendor.fex VBMETA_VENDOR_FEX Add partion very vbmeta_vendor.fex VBMETA_VENDOR_FEX FilePath: vbmeta_vendor.fex FileLength=1000Add partion dtbo.fex DTBO_FEX00000000 Add partion very dtbo.fex DTBO_FEX00000000 FilePath: dtbo.fex FileLength=200000sys_config.fex Len: 0x209a board.fex Len: 0x400 config.fex Len: 0x2000 split_xxxx.fex Len: 0x200 sys_partition.fex Len: 0x14d4 sunxi.fex Len: 0x23800 boot0_nand.fex Len: 0xc000 boot0_sdcard.fex Len: 0xc000 u-boot.fex Len: 0xb0000 u-boot-crash.fex Len: 0x25 toc1.fex Len: 0x8 toc0.fex Len: 0x8 fes1.fex Len: 0x8240 boot_package.fex Len: 0xf8000 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 vmlinux.fex Len: 0x5180816 boot-resource.fex Len: 0x9de400 Vboot-resource.fex Len: 0x4 env.fex Len: 0x20000 Venv.fex Len: 0x4 boot.fex Len: 0x2000000 Vboot.fex Len: 0x4 super.fex Len: 0x39e2a494 Vsuper.fex Len: 0x4 recovery.fex Len: 0x2000000 Vrecovery.fex Len: 0x4 vbmeta.fex Len: 0x2000 Vvbmeta.fex Len: 0x4 vbmeta_system.fex Len: 0x1000 Vvbmeta_system.fex Len: 0x4 vbmeta_vendor.fex Len: 0x1000 Vvbmeta_vendor.fex Len: 0x4 dtbo.fex Len: 0x200000 Vdtbo.fex Len: 0x4 BuildImg 0 Dragon execute image.cfg SUCCESS ! ----------image is at---------- /home/rpdzkj/Documents/t509-android10.0/longan/out/t509_android10_aw2_uart0.img pack finish use pack4dist for release /home/rpdzkj/Documents/t509-android10.0 Build pack ok! rpdzkj@ubuntu:~/Documents/t509-android10.0$