本文共 31916 字,大约阅读时间需要 106 分钟。
https://wiki.t-firefly.com/zh_CN/AIO-3399J/compile_android7.1_industry_firmware.html
20210413-AIO-3399J-编译 Android7.1 Industry 固件(主要维护)-整理 AIO-3399J产品规格书 立即购买 AIO-3399J 采用 RK3399 六核(A72x2+A53x4) 64 位处理器,主频高达1.8GHz,集成了四核 Mali-T860 GPU,性能优异。Docs » 编译 Android7.1 Industry 固件(主要维护)View page source
AIO-3399J-编译 Android7.1 Industry 固件(主要维护)下载编译须知:
Android7.1 industry 版本(主要维护)在工业和平板和盒子等领域的使用上范围更加广泛,而且性能稳定大批量生产验证过, 该版本也作为我司主要维护版本,适用于我司RK3399系统的所有机型。编译 Android7.1 industry 固件
下载 Android SDK Android SDK 源码包比较大,可以去下载页面来获取Android7.1 industry源码包: Android7.1 industry源码包下载完成后先验证一下 MD5 码:
$ md5sum /path/to/rk3399-firefly-industry-71-20190926.7z.001
afb279a7d2966908bcf53ce2c2c05edc rk3399-firefly-industry-71-20190926.7z.001$md5sum /path/to/rk3399-firefly-industry-71-20190926.7z.002
2bc5a41fd1056f1d1ab1f7e84f666bee rk3399-firefly-industry-71-20190926.7z.002 rootroot@rootroot-Inspiron-3880:~$ rootroot@rootroot-Inspiron-3880:~$ rootroot@rootroot-Inspiron-3880:~$ cd RK3399-AIO-J的SDK/ rootroot@rootroot-Inspiron-3880:~/RK3399-AIO-J的SDK$ ll total 28 drwxrwxrwx 7 rootroot rootroot 4096 4月 12 08:14 ./ drwxrwxr-x 21 rootroot rootroot 4096 4月 13 14:26 ../ drwxrwxrwx 3 rootroot rootroot 4096 4月 12 07:42 '01-Android10.0 SDK'/ drwxrwxrwx 3 rootroot rootroot 4096 4月 12 07:49 '02-Android 7.1 SDK源码'/ drwxrwxrwx 3 rootroot rootroot 4096 4月 12 07:55 '03-Android 7.1 SDK源码'/ drwxrwxrwx 3 rootroot rootroot 4096 4月 12 08:09 '04-Android 8.1 SDK源码'/ drwxrwxrwx 3 rootroot rootroot 4096 4月 12 08:14 05-Linux-SDK源码包(仅支持RK3399)/ rootroot@rootroot-Inspiron-3880:~/RK3399-AIO-J的SDK$ rootroot@rootroot-Inspiron-3880:~/RK3399-AIO-J的SDK$ rootroot@rootroot-Inspiron-3880:~/RK3399-AIO-J的SDK$ cd '03-Android 7.1 SDK源码' rootroot@rootroot-Inspiron-3880:~/RK3399-AIO-J的SDK/03-Android 7.1 SDK源码$ ll total 12 drwxrwxrwx 3 rootroot rootroot 4096 4月 12 07:55 ./ drwxrwxrwx 7 rootroot rootroot 4096 4月 12 08:14 ../ drwxrwxrwx 3 rootroot rootroot 4096 4月 12 07:55 Android7.1industry/ rootroot@rootroot-Inspiron-3880:~/RK3399-AIO-J的SDK/03-Android 7.1 SDK源码$ rootroot@rootroot-Inspiron-3880:~/RK3399-AIO-J的SDK/03-Android 7.1 SDK源码$ rootroot@rootroot-Inspiron-3880:~/RK3399-AIO-J的SDK/03-Android 7.1 SDK源码$ cd Android7.1industry/ rootroot@rootroot-Inspiron-3880:~/RK3399-AIO-J的SDK/03-Android 7.1 SDK源码/Android7.1industry$ ll total 12 drwxrwxrwx 3 rootroot rootroot 4096 4月 12 07:55 ./ drwxrwxrwx 3 rootroot rootroot 4096 4月 12 07:55 ../ drwxrwxrwx 3 rootroot rootroot 4096 4月 13 14:59 rk3399-firefly-industry-71-20190926/ rootroot@rootroot-Inspiron-3880:~/RK3399-AIO-J的SDK/03-Android 7.1 SDK源码/Android7.1industry$ rootroot@rootroot-Inspiron-3880:~/RK3399-AIO-J的SDK/03-Android 7.1 SDK源码/Android7.1industry$ rootroot@rootroot-Inspiron-3880:~/RK3399-AIO-J的SDK/03-Android 7.1 SDK源码/Android7.1industry$ cd rk3399-firefly-industry-71-20190926/ rootroot@rootroot-Inspiron-3880:~/RK3399-AIO-J的SDK/03-Android 7.1 SDK源码/Android7.1industry/rk3399-firefly-industry-71-20190926$ ll total 12312340 drwxrwxrwx 3 rootroot rootroot 4096 4月 13 14:59 ./ drwxrwxrwx 3 rootroot rootroot 4096 4月 12 07:55 ../ drwxrwxrwx 2 rootroot rootroot 4096 4月 13 14:59 bundle/ -rwxrwxrwx 1 rootroot rootroot 8589934592 4月 9 11:11 rk3399-firefly-industry-71-20190926.7z.001* -rwxrwxrwx 1 rootroot rootroot 77 4月 9 10:24 rk3399-firefly-industry-71-20190926.7z.001.md5sum* -rwxrwxrwx 1 rootroot rootroot 4017872526 4月 9 10:50 rk3399-firefly-industry-71-20190926.7z.002* -rwxrwxrwx 1 rootroot rootroot 77 4月 9 10:24 rk3399-firefly-industry-71-20190926.7z.002.md5sum* rootroot@rootroot-Inspiron-3880:~/RK3399-AIO-J的SDK/03-Android 7.1 SDK源码/Android7.1industry/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/RK3399-AIO-J的SDK/03-Android 7.1 SDK源码/Android7.1industry/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/RK3399-AIO-J的SDK/03-Android 7.1 SDK源码/Android7.1industry/rk3399-firefly-industry-71-20190926$ cd .. rootroot@rootroot-Inspiron-3880:~/RK3399-AIO-J的SDK/03-Android 7.1 SDK源码/Android7.1industry$ ll total 12 drwxrwxrwx 3 rootroot rootroot 4096 4月 12 07:55 ./ drwxrwxrwx 3 rootroot rootroot 4096 4月 12 07:55 ../ drwxrwxrwx 3 rootroot rootroot 4096 4月 13 14:59 rk3399-firefly-industry-71-20190926/ rootroot@rootroot-Inspiron-3880:~/RK3399-AIO-J的SDK/03-Android 7.1 SDK源码/Android7.1industry$ rootroot@rootroot-Inspiron-3880:~/RK3399-AIO-J的SDK/03-Android 7.1 SDK源码/Android7.1industry$ rootroot@rootroot-Inspiron-3880:~/RK3399-AIO-J的SDK/03-Android 7.1 SDK源码/Android7.1industry$ mv rk3399-firefly-industry-71-20190926/ ~ rootroot@rootroot-Inspiron-3880:~/RK3399-AIO-J的SDK/03-Android 7.1 SDK源码/Android7.1industry$ rootroot@rootroot-Inspiron-3880:~/RK3399-AIO-J的SDK/03-Android 7.1 SDK源码/Android7.1industry$ rootroot@rootroot-Inspiron-3880:~/RK3399-AIO-J的SDK/03-Android 7.1 SDK源码/Android7.1industry$ cd ~ rootroot@rootroot-Inspiron-3880:~$ rootroot@rootroot-Inspiron-3880:~$ ll total 83552468 drwxrwxr-x 22 rootroot rootroot 4096 4月 13 15:14 ./ drwxr-xr-x 4 root root 4096 4月 15 2020 ../ drwxrwxr-x 28 rootroot rootroot 4096 4月 13 08:12 aosp/ -rw-rw-r-- 1 rootroot rootroot 39732316620 4月 9 13:26 aosp_android-10.0.0_r2.tar.gz -rwxr--r-- 1 rootroot rootroot 3771 2月 1 17:32 bak1.bashrc* -rwxr--r-- 1 rootroot rootroot 3870 4月 9 14:51 bak2node.bashrc* -rw------- 1 rootroot rootroot 7999 4月 13 14:24 .bash_history -rwxr--r-- 1 rootroot rootroot 3890 4月 9 14:52 .bashrc* drwx------ 13 rootroot rootroot 4096 4月 9 15:32 .cache/ drwxr-xr-x 13 rootroot rootroot 4096 4月 9 18:39 .config/ drwxr-xr-x 2 rootroot rootroot 4096 4月 9 10:43 Desktop/ drwxr-xr-x 2 rootroot rootroot 4096 4月 9 10:43 Documents/ drwxr-xr-x 2 rootroot rootroot 4096 4月 9 10:43 Downloads/ drwxrwxrwx 4 rootroot rootroot 4096 4月 13 10:56 fanzong/ -rw-rw-r-- 1 rootroot rootroot 109 4月 9 11:25 .gitconfig -rw------- 1 rootroot rootroot 58 4月 9 11:58 .git-credentials drwx------ 3 rootroot rootroot 4096 4月 9 10:45 .gnupg/ drwxr-xr-x 3 rootroot rootroot 4096 4月 9 10:43 .local/ drwxr-xr-x 2 rootroot rootroot 4096 4月 9 10:43 Music/ drwxrwxr-x 4 rootroot rootroot 4096 4月 9 14:53 .npm/ drwxrwxr-x 19 rootroot rootroot 4096 4月 13 11:41 OpenHarmony/ -rw-rw-r-- 1 rootroot rootroot 45825260471 4月 9 15:29 OpenHarmony6over.tar.gz drwxr-xr-x 2 rootroot rootroot 4096 4月 9 10:50 Pictures/ -rwxr--r-- 1 rootroot rootroot 807 4月 7 09:50 .profile* drwxrwxr-x 2 rootroot rootroot 4096 4月 12 14:37 proj/ drwxr-xr-x 2 rootroot rootroot 4096 4月 9 10:43 Public/ -rw------- 1 rootroot rootroot 7 4月 9 11:10 .python_history -rw-rw-r-- 1 rootroot rootroot 170 4月 9 11:26 .repo_.gitconfig.json drwxrwxrwx 7 rootroot rootroot 4096 4月 12 08:14 RK3399-AIO-J的SDK/ drwxrwxrwx 3 rootroot rootroot 4096 4月 13 14:59 rk3399-firefly-industry-71-20190926/ drwx------ 2 rootroot rootroot 4096 4月 9 10:45 .ssh/ -rw-r--r-- 1 rootroot rootroot 0 4月 9 10:46 .sudo_as_admin_successful drwxr-xr-x 2 rootroot rootroot 4096 4月 9 10:43 Templates/ drwxr-xr-x 2 rootroot rootroot 4096 4月 9 10:43 Videos/ -rw------- 1 rootroot rootroot 204 4月 13 14:26 .Xauthority rootroot@rootroot-Inspiron-3880:~$ rootroot@rootroot-Inspiron-3880:~$ rootroot@rootroot-Inspiron-3880:~$ cd rk3399-firefly-industry-71-20190926/ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ ll total 12312340 drwxrwxrwx 3 rootroot rootroot 4096 4月 13 14:59 ./ drwxrwxr-x 22 rootroot rootroot 4096 4月 13 15:14 ../ drwxrwxrwx 2 rootroot rootroot 4096 4月 13 14:59 bundle/ -rwxrwxrwx 1 rootroot rootroot 8589934592 4月 9 11:11 rk3399-firefly-industry-71-20190926.7z.001* -rwxrwxrwx 1 rootroot rootroot 77 4月 9 10:24 rk3399-firefly-industry-71-20190926.7z.001.md5sum* -rwxrwxrwx 1 rootroot rootroot 4017872526 4月 9 10:50 rk3399-firefly-industry-71-20190926.7z.002* -rwxrwxrwx 1 rootroot rootroot 77 4月 9 10:24 rk3399-firefly-industry-71-20190926.7z.002.md5sum* rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ md5sum rk3399-firefly-industry-71-20190926.7z.001 afb279a7d2966908bcf53ce2c2c05edc rk3399-firefly-industry-71-20190926.7z.001 rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ md5sum rk3399-firefly-industry-71-20190926.7z.002 2bc5a41fd1056f1d1ab1f7e84f666bee rk3399-firefly-industry-71-20190926.7z.002 rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ cat rk3399-firefly-industry-71-20190926.7z.001.md5sum afb279a7d2966908bcf53ce2c2c05edc rk3399-firefly-industry-71-20190926.7z.001 rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ cat rk3399-firefly-industry-71-20190926.7z.002.md5sum 2bc5a41fd1056f1d1ab1f7e84f666bee rk3399-firefly-industry-71-20190926.7z.002 rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ 确认无误后,就可以解压:mkdir -p ~/proj/firefly-rk3399-Industry
cd ~/proj/firefly-rk3399-Industry 7z x /path/to/rk3399-firefly-industry-71-20190926.7z.001 -r -o. git reset --hard 7z x rk3399-firefly-industry-71-20190926.7z.001 -r -o.firefly-rk3399-Industry rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ ll total 12312340 drwxrwxrwx 3 rootroot rootroot 4096 4月 13 14:59 ./ drwxrwxr-x 22 rootroot rootroot 4096 4月 13 15:14 ../ drwxrwxrwx 2 rootroot rootroot 4096 4月 13 14:59 bundle/ -rwxrwxrwx 1 rootroot rootroot 8589934592 4月 9 11:11 rk3399-firefly-industry-71-20190926.7z.001* -rwxrwxrwx 1 rootroot rootroot 77 4月 9 10:24 rk3399-firefly-industry-71-20190926.7z.001.md5sum* -rwxrwxrwx 1 rootroot rootroot 4017872526 4月 9 10:50 rk3399-firefly-industry-71-20190926.7z.002* -rwxrwxrwx 1 rootroot rootroot 77 4月 9 10:24 rk3399-firefly-industry-71-20190926.7z.002.md5sum* rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ 7z x rk3399-firefly-industry-71-20190926.7z.001 -r -o.firefly-rk3399-Industry7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,12 CPUs Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz (A0653),ASM,AES-NI)Scanning the drive for archives:
1 file, 8589934592 bytes (8192 MiB)Extracting archive: rk3399-firefly-industry-71-20190926.7z.001
-- Path = rk3399-firefly-industry-71-20190926.7z.001 Type = Split Physical Size = 8589934592 Volumes = 2 Total Physical Size = 12607807118 ---- Path = rk3399-firefly-industry-71-20190926.7z Size = 12607807118 -- Path = rk3399-firefly-industry-71-20190926.7z Type = 7z Physical Size = 12607807118 Headers Size = 698 Method = LZMA:24 Solid = + Blocks = 3Everything is Ok
Folders: 17
Files: 22 Size: 13068646136 Compressed: 12607807118 rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ ll total 12312344 drwxrwxrwx 4 rootroot rootroot 4096 4月 13 15:26 ./ drwxrwxr-x 22 rootroot rootroot 4096 4月 13 15:14 ../ drwxrwxrwx 2 rootroot rootroot 4096 4月 13 14:59 bundle/ drwx------ 3 rootroot rootroot 4096 4月 13 15:26 .firefly-rk3399-Industry/ -rwxrwxrwx 1 rootroot rootroot 8589934592 4月 9 11:11 rk3399-firefly-industry-71-20190926.7z.001* -rwxrwxrwx 1 rootroot rootroot 77 4月 9 10:24 rk3399-firefly-industry-71-20190926.7z.001.md5sum* -rwxrwxrwx 1 rootroot rootroot 4017872526 4月 9 10:50 rk3399-firefly-industry-71-20190926.7z.002* -rwxrwxrwx 1 rootroot rootroot 77 4月 9 10:24 rk3399-firefly-industry-71-20190926.7z.002.md5sum* rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ mv .firefly-rk3399-Industry/ firefly-rk3399-Industry/ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ cd firefly-rk3399-Industry/ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926/firefly-rk3399-Industry$ ll total 12 drwx------ 3 rootroot rootroot 4096 4月 13 15:26 ./ drwxrwxrwx 4 rootroot rootroot 4096 4月 13 15:35 ../ drwxrwxr-x 8 rootroot rootroot 4096 9月 26 2019 .git/ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926/firefly-rk3399-Industry$ cd .. rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ ll total 12312344 drwxrwxrwx 4 rootroot rootroot 4096 4月 13 15:35 ./ drwxrwxr-x 22 rootroot rootroot 4096 4月 13 15:14 ../ drwxrwxrwx 2 rootroot rootroot 4096 4月 13 14:59 bundle/ drwx------ 3 rootroot rootroot 4096 4月 13 15:26 firefly-rk3399-Industry/ -rwxrwxrwx 1 rootroot rootroot 8589934592 4月 9 11:11 rk3399-firefly-industry-71-20190926.7z.001* -rwxrwxrwx 1 rootroot rootroot 77 4月 9 10:24 rk3399-firefly-industry-71-20190926.7z.001.md5sum* -rwxrwxrwx 1 rootroot rootroot 4017872526 4月 9 10:50 rk3399-firefly-industry-71-20190926.7z.002* -rwxrwxrwx 1 rootroot rootroot 77 4月 9 10:24 rk3399-firefly-industry-71-20190926.7z.002.md5sum* rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ mv firefly-rk3399-Industry/ ~/proj/ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ rootroot@rootroot-Inspiron-3880:~/rk3399-firefly-industry-71-20190926$ cd ~/proj/ rootroot@rootroot-Inspiron-3880:~/proj$ rootroot@rootroot-Inspiron-3880:~/proj$ ll total 13737228 drwxrwxr-x 3 rootroot rootroot 4096 4月 13 15:36 ./ drwxrwxr-x 22 rootroot rootroot 4096 4月 13 15:14 ../ -rwxrwxr-x 1 rootroot rootroot 8589934592 4月 12 14:37 Firefly-RK3399_Android10.0_git_20210114.7z.001* -rwxrwxr-x 1 rootroot rootroot 81 4月 12 14:37 Firefly-RK3399_Android10.0_git_20210114.7z.001.md5sum* -rwxrwxr-x 1 rootroot rootroot 5476962304 4月 12 14:37 Firefly-RK3399_Android10.0_git_20210114.7z.002* drwx------ 3 rootroot rootroot 4096 4月 13 15:26 firefly-rk3399-Industry/ rootroot@rootroot-Inspiron-3880:~/proj$ rootroot@rootroot-Inspiron-3880:~/proj$ rootroot@rootroot-Inspiron-3880:~/proj$ rm Firefly-RK3399_Android10.0_git_20210114.7z.00* rootroot@rootroot-Inspiron-3880:~/proj$ ll total 12 drwxrwxr-x 3 rootroot rootroot 4096 4月 13 15:36 ./ drwxrwxr-x 22 rootroot rootroot 4096 4月 13 15:14 ../ drwx------ 3 rootroot rootroot 4096 4月 13 15:26 firefly-rk3399-Industry/ rootroot@rootroot-Inspiron-3880:~/proj$ rootroot@rootroot-Inspiron-3880:~/proj$ rootroot@rootroot-Inspiron-3880:~/proj$ cd firefly-rk3399-Industry/ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ ll total 12 drwx------ 3 rootroot rootroot 4096 4月 13 15:26 ./ drwxrwxr-x 3 rootroot rootroot 4096 4月 13 15:36 ../ drwxrwxr-x 8 rootroot rootroot 4096 9月 26 2019 .git/ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ git reset --hard Updating files: 100% (689176/689176), done. HEAD is now at 8856fe97fa 1.update OpenAilib.apk ,bootanimation 2.update driver:led backlight wifi tp wiegand camera 3.update product AIOC-AI rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ ll total 208 drwx------ 36 rootroot rootroot 4096 4月 13 15:43 ./ drwxrwxr-x 3 rootroot rootroot 4096 4月 13 15:36 ../ drwxrwxr-x 3 rootroot rootroot 4096 4月 13 15:36 abi/ lrwxrwxrwx 1 rootroot rootroot 19 4月 13 15:36 Android.bp -> build/soong/root.bp drwxrwxr-x 20 rootroot rootroot 4096 4月 13 15:36 art/ drwxrwxr-x 11 rootroot rootroot 4096 4月 13 15:36 bionic/ drwxrwxr-x 3 rootroot rootroot 4096 4月 13 15:36 bootable/ lrwxrwxrwx 1 rootroot rootroot 26 4月 13 15:36 bootstrap.bash -> build/soong/bootstrap.bash* drwxrwxr-x 9 rootroot rootroot 4096 4月 13 15:36 build/ -rwxrwxr-x 1 rootroot rootroot 5350 4月 13 15:36 build-rk3399-all.sh* -rwxrwxr-x 1 rootroot rootroot 4171 4月 13 15:36 buildspec.mk* -rwxrwxr-x 1 rootroot rootroot 14109 4月 13 15:36 .classpath* drwxrwxr-x 3 rootroot rootroot 4096 4月 13 15:36 compatibility/ drwxrwxr-x 11 rootroot rootroot 4096 4月 13 15:36 cts/ drwxrwxr-x 9 rootroot rootroot 4096 4月 13 15:36 dalvik/ drwxrwxr-x 5 rootroot rootroot 4096 4月 13 15:36 developers/ drwxrwxr-x 20 rootroot rootroot 4096 4月 13 15:36 development/ drwxrwxr-x 4 rootroot rootroot 4096 4月 13 15:36 device/ drwxrwxr-x 3 rootroot rootroot 4096 4月 13 15:36 docs/ drwxrwxr-x 260 rootroot rootroot 12288 4月 13 15:38 external/ drwxrwxr-x 4 rootroot rootroot 4096 4月 13 15:36 FFTools/ drwxrwxr-x 17 rootroot rootroot 4096 4月 13 15:39 frameworks/ drwxrwxr-x 8 rootroot rootroot 4096 4月 13 15:43 .git/ -rw-rw-r-- 1 rootroot rootroot 328 4月 13 15:36 .gitignore drwxrwxr-x 16 rootroot rootroot 4096 4月 13 15:39 hardware/ -rw-rw-r-- 1 rootroot rootroot 162 4月 13 15:39 javaenv.sh drwxrwxr-x 25 rootroot rootroot 4096 4月 13 15:39 kernel/ drwxrwxr-x 17 rootroot rootroot 4096 4月 13 15:39 libcore/ drwxrwxr-x 4 rootroot rootroot 4096 4月 13 15:39 libnativehelper/ -rw-rw-r-- 1 rootroot rootroot 87 4月 13 15:36 Makefile -rwxrwxr-x 1 rootroot rootroot 10116 4月 13 15:39 mkimage.sh* drwxrwxr-x 7 rootroot rootroot 4096 4月 13 15:39 ndk/ drwxrwxr-x 9 rootroot rootroot 4096 4月 13 15:39 packages/ drwxrwxr-x 5 rootroot rootroot 4096 4月 13 15:39 pdk/ drwxrwxr-x 6 rootroot rootroot 4096 4月 13 15:39 platform_testing/ drwxrwxr-x 20 rootroot rootroot 4096 4月 13 15:42 prebuilts/ drwxrwxr-x 6 rootroot rootroot 4096 4月 13 15:42 rkbin/ drwxrwxr-x 4 rootroot rootroot 4096 4月 13 15:42 rkst/ drwxrwxr-x 4 rootroot rootroot 4096 4月 13 15:36 RKTools/ drwxrwxr-x 24 rootroot rootroot 4096 4月 13 15:42 sdk/ drwxrwxr-x 21 rootroot rootroot 4096 4月 13 15:42 system/ drwxrwxr-x 3 rootroot rootroot 4096 4月 13 15:42 toolchain/ drwxrwxr-x 4 rootroot rootroot 4096 4月 13 15:43 tools/ drwxrwxr-x 21 rootroot rootroot 4096 4月 13 15:43 u-boot/ drwxrwxr-x 5 rootroot rootroot 4096 4月 13 15:43 vendor/ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$
注意:解压后务必要先更新下远程仓库。 以下为从 gitlab 处更新的方法:
1. 进入SDK根目录
cd ~/proj/firefly-rk3399-Industry2. 下载远程bundle仓库
git clone https://gitlab.com/TeeFirefly/rk3399-industry-nougat-bundle.git .bundle3. 若下载仓库失败,目前bundle仓库大约1.4G左右,所以同步的时候可能会出现卡住或失败的问题,可以从下方百度云链接下载并解压到SDK根目录,解压指令如下:
7z x rk3399-industry-nougat-bundle.7z -r -o. && mv rk3399-industry-nougat-bundle/ .bundle/
4. 更新SDK,并且后续更新不需要再次拉取远程仓库,直接执行以下命令即可
.bundle/update
5. 按照提示已经更新内容到 FETCH_HEAD,同步FETCH_HEAD到firefly分支
git rebase FETCH_HEAD 百度云下载[bundle压缩包] rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ cd ~/proj/firefly-rk3399-Industry rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ ll total 208 drwx------ 36 rootroot rootroot 4096 4月 13 15:43 ./ drwxrwxr-x 3 rootroot rootroot 4096 4月 13 15:36 ../ drwxrwxr-x 3 rootroot rootroot 4096 4月 13 15:36 abi/ lrwxrwxrwx 1 rootroot rootroot 19 4月 13 15:36 Android.bp -> build/soong/root.bp drwxrwxr-x 20 rootroot rootroot 4096 4月 13 15:36 art/ drwxrwxr-x 11 rootroot rootroot 4096 4月 13 15:36 bionic/ drwxrwxr-x 3 rootroot rootroot 4096 4月 13 15:36 bootable/ lrwxrwxrwx 1 rootroot rootroot 26 4月 13 15:36 bootstrap.bash -> build/soong/bootstrap.bash* drwxrwxr-x 9 rootroot rootroot 4096 4月 13 15:36 build/ -rwxrwxr-x 1 rootroot rootroot 5350 4月 13 15:36 build-rk3399-all.sh* -rwxrwxr-x 1 rootroot rootroot 4171 4月 13 15:36 buildspec.mk* -rwxrwxr-x 1 rootroot rootroot 14109 4月 13 15:36 .classpath* drwxrwxr-x 3 rootroot rootroot 4096 4月 13 15:36 compatibility/ drwxrwxr-x 11 rootroot rootroot 4096 4月 13 15:36 cts/ drwxrwxr-x 9 rootroot rootroot 4096 4月 13 15:36 dalvik/ drwxrwxr-x 5 rootroot rootroot 4096 4月 13 15:36 developers/ drwxrwxr-x 20 rootroot rootroot 4096 4月 13 15:36 development/ drwxrwxr-x 4 rootroot rootroot 4096 4月 13 15:36 device/ drwxrwxr-x 3 rootroot rootroot 4096 4月 13 15:36 docs/ drwxrwxr-x 260 rootroot rootroot 12288 4月 13 15:38 external/ drwxrwxr-x 4 rootroot rootroot 4096 4月 13 15:36 FFTools/ drwxrwxr-x 17 rootroot rootroot 4096 4月 13 15:39 frameworks/ drwxrwxr-x 8 rootroot rootroot 4096 4月 13 15:43 .git/ -rw-rw-r-- 1 rootroot rootroot 328 4月 13 15:36 .gitignore drwxrwxr-x 16 rootroot rootroot 4096 4月 13 15:39 hardware/ -rw-rw-r-- 1 rootroot rootroot 162 4月 13 15:39 javaenv.sh drwxrwxr-x 25 rootroot rootroot 4096 4月 13 15:39 kernel/ drwxrwxr-x 17 rootroot rootroot 4096 4月 13 15:39 libcore/ drwxrwxr-x 4 rootroot rootroot 4096 4月 13 15:39 libnativehelper/ -rw-rw-r-- 1 rootroot rootroot 87 4月 13 15:36 Makefile -rwxrwxr-x 1 rootroot rootroot 10116 4月 13 15:39 mkimage.sh* drwxrwxr-x 7 rootroot rootroot 4096 4月 13 15:39 ndk/ drwxrwxr-x 9 rootroot rootroot 4096 4月 13 15:39 packages/ drwxrwxr-x 5 rootroot rootroot 4096 4月 13 15:39 pdk/ drwxrwxr-x 6 rootroot rootroot 4096 4月 13 15:39 platform_testing/ drwxrwxr-x 20 rootroot rootroot 4096 4月 13 15:42 prebuilts/ drwxrwxr-x 6 rootroot rootroot 4096 4月 13 15:42 rkbin/ drwxrwxr-x 4 rootroot rootroot 4096 4月 13 15:42 rkst/ drwxrwxr-x 4 rootroot rootroot 4096 4月 13 15:36 RKTools/ drwxrwxr-x 24 rootroot rootroot 4096 4月 13 15:42 sdk/ drwxrwxr-x 21 rootroot rootroot 4096 4月 13 15:42 system/ drwxrwxr-x 3 rootroot rootroot 4096 4月 13 15:42 toolchain/ drwxrwxr-x 4 rootroot rootroot 4096 4月 13 15:43 tools/ drwxrwxr-x 21 rootroot rootroot 4096 4月 13 15:43 u-boot/ drwxrwxr-x 5 rootroot rootroot 4096 4月 13 15:43 vendor/ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ git clone https://gitlab.com/TeeFirefly/rk3399-industry-nougat-bundle.git .bundle Cloning into '.bundle'... remote: Enumerating objects: 6, done. remote: Counting objects: 100% (6/6), done. remote: Compressing objects: 100% (6/6), done. remote: Total 41 (delta 1), reused 0 (delta 0), pack-reused 35 Unpacking objects: 100% (41/41), 1.34 GiB | 6.22 MiB/s, done. Updating files: 100% (14/14), done. rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ ll total 212 drwx------ 37 rootroot rootroot 4096 4月 13 15:46 ./ drwxrwxr-x 3 rootroot rootroot 4096 4月 13 15:36 ../ drwxrwxr-x 3 rootroot rootroot 4096 4月 13 15:36 abi/ lrwxrwxrwx 1 rootroot rootroot 19 4月 13 15:36 Android.bp -> build/soong/root.bp drwxrwxr-x 20 rootroot rootroot 4096 4月 13 15:36 art/ drwxrwxr-x 11 rootroot rootroot 4096 4月 13 15:36 bionic/ drwxrwxr-x 3 rootroot rootroot 4096 4月 13 15:36 bootable/ lrwxrwxrwx 1 rootroot rootroot 26 4月 13 15:36 bootstrap.bash -> build/soong/bootstrap.bash* drwxrwxr-x 9 rootroot rootroot 4096 4月 13 15:36 build/ -rwxrwxr-x 1 rootroot rootroot 5350 4月 13 15:36 build-rk3399-all.sh* -rwxrwxr-x 1 rootroot rootroot 4171 4月 13 15:36 buildspec.mk* drwxrwxr-x 3 rootroot rootroot 4096 4月 13 15:50 .bundle/ -rwxrwxr-x 1 rootroot rootroot 14109 4月 13 15:36 .classpath* drwxrwxr-x 3 rootroot rootroot 4096 4月 13 15:36 compatibility/ drwxrwxr-x 11 rootroot rootroot 4096 4月 13 15:36 cts/ drwxrwxr-x 9 rootroot rootroot 4096 4月 13 15:36 dalvik/ drwxrwxr-x 5 rootroot rootroot 4096 4月 13 15:36 developers/ drwxrwxr-x 20 rootroot rootroot 4096 4月 13 15:36 development/ drwxrwxr-x 4 rootroot rootroot 4096 4月 13 15:36 device/ drwxrwxr-x 3 rootroot rootroot 4096 4月 13 15:36 docs/ drwxrwxr-x 260 rootroot rootroot 12288 4月 13 15:38 external/ drwxrwxr-x 4 rootroot rootroot 4096 4月 13 15:36 FFTools/ drwxrwxr-x 17 rootroot rootroot 4096 4月 13 15:39 frameworks/ drwxrwxr-x 8 rootroot rootroot 4096 4月 13 15:43 .git/ -rw-rw-r-- 1 rootroot rootroot 328 4月 13 15:36 .gitignore drwxrwxr-x 16 rootroot rootroot 4096 4月 13 15:39 hardware/ -rw-rw-r-- 1 rootroot rootroot 162 4月 13 15:39 javaenv.sh drwxrwxr-x 25 rootroot rootroot 4096 4月 13 15:39 kernel/ drwxrwxr-x 17 rootroot rootroot 4096 4月 13 15:39 libcore/ drwxrwxr-x 4 rootroot rootroot 4096 4月 13 15:39 libnativehelper/ -rw-rw-r-- 1 rootroot rootroot 87 4月 13 15:36 Makefile -rwxrwxr-x 1 rootroot rootroot 10116 4月 13 15:39 mkimage.sh* drwxrwxr-x 7 rootroot rootroot 4096 4月 13 15:39 ndk/ drwxrwxr-x 9 rootroot rootroot 4096 4月 13 15:39 packages/ drwxrwxr-x 5 rootroot rootroot 4096 4月 13 15:39 pdk/ drwxrwxr-x 6 rootroot rootroot 4096 4月 13 15:39 platform_testing/ drwxrwxr-x 20 rootroot rootroot 4096 4月 13 15:42 prebuilts/ drwxrwxr-x 6 rootroot rootroot 4096 4月 13 15:42 rkbin/ drwxrwxr-x 4 rootroot rootroot 4096 4月 13 15:42 rkst/ drwxrwxr-x 4 rootroot rootroot 4096 4月 13 15:36 RKTools/ drwxrwxr-x 24 rootroot rootroot 4096 4月 13 15:42 sdk/ drwxrwxr-x 21 rootroot rootroot 4096 4月 13 15:42 system/ drwxrwxr-x 3 rootroot rootroot 4096 4月 13 15:42 toolchain/ drwxrwxr-x 4 rootroot rootroot 4096 4月 13 15:43 tools/ drwxrwxr-x 21 rootroot rootroot 4096 4月 13 15:43 u-boot/ drwxrwxr-x 5 rootroot rootroot 4096 4月 13 15:43 vendor/ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ .bundle/update [Info]Update Bundle repo... From https://gitlab.com/TeeFirefly/rk3399-industry-nougat-bundle * branch master -> FETCH_HEAD ------------------------------------------- [Info]Update to FETCH_HEAD: Receiving objects: 100% (2797/2797), 839.17 MiB | 22.89 MiB/s, done. Resolving deltas: 100% (1690/1690), completed with 816 local objects. From .bundle/1.bundle * branch HEAD -> FETCH_HEAD [Info]Fetch .bundle/1.bundle successfully!! Receiving objects: 100% (148/148), 13.66 MiB | 184.05 MiB/s, done. Resolving deltas: 100% (103/103), completed with 83 local objects. From .bundle/2.bundle * branch HEAD -> FETCH_HEAD [Info]Fetch .bundle/2.bundle successfully!! Receiving objects: 100% (235/235), 62.75 MiB | 110.60 MiB/s, done. Resolving deltas: 100% (149/149), completed with 122 local objects. From .bundle/3.bundle * branch HEAD -> FETCH_HEAD [Info]Fetch .bundle/3.bundle successfully!! Receiving objects: 100% (190/190), 22.67 MiB | 122.17 MiB/s, done. Resolving deltas: 100% (143/143), completed with 112 local objects. From .bundle/4.bundle * branch HEAD -> FETCH_HEAD [Info]Fetch .bundle/4.bundle successfully!! Receiving objects: 100% (280/280), 202.14 MiB | 113.48 MiB/s, done. Resolving deltas: 100% (152/152), completed with 135 local objects. From .bundle/5.bundle * branch HEAD -> FETCH_HEAD [Info]Fetch .bundle/5.bundle successfully!! Receiving objects: 100% (42/42), 11.13 MiB | 108.53 MiB/s, done. Resolving deltas: 100% (28/28), completed with 25 local objects. From .bundle/6.bundle * branch HEAD -> FETCH_HEAD [Info]Fetch .bundle/6.bundle successfully!! Receiving objects: 100% (205/205), 110.09 MiB | 148.33 MiB/s, done. Resolving deltas: 100% (137/137), completed with 122 local objects. From .bundle/7.bundle * branch HEAD -> FETCH_HEAD [Info]Fetch .bundle/7.bundle successfully!! Receiving objects: 100% (56/56), 16.51 MiB | 123.39 MiB/s, done. Resolving deltas: 100% (41/41), completed with 40 local objects. From .bundle/8.bundle * branch HEAD -> FETCH_HEAD [Info]Fetch .bundle/8.bundle successfully!! Receiving objects: 100% (148/148), 5.68 MiB | 95.33 MiB/s, done. Resolving deltas: 100% (81/81), completed with 72 local objects. From .bundle/9.bundle * branch HEAD -> FETCH_HEAD [Info]Fetch .bundle/9.bundle successfully!! Receiving objects: 100% (5699/5699), 106.58 MiB | 69.82 MiB/s, done. Resolving deltas: 100% (4314/4314), completed with 1520 local objects. From .bundle/10.bundle * branch HEAD -> FETCH_HEAD [Info]Fetch .bundle/10.bundle successfully!! rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ git rebase FETCH_HEAD First, rewinding head to replay your work on top of it... Fast-forwarded master to FETCH_HEAD. rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$ rootroot@rootroot-Inspiron-3880:~/proj/firefly-rk3399-Industry$
./FFTools/make.sh -d rk3399-firefly-aio-lvds-HSX101H40C -j8 -l rk3399_firefly_aio_lvds-userdebug
./FFTools/mkupdate/mkupdate.sh -l rk3399_firefly_aio_lvds-userdebug 手动编译 AIO-3399J 编译前执行如下命令配置环境变量:export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$JAVA_HOME/bin:$PATH export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar 编译kernel:cd ~/proj/AIO-3399J/kernel/
make ARCH=arm64 firefly_defconfig make -j8 ARCH=arm64 rk3399-firefly-aio.img 编译uboot:cd ~/proj/AIO-3399J/u-boot/
make rk3399_defconfig make ARCHV=aarch64 -j8 编译android:cd ~/proj/AIO-3399J/
source build/envsetup.sh lunch rk3399_firefly_aio-userdebug make -j8 ./mkimage.sh 打包成统一固件 update.img 编译完可以用Firefly官方的脚本打包成统一固件,执行如下命令:./FFTools/mkupdate/mkupdate.sh update
打包完成后将在rockdev/Image-XXX/ 目录下生成统一固件: product名XXX_XXX_日期XXX.img
在 Windows 下打包统一固件 update.img 也很简单,将编译生成的文件拷贝到 AndroidTool 的 rockdev\Image 目录中,然后运行 rockdev 目录下的 mkupdate.bat 批处理文件即可创建 update.img 并存放到 rockdev\Image 目录里。
烧写分区映像
编译的时候执行 ./mkimage.sh 会重新打包 boot.img 和 system.img, 并将其它相关的映像文件拷贝到目录 rockdev/Image-rk3399_firefly/ 中。以下列出一般固件用到的映像文件:boot.img :Android 的初始文件映像,负责初始化并加载 system 分区。
kernel.img :内核映像。
misc.img :misc 分区映像,负责启动模式切换和急救模式的参数传递。
parameter.txt :emmc的分区信息
recovery.img :急救模式映像。
resource.img :资源映像,内含开机图片和内核的设备树信息。
system.img :Android 的 system 分区映像,ext4 文件系统格式。
trust.img :休眠唤醒相关的文件
rk3399_loader_v1.08.106.bin :Loader文件
uboot.img :uboot文件
请参照 《升级固件》 一文来烧写分区映像文件。
如果使用的是 Windows 系统,将上述映像文件拷贝到 AndroidTool (Windows 下的固件升级工具)的 rockdev\Image 目录中,之后参照升级文档烧写分区映像即可,这样的好处是使用默认配置即可,不用修改文件的路径。
update.img 方便固件的发布,供终端用户升级系统使用。一般开发时使用分区映像比较方便。注意:
使用升级工具进行industry版固件升级时,如果原有烧录的是tvbox版固件,需要先短路emmc或进行flash擦除。且注意使用相适配升级工具 请参照 烧写须知其他安卓版本
主要维护:《编译 Android7.1 industry 固件》
《编译 Android10. 固件》
支持但不维护:
《编译 Android7.1 固件》
《编译 Android8.1 固件》
转载地址:http://pmdp.baihongyu.com/