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可用于烧录系统
3. 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..
arvg[1]=rockdev/Image-ok3576_c/MiniLoaderAll.bin argv[2]=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

内容概要:本文系统研究了Picard迭代法在非线性常微分方程参数估计中的应用,深入阐述了该方法的数学原理及其在参数辨识中的收敛性与稳定性优势。通过构建最小化误差的目标函数,并结合数值积分技术,采用迭代方式逐步逼近系统的真实参数值,有效解决了非线性动态系统中因缺乏解析解而难以进行精确建模的问题。文中提供了完整的Matlab代码实现,涵盖模型定义、迭代求解、参数更新与结果可视化等关键环节,增强了方法的可操作性与工程实用性。研究通过典型非线性系统案例验证了算法的有效性,展示了其在科学计算与工程建模中的良好适应性与推广潜力。; 适合人群:具备常微分方程理论、数值分析基础及Matlab编程能力,从事系统建模、参数辨识、动力学仿真等相关方向的研究生、科研人员和工程技术开发者。; 使用场景及目标:①解决实际工程中非线性微分方程模型的未知参数估计问题;②深入理解Picard迭代法在科学计算中的实现机制与数值特性;③为学术论文复现、科研项目开发或课程设计提供可运行、易调试的技术方案与代码参考。; 阅读建议:建议读者结合文中的数学推导与Matlab代码逐行分析,重点关注迭代流程、目标函数构造与数值积分的耦合实现,通过修改模型结构或噪声条件进行扩展实验,以深化对算法鲁棒性与适用边界的理解。配套资源可通过指定公众号和网盘链接获取,推荐同步学习以加速科研进程。
内容概要:本文详细介绍了一种基于多尺度集成极限学习机(Extreme Learning Machine, ELM)的回归方法,并提供了完整的Matlab代码实现。该方法通过构建多尺度特征表示与集成学习机制,有效提升了ELM在处理非线性、高维复杂数据时的预测精度与模型鲁棒性,特别适用于时间序列回归任务。文档不仅阐述了算法的核心原理与技术流程,还系统展示了其在风电功率预测等工程场景中的应用潜力。同时,文中附带了丰富的科研仿真案例集合,涵盖智能优化算法、深度学习、信号处理、电力系统调度等多个前沿方向,体现了多学科交叉融合的技术优势与实践价值。; 适合人群:具备一定Matlab编程能力,从事科学研究或工程应用的研究生、科研人员及工程技术开发者,尤其适合专注于机器学习、智能算法优化、新能源预测与电力系统建模等相关领域的专业人员。; 使用场景及目标:①用于风电、光伏、负荷等时间序列数据的高精度回归预测任务;②为科研工作者提供可复现的多尺度集成ELM模型代码框架,支持快速算法验证与二次开发;③满足实际工程项目中对高效建模、实时预测与智能决策的技术需求。; 阅读建议:建议读者结合所提供的Matlab代码进行动手实践,深入理解多尺度特征构造与集成策略的设计思想,同时可参考文档中其他相关算法案例进行横向比较与综合应用,以提升整体科研创新能力。
内容概要:本文详细介绍了一种基于Simulink的Ćuk转换器仿真方法,该转换器能够将输入的直流电压高效地转换为极性相反的输出直流电压,具备优异的升降压能力与系统稳定性。文章深入剖析了Ćuk转换器的核心工作原理、电路拓扑结构(包含开关管、电感、电容、二极管等关键元件)及其在能量存储与传递过程中的动态行为。通过构建精确的Simulink仿真模型,验证了系统在不同输入条件下的稳态与暂态响应特性,充分展示了其输出电压反相、纹波小、效率高的优势,适用于对负压电源有严苛要求的应用场景。此外,文档还整合了大量基于Matlab/Simulink和Python的科研仿真资源,涵盖风电预测、微电网优化、GAN场景生成、电力电子系统建模等多个前沿方向,凸显了其在现代电力电子与系统仿真研究中的重要价值。; 适合人群:电气工程、自动化、电力电子及相关专业的本科生、研究生、科研人员及具备电路理论基础和Simulink仿真经验的工程技术人员。; 使用场景及目标:①深入理解Ćuk转换器的工作机理及其在直流-直流变换中的独特优势;②利用Simulink平台开展电力电子电路的建模、仿真与性能分析;③为需要稳定负压输出的电源系统设计提供理论依据和技术验证方案。; 阅读建议:建议结合Simulink软件动手实践,重点掌握电路拓扑搭建、关键参数配置及仿真结果解读技巧,同时可延伸学习文中提供的其他科研案例,以拓宽技术视野并提升综合仿真能力。
内容概要:本文提出并实现了一种基于角蜥蜴优化算法(HLOA)优化BP神经网络的风电功率预测模型,旨在解决传统BP神经网络在处理高随机性、强波动性风电数据时存在的收敛速度慢、易陷入局部最优等问题。通过HLOA对BP神经网络的初始权重和阈值进行全局寻优,有效提升了模型的预测精度与稳定性。研究详细阐述了HLOA的搜索机制及其与BP网络的集成方法,并提供了完整的Matlab代码实现,便于复现与验证。实验结果表明,相较于传统BP、GWO-BP、PSO-BP等模型,HLOA-BP在均方根误差(RMSE)、平均绝对误差(MAE)等指标上表现更优,具备更强的泛化能力和鲁棒性,适用于风电场短期功率预测的实际工程场景。; 适合人群:具备一定机器学习理论基础和电力系统知识,熟悉Matlab编程的研究生、科研人员及能源领域的工程技术人员,尤其适合从事新能源发电预测、智能优化算法开发与应用的相关研究人员。; 使用场景及目标:①应用于风电场功率预测系统,提升电网调度的可靠性与运行效率;②作为智能优化算法与神经网络融合的典型范例,用于教学演示、科研复现与模型拓展;③为撰写高水平学术论文提供可验证的技术路线与实验支撑。; 阅读建议:建议读者结合所提供的Matlab代码逐模块分析算法实现细节,重点理解HLOA的个体更新机制与BP网络参数的耦合方式,并可通过更换实际风电数据集或对比其他优化算法(如WOA、SCA等)进一步开展消融实验与性能评估。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值