Firefly开源社区

打印 上一主题 下一主题

[Android] Android11编译。u-boot/trust.img not fount! Please make it from u-boot first!

94

积分

0

威望

0

贡献

技术小白

积分
94

Android11编译。u-boot/trust.img not fount! Please make it from u-boot first!

发表于 2024-9-30 19:50:55      浏览:412 | 回复:3        打印      只看该作者   [复制链接] 楼主
问题描述及复现步骤:
make -j1
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=11
TARGET_PRODUCT=rk3566_roc_pc
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a55
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-2a
TARGET_2ND_CPU_VARIANT=cortex-a55
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-6.8.0-45-generic-x86_64-Ubuntu-22.04.5-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=RD2A.211001.002
OUT_DIR=out
============================================
$(shell date +%y%m%d%H%M) was changed, regenerating...
$(shell date +%y%m%d%H%M) was changed, regenerating...
[100% 1/1] initializing build system ...
device/rockchip/common/prebuild.mk:2: warning: Generating manifest snapshot at out/commit_id.xml...
device/rockchip/common/prebuild.mk:3: warning: You can disable this by removing this and setting BOARD_RECORD_COMMIT_ID := false in BoardConfig.mk
[  2% 6/287] including build/make/target/board/Android.mk ...
build fstab file with device/rockchip/common/scripts/fstab_tools/fstab.in....
rebuilding dtbo image with device/rockchip/rk356x/rk3566_roc_pc/dt-overlay.in device/rockchip/rk356x/rk3566_roc_pc/m2-ssd-sata.in....
AOSP_DTC_TOOL:out/soong/host/linux-x86/bin/dtc
AOSP_MKDTIMG_TOOL:out/soong/host/linux-x86/bin/mkdtimg
ROCKCHIP_FSTAB_TOOLS:out/soong/host/linux-x86/bin/fstab_tools
rebuild_dts:out/target/product/rk3566_roc_pc/obj/FAKE/rockchip_dtbo_intermediates/dt-overlay.dts out/target/product/rk3566_roc_pc/obj/FAKE/rockchip_dtbo_intermediates/m2-ssd-sata.dts
rebuild_dtbo_dtb:out/target/product/rk3566_roc_pc/obj/FAKE/rockchip_dtbo_intermediates/dt-overlay.dtbo out/target/product/rk3566_roc_pc/obj/FAKE/rockchip_dtbo_intermediates/m2-ssd-sata.dtbo
rebuild_dtbo_img:out/target/product/rk3566_roc_pc/obj/FAKE/rockchip_dtbo_intermediates/rebuild-dtbo.img
build parameter.txt with device/rockchip/common/scripts/parameter_tools/parameter.in....
[ 21% 63/287] including external/rk_tee_user/v2/Android.mk ...
'building rk_tee_user v2'
[ 43% 125/287] including hardware/rockchip/camera_engine_rkisp/Android.mk ...
TARGET_BOARD_PLATFORM=rk356x
[ 45% 132/287] including hardware/rockchip/libhwjpeg/Android.mk ...
cat: /home/gtai-qyf/.gitconfig: No such file or directory
sed: /home/gtai-qyf/proj/RK356X_Android11.0/hardware/rockchip/libhwjpeg/src/version.h: No such file or directory
sed: /home/gtai-qyf/proj/RK356X_Android11.0/hardware/rockchip/libhwjpeg/src/version.h: No such file or directory
git-74c5f68382 author: Firefly 2023-12-06 improve ddr stability
[ 47% 137/287] including hardware/rockchip/omx_il/Android.mk ...
date: Unknown option 'R' (see "date --help")
cp: .git/hooks/pre-commit: No such file or directory
tools/hooks .git/hooks
[ 99% 286/287] finishing build rules ...
packages/apps/Camera2/Android.mk: warning: "Camera2 (app:platform) should not link against libjni_jpegutil (native:ndk:libc++:static)"
[ 51% 3752/7288] Building dtbo file out/target/product/rk3566_roc_pc/obj/FAKE/rockchip_dtbo_intermediates/dt-overlay.dtbo.
out/target/product/rk3566_roc_pc/obj/FAKE/rockchip_dtbo_intermediates/dt-overlay.dtbo: Warning (unit_address_vs_reg): Node /fragment@0 has a unit name, but no reg property
out/target/product/rk3566_roc_pc/obj/FAKE/rockchip_dtbo_intermediates/dt-overlay.dtbo: Warning (unit_address_vs_reg): Node /fragment@1 has a unit name, but no reg property
[ 51% 3753/7288] Building dtbo file out/target/product/rk3566_roc_pc/obj/FAKE/rockchip_dtbo_intermediates/m2-ssd-sata.dtbo.
out/target/product/rk3566_roc_pc/obj/FAKE/rockchip_dtbo_intermediates/m2-ssd-sata.dtbo: Warning (unit_address_vs_reg): Node /fragment@0 has a unit name, but no reg property
out/target/product/rk3566_roc_pc/obj/FAKE/rockchip_dtbo_intermediates/m2-ssd-sata.dtbo: Warning (unit_address_vs_reg): Node /fragment@1 has a unit name, but no reg property
out/target/product/rk3566_roc_pc/obj/FAKE/rockchip_dtbo_intermediates/m2-ssd-sata.dtbo: Warning (unit_address_vs_reg): Node /fragment@2 has a unit name, but no reg property
[ 51% 3754/7288] Building dtbo img file out/target/product/rk3566_roc_pc/obj/FAKE/rockchip_dtbo_intermediates/rebuild-dtbo.img.
Can not find property: /:id
Can not find property: /:rev
Can not find property: /:custom0
Can not find property: /:custom1
Can not find property: /:custom2
Can not find property: /:custom3
create image file: out/target/product/rk3566_roc_pc/obj/FAKE/rockchip_dtbo_intermediates/rebuild-dtbo.img...
Total 2 entries.
[ 55% 4015/7288] Target buildinfo: out/target/product/rk3566_roc_pc/obj/ETC/system_build_prop_intermediates/build.prop
Target buildinfo from: device/rockchip/rk356x/rk356x.prop
[ 84% 6194/7288] build out/target/product/rk3566_roc_pc/system/etc/event-log-tags
frameworks/base/services/core/java/com/android/server/wm/EventLogTags.logtags:39: warning: tag "wm_on_paused_called" (30021) duplicated in frameworks/base/core/java/android/app/EventLogTags.logtags:9
frameworks/base/services/core/java/com/android/server/wm/EventLogTags.logtags:41: warning: tag "wm_on_resume_called" (30022) duplicated in frameworks/base/core/java/android/app/EventLogTags.logtags:11
frameworks/base/services/core/java/com/android/server/wm/EventLogTags.logtags:50: warning: tag "wm_stop_activity" (30048) duplicated in frameworks/base/core/java/android/app/EventLogTags.logtags:14
frameworks/base/services/core/java/com/android/server/wm/EventLogTags.logtags:56: warning: tag "wm_add_to_stopping" (30066) duplicated in frameworks/base/core/java/android/app/EventLogTags.logtags:35
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:6: warning: tag "lock_screen_type" (90200) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:6
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:9: warning: tag "exp_det_device_admin_activated_by_user" (90201) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:9
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:12: warning: tag "exp_det_device_admin_declined_by_user" (90202) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:12
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:15: warning: tag "exp_det_device_admin_uninstalled_by_user" (90203) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:15
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:18: warning: tag "settings_latency" (90204) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:18
[ 95% 6943/7288] Install: out/target/product/rk3566_roc_pc/vendor/lib/egl/libGLES_mali.so
/home/gtai-qyf/proj/RK356X_Android11.0
/home/gtai-qyf/proj/RK356X_Android11.0
[ 97% 7097/7288] Install: out/target/product/rk3566_roc_pc/vendor/lib64/egl/libGLES_mali.so
/home/gtai-qyf/proj/RK356X_Android11.0
/home/gtai-qyf/proj/RK356X_Android11.0
[ 98% 7179/7288] depmod out/target/product/rk3566_roc_pc/obj/PACKAGING/depmod_VENDOR_intermediates
depmod: WARNING: could not open modules.order at /home/gtai-qyf/proj/RK356X_Android11.0/out/target/product/rk3566_roc_pc/obj/PACKAGING/depmod_VENDOR_intermediates/lib/modules/0.0: No such file or directory
depmod: WARNING: could not open modules.builtin at /home/gtai-qyf/proj/RK356X_Android11.0/out/target/product/rk3566_roc_pc/obj/PACKAGING/depmod_VENDOR_intermediates/lib/modules/0.0: No such file or directory
[ 99% 7252/7288] build out/target/product/rk3566_roc_pc/ramdisk-recovery.img
rk3566_roc_pc out/target/product/rk3566_roc_pc rk356x true arm64
[ 99% 7269/7288] Target empty super fs image: out/target/product/rk3566_roc_pc/super_empty.img
2024-09-30 19:31:16 - build_super_image.py - INFO    : Building super image from info dict...
2024-09-30 19:31:16 - common.py - INFO    :   Running: "lpmake --metadata-size 65536 --super-name super --metadata-slots 2 --device super:3263168512 --group rockchip_dynamic_partitions:3258974208 --partition system:readonly:0:rockchip_dynamic_partitions --partition system_ext:readonly:0:rockchip_dynamic_partitions --partition vendor:readonly:0:rockchip_dynamic_partitions --partition product:readonly:0:rockchip_dynamic_partitions --partition odm:readonly:0:rockchip_dynamic_partitions --sparse --output out/target/product/rk3566_roc_pc/super_empty.img"
2024-09-30 19:31:16 - common.py - INFO    :
2024-09-30 19:31:16 - build_super_image.py - INFO    : Done writing image out/target/product/rk3566_roc_pc/super_empty.img
[ 99% 7270/7288] build out/target/product/rk3566_roc_pc/installed-files-ramdisk-debug.txt
Installed file list: out/target/product/rk3566_roc_pc/installed-files-ramdisk-debug.txt
[100% 7288/7288] Target super fs image for debug: out/target/product/rk3566_roc_pc/super.img
2024-09-30 19:31:25 - build_super_image.py - INFO    : Building super image from info dict...
2024-09-30 19:31:25 - sparse_img.py - INFO    : Total of 263132 4096-byte output blocks in 20 input chunks.
2024-09-30 19:31:25 - sparse_img.py - INFO    : Total of 30251 4096-byte output blocks in 3 input chunks.
2024-09-30 19:31:25 - sparse_img.py - INFO    : Total of 76676 4096-byte output blocks in 8 input chunks.
2024-09-30 19:31:25 - sparse_img.py - INFO    : Total of 56582 4096-byte output blocks in 7 input chunks.
2024-09-30 19:31:25 - sparse_img.py - INFO    : Total of 155 4096-byte output blocks in 2 input chunks.
2024-09-30 19:31:25 - common.py - INFO    :   Running: "lpmake --metadata-size 65536 --super-name super --metadata-slots 2 --device super:3263168512 --group rockchip_dynamic_partitions:3258974208 --partition system:readonly:1077788672:rockchip_dynamic_partitions --image system=out/target/product/rk3566_roc_pc/system.img --partition system_ext:readonly:123908096:rockchip_dynamic_partitions --image system_ext=out/target/product/rk3566_roc_pc/system_ext.img --partition vendor:readonly:314064896:rockchip_dynamic_partitions --image vendor=out/target/product/rk3566_roc_pc/vendor.img --partition product:readonly:231759872:rockchip_dynamic_partitions --image product=out/target/product/rk3566_roc_pc/product.img --partition odm:readonly:634880:rockchip_dynamic_partitions --image odm=out/target/product/rk3566_roc_pc/odm.img --sparse --output out/target/product/rk3566_roc_pc/super.img"
2024-09-30 19:31:28 - common.py - INFO    : lpmake I 09-30 19:31:25 29230 29230 builder.cpp:1031] [liblp]Partition system will resize from 0 bytes to 1077788672 bytes
lpmake I 09-30 19:31:25 29230 29230 builder.cpp:1031] [liblp]Partition system_ext will resize from 0 bytes to 123908096 bytes
lpmake I 09-30 19:31:25 29230 29230 builder.cpp:1031] [liblp]Partition vendor will resize from 0 bytes to 314064896 bytes
lpmake I 09-30 19:31:25 29230 29230 builder.cpp:1031] [liblp]Partition product will resize from 0 bytes to 231759872 bytes
lpmake I 09-30 19:31:25 29230 29230 builder.cpp:1031] [liblp]Partition odm will resize from 0 bytes to 634880 bytes
2024-09-30 19:31:28 - build_super_image.py - INFO    : Done writing image out/target/product/rk3566_roc_pc/super.img

#### build completed successfully (03:35 (mm:ss)) ####

Build android ok!

====== make and copy android images
./mkimage.sh
TARGET_PRODUCT=rk3566_roc_pc
TARGET_BASE_PARAMETER_IMAGE==device/rockchip/rk356x_box/etc/baseparameter_auto.img
HIGH_RELIABLE_RECOVERY_OTA=
BOARD_AVB_ENABLE=false
system filesysystem is ext4
create dtbo.img...
done.
create resource.img...
done.
create boot.img...
done.
create boot-debug.img...
done.
skip copy images: vendor_boot.img
skip copy images: vendor_boot-debug.img
create recovery.img...
done.
create super.img...
done.
create vbmeta.img...
BOARD_AVB_ENABLE is false, use default vbmeta.img
create misc.img.... done.
create uboot.img...
make oem images...
u-boot/trust.img not fount! Please make it from u-boot first!
create loader...
create config.cfg...
create baseparameter...done.
Make image ok!


当时直接拿去烧录,发现起不来。然后看见这个u-boot/trust.img not fount! Please make it from u-boot first!

日志.txt

12.03 KB, 下载次数: 1, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

94

积分

0

威望

0

贡献

技术小白

积分
94
发表于 2024-10-9 13:43:38        只看该作者  沙发
目前暂未解决。请问有谁能帮忙看一下嘛?
回复

使用道具 举报

275

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
275
发表于 2024-10-9 15:53:55        只看该作者  板凳
肯定是你的步骤哪里做的有问题,按理sdk直接按wiki编译即可
回复

使用道具 举报

94

积分

0

威望

0

贡献

技术小白

积分
94
发表于 2024-10-9 16:14:13        只看该作者  地板
qq号2317783075 发表于 2024-10-9 15:53
肯定是你的步骤哪里做的有问题,按理sdk直接按wiki编译即可

主要就是搭建环境,然后就编译,就出现问题,我也是照着文档走的
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表