20260828在Ubuntu22.04系统下编译飞凌OK3576-C_Android14_用户资料_R2

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/1-源码 cat OK3576-android-source.tar.bz2.\* \> OK3576-android-source.tar.bz2 rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:\~/1-源码 ll
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/1-源码 tar jxvf OK3576-android-source.tar.bz2 rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:\~/1-源码 mv OK3576-android-source ..
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/1-源码 rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:\~/1-源码 cd ..
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~ rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:\~ cd OK3576-android-source/
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/OK3576-android-source rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:\~/OK3576-android-source ll
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/OK3576-android-source source build/envsetup.sh rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:\~/OK3576-android-source lunch
7. ok3576_c-user
8. ok3576_c-userdebug
Pick from common choices above (e.g. 13) or specify your own (e.g. aosp_barbet-eng): 8
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/OK3576-android-source$ ./build.sh -KAuop

20260828在Ubuntu22.04系统下编译飞凌OK3576-C_Android14_用户资料_R2

2026/8/28 17:26

1、下载SDK以及预处理。

资料获取

1.请登录飞凌官方论坛"bbs.witech.com.cn"→"开

发板资料下载"选择对应平台下载;

2.下载前请阅读《资料下载说明》:

http://bbs.witech.com.cn/thread-67932-1-1.html。

E:\OK3576-C_Android14_用户资料_R2\1-手册\0-OK3576-C_产品使用手册.pdf

? 产品使用手册

资料版本 下载链接 / 更新记录

在线阅览链接: https://forlinx-book.yuque.com/rh74yu/ok3576?# 《OK3576》

使用手册类型:

软件用户使用手册、用户编译手册、常见问题手册、硬件手册、硬件设计指南、应用笔记。

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$ ll

total 70609440

drwxr-x--- 29 rootroot rootroot 12288 8月 28 12:02 ./

drwxr-xr-x 3 root root 4096 2月 2 2025 ../

drwx------ 2 rootroot rootroot 4096 8月 28 12:08 1-源码/

drwxrwxr-x 2 rootroot rootroot 4096 5月 9 14:11 3568/

drwxrwxr-x 3 rootroot rootroot 4096 8月 26 16:51 3572/

-rw-rw-r-- 1 rootroot rootroot 75472 2月 2 2025 apt.txt

-rw------- 1 rootroot rootroot 32645 8月 27 19:58 .bash_history

-rw-r--r-- 1 rootroot rootroot 220 2月 2 2025 .bash_logout

-rw-r--r-- 1 rootroot rootroot 3771 2月 2 2025 .bashrc

drwxr-xr-x 20 rootroot rootroot 4096 8月 2 2025 .buildroot-ccache/

drwx------ 25 rootroot rootroot 4096 6月 15 2025 .cache/

drwxr-xr-x 2 rootroot rootroot 4096 8月 26 18:15 .cargo/

-rwx------ 1 rootroot rootroot 11043339 2月 3 2025 cm6125q1_repo+init.tar.gz*

drwx------ 24 rootroot rootroot 4096 8月 19 19:51 .config/

-rwx------ 1 rootroot rootroot 1111 8月 3 2025 Core-3588J12.txt*

drwxr-xr-x 2 rootroot rootroot 4096 2月 3 2025 Desktop/

drwxr-xr-x 2 rootroot rootroot 4096 2月 3 2025 Documents/

drwxr-xr-x 3 rootroot rootroot 4096 6月 15 2025 Downloads/

-rw-rw-r-- 1 rootroot rootroot 16532 4月 26 2025 gcc12.txt

-rwx------ 1 rootroot rootroot 223074005 3月 13 16:46 gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.gz*

-rw-rw-r-- 1 rootroot rootroot 85 2月 3 2025 .gitconfig

drwxrwxr-x 36 rootroot rootroot 4096 8月 20 01:28 git_RK3576_Linux6.1/

drwx------ 2 rootroot rootroot 4096 5月 4 2025 .gnupg/

-rwx------ 1 rootroot rootroot 11219050 3月 13 13:13 kernel-build-tool.tar.gz*

-rwx------ 1 rootroot rootroot 237694787 3月 13 13:13 kernel-pi-v1.0.tar.gz*

-rw------- 1 rootroot rootroot 20 8月 2 2025 .lesshst

drwx------ 3 rootroot rootroot 4096 2月 3 2025 .local/

drwx------ 3 rootroot rootroot 4096 2月 2 2025 .mozilla/

drwxr-xr-x 2 rootroot rootroot 4096 2月 3 2025 Music/

-rw-rw-r-- 1 rootroot rootroot 75 2月 3 2025 .netrc

drwxr-xr-x 4 rootroot rootroot 4096 2月 8 2025 Pictures/

-rw-r--r-- 1 rootroot rootroot 807 2月 2 2025 .profile

drwxr-xr-x 2 rootroot rootroot 4096 2月 3 2025 Public/

-rw------- 1 rootroot rootroot 7 3月 8 10:58 .python_history

drwxrwxr-x 3 rootroot rootroot 4096 2月 3 2025 .repoconfig/

-rw-rw-r-- 1 rootroot rootroot 135 2月 3 2025 .repo_.gitconfig.json

drwxrwxr-x 3 rootroot rootroot 4096 8月 27 18:08 rk3576/

drwxrwxr-x 36 rootroot rootroot 4096 5月 8 14:45 RK3576_Android14.0_SDK_RELEASE/

-rw-rw-r-- 1 rootroot rootroot 71820661027 4月 25 21:29 RK3576_Android14.0_SDK_RELEASE.tar.gz

drwx------ 4 rootroot rootroot 4096 2月 2 2025 snap/

-rwx------ 1 rootroot rootroot 18694 5月 4 2025 SOFT.txt*

drwx------ 2 rootroot rootroot 4096 2月 2 2025 .ssh/

-rw-r--r-- 1 rootroot rootroot 0 2月 2 2025 .sudo_as_admin_successful

drwxr-xr-x 2 rootroot rootroot 4096 2月 3 2025 Templates/

drwx------ 6 rootroot rootroot 4096 2月 2 2025 .thunderbird/

drwxr-xr-x 3 rootroot rootroot 4096 2月 8 2025 Videos/

drwxr-xr-x 2 rootroot rootroot 4096 5月 4 2025 .vmware/

drwxrwxr-x 2 rootroot rootroot 4096 8月 3 2025 vmware/

-rw-r--r-- 1 rootroot rootroot 246 1月 23 2026 .wget-hsts

-rw------- 1 rootroot rootroot 425 8月 28 11:58 .Xauthority

-rwx------ 1 rootroot rootroot 626 5月 2 2025 新建文本文档.txt*

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$ cd 1-源码/

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/1-源码$ ll

total 32916736

drwx------ 2 rootroot rootroot 4096 8月 28 12:08 ./

drwxr-x--- 29 rootroot rootroot 12288 8月 28 12:02 ../

-rwx------ 1 rootroot rootroot 1154 8月 27 11:32 md5.txt*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:34 OK3576-android-source.tar.bz2.00*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:34 OK3576-android-source.tar.bz2.01*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:34 OK3576-android-source.tar.bz2.02*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:34 OK3576-android-source.tar.bz2.03*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:38 OK3576-android-source.tar.bz2.04*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:36 OK3576-android-source.tar.bz2.05*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:37 OK3576-android-source.tar.bz2.06*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:35 OK3576-android-source.tar.bz2.07*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:37 OK3576-android-source.tar.bz2.08*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:36 OK3576-android-source.tar.bz2.09*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:37 OK3576-android-source.tar.bz2.10*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:39 OK3576-android-source.tar.bz2.11*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:39 OK3576-android-source.tar.bz2.12*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:38 OK3576-android-source.tar.bz2.13*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:38 OK3576-android-source.tar.bz2.14*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:38 OK3576-android-source.tar.bz2.15*

-rwx------ 1 rootroot rootroot 152212346 8月 27 11:39 OK3576-android-source.tar.bz2.16*

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/1-源码$

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/1-源码$

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/1-源码$ cat OK3576-android-source.tar.bz2.* > OK3576-android-source.tar.bz2

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/1-源码$ ll

total 65833412

drwx------ 2 rootroot rootroot 4096 8月 28 12:09 ./

drwxr-x--- 29 rootroot rootroot 12288 8月 28 12:02 ../

-rwx------ 1 rootroot rootroot 1154 8月 27 11:32 md5.txt*

-rw-rw-r-- 1 rootroot rootroot 33706644346 8月 28 12:11 OK3576-android-source.tar.bz2

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:34 OK3576-android-source.tar.bz2.00*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:34 OK3576-android-source.tar.bz2.01*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:34 OK3576-android-source.tar.bz2.02*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:34 OK3576-android-source.tar.bz2.03*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:38 OK3576-android-source.tar.bz2.04*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:36 OK3576-android-source.tar.bz2.05*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:37 OK3576-android-source.tar.bz2.06*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:35 OK3576-android-source.tar.bz2.07*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:37 OK3576-android-source.tar.bz2.08*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:36 OK3576-android-source.tar.bz2.09*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:37 OK3576-android-source.tar.bz2.10*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:39 OK3576-android-source.tar.bz2.11*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:39 OK3576-android-source.tar.bz2.12*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:38 OK3576-android-source.tar.bz2.13*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:38 OK3576-android-source.tar.bz2.14*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:38 OK3576-android-source.tar.bz2.15*

-rwx------ 1 rootroot rootroot 152212346 8月 27 11:39 OK3576-android-source.tar.bz2.16*

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/1-源码$

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/1-源码$ tar jxvf OK3576-android-source.tar.bz2

【合并SDK大概5分钟,解压缩SDK大概一小时。不知道为什么飞凌这么喜欢打tar.bz2压缩包,解压缩特别慢!】

OK3576-android-source/u-boot/

OK3576-android-source/u-boot/scripts/

OK3576-android-source/u-boot/scripts/pack_resource.sh

OK3576-android-source/u-boot/scripts/unpack_bootimg

OK3576-android-source/u-boot/scripts/repack-bootimg

OK3576-android-source/u-boot/scripts/fit-unpack.sh

OK3576-android-source/u-boot/scripts/fit-repack.sh

OK3576-android-source/u-boot/tools/

OK3576-android-source/u-boot/tools/images/

OK3576-android-source/u-boot/tools/images/battery_0.bmp

OK3576-android-source/u-boot/tools/images/battery_1.bmp

OK3576-android-source/u-boot/tools/images/battery_2.bmp

OK3576-android-source/u-boot/tools/images/battery_3.bmp

OK3576-android-source/u-boot/tools/images/battery_4.bmp

OK3576-android-source/u-boot/tools/images/battery_5.bmp

OK3576-android-source/u-boot/tools/images/battery_fail.bmp

OK3576-android-source/u-boot/rk3576_spl_loader_v1.09.107.bin

OK3576-android-source/u-boot/uboot.img

OK3576-android-source/u-boot/resource.img

OK3576-android-source/internal_config.proto/

OK3576-android-source/user_config.proto/

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/1-源码$ ll

total 65833416

drwx------ 3 rootroot rootroot 4096 8月 28 12:16 ./

drwxr-x--- 29 rootroot rootroot 12288 8月 28 12:02 ../

-rwx------ 1 rootroot rootroot 1154 8月 27 11:32 md5.txt*

drwxrwxr-x 36 rootroot rootroot 4096 9月 24 2025 OK3576-android-source/

-rw-rw-r-- 1 rootroot rootroot 33706644346 8月 28 12:11 OK3576-android-source.tar.bz2

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:34 OK3576-android-source.tar.bz2.00*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:34 OK3576-android-source.tar.bz2.01*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:34 OK3576-android-source.tar.bz2.02*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:34 OK3576-android-source.tar.bz2.03*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:38 OK3576-android-source.tar.bz2.04*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:36 OK3576-android-source.tar.bz2.05*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:37 OK3576-android-source.tar.bz2.06*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:35 OK3576-android-source.tar.bz2.07*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:37 OK3576-android-source.tar.bz2.08*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:36 OK3576-android-source.tar.bz2.09*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:37 OK3576-android-source.tar.bz2.10*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:39 OK3576-android-source.tar.bz2.11*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:39 OK3576-android-source.tar.bz2.12*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:38 OK3576-android-source.tar.bz2.13*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:38 OK3576-android-source.tar.bz2.14*

-rwx------ 1 rootroot rootroot 2097152000 8月 27 11:38 OK3576-android-source.tar.bz2.15*

-rwx------ 1 rootroot rootroot 152212346 8月 27 11:39 OK3576-android-source.tar.bz2.16*

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/1-源码$

2、编译指令:

https://forlinx-book.yuque.com/rh74yu/ok3576/b2c8cbd7ee987faeac72d4cc9aed35f2

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 -KAup

● 生成的文件目录为rockdev/和IMAGE/OK3576_C_USERDEBUG_OK3576-C-ANDROID__xxxxxxxxxx/

● update.img可用于烧录系统

  1. ota升级包

全量升级包包含完整系统,增量升级包内容为两个版本之间的差异,因此需要保证开发板已经烧录了低版本的系统,再使用增量升级才能正确升级。

3.1. OTA全量升级包

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 -KAuop

● 生成的文件目录为rockdev/和IMAGE/OK3576_C_USERDEBUG_OK3576-C-ANDROID__xxxxxxxxxx/

● 将ok3576_c-ota-eng.root.zip重命名为update.zip,即可用于OTA全量升级

3、编译SDK【精简步骤】:

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$ cd OK3576-android-source/

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/OK3576-android-source$

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/OK3576-android-source$ ll

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/OK3576-android-source source build/envsetup.sh rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:\~/OK3576-android-source lunch

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/1-源码$

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/1-源码$

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/1-源码$ mv OK3576-android-source ..

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/1-源码$

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/1-源码$ cd ..

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$ cd OK3576-android-source/

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/OK3576-android-source$

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/OK3576-android-source$ ll

total 176

drwxrwxr-x 36 rootroot rootroot 4096 9月 24 2025 ./

drwxr-x--- 30 rootroot rootroot 12288 8月 28 12:54 ../

lrwxrwxrwx 1 rootroot rootroot 19 9月 24 2025 Android.bp -> build/soong/root.bp

drwxrwxr-x 37 rootroot rootroot 4096 9月 24 2025 art/

drwxrwxr-x 14 rootroot rootroot 4096 9月 24 2025 bionic/

drwxrwxr-x 4 rootroot rootroot 4096 9月 24 2025 bootable/

lrwxrwxrwx 1 rootroot rootroot 26 9月 24 2025 bootstrap.bash -> build/soong/bootstrap.bash*

drwxrwxr-x 9 rootroot rootroot 4096 9月 24 2025 build/

lrwxrwxrwx 1 rootroot rootroot 23 9月 24 2025 BUILD -> build/bazel/bazel.BUILD

lrwxrwxrwx 1 rootroot rootroot 46 9月 24 2025 build.sh -> device/rockchip/common/build/rockchip/build.sh*

lrwxrwxrwx 1 rootroot rootroot 33 9月 24 2025 .classpath -> device/rockchip/common/.classpath*

-rw-rw-r-- 1 rootroot rootroot 1448 9月 24 2025 commit_id.txt

lrwxrwxrwx 1 rootroot rootroot 46 9月 24 2025 Copyright_Statement.pdf -> device/rockchip/common/Copyright_Statement.pdf*

drwxrwxr-x 13 rootroot rootroot 4096 9月 24 2025 cts/

drwxrwxr-x 7 rootroot rootroot 4096 9月 24 2025 dalvik/

drwxrwxr-x 5 rootroot rootroot 4096 9月 24 2025 developers/

drwxrwxr-x 22 rootroot rootroot 4096 9月 24 2025 development/

drwxrwxr-x 5 rootroot rootroot 4096 9月 24 2025 device/

drwxrwxr-x 411 rootroot rootroot 12288 9月 24 2025 external/

drwxrwxr-x 16 rootroot rootroot 4096 9月 24 2025 frameworks/

-rwxrwxr-x 1 rootroot rootroot 752 9月 24 2025 generate-commit_id.sh*

-rw-rw-r-- 1 rootroot rootroot 58 9月 24 2025 .gitignore

drwxrwxr-x 20 rootroot rootroot 4096 9月 24 2025 hardware/

drwxrwxr-x 2 rootroot rootroot 4096 9月 24 2025 internal_config.proto/

lrwxrwxrwx 1 rootroot rootroot 33 9月 24 2025 javaenv.sh -> device/rockchip/common/javaenv.sh

drwxrwxr-x 5 rootroot rootroot 4096 9月 24 2025 kernel/

drwxrwxr-x 27 rootroot rootroot 4096 9月 24 2025 kernel-6.1/

drwxrwxr-x 20 rootroot rootroot 4096 9月 24 2025 libcore/

drwxrwxr-x 9 rootroot rootroot 4096 9月 24 2025 libnativehelper/

drwxrwxr-x 9 rootroot rootroot 4096 9月 24 2025 mkcombinedroot/

lrwxrwxrwx 1 rootroot rootroot 36 9月 24 2025 mkimage_ab.sh -> device/rockchip/common/mkimage_ab.sh*

lrwxrwxrwx 1 rootroot rootroot 33 9月 24 2025 mkimage.sh -> device/rockchip/common/mkimage.sh*

drwxrwxr-x 9 rootroot rootroot 4096 9月 24 2025 packages/

drwxrwxr-x 5 rootroot rootroot 4096 9月 24 2025 pdk/

drwxrwxr-x 10 rootroot rootroot 4096 9月 24 2025 platform_testing/

drwxrwxr-x 32 rootroot rootroot 4096 9月 24 2025 prebuilts/

-rwxrwxr-x 1 rootroot rootroot 519 9月 24 2025 restore_patches.sh*

drwxrwxr-x 9 rootroot rootroot 4096 9月 24 2025 rkbin/

drwxrwxr-x 4 rootroot rootroot 4096 9月 24 2025 RKDocs/

drwxrwxr-x 4 rootroot rootroot 4096 9月 24 2025 rkst/

drwxrwxr-x 5 rootroot rootroot 4096 9月 24 2025 RKTools/

drwxrwxr-x 20 rootroot rootroot 4096 9月 24 2025 sdk/

drwxrwxr-x 47 rootroot rootroot 4096 9月 24 2025 system/

drwxrwxr-x 12 rootroot rootroot 4096 9月 24 2025 test/

drwxrwxr-x 4 rootroot rootroot 4096 9月 24 2025 toolchain/

drwxrwxr-x 25 rootroot rootroot 4096 9月 24 2025 tools/

drwxrwxr-x 4 rootroot rootroot 4096 9月 24 2025 u-boot/

drwxrwxr-x 2 rootroot rootroot 4096 9月 24 2025 user_config.proto/

drwxrwxr-x 5 rootroot rootroot 4096 9月 24 2025 vendor/

lrwxrwxrwx 1 rootroot rootroot 27 9月 24 2025 WORKSPACE -> build/bazel/bazel.WORKSPACE

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/OK3576-android-source$

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/OK3576-android-source$ ll *.sh

lrwxrwxrwx 1 rootroot rootroot 46 9月 24 2025 build.sh -> device/rockchip/common/build/rockchip/build.sh*

-rwxrwxr-x 1 rootroot rootroot 752 9月 24 2025 generate-commit_id.sh*

lrwxrwxrwx 1 rootroot rootroot 33 9月 24 2025 javaenv.sh -> device/rockchip/common/javaenv.sh

lrwxrwxrwx 1 rootroot rootroot 36 9月 24 2025 mkimage_ab.sh -> device/rockchip/common/mkimage_ab.sh*

lrwxrwxrwx 1 rootroot rootroot 33 9月 24 2025 mkimage.sh -> device/rockchip/common/mkimage.sh*

-rwxrwxr-x 1 rootroot rootroot 519 9月 24 2025 restore_patches.sh*

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/OK3576-android-source$

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/OK3576-android-source source build/envsetup.sh rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:\~/OK3576-android-source
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/OK3576-android-source$ lunch

You're building on Linux

Lunch menu .. Here are the common combinations:

  1. PX30_u-user

  2. PX30_u-userdebug

  3. aosp_arm-eng

  4. aosp_arm64-eng

  5. aosp_x86-eng

  6. aosp_x86_64-eng

  7. ok3576_c-user

  8. ok3576_c-userdebug

  9. rk3326_u-user

  10. rk3326_u-userdebug

  11. rk3326_ugo-user

  12. rk3326_ugo-userdebug

  13. rk3399_u-user

  14. rk3399_u-userdebug

  15. rk3562_t-user

  16. rk3562_t-userdebug

  17. rk3562_u-user

  18. rk3562_u-userdebug

  19. rk3562_ugo-user

  20. rk3562_ugo-userdebug

  21. rk3566_t-user

  22. rk3566_t-userdebug

  23. rk3566_u-user

  24. rk3566_u-userdebug

  25. rk3566_ugo-user

  26. rk3566_ugo-userdebug

  27. rk3568_t-user

  28. rk3568_t-userdebug

  29. rk3568_u-user

  30. rk3568_u-userdebug

  31. rk3576_u-user

  32. rk3576_u-userdebug

  33. rk3576s_u-user

  34. rk3576s_u-userdebug

  35. rk3588_s-user

  36. rk3588_s-userdebug

  37. rk3588_t-user

  38. rk3588_t-userdebug

  39. rk3588_u-user

  40. rk3588_u-userdebug

  41. rk3588s_s-user

  42. rk3588s_s-userdebug

  43. rk3588s_t-user

  44. rk3588s_t-userdebug

  45. rk3588s_u-user

  46. rk3588s_u-userdebug

Which would you like? aosp_arm-eng

Pick from common choices above (e.g. 13) or specify your own (e.g. aosp_barbet-eng): 8

Hint: next time you can simply run '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-6.8.0-101-generic-x86_64-Ubuntu-22.04.5-LTS

HOST_CROSS_OS=windows

BUILD_ID=UQ1A.240205.004.B1

OUT_DIR=out

============================================

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/OK3576-android-source$

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/OK3576-android-source$ ./build.sh -KAuop

【大概13点开水编译,完成17点】

Fetch 'out/target/product/ok3576_c/obj/PACKAGING/target_files_intermediates/ok3576_c-target_files-eng.rootroot/SYSTEM/etc/vintf/compatibility_matrix.8.xml': OK

Fetch 'out/target/product/ok3576_c/obj/PACKAGING/target_files_intermediates/ok3576_c-target_files-eng.rootroot/SYSTEM/etc/vintf/compatibility_matrix.7.xml': OK

Fetch 'out/target/product/ok3576_c/obj/PACKAGING/target_files_intermediates/ok3576_c-target_files-eng.rootroot/SYSTEM/etc/vintf/manifest.xml': OK

Fetch 'out/target/product/ok3576_c/obj/PACKAGING/target_files_intermediates/ok3576_c-target_files-eng.rootroot/SYSTEM/etc/vintf/compatibility_matrix.5.xml': OK

List 'out/target/product/ok3576_c/obj/PACKAGING/target_files_intermediates/ok3576_c-target_files-eng.rootroot/SYSTEM_EXT/etc/vintf/': OK

Fetch 'out/target/product/ok3576_c/obj/PACKAGING/target_files_intermediates/ok3576_c-target_files-eng.rootroot/SYSTEM_EXT/etc/vintf/manifest.xml': OK

List 'out/target/product/ok3576_c/obj/PACKAGING/target_files_intermediates/ok3576_c-target_files-eng.rootroot/PRODUCT/etc/vintf/': NAME_NOT_FOUND

All HALs in device manifest are declared in FCM <= level 8

COMPATIBLE

2026-08-28 16:55:25 - check_target_files_vintf.py - INFO : stderr:

2026-08-28 16:55:25 - common.py - INFO : using prebuilt boot.img from IMAGES...

2026-08-28 16:55:25 - common.py - INFO : boot size (41881600) is 62.41% of limit (67108864)

2026-08-28 16:55:28 - common.py - INFO : Running: "/home/rootroot/OK3576-android-source/out/host/linux-x86/bin/zip2zip -i /home/rootroot/OK3576-android-source/out/soong/.temp/tmpt25fv840.zip -o /home/rootroot/OK3576-android-source/out/soong/.temp/tmptc3xu4y3 -x META-INF/com/android/metadata -x META-INF/com/android/metadata.pb"

2026-08-28 16:55:29 - common.py - INFO :

2026-08-28 16:55:29 - common.py - INFO : Running: "java -Xmx4096m -Djava.library.path=out/host/linux-x86/lib64 -jar out/host/linux-x86/framework/signapk.jar -w build/make/target/product/security/testkey.x509.pem build/make/target/product/security/testkey.pk8 /home/rootroot/OK3576-android-source/out/soong/.temp/tmpt25fv840.zip /home/rootroot/OK3576-android-source/out/soong/.temp/tmpk6q4unb5.zip"

2026-08-28 16:55:34 - common.py - INFO : Running: "/home/rootroot/OK3576-android-source/out/host/linux-x86/bin/zip2zip -i /home/rootroot/OK3576-android-source/out/soong/.temp/tmpk6q4unb5.zip -o /home/rootroot/OK3576-android-source/out/soong/.temp/tmpccaya4b6 -x META-INF/com/android/metadata -x META-INF/com/android/metadata.pb"

2026-08-28 16:55:35 - common.py - INFO :

2026-08-28 16:55:35 - ota_utils.py - INFO : Signing the output file out/target/product/ok3576_c/ok3576_c-ota-eng.rootroot.zip with key build/make/target/product/security/testkey

2026-08-28 16:55:35 - common.py - INFO : Running: "java -Xmx4096m -Djava.library.path=out/host/linux-x86/lib64 -jar out/host/linux-x86/framework/signapk.jar -w build/make/target/product/security/testkey.x509.pem build/make/target/product/security/testkey.pk8 /home/rootroot/OK3576-android-source/out/soong/.temp/tmpk6q4unb5.zip out/target/product/ok3576_c/ok3576_c-ota-eng.rootroot.zip"

2026-08-28 16:55:39 - ota_from_target_files.py - INFO : done.

Compressing system.new.dat with brotli

Compressing vendor.new.dat with brotli

Compressing product.new.dat with brotli

Compressing odm.new.dat with brotli

Compressing system_ext.new.dat with brotli

Compressing vendor_dlkm.new.dat with brotli

Compressing odm_dlkm.new.dat with brotli

Compressing system_dlkm.new.dat with brotli

warning: no trust.img in input target_files; not flashing trust

write uboot now...

warning: no vbmeta.img in input target_files; not flashing vbmeta

wirte dtbo now...

no charge img; ignore it.

info: no resource image; ignore it.

no RKLoader.bin, ignore it.

info: no vendor_boot.img in input target_files; ignore it

info: no init_boot.img in input target_files; ignore it

info: no logo image; ignore it.

info: no waveform image; ignore it.

100% 10177/10177 Dist: out/dist/ok3576_c-ota-eng.rootroot.zip

build completed successfully (09:10 (mm:ss))

Build android ok!

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/OK3576-android-source/out/target/product/ok3576_c/init_boot.img

skip copy images: /home/rootroot/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/OK3576-android-source/out/target/product/ok3576_c/vendor_boot.img

skip copy images: /home/rootroot/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/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 update_loader.zip..

arvg1=rockdev/Image-ok3576_c/MiniLoaderAll.bin argv2=rockdev/Image-ok3576_c/update_loader_unsigned.zip

Success!

done.

create baseparameter...done.

create system.img boot.img oem.img vendor.img dtbo.img vbmeta.img for OTA...done.

Build android 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=0xbd1f9,userspace=0x17b

Add file: ./Image/parameter.txt

parameter,Add file: ./Image/parameter.txt done,offset=0xbe800,size=0x29d,userspace=0x1,flash_address=0x00000000

Add file: ./Image/uboot.img

uboot,Add file: ./Image/uboot.img done,offset=0xbf000,size=0x400000,userspace=0x800,flash_address=0x00004000

Add file: ./Image/misc.img

misc,Add file: ./Image/misc.img done,offset=0x4bf000,size=0xc000,userspace=0x18,flash_address=0x00008000

Add file: ./Image/dtbo.img

dtbo,Add file: ./Image/dtbo.img done,offset=0x4cb000,size=0x400000,userspace=0x800,flash_address=0x0000a000

Add file: ./Image/vbmeta.img

vbmeta,Add file: ./Image/vbmeta.img done,offset=0x8cb000,size=0x1000,userspace=0x2,flash_address=0x0000c000

Add file: ./Image/boot.img

boot,Add file: ./Image/boot.img done,offset=0x8cc000,size=0x27f1000,userspace=0x4fe2,flash_address=0x0000c800

Add file: ./Image/recovery.img

recovery,Add file: ./Image/recovery.img done,offset=0x30bd000,size=0x52b2000,userspace=0xa564,flash_address=0x0002c800

Add file: ./Image/baseparameter.img

baseparameter,Add file: ./Image/baseparameter.img done,offset=0x836f000,size=0x100000,userspace=0x200,flash_address=0x001fcc00

Add file: ./Image/super.img

super,Add file: ./Image/super.img done,offset=0x846f000,size=0x7f37fddc,userspace=0xfe700,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/OK3576-android-source

make and copy packaging in IMAGE

./build.sh: line 394: .repo/repo/repo: No such file or directory

./build.sh: line 395: .repo/repo/repo: No such file or directory

cp: cannot stat 'out/commit_id.xml': No such file or directory

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/OK3576-android-source$

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/OK3576-android-source$

4、编译生成的IMG固件:

forlinx@ubuntu:~/work/OK3576-android-source$ ./build.sh -KAup
Y:\OK3576-android-source\rockdev\Image-ok3576_c\update.img

forlinx@ubuntu:~/work/OK3576-android-source$ ./build.sh -KAuop
Y:\OK3576-android-source\IMAGE\OK3576_C_USERDEBUG_OK3576-C-ANDROID__20260828.1257\IMAGES\update.img

相关推荐
南棱笑笑生16 小时前
20260827在Ubuntu22.04系统下编译眺望Pi-RK3572工业派开发板的Buildroot系统
rockchip
proware12 天前
ffmpeg 初始化配置及基本概念与套路
ffmpeg·mpp·rockchip·rga
AF_INET624 天前
RK开发板(五)ISP Tunner工具的基本使用
经验分享·sensor·rockchip·rv1126b·isp tunner·图像调试·isp调试
__Witheart__24 天前
3568 Android 设置首次烧录后 usb otg 口模式
android·adb·rockchip
__Witheart__1 个月前
3568 Android otg模式下adb热拔插不识别
android·adb·rockchip
__Witheart__1 个月前
3568 Android ntp校时使用
android·rockchip
__Witheart__1 个月前
适用于Android内核boot.img生成流程
android·rockchip
__Witheart__1 个月前
版型关联的设备树查询方式
android·rockchip
Amonter2 个月前
TB-RK3399Pro移植ubuntu 26.04及烧录
linux·ubuntu·rockchip·rk3399pro