rootroot@rootroot-X99-Turbo:~/14TB$ cd OK3576-android-source/
rootroot@rootroot-X99-Turbo:~/14TB/OK3576-android-source$ ll
rootroot@rootroot-X99-Turbo:~/14TB/OK3576-android-source$ source build/envsetup.sh
rootroot@rootroot-X99-Turbo:~/14TB/OK3576-android-source$ lunch
rootroot@rootroot-X99-Turbo:~/14TB/OK3576-android-source$ ./build.sh -KAup
will build kernel
will build android
will build update.img
will build packaging in IMAGE
-------------------KERNEL_VERSION:6.1
-------------------KERNEL_DTS:OK3576-C-android
-------------------KERNEL_DEFCONFIG:rockchip_defconfig android-14.config OK3576-C-android.config rk3576.config
rootroot@rootroot-X99-Turbo:~/14TB/OK3576-android-source$
20250616解决整体编译飞凌OK3576的Android14异常
2025/6/16 17:36
缘起,买了飞凌OK3576的2+16GB的开发板。
熟悉SDK/开发板功能。
先编译凌OK3576的Android14。
https://forlinx-book.yuque.com/rh74yu/ok3576/b2c8cbd7ee987faeac72d4cc9aed35f2
04_Android 系统编译
1. 编译前准备
1.1. 编译环境
安装编译环境,飞凌提供的虚拟机已经完成安装,可跳过本小节
1.2. 准备代码
将代码(2-镜像及源码\1-源码)拷贝到虚拟机/home/forlinx/work/目录中,并解压
2. 编译
2.1. 单独编译kernel
kernel配置如下:
config:
rockchip_defconfig
android-14.config
OK3576-C-android.config
rk3576.config
dts:
OK3576-C-android.dts
编译
2.2. 单独编译安卓
安卓部分配置文件目录device/rockchip/rk3576/ok3576_c/
编译命令
Plain Text
复制代码
1
2
3
forlinx@ubuntu:~/work/OK3576-android-source$ source build/envsetup.sh
forlinx@ubuntu:~/work/OK3576-android-source$ lunch ok3576_c-userdebug
forlinx@ubuntu:~/work/OK3576-android-source$ ./build.sh -Au
2.3. 全编译打包镜像
Plain Text
复制代码
1
2
3
【这里有问题】
forlinx@ubuntu:~/work/OK3576-android-source$ source build/envsetup.sh
forlinx@ubuntu:~/work/OK3576-android-source$ lunch ok3576_c-userdebug
forlinx@ubuntu:~/work/OK3576-android-source$ ./build.sh -UKAup
生成的文件目录为rockdev/和IMAGE/OK3576_C_USERDEBUG_OK3576-C-ANDROID__xxxxxxxxxx/
update.img可用于烧录系统
3. ota升级包
全量升级包包含完整系统,增量升级包内容为两个版本之间的差异,因此需要保证开发板已经烧录了低版本的系统,再使用增量升级才能正确升级。
3.1. OTA全量升级包
Plain Text
复制代码
1
2
3
forlinx@ubuntu:~/work/OK3576-android-source$ source build/envsetup.sh
forlinx@ubuntu:~/work/OK3576-android-source$ lunch ok3576_c-userdebug
forlinx@ubuntu:~/work/OK3576-android-source$ ./build.sh -UKAuop
生成的文件目录为rockdev/和IMAGE/OK3576_C_USERDEBUG_OK3576-C-ANDROID__xxxxxxxxxx/
将ok3576_c-ota-eng.root.zip重命名为update.zip,即可用于OTA全量升级
3.2. OTA增量升级包
首先发布v1.0版本镜像,并烧录到开发板。(通过OTG线刷、tf卡烧写等方式均可)
PowerShell
复制代码
1
2
3
forlinx@ubuntu:~/work/OK3576-android-source$ source build/envsetup.sh
forlinx@ubuntu:~/work/OK3576-android-source$ lunch ok3576_c-userdebug
forlinx@ubuntu:~/work/OK3576-android-source$ ./build.sh -UKAuop
生成的IMAGE/OK3576_C_USERDEBUG_OK3576-C-ANDROID__xxxxxxx/IMAGES/ok3576_c-target_files-eng.root.zip为v1.0版本素材包。为方便本文描述,将其重命名为files-v1.0.zip
修改kernel代码或者安卓代码(升级到v2.0)
同步骤1,生成v2.0版本的素材包,命名为files-v2.0.zip
生成v1.0-v2.0增量升级包
Plain Text
复制代码
1
forlinx@ubuntu:~/work/OK3576-android-source$ out/host/linux-x86/bin/ota_from_target_files -v -i files-v1.0.zip --block -p ./out/host/linux-x86 files-v2.0.zip ./v1.0--v2.0.zip
生成的v1.0--v2.0.zip即为从v1.0升级到v2.0的增量升级包。
将v1.0--v2.0.zip重命名为update.zip,即可用于OTA增量升级(需要开发板本身为v1.0版本系统)
rootroot@rootroot-X99-Turbo:~/14TB$ cd OK3576-android-source/
rootroot@rootroot-X99-Turbo:~/14TB/OK3576-android-source$ ll
total 302648
drwxrwxr-x 36 rootroot rootroot 4096 6月 12 19:25 ./
drwxrwxrwx 20 rootroot rootroot 4096 6月 14 18:12 ../
lrwxrwxrwx 1 rootroot rootroot 19 9月 29 2024 Android.bp -> build/soong/root.bp
drwxrwxr-x 37 rootroot rootroot 4096 9月 29 2024 art/
drwxrwxr-x 14 rootroot rootroot 4096 9月 29 2024 bionic/
drwxrwxr-x 4 rootroot rootroot 4096 9月 29 2024 bootable/
lrwxrwxrwx 1 rootroot rootroot 26 9月 29 2024 bootstrap.bash -> build/soong/bootstrap.bash*
drwxrwxr-x 9 rootroot rootroot 4096 9月 29 2024 build/
lrwxrwxrwx 1 rootroot rootroot 23 9月 29 2024 BUILD -> build/bazel/bazel.BUILD
lrwxrwxrwx 1 rootroot rootroot 46 9月 29 2024 build.sh -> device/rockchip/common/build/rockchip/build.sh*
lrwxrwxrwx 1 rootroot rootroot 33 9月 29 2024 .classpath -> device/rockchip/common/.classpath*
-rw-rw-r-- 1 rootroot rootroot 1618 9月 29 2024 commit_id.txt
lrwxrwxrwx 1 rootroot rootroot 46 9月 29 2024 Copyright_Statement.pdf -> device/rockchip/common/Copyright_Statement.pdf*
drwxrwxr-x 13 rootroot rootroot 4096 9月 29 2024 cts/
drwxrwxr-x 7 rootroot rootroot 4096 9月 29 2024 dalvik/
drwxrwxr-x 5 rootroot rootroot 4096 9月 29 2024 developers/
drwxrwxr-x 22 rootroot rootroot 4096 9月 29 2024 development/
drwxrwxr-x 5 rootroot rootroot 4096 9月 29 2024 device/
drwxrwxr-x 412 rootroot rootroot 12288 9月 29 2024 external/
drwxrwxr-x 16 rootroot rootroot 4096 9月 29 2024 frameworks/
-rw-rw-r-- 1 rootroot rootroot 58 9月 29 2024 .gitignore
drwxrwxr-x 20 rootroot rootroot 4096 9月 29 2024 hardware/
lrwxrwxrwx 1 rootroot rootroot 33 9月 29 2024 javaenv.sh -> device/rockchip/common/javaenv.sh
drwxrwxr-x 5 rootroot rootroot 4096 9月 29 2024 kernel/
drwxrwxr-x 27 rootroot rootroot 4096 9月 29 2024 kernel-6.1/
-rw-rw-r-- 1 rootroot rootroot 307284711 6月 12 16:26 kernel-6.1b.tgz
drwxrwxr-x 20 rootroot rootroot 4096 9月 29 2024 libcore/
drwxrwxr-x 9 rootroot rootroot 4096 9月 29 2024 libnativehelper/
drwxrwxr-x 9 rootroot rootroot 4096 9月 29 2024 mkcombinedroot/
lrwxrwxrwx 1 rootroot rootroot 36 9月 29 2024 mkimage_ab.sh -> device/rockchip/common/mkimage_ab.sh*
lrwxrwxrwx 1 rootroot rootroot 33 9月 29 2024 mkimage.sh -> device/rockchip/common/mkimage.sh*
drwxrwxr-x 8 rootroot rootroot 4096 6月 12 19:27 out/
drwxrwxr-x 9 rootroot rootroot 4096 9月 29 2024 packages/
drwxrwxr-x 5 rootroot rootroot 4096 9月 29 2024 pdk/
drwxrwxr-x 10 rootroot rootroot 4096 9月 29 2024 platform_testing/
drwxrwxr-x 32 rootroot rootroot 4096 9月 29 2024 prebuilts/
drwxrwxr-x 10 rootroot rootroot 4096 9月 29 2024 repo/
-rwxrwxr-x 1 rootroot rootroot 519 9月 29 2024 restore_patches.sh*
drwxrwxr-x 9 rootroot rootroot 4096 9月 29 2024 rkbin/
drwxrwxr-x 4 rootroot rootroot 4096 9月 29 2024 RKDocs/
drwxrwxr-x 4 rootroot rootroot 4096 9月 29 2024 rkst/
drwxrwxr-x 5 rootroot rootroot 4096 9月 29 2024 RKTools/
drwxrwxr-x 20 rootroot rootroot 4096 9月 29 2024 sdk/
drwxrwxr-x 48 rootroot rootroot 4096 9月 29 2024 system/
drwxrwxr-x 12 rootroot rootroot 4096 9月 29 2024 test/
drwxrwxr-x 4 rootroot rootroot 4096 9月 29 2024 toolchain/
drwxrwxr-x 25 rootroot rootroot 4096 9月 29 2024 tools/
drwxrwxr-x 4 rootroot rootroot 4096 9月 29 2024 u-boot/
-rw-rw-r-- 1 rootroot rootroot 2455724 6月 12 16:25 u-boot1.tgz
drwxrwxr-x 5 rootroot rootroot 4096 9月 29 2024 vendor/
lrwxrwxrwx 1 rootroot rootroot 27 9月 29 2024 WORKSPACE -> build/bazel/bazel.WORKSPACE
rootroot@rootroot-X99-Turbo:~/14TB/OK3576-android-source$
rootroot@rootroot-X99-Turbo:~/14TB/OK3576-android-source$
rootroot@rootroot-X99-Turbo:~/14TB/OK3576-android-source$
rootroot@rootroot-X99-Turbo:~/14TB/OK3576-android-source$ source build/envsetup.sh
rootroot@rootroot-X99-Turbo:~/14TB/OK3576-android-source$ lunch
^X^X^X^X^X^X^X^X^C^C^X^X
You're building on Linux
Warning: Cannot display lunch menu.
Note: You can invoke lunch with an explicit target:
usage: lunch [target]
Which would you like? [aosp_arm-eng]
Pick from common choices above (e.g. 13) or specify your own (e.g. aosp_barbet-eng): ^C
rootroot@rootroot-X99-Turbo:~/14TB/OK3576-android-source$ lunch ok3576_c-userdebug
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=14
PRODUCT_INCLUDE_TAGS=com.android.mainline
TARGET_PRODUCT=ok3576_c
TARGET_BUILD_VARIANT=userdebug
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.15.0-131-generic-x86_64-Ubuntu-20.04.6-LTS
HOST_CROSS_OS=windows
BUILD_ID=UQ1A.240205.004.B1
OUT_DIR=out
============================================
rootroot@rootroot-X99-Turbo:~/14TB/OK3576-android-source$ ./build.sh -UKAup
will build u-boot
will build kernel
will build android
will build update.img
will build packaging in IMAGE
-------------------KERNEL_VERSION:6.1
-------------------KERNEL_DTS:OK3576-C-android
-------------------KERNEL_DEFCONFIG:rockchip_defconfig android-14.config OK3576-C-android.config rk3576.config
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=14
PRODUCT_INCLUDE_TAGS=com.android.mainline
TARGET_PRODUCT=ok3576_c
TARGET_BUILD_VARIANT=userdebug
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.15.0-131-generic-x86_64-Ubuntu-20.04.6-LTS
HOST_CROSS_OS=windows
BUILD_ID=UQ1A.240205.004.B1
OUT_DIR=out
============================================
~/14TB/OK3576-android-source/rkbin ~/14TB/OK3576-android-source
version v1.19 20240117
chip rk3588
version 5
new bin config:
uart baudrate: 115200
modify end
~/14TB/OK3576-android-source
start build uboot: ok3576_defconfig
make: *** No rule to make target 'clean'. Stop.
#### failed to build some targets ####
Build uboot failed!
rootroot@rootroot-X99-Turbo:~/14TB/OK3576-android-source$
rootroot@rootroot-X99-Turbo:~/14TB/OK3576-android-source$
rootroot@rootroot-X99-Turbo:~/14TB/OK3576-android-source$ ./build.sh -KAup
will build kernel
will build android
will build update.img
will build packaging in IMAGE
-------------------KERNEL_VERSION:6.1
-------------------KERNEL_DTS:OK3576-C-android
-------------------KERNEL_DEFCONFIG:rockchip_defconfig android-14.config OK3576-C-android.config rk3576.config
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=14
PRODUCT_INCLUDE_TAGS=com.android.mainline
TARGET_PRODUCT=ok3576_c
TARGET_BUILD_VARIANT=userdebug
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.15.0-131-generic-x86_64-Ubuntu-20.04.6-LTS
HOST_CROSS_OS=windows
BUILD_ID=UQ1A.240205.004.B1
OUT_DIR=out
============================================
~/14TB/OK3576-android-source/rkbin ~/14TB/OK3576-android-source
version v1.19 20240117
chip rk3588
version 5
new bin config:
uart baudrate: 115200
modify end
~/14TB/OK3576-android-source
Start build kernel
fatal: not a git repository (or any parent up to mount point /home/rootroot)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
#### build completed successfully (19 seconds) ####
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/confdata.o
HOSTCC scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
YACC scripts/kconfig/parser.tab.[ch]
HOSTCC scripts/kconfig/lexer.lex.o
HOSTCC scripts/kconfig/menu.o
HOSTCC scripts/kconfig/parser.tab.o
HOSTCC scripts/kconfig/preprocess.o
HOSTCC scripts/kconfig/symbol.o
HOSTCC scripts/kconfig/util.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
Using .config as base
Merging ./kernel/configs/android-14.config
Value of CONFIG_DEVMEM is redefined by fragment ./kernel/configs/android-14.config:
Previous value: CONFIG_DEVMEM=y
New value: # CONFIG_DEVMEM is not set
Value of CONFIG_EROFS_FS is redefined by fragment ./kernel/configs/android-14.config:
Previous value: # CONFIG_EROFS_FS is not set
New value: CONFIG_EROFS_FS=y
#
# merged configuration written to .config (needs make)
#
#
# configuration written to .config
#
Using .config as base
Merging ./kernel/configs/OK3576-C-android.config
Value of CONFIG_NET_VENDOR_INTEL is redefined by fragment ./kernel/configs/OK3576-C-android.config:
Previous value: # CONFIG_NET_VENDOR_INTEL is not set
New value: CONFIG_NET_VENDOR_INTEL=y
Value of CONFIG_R8169 is redefined by fragment ./kernel/configs/OK3576-C-android.config:
Previous value: # CONFIG_R8169 is not set
New value: CONFIG_R8169=y
Value of CONFIG_MVL88W8987 is redefined by fragment ./kernel/configs/OK3576-C-android.config:
Previous value: # CONFIG_MVL88W8987 is not set
New value: CONFIG_MVL88W8987=m
Value of CONFIG_TOUCHSCREEN_EDT_FT5X06 is redefined by fragment ./kernel/configs/OK3576-C-android.config:
Previous value: # CONFIG_TOUCHSCREEN_EDT_FT5X06 is not set
New value: CONFIG_TOUCHSCREEN_EDT_FT5X06=y
Value of CONFIG_VIDEO_OV5645 is redefined by fragment ./kernel/configs/OK3576-C-android.config:
Previous value: # CONFIG_VIDEO_OV5645 is not set
New value: CONFIG_VIDEO_OV5645=y
Value of CONFIG_SND_SOC_NAU8822 is redefined by fragment ./kernel/configs/OK3576-C-android.config:
Previous value: # CONFIG_SND_SOC_NAU8822 is not set
New value: CONFIG_SND_SOC_NAU8822=y
Value of CONFIG_LEDS_TRIGGER_GPIO is redefined by fragment ./kernel/configs/OK3576-C-android.config:
Previous value: # CONFIG_LEDS_TRIGGER_GPIO is not set
New value: CONFIG_LEDS_TRIGGER_GPIO=y
Value of CONFIG_RTC_DRV_RX8010 is redefined by fragment ./kernel/configs/OK3576-C-android.config:
Previous value: # CONFIG_RTC_DRV_RX8010 is not set
New value: CONFIG_RTC_DRV_RX8010=y
Value of CONFIG_GPIO_PCA953X is redefined by fragment ./kernel/configs/OK3576-C-android.config:
Previous value: # CONFIG_GPIO_PCA953X is not set
New value: CONFIG_GPIO_PCA953X=y
Value of CONFIG_CAN is redefined by fragment ./kernel/configs/OK3576-C-android.config:
Previous value: # CONFIG_CAN is not set
New value: CONFIG_CAN=y
Value of CONFIG_USB_SERIAL_EXAR is redefined by fragment ./kernel/configs/OK3576-C-android.config:
Previous value: # CONFIG_USB_SERIAL_EXAR is not set
New value: CONFIG_USB_SERIAL_EXAR=y
#
# merged configuration written to .config (needs make)
#
#
# configuration written to .config
#
Using .config as base
Merging ./arch/arm64/configs/rk3576.config
Value of CONFIG_MALI_CSF_SUPPORT is redefined by fragment ./arch/arm64/configs/rk3576.config:
Previous value: CONFIG_MALI_CSF_SUPPORT=y
New value: # CONFIG_MALI_CSF_SUPPORT is not set
#
# merged configuration written to .config (needs make)
#
#
# configuration written to .config
#
#### build completed successfully (27 seconds) ####
SYNC include/config/auto.conf.cmd
UPD include/config/kernel.release
HOSTCC scripts/dtc/dtc.o
HOSTCC scripts/dtc/flattree.o
HOSTCC scripts/dtc/fstree.o
HOSTCC scripts/dtc/data.o
HOSTCC scripts/dtc/livetree.o
HOSTCC scripts/dtc/treesource.o
HOSTCC scripts/dtc/srcpos.o
HOSTCC scripts/dtc/checks.o
HOSTCC scripts/dtc/util.o
LEX scripts/dtc/dtc-lexer.lex.c
YACC scripts/dtc/dtc-parser.tab.[ch]
HOSTCC scripts/dtc/libfdt/fdt.o
HOSTCC scripts/dtc/libfdt/fdt_ro.o
HOSTCC scripts/dtc/libfdt/fdt_wip.o
HOSTCC scripts/dtc/libfdt/fdt_sw.o
HOSTCC scripts/dtc/libfdt/fdt_rw.o
HOSTCC scripts/dtc/libfdt/fdt_strerror.o
HOSTCC scripts/dtc/libfdt/fdt_empty_tree.o
HOSTCC scripts/dtc/libfdt/fdt_addresses.o
HOSTCC scripts/dtc/libfdt/fdt_overlay.o
HOSTCC scripts/dtc/fdtoverlay.o
UPD include/generated/uapi/linux/version.h
UPD include/generated/utsrelease.h
UPD include/generated/compile.h
HOSTCC scripts/dtc/dtc-lexer.lex.o
HOSTCC scripts/dtc/dtc-parser.tab.o
HOSTLD scripts/dtc/fdtoverlay
HOSTLD scripts/dtc/dtc
HOSTCC scripts/kallsyms
HOSTCC scripts/resource_tool
HOSTCC scripts/sorttable
HOSTCC scripts/asn1_compiler
HOSTCC scripts/genksyms/genksyms.o
YACC scripts/genksyms/parse.tab.[ch]
LEX scripts/genksyms/lex.lex.c
DTC arch/arm64/boot/dts/rockchip/OK3576-C-android.dtb
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/genksyms/parse.tab.o
HOSTCC scripts/genksyms/lex.lex.o
HOSTLD scripts/genksyms/genksyms
GEN arch/arm64/include/generated/asm/cpucaps.h
GEN arch/arm64/include/generated/asm/sysreg-defs.h
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
CC scripts/mod/devicetable-offsets.s
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
UPD scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
CC kernel/bounds.s
CHKSHA1 include/linux/atomic/atomic-arch-fallback.h
CHKSHA1 include/linux/atomic/atomic-instrumented.h
CHKSHA1 include/linux/atomic/atomic-long.h
UPD include/generated/timeconst.h
UPD include/generated/bounds.h
CC arch/arm64/kernel/asm-offsets.s
UPD include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
LDS arch/arm64/kernel/vdso/vdso.lds
CC arch/arm64/kernel/vdso/vgettimeofday.o
AS arch/arm64/kernel/vdso/note.o
AS arch/arm64/kernel/vdso/sigreturn.o
LD arch/arm64/kernel/vdso/vdso.so.dbg
VDSOSYM include/generated/vdso-offsets.h
OBJCOPY arch/arm64/kernel/vdso/vdso.so
LDS arch/arm64/kernel/vdso32/vdso.lds
CC32 arch/arm64/kernel/vdso32/note.o
CC32 arch/arm64/kernel/vdso32/vgettimeofday.o
HOSTCC arch/arm64/kernel/vdso32/../../../arm/vdso/vdsomunge
LD32 arch/arm64/kernel/vdso32/vdso.so.raw
MUNGE arch/arm64/kernel/vdso32/vdso.so.dbg
VDSOSYM include/generated/vdso32-offsets.h
OBJCOPY arch/arm64/kernel/vdso32/vdso.so
LDS scripts/module.lds
CC init/main.o
HOSTCC usr/gen_init_cpio
CC init/do_mounts.o
CC init/do_mounts_rd.o
UPD init/utsversion-tmp.h
CC init/do_mounts_initrd.o
CC init/initramfs.o
CC init/calibrate.o
CC init/init_task.o
CC certs/system_keyring.o
CC init/version.o
CC mm/filemap.o
AR ipc/built-in.a
frameworks/base/packages/SystemUI/src/com/android/systemui/temporarydisplay/TemporaryViewDisplayController.kt:225:38: warning: 'ACQUIRE_CAUSES_WAKEUP: Int' is deprecated. Deprecated in Java
PowerManager.ACQUIRE_CAUSES_WAKEUP
^
frameworks/base/packages/SystemUI/src/com/android/systemui/temporarydisplay/TemporaryViewDisplayController.kt:234:49: warning: 'SCREEN_BRIGHT_WAKE_LOCK: Int' is deprecated. Deprecated in Java
.setLevelsAndFlags(PowerManager.SCREEN_BRIGHT_WAKE_LOCK)
^
frameworks/base/packages/SystemUI/src/com/android/systemui/user/UserSwitcherFullscreenDialog.kt:63:43: warning: 'getRealMetrics(DisplayMetrics!): Unit' is deprecated. Deprecated in Java
checkNotNull(context.display).getRealMetrics(this)
^
frameworks/base/packages/SystemUI/src/com/android/systemui/user/data/repository/UserRepository.kt:270:52: warning: the corresponding parameter in the supertype 'Callback' is named 'newUser'. This may cause problems when calling this function with named arguments.
override fun onUserChanged(newUserId: Int, userContext: Context) {
^
frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/interactor/GuestUserInteractor.kt:178:69: warning: 'findCurrentGuestUser(): UserInfo!' is deprecated. Deprecated in Java
val guestUser = withContext(backgroundDispatcher) { manager.findCurrentGuestUser() }
^
frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/interactor/UserInteractor.kt:698:49: warning: 'getter for isPrimary: Boolean' is deprecated. Deprecated in Java
!isUserSwitcherEnabled && !userInfo.isPrimary -> null
^
frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/interactor/UserInteractor.kt:702:42: warning: 'supportsSwitchToByUser(): Boolean' is deprecated. Deprecated in Java
userInfo.isGuest || userInfo.supportsSwitchToByUser() ->
^
frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/interactor/UserInteractor.kt:762:14: warning: 'getUsers(Boolean, Boolean, Boolean): (Mutable)List<UserInfo!>!' is deprecated. Deprecated in Java
.getUsers(
^
frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/interactor/UserInteractor.kt:795:20: warning: 'constructor BitmapDrawable(Bitmap!)' is deprecated. Deprecated in Java
return BitmapDrawable(userIcon)
^
frameworks/base/packages/SystemUI/src/com/android/systemui/user/ui/dialog/AddUserDialog.kt:68:35: warning: 'ACTION_CLOSE_SYSTEM_DIALOGS: String' is deprecated. Deprecated in Java
Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS),
^
frameworks/base/packages/SystemUI/src/com/android/systemui/util/UserAwareController.kt:26:6: warning: 'JvmDefault' is deprecated. Switch to new -Xjvm-default modes: `all` or `all-compatibility`
@JvmDefault
^
frameworks/base/packages/SystemUI/src/com/android/systemui/wallpapers/data/repository/WallpaperRepository.kt:69:37: warning: 'ACTION_WALLPAPER_CHANGED: String' is deprecated. Deprecated in Java
IntentFilter(Intent.ACTION_WALLPAPER_CHANGED),
^
[ 99% 163673/163681] out/host/linux-x86/bin/resourceshrinker --output out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI/android_common/SystemUI-unsigned.apk.proto.out.apk --input out/soong/.intermediates/framew
Shrunken apk stored in:
out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI/android_common/SystemUI-unsigned.apk.proto.out.apk
[100% 163681/163681] Target super fs image for debug: out/target/product/ok3576_c/super.img
2025-06-16 12:34:49 - build_super_image.py - INFO : Building super image from info dict...
2025-06-16 12:34:49 - common.py - INFO : Running: "/home/rootroot/14TB/OK3576-android-source/out/host/linux-x86/bin/lpmake --metadata-size 65536 --super-name super --metadata-slots 2 --device super:3263168512 --group rockchip_dynamic_partitions:3258974208 --partition system:readonly:1028321280:rockchip_dynamic_partitions --image system=out/target/product/ok3576_c/system.img --partition system_dlkm:readonly:262144:rockchip_dynamic_partitions --image system_dlkm=out/target/product/ok3576_c/system_dlkm.img --partition system_ext:readonly:183607296:rockchip_dynamic_partitions --image system_ext=out/target/product/ok3576_c/system_ext.img --partition vendor:readonly:331780096:rockchip_dynamic_partitions --image vendor=out/target/product/ok3576_c/vendor.img --partition vendor_dlkm:readonly:14376960:rockchip_dynamic_partitions --image vendor_dlkm=out/target/product/ok3576_c/vendor_dlkm.img --partition odm:readonly:806912:rockchip_dynamic_partitions --image odm=out/target/product/ok3576_c/odm.img --partition odm_dlkm:readonly:262144:rockchip_dynamic_partitions --image odm_dlkm=out/target/product/ok3576_c/odm_dlkm.img --partition product:readonly:280276992:rockchip_dynamic_partitions --image product=out/target/product/ok3576_c/product.img --sparse --output out/target/product/ok3576_c/super.img"
2025-06-16 12:34:52 - common.py - INFO : lpmake I 06-16 12:34:49 1397039 1397039 builder.cpp:1093] [liblp] Partition system will resize from 0 bytes to 1028321280 bytes
lpmake I 06-16 12:34:49 1397039 1397039 builder.cpp:1093] [liblp] Partition system_dlkm will resize from 0 bytes to 262144 bytes
lpmake I 06-16 12:34:49 1397039 1397039 builder.cpp:1093] [liblp] Partition system_ext will resize from 0 bytes to 183607296 bytes
lpmake I 06-16 12:34:49 1397039 1397039 builder.cpp:1093] [liblp] Partition vendor will resize from 0 bytes to 331780096 bytes
lpmake I 06-16 12:34:49 1397039 1397039 builder.cpp:1093] [liblp] Partition vendor_dlkm will resize from 0 bytes to 14376960 bytes
lpmake I 06-16 12:34:49 1397039 1397039 builder.cpp:1093] [liblp] Partition odm will resize from 0 bytes to 806912 bytes
lpmake I 06-16 12:34:49 1397039 1397039 builder.cpp:1093] [liblp] Partition odm_dlkm will resize from 0 bytes to 262144 bytes
lpmake I 06-16 12:34:49 1397039 1397039 builder.cpp:1093] [liblp] Partition product will resize from 0 bytes to 280276992 bytes
Invalid sparse file format at header magic
Invalid sparse file format at header magic
Invalid sparse file format at header magic
Invalid sparse file format at header magic
Invalid sparse file format at header magic
Invalid sparse file format at header magic
Invalid sparse file format at header magic
Invalid sparse file format at header magic
2025-06-16 12:34:52 - build_super_image.py - INFO : Done writing image out/target/product/ok3576_c/super.img
#### build completed successfully (03:10:27 (hh:mm:ss)) ####
Build android ok!
make and copy android images
TARGET_PRODUCT=ok3576_c
TARGET_BASE_PARAMETER_IMAGE==device/rockchip/common/baseparameter/v2.0/baseparameter.img
TARGET_AUTO_PQ_IMAGE==
HIGH_RELIABLE_RECOVERY_OTA=
BOARD_AVB_ENABLE=false
system filesysystem is ext4
create dtbo.img...
done.
create rockdev/Image-ok3576_c/resource.img...
done.
skip copy images: /home/rootroot/14TB/OK3576-android-source/out/target/product/ok3576_c/init_boot.img
skip copy images: /home/rootroot/14TB/OK3576-android-source/out/target/product/ok3576_c/pvmfw.img
create rockdev/Image-ok3576_c/boot.img...
done.
create rockdev/Image-ok3576_c/boot-debug.img...
done.
skip copy images: /home/rootroot/14TB/OK3576-android-source/out/target/product/ok3576_c/vendor_boot.img
skip copy images: /home/rootroot/14TB/OK3576-android-source/out/target/product/ok3576_c/vendor_boot-debug.img
create rockdev/Image-ok3576_c/recovery.img...
done.
create rockdev/Image-ok3576_c/super.img...
done.
skip copy images: /home/rootroot/14TB/OK3576-android-source/out/target/product/ok3576_c/userdata.img
create vbmeta.img...
BOARD_AVB_ENABLE is false, use default vbmeta.img
create misc.img.... done.
create uboot.img...
u-boot/trust.img not fount! Please make it from u-boot first!
create loader...
create config.cfg...
create baseparameter...done.
Make image ok!
Make update.img
packing update.img with Image -RK3576
regenernate package-file-tmp...
start to make update.img...
Android Firmware Package Tool v2.2
------ PACKAGE ------
Add file: ./package-file
package-file,Add file: ./package-file done,offset=0x800,size=0x29a,userspace=0x1
Add file: ./Image/MiniLoaderAll.bin
bootloader,Add file: ./Image/MiniLoaderAll.bin done,offset=0x1000,size=0xb91f9,userspace=0x173
Add file: ./Image/parameter.txt
parameter,Add file: ./Image/parameter.txt done,offset=0xba800,size=0x29d,userspace=0x1,flash_address=0x00000000
Add file: ./Image/uboot.img
uboot,Add file: ./Image/uboot.img done,offset=0xbb000,size=0x400000,userspace=0x800,flash_address=0x00004000
Add file: ./Image/misc.img
misc,Add file: ./Image/misc.img done,offset=0x4bb000,size=0xc000,userspace=0x18,flash_address=0x00008000
Add file: ./Image/dtbo.img
dtbo,Add file: ./Image/dtbo.img done,offset=0x4c7000,size=0x400000,userspace=0x800,flash_address=0x0000a000
Add file: ./Image/vbmeta.img
vbmeta,Add file: ./Image/vbmeta.img done,offset=0x8c7000,size=0x1000,userspace=0x2,flash_address=0x0000c000
Add file: ./Image/boot.img
boot,Add file: ./Image/boot.img done,offset=0x8c8000,size=0x27bc800,userspace=0x4f79,flash_address=0x0000c800
Add file: ./Image/recovery.img
recovery,Add file: ./Image/recovery.img done,offset=0x3084800,size=0x5da2000,userspace=0xbb44,flash_address=0x0002c800
Add file: ./Image/baseparameter.img
baseparameter,Add file: ./Image/baseparameter.img done,offset=0x8e26800,size=0x100000,userspace=0x200,flash_address=0x001fcc00
Add file: ./Image/super.img
super,Add file: ./Image/super.img done,offset=0x8f26800,size=0x6d113aec,userspace=0xda228,flash_address=0x001fd400
Add CRC...
Make firmware OK!
------ OK ------
********rkImageMaker ver 2.23********
Generating new image, please wait...
Writing head info...
Writing boot file...
Writing firmware...
Generating MD5 data...
MD5 data generated successfully!
New image generated successfully!
Making update.img OK.
Make update image ok!
/home/rootroot/14TB/OK3576-android-source
make and copy packaging in IMAGE
./build.sh: line 385: .repo/repo/repo: No such file or directory
./build.sh: line 386: .repo/repo/repo: No such file or directory
cp: cannot stat 'out/commit_id.xml': No such file or directory
rootroot@rootroot-X99-Turbo:~/14TB/OK3576-android-source$



1076

被折叠的 条评论
为什么被折叠?



