Firefly开源社区

12
发表新贴
打印 上一主题 下一主题

[Android] 编译sdk在最后报错

24

积分

0

威望

0

贡献

技术小白

积分
24
发表于 2022-11-15 09:43:07        只看该作者  11#
firefly_zhongw 发表于 2022-11-11 15:16
有上述错误的话,kernel 做如下修改

1.已修改
kernel/configs/r/android-4.19/android-base.config

# CONFIG_NFS_FS is not set
# CONFIG_PM_AUTOSLEEP is not set
# CONFIG_RT_GROUP_SCHED is not set
-# CONFIG_SYSVIPC is not set
# CONFIG_USELIB is not set
# CONFIG_VHOST is not set
CONFIG_ADVISE_SYSCALLS=y

2.问题还是存在
will build update.img
-------------------KERNEL_DTS:rk3566-roc-pc

============================================
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-5.15.0-50-generic-x86_64-Ubuntu-22.04-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=RQ2A.210505.003
OUT_DIR=out
============================================
package resoure.img with charger images

Pack ./tools/images/ & ../kernel/resource.img to resource.img ...
Unpacking old image(../kernel/resource.img):
rk-kernel.dtb logo.bmp logo_kernel.bmp 3
Pack to resource.img successed!

Packed resources:
rk-kernel.dtb battery_1.bmp battery_2.bmp battery_3.bmp battery_4.bmp battery_5.bmp battery_fail.bmp logo.bmp logo_kernel.bmp battery_0.bmp 10

./resource.img with battery images is ready
/home/sgai/rk/221110_RK3566_demo_sdk
Make update.img
start to make update.img...
Android Firmware Package Tool v1.67
------ PACKAGE ------
Add file: ./package-file
package-file,Add file: ./package-file done,offset=0x800,size=0x2d4,userspace=0x1
Add file: ./Image/MiniLoaderAll.bin
bootloader,Add file: ./Image/MiniLoaderAll.bin done,offset=0x1000,size=0x6e9c0,userspace=0xde
Add file: ./Image/parameter.txt
parameter,Add file: ./Image/parameter.txt done,offset=0x70000,size=0x280,userspace=0x1
Add file: ./Image/uboot.img
uboot,Add file: ./Image/uboot.img done,offset=0x70800,size=0x400000,userspace=0x800
Add file: ./Image/misc.img
misc,Add file: ./Image/misc.img done,offset=0x470800,size=0xc000,userspace=0x18
Add file: ./Image/boot.img
Error:<AddFile> open file failed,err=2!
------ FAILED ------
Press any key to quit:
Make update image failed!

回复

使用道具 举报

发表于 2022-11-15 10:18:53        只看该作者  12#
本帖最后由 firefly_zhongw 于 2022-11-15 10:26 编辑

改完后要整个编译,而不是只打包。
回复

使用道具 举报

24

积分

0

威望

0

贡献

技术小白

积分
24
发表于 2022-11-15 11:42:19        只看该作者  13#
firefly_zhongw 发表于 2022-11-15 10:18
改完后要整个编译,而不是只打包。

整体编译,过了。
回复

使用道具 举报

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

本版积分规则

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