20231226在Firefly的AIO-3399J开发板上在Android11下调通后摄像头ov13850
2023/12/26 8:22
开发板:Firefly的AIO-3399J【RK3399】
SDK:rk3399-android-11-r20211216.tar.xz【Android11】
Android11.0.tar.bz2.aa【ToyBrick】
Android11.0.tar.bz2.ab
Android11.0.tar.bz2.ac
https://wiki.t-firefly.com/AIO-3399J/prepare_compile_android.html
AIO-3399J产品规格书 立即购买
AIO-3399J 采用 RK3399 六核(A72x2+A53x4) 64 位处理器,主频高达1.8GHz,集成了四核 Mali-T860 GPU,性能优异。
前情提要:由于使用Firefly的AIO-3399J开发板的Android10的SDK,kernel编译使用Firefly的AIO-3399J的,lunch之后的Android使用Rockchip官方的编译模式,也能打开前后摄像头ov13850。
可能的原因,Firefly只针对kernel中的(config)DTS和ov13850的驱动程序动过手术。可能Android10还是比较原始的!
【或者没有修改Android系统中的camera部分!】
(一)、kernel部分的修改:
1、firefly_defconfig
Z:\AIO-3399J\rk3399_Android10.0\rk3399_Android10.0\kernel\arch\arm64\configs\firefly_defconfig
Z:\rk3399-android-11\kernel\arch\arm64\configs\firefly_defconfig
2、拷贝Firefly的AIO-3399J开发板的Android10的SDK中的Firefly的DTS文件:
Z:\AIO-3399J\rk3399_Android10.0\rk3399_Android10.0\kernel\arch\arm64\boot\dts\rockchip
Z:\rk3399_Android10.0\kernel\arch\arm64\boot\dts\rockchip\
Z:\rk3399_Android10.0\kernel\arch\arm64\boot\dts\rockchip\Makefile
Z:\rk3399_Android10.0\kernel\arch\arm64\boot\dts\rockchip\rk3399-android.dtsi
Z:\rk3399_Android10.0\kernel\arch\arm64\boot\dts\rockchip\rk3399-dram-default-timing.dtsi
Z:\rk3399_Android10.0\kernel\arch\arm64\boot\dts\rockchip\rk3399-firefly-aio.dts
Z:\rk3399_Android10.0\kernel\arch\arm64\boot\dts\rockchip\rk3399-firefly-aio.dtsi
Z:\rk3399_Android10.0\kernel\arch\arm64\boot\dts\rockchip\rk3399-firefly-core.dtsi
Z:\rk3399_Android10.0\kernel\arch\arm64\boot\dts\rockchip\rk3399-firefly-demo.dtsi
Z:\rk3399_Android10.0\kernel\arch\arm64\boot\dts\rockchip\rk3399-firefly-port.dtsi
Z:\rk3399_Android10.0\kernel\arch\arm64\boot\dts\rockchip\rk3399-opp.dtsi
Z:\rk3399_Android10.0\kernel\arch\arm64\boot\dts\rockchip\rk3399-sched-energy.dtsi
Z:\rk3399_Android10.0\kernel\arch\arm64\boot\dts\rockchip\rk3399-vop-clk-set.dtsi
Z:\rk3399_Android10.0\kernel\arch\arm64\boot\dts\rockchip\rk3399.dtsi
3、解决DTS编译不过的问题!
Z:\AIO-3399J\rk3399_Android10.0\rk3399_Android10.0\kernel\arch\arm64\boot\dts\rockchip-firefly\rk3399-firefly-core.dtsi
Z:\rk3399-android-11\kernel\arch\arm64\boot\dts\rockchip\rk3399-firefly-core.dtsi
&i2s1 {
status = "okay";
rockchip,i2s-broken-burst-len;
rockchip,playback-channels = <2>;
rockchip,capture-channels = <2>;
#sound-dai-cells = <0>;
assigned-clocks = <&cru SCLK_I2S1_DIV>, <&cru SCLK_I2S_8CH>; //SCLK_CIF_OUT_SRC
assigned-clock-parents = <&cru PLL_GPLL>, <&cru SCLK_I2S1_8CH>;
};
修改为:
&i2s1 {
status = "okay";
rockchip,i2s-broken-burst-len;
rockchip,playback-channels = <2>;
rockchip,capture-channels = <2>;
#sound-dai-cells = <0>;
//assigned-clocks = <&cru SCLK_I2S1_DIV>, <&cru SCLK_I2S_8CH>; //SCLK_CIF_OUT_SRC
assigned-clock-parents = <&cru PLL_GPLL>, <&cru SCLK_I2S1_8CH>;
};
4、摄像头OV13850的修改:Firefly的AIO-3399J开发板为了将2颗同样的OV13850挂载在同一条I2C1总线上,对Rockchip的BSP提供的官方驱动进行了修改!
Z:\rk3399-android-11\kernel\drivers\media\i2c\ov13850b.c
Z:\AIO-3399J\rk3399_Android10.0\rk3399_Android10.0\kernel\drivers\media\i2c\ov13850.c
(二)、kernel的编译:
make ARCH=arm64 firefly_defconfig rk3399.config
make ARCH=arm64 BOOT_IMG=../rockdev/Image-rk3399_Android11/boot.img rk3399-firefly-aio.img -j36
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$ make ARCH=arm64 firefly_defconfig rk3399.config
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
YACC scripts/kconfig/zconf.tab.c
LEX scripts/kconfig/zconf.lex.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
***
*** Can't find default configuration "arch/arm64/configs/firefly_defconfig"!
***
make[2]: *** [scripts/kconfig/Makefile:104: firefly_defconfig] Error 1
make[1]: *** [Makefile:584: firefly_defconfig] Error 2
make: *** [Makefile:286: __build_one_by_one] Error 2
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$ make ARCH=arm64 firefly_defconfig rk3399.config
arch/arm64/configs/firefly_defconfig:860:warning: override: reassigning to symbol ROCKCHIP_VENDOR_STORAGE_UPDATE_LOADER
#
# configuration written to .config
#
Using .config as base
Merging ./kernel/configs/rk3399.config
Value of CONFIG_MALI_BIFROST is redefined by fragment ./kernel/configs/rk3399.config:
Previous value: CONFIG_MALI_BIFROST=y
New value: # CONFIG_MALI_BIFROST is not set
Value of CONFIG_MALI_BIFROST_DEVFREQ is redefined by fragment ./kernel/configs/rk3399.config:
Previous value: CONFIG_MALI_BIFROST_DEVFREQ=y
New value: # CONFIG_MALI_BIFROST_DEVFREQ is not set
Value of CONFIG_MALI_PLATFORM_NAME is redefined by fragment ./kernel/configs/rk3399.config:
Previous value: CONFIG_MALI_PLATFORM_NAME="rk"
New value: # CONFIG_MALI_PLATFORM_NAME is not set
Value of CONFIG_MALI_BIFROST_EXPERT is redefined by fragment ./kernel/configs/rk3399.config:
Previous value: CONFIG_MALI_BIFROST_EXPERT=y
New value: # CONFIG_MALI_BIFROST_EXPERT is not set
Value of CONFIG_MALI_BIFROST_DEBUG is redefined by fragment ./kernel/configs/rk3399.config:
Previous value: CONFIG_MALI_BIFROST_DEBUG=y
New value: # CONFIG_MALI_BIFROST_DEBUG is not set
#
# merged configuration written to .config (needs make)
#
scripts/kconfig/conf --oldconfig Kconfig
#
# configuration written to .config
#
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$ \
> \
>
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$ make ARCH=arm64 BOOT_IMG=../rockdev/Image-rk3399_Android11/boot.img rk3399-firefly-aio.img -j36
scripts/kconfig/conf --syncconfig Kconfig
Building modules, stage 2.
MODPOST 8 modules
CC drivers/media/usb/gspca/gspca_main.mod.o
CC drivers/mtd/devices/m25p80.mod.o
CC drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmdhd.mod.o
CC drivers/net/wireless/rockchip_wlan/rtl8723cs/8723cs.mod.o
CC drivers/net/wireless/rockchip_wlan/rtl8723ds/8723ds.mod.o
CC drivers/net/wireless/rockchip_wlan/rtl8821cs/8821cs.mod.o
CC drivers/net/wireless/rockchip_wlan/rtl8822bs/8822bs.mod.o
CC kernel/kheaders.mod.o
LD [M] drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmdhd.ko
LD [M] drivers/mtd/devices/m25p80.ko
LD [M] drivers/net/wireless/rockchip_wlan/rtl8821cs/8821cs.ko
LD [M] drivers/net/wireless/rockchip_wlan/rtl8723ds/8723ds.ko
LD [M] kernel/kheaders.ko
LD [M] drivers/media/usb/gspca/gspca_main.ko
LD [M] drivers/net/wireless/rockchip_wlan/rtl8723cs/8723cs.ko
LD [M] drivers/net/wireless/rockchip_wlan/rtl8822bs/8822bs.ko
Image: resource.img (with rk3399-firefly-aio.dtb logo.bmp logo_kernel.bmp) is ready
Image: boot.img (with Image resource.img) is ready
Image: zboot.img (with Image.lz4 resource.img) is ready
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$ cd ..
rootroot@rootroot-X99-Turbo:~/rk3399-android-11$ ll
total 228344
drwxr-xr-x 35 rootroot rootroot 4096 12月 26 08:39 ./
drwxr-xr-x 23 rootroot rootroot 4096 12月 26 08:38 ../
drwxr-xr-x 24 rootroot rootroot 4096 3月 25 2022 51u-boot/
lrwxrwxrwx 1 rootroot rootroot 19 3月 7 2022 Android.bp -> build/soong/root.bp
drwxr-xr-x 34 rootroot rootroot 4096 3月 13 2022 art/
drwxr-xr-x 14 rootroot rootroot 4096 3月 13 2022 bionic/
drwxr-xr-x 3 rootroot rootroot 4096 3月 7 2022 bootable/
lrwxrwxrwx 1 rootroot rootroot 26 3月 7 2022 bootstrap.bash -> build/soong/bootstrap.bash*
drwxr-xr-x 5 rootroot rootroot 4096 3月 14 2022 build/
lrwxrwxrwx 1 rootroot rootroot 34 3月 13 2022 build-nanopc_t4.sh -> vendor/friendlyelec/build/build.sh*
-r-xr-xr-x 1 rootroot rootroot 14109 3月 7 2022 .classpath*
drwxr-xr-x 3 rootroot rootroot 4096 3月 7 2022 compatibility/
drwxr-xr-x 13 rootroot rootroot 4096 3月 13 2022 cts/
drwxr-xr-x 7 rootroot rootroot 4096 3月 13 2022 dalvik/
drwxr-xr-x 5 rootroot rootroot 4096 3月 7 2022 developers/
drwxr-xr-x 20 rootroot rootroot 4096 3月 13 2022 development/
drwxr-xr-x 7 rootroot rootroot 4096 3月 25 2022 device/
drwxr-xr-x 323 rootroot rootroot 12288 3月 13 2022 external/
drwxr-xr-x 16 rootroot rootroot 4096 3月 7 2022 frameworks/
-rw-rw-r-- 1 rootroot rootroot 343 3月 13 2022 .gitignore
drwxr-xr-x 13 rootroot rootroot 4096 3月 7 2022 hardware/
-r--r--r-- 1 rootroot rootroot 162 3月 7 2022 javaenv.sh
drwxr-xr-x 29 rootroot rootroot 4096 12月 26 08:51 kernel/
-rwx------ 1 rootroot rootroot 215821808 12月 19 08:25 kernel92.tgz*
drwxr-xr-x 19 rootroot rootroot 4096 3月 13 2022 libcore/
drwxr-xr-x 7 rootroot rootroot 4096 3月 13 2022 libnativehelper/
-r--r--r-- 1 rootroot rootroot 92 3月 7 2022 Makefile
drwxr-xr-x 10 rootroot rootroot 4096 3月 25 2022 mkcombinedroot/
lrwxrwxrwx 1 rootroot rootroot 36 3月 13 2022 mkimage.sh -> vendor/friendlyelec/build/mkimage.sh*
drwxr-xr-x 9 rootroot rootroot 4096 3月 7 2022 packages/
drwxr-xr-x 5 rootroot rootroot 4096 3月 13 2022 pdk/
drwxr-xr-x 9 rootroot rootroot 4096 3月 13 2022 platform_testing/
drwxr-xr-x 33 rootroot rootroot 4096 3月 7 2022 prebuilts/
drwxr-xr-x 8 rootroot rootroot 4096 12月 26 08:28 rkbin/
drwxr-xr-x 4 rootroot rootroot 4096 3月 7 2022 RKDocs/
drwxr-xr-x 4 rootroot rootroot 4096 3月 13 2022 rkst/
drwxr-xr-x 4 rootroot rootroot 4096 3月 13 2022 RKTools/
drwxr-xr-x 23 rootroot rootroot 4096 3月 13 2022 sdk/
drwxr-xr-x 40 rootroot rootroot 4096 3月 7 2022 system/
drwxr-xr-x 10 rootroot rootroot 4096 3月 7 2022 test/
drwxr-xr-x 4 rootroot rootroot 4096 3月 7 2022 toolchain/
drwxr-xr-x 23 rootroot rootroot 4096 3月 7 2022 tools/
drwxrwxr-x 26 rootroot rootroot 4096 12月 26 08:28 u-boot/
-rwx------ 1 rootroot rootroot 17818883 12月 14 19:21 u-boot81在firefly.tgz*
drwxr-xr-x 7 rootroot rootroot 4096 3月 13 2022 vendor/
rootroot@rootroot-X99-Turbo:~/rk3399-android-11$
rootroot@rootroot-X99-Turbo:~/rk3399-android-11$
rootroot@rootroot-X99-Turbo:~/rk3399-android-11$ source build/envsetup.sh
rootroot@rootroot-X99-Turbo:~/rk3399-android-11$
rootroot@rootroot-X99-Turbo:~/rk3399-android-11$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. PX30_Android11-user
2. PX30_Android11-userdebug
3. aosp_arm-eng
4. aosp_arm64-eng
5. aosp_car_arm-userdebug
6. aosp_car_arm64-userdebug
7. aosp_car_x86-userdebug
8. aosp_car_x86_64-userdebug
9. aosp_x86-eng
10. aosp_x86_64-eng
11. car_x86_64-userdebug
12. nanopc_t4-user
13. nanopc_t4-userdebug
14. qemu_trusty_arm64-userdebug
15. rk3288_Android10-user
16. rk3288_Android10-userdebug
17. rk3288_Android11-user
18. rk3288_Android11-userdebug
19. rk3326_pie-user
20. rk3326_pie-userdebug
21. rk3326_q-user
22. rk3326_q-userdebug
23. rk3326_r-user
24. rk3326_r-userdebug
25. rk3326_rgo-user
26. rk3326_rgo-userdebug
27. rk3328_atv-user
28. rk3328_atv-userdebug
29. rk3328_box-user
30. rk3328_box-userdebug
31. rk3328_box_32-user
32. rk3328_box_32-userdebug
33. rk3399_Android10-user
34. rk3399_Android10-userdebug
35. rk3399_Android11-user
36. rk3399_Android11-userdebug
37. rk3399_atv-user
38. rk3399_atv-userdebug
39. rk3399_mid-user
40. rk3399_mid-userdebug
41. rk3566_32bit-user
42. rk3566_32bit-userdebug
43. rk3566_eink-user
44. rk3566_eink-userdebug
45. rk3566_einkw6-user
46. rk3566_einkw6-userdebug
47. rk3566_r-user
48. rk3566_r-userdebug
49. rk3566_rgo-user
50. rk3566_rgo-userdebug
51. rk3568_r-user
52. rk3568_r-userdebug
53. rk356x_box-user
54. rk356x_box-userdebug
55. rk356x_box_32-user
56. rk356x_box_32-userdebug
57. uml-userdebug
Which would you like? [aosp_arm-eng] 36
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=11
TARGET_PRODUCT=rk3399_Android11
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a15
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.15.0-91-generic-x86_64-Ubuntu-20.04.6-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=RQ2A.210505.003
OUT_DIR=out
============================================
rootroot@rootroot-X99-Turbo:~/rk3399-android-11$
rootroot@rootroot-X99-Turbo:~/rk3399-android-11$
rootroot@rootroot-X99-Turbo:~/rk3399-android-11$ make -j36
(三)、解决编译Android11出错的问题:
checkvintf I 12-26 09:54:16 644393 644393 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.1.xml': SUCCESS
checkvintf I 12-26 09:54:16 644393 644393 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.legacy.xml': SUCCESS
checkvintf I 12-26 09:54:16 644393 644393 check_vintf.cpp:84] List 'out/target/product/rk3399_Android11/system_ext/etc/vintf/': SUCCESS
checkvintf I 12-26 09:54:16 644393 644393 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system_ext/etc/vintf/manifest.xml': SUCCESS
checkvintf I 12-26 09:54:16 644393 644393 check_vintf.cpp:84] List 'out/target/product/rk3399_Android11/product/etc/vintf/': No such file or directory
checkvintf E 12-26 09:54:16 644393 644393 check_vintf.cpp:554] files are incompatible: Runtime info and framework compatibility matrix are incompatible: No compatible kernel requirement found (kernel FCM version = 5).
checkvintf E 12-26 09:54:16 644393 644393 check_vintf.cpp:554] For kernel requirements at matrix level 5, Missing config CONFIG_ANDROID_BINDERFS
checkvintf E 12-26 09:54:16 644393 644393 check_vintf.cpp:554] : Success
INCOMPATIBLE
[ 88% 93558/105308] //external/v8:v8_torque_file_cc generate
~/rk3399-android-11 ~/rk3399-android-11
~/rk3399-android-11
[ 88% 93559/105308] //external/v8:v8_torque_file_32 generate
~/rk3399-android-11 ~/rk3399-android-11
~/rk3399-android-11
[ 88% 93560/105308] //external/v8:v8_torque_file generate
~/rk3399-android-11 ~/rk3399-android-11
~/rk3399-android-11
[ 88% 93561/105308] //external/v8:v8_torque_file_cc_32 generate
~/rk3399-android-11 ~/rk3399-android-11
~/rk3399-android-11
09:55:31 ninja failed with: exit status 1
#### failed to build some targets (01:02:45 (hh:mm:ss)) ####
rootroot@rootroot-X99-Turbo:~/rk3399-android-11$
rootroot@rootroot-X99-Turbo:~/rk3399-android-11$
rootroot@rootroot-X99-Turbo:~/rk3399-android-11$ find 。 -name compatibility_matrix.5.xml
find: ‘。’: No such file or directory
rootroot@rootroot-X99-Turbo:~/rk3399-android-11$
rootroot@rootroot-X99-Turbo:~/rk3399-android-11$ find . -name compatibility_matrix.5.xml
./out/target/product/rk3399_Android11/obj/ETC/framework_compatibility_matrix.5.xml_intermediates/compatibility_matrix.5.xml
./out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.5.xml
./out/soong/.intermediates/hardware/interfaces/compatibility_matrices/framework_compatibility_matrix.5.xml/android_common/gen/compatibility_matrix.5.xml
./hardware/interfaces/compatibility_matrices/compatibility_matrix.5.xml
rootroot@rootroot-X99-Turbo:~/rk3399-android-11$
rootroot@rootroot-X99-Turbo:~/rk3399-android-11$
1、直接使用RK3399的Android11的Rockchip的原始defconfig:rockchip_defconfig生成.config文件!
make distclean
rm *.img
make ARCH=arm64 rockchip_defconfig android-11.config -j36
make ARCH=arm64 BOOT_IMG=../rockdev/Image-rk3399_Android11/boot.img rk3399-firefly-aio.img -j36
make installclean
rootroot@rootroot-X99-Turbo:~/rk3399-android-11$ cd kernel/
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$ ll
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$ make distclean
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$ ll
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$ rm *.img
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$ ll
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$ make ARCH=arm64 rockchip_defconfig android-11.config -j36
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$ ll
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$ make ARCH=arm64 BOOT_IMG=../rockdev/Image-rk3399_Android11/boot.img rk3399-firefly-aio.img -j36
-rw-rw-r-- 1 rootroot rootroot 19109888 12月 26 18:44 zboot.img
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$ ll .config
-rw-rw-r-- 1 rootroot rootroot 162642 12月 26 18:41 .config
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$ ll *.img
-rw-rw-r-- 1 rootroot rootroot 34205696 12月 26 18:44 boot.img
-rw-rw-r-- 1 rootroot rootroot 31778836 12月 26 18:43 kernel.img
-rw-rw-r-- 1 rootroot rootroot 2421248 12月 26 18:44 resource.img
-rw-rw-r-- 1 rootroot rootroot 19109888 12月 26 18:44 zboot.img
rootroot@rootroot-X99-Turbo:~/rk3399-android-11/kernel$ cd ..
rootroot@rootroot-X99-Turbo:~/rk3399-android-11$ ll
rootroot@rootroot-X99-Turbo:~/rk3399-android-11$ make installclean
rootroot@rootroot-X99-Turbo:~/rk3399-android-11$ ll
rootroot@rootroot-X99-Turbo:~/rk3399-android-11$
rootroot@rootroot-X99-Turbo:~/rk3399-android-11$ make -j36
rootroot@rootroot-X99-Turbo:~/rk3399-android-11$ ./build.sh -u
(四)、你可以在文件firefly_defconfig中增加项目:CONFIG_ANDROID_BINDERFS,但是肯定会碰到新的问题!
【接着需要关闭CONFIG_CRYPTO_MD4,但是搞了半天没有搞定!就不折腾了!】
Z:\rk3399-android-11\kernel\arch\arm64\configs\firefly_defconfig
/home/rootroot/Toybrick_Android11.0
[ 80% 50412/62279] depmod out/target/product/rk3399_Android11/obj/PACKAGING/depmod_VENDOR_intermediates
depmod: WARNING: could not open modules.order at /home/rootroot/Toybrick_Android11.0/out/target/product/rk3399_Android11/obj/PACKAGING/depmod_VENDOR_intermediates/lib/modules/0.0: No such file or directory
depmod: WARNING: could not open modules.builtin at /home/rootroot/Toybrick_Android11.0/out/target/product/rk3399_Android11/obj/PACKAGING/depmod_VENDOR_intermediates/lib/modules/0.0: No such file or directory
[ 80% 50424/62279] build out/target/product/rk3399_Android11/obj/PACKAGING/check_vintf_all_intermediates/check_vintf_compatible_log
FAILED: out/target/product/rk3399_Android11/obj/PACKAGING/check_vintf_all_intermediates/check_vintf_compatible_log
/bin/bash -c "(echo -n -e 'Deps: \\n ' > out/target/product/rk3399_Android11/obj/PACKAGING/check_vintf_all_intermediates/check_vintf_compatible_log ) && (sed 's/ /\\n /g' <<< \"out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.1.xml out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.2.xml out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.3.xml out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.4.xml out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.5.xml out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.device.xml out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.legacy.xml out/target/product/rk3399_Android11/system/etc/vintf/manifest.xml out/target/product/rk3399_Android11/system/etc/vintf/manifest/android.frameworks.stats@1.0-service.xml out/target/product/rk3399_Android11/system/etc/vintf/manifest/android.hidl.allocator@1.0-service.xml out/target/product/rk3399_Android11/system/etc/vintf/manifest/android.system.suspend@1.0-service.xml out/target/product/rk3399_Android11/system/etc/vintf/manifest/manifest_android.frameworks.cameraservice.service@2.1.xml out/target/product/rk3399_Android11/system/etc/vintf/manifest/manifest_media_c2_software.xml out/target/product/rk3399_Android11/system_ext/etc/vintf/manifest.xml out/target/product/rk3399_Android11/vendor/etc/vintf/compatibility_matrix.xml out/target/product/rk3399_Android11/vendor/etc/vintf/manifest.xml out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/android.hardware.cas@1.2-service.xml out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/android.hardware.drm@1.3-service.widevine.xml out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/android.hardware.gatekeeper@1.0-service.optee.xml out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/android.hardware.health@2.1.xml out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/android.hardware.keymaster@4.0-service.optee.xml out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/android.hardware.weaver@1.0-service.xml out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/android.hardware.wifi.hostapd.xml out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/android.hardware.wifi@1.0-service.xml out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/lights-rockchip.xml out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/manifest.xml out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/manifest_android.hardware.drm@1.3-service.clearkey.xml out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/power-aidl-rockchip.xml out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/rockchip.hardware.outputmanager@1.0-service.xml out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/rockchip.hardware.rockit.hw@1.0-service.xml out/target/product/rk3399_Android11/obj/PACKAGING/check_vintf_all_intermediates/kernel_configs.txt out/target/product/rk3399_Android11/obj/PACKAGING/check_vintf_all_intermediates/kernel_version.txt\" >> out/target/product/rk3399_Android11/obj/PACKAGING/check_vintf_all_intermediates/check_vintf_compatible_log ) && (echo -n -e 'Args: \\n ' >> out/target/product/rk3399_Android11/obj/PACKAGING/check_vintf_all_intermediates/check_vintf_compatible_log ) && (cat <<< \" --kernel \$(cat out/target/product/rk3399_Android11/obj/PACKAGING/check_vintf_all_intermediates/kernel_version.txt):out/target/product/rk3399_Android11/obj/PACKAGING/check_vintf_all_intermediates/kernel_configs.txt --dirmap /system:out/target/product/rk3399_Android11/system --dirmap /vendor:out/target/product/rk3399_Android11/vendor --dirmap /odm:out/target/product/rk3399_Android11/odm --dirmap /product:out/target/product/rk3399_Android11/product --dirmap /system_ext:out/target/product/rk3399_Android11/system_ext --property ro.product.first_api_level=30\" >> out/target/product/rk3399_Android11/obj/PACKAGING/check_vintf_all_intermediates/check_vintf_compatible_log ) && (echo \"For ODM SKU = EMPTY_ODM_SKU_PLACEHOLDER, vendor SKU = EMPTY_VENDOR_SKU_PLACEHOLDER\" >> out/target/product/rk3399_Android11/obj/PACKAGING/check_vintf_all_intermediates/check_vintf_compatible_log; ( out/host/linux-x86/bin/checkvintf --check-compat --kernel \$(cat out/target/product/rk3399_Android11/obj/PACKAGING/check_vintf_all_intermediates/kernel_version.txt):out/target/product/rk3399_Android11/obj/PACKAGING/check_vintf_all_intermediates/kernel_configs.txt --dirmap /system:out/target/product/rk3399_Android11/system --dirmap /vendor:out/target/product/rk3399_Android11/vendor --dirmap /odm:out/target/product/rk3399_Android11/odm --dirmap /product:out/target/product/rk3399_Android11/product --dirmap /system_ext:out/target/product/rk3399_Android11/system_ext --property ro.product.first_api_level=30 --property ro.boot.product.hardware.sku= --property ro.boot.product.vendor.sku= >> out/target/product/rk3399_Android11/obj/PACKAGING/check_vintf_all_intermediates/check_vintf_compatible_log 2>&1 ) || (cat out/target/product/rk3399_Android11/obj/PACKAGING/check_vintf_all_intermediates/check_vintf_compatible_log && exit 1) )"
Deps:
out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.1.xml
out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.2.xml
out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.3.xml
out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.4.xml
out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.5.xml
out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.device.xml
out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.legacy.xml
out/target/product/rk3399_Android11/system/etc/vintf/manifest.xml
out/target/product/rk3399_Android11/system/etc/vintf/manifest/android.frameworks.stats@1.0-service.xml
out/target/product/rk3399_Android11/system/etc/vintf/manifest/android.hidl.allocator@1.0-service.xml
out/target/product/rk3399_Android11/system/etc/vintf/manifest/android.system.suspend@1.0-service.xml
out/target/product/rk3399_Android11/system/etc/vintf/manifest/manifest_android.frameworks.cameraservice.service@2.1.xml
out/target/product/rk3399_Android11/system/etc/vintf/manifest/manifest_media_c2_software.xml
out/target/product/rk3399_Android11/system_ext/etc/vintf/manifest.xml
out/target/product/rk3399_Android11/vendor/etc/vintf/compatibility_matrix.xml
out/target/product/rk3399_Android11/vendor/etc/vintf/manifest.xml
out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/android.hardware.cas@1.2-service.xml
out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/android.hardware.drm@1.3-service.widevine.xml
out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/android.hardware.gatekeeper@1.0-service.optee.xml
out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/android.hardware.health@2.1.xml
out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/android.hardware.keymaster@4.0-service.optee.xml
out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/android.hardware.weaver@1.0-service.xml
out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/android.hardware.wifi.hostapd.xml
out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/android.hardware.wifi@1.0-service.xml
out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/lights-rockchip.xml
out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/manifest.xml
out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/manifest_android.hardware.drm@1.3-service.clearkey.xml
out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/power-aidl-rockchip.xml
out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/rockchip.hardware.outputmanager@1.0-service.xml
out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/rockchip.hardware.rockit.hw@1.0-service.xml
out/target/product/rk3399_Android11/obj/PACKAGING/check_vintf_all_intermediates/kernel_configs.txt
out/target/product/rk3399_Android11/obj/PACKAGING/check_vintf_all_intermediates/kernel_version.txt
Args:
--kernel 4.19.193:out/target/product/rk3399_Android11/obj/PACKAGING/check_vintf_all_intermediates/kernel_configs.txt --dirmap /system:out/target/product/rk3399_Android11/system --dirmap /vendor:out/target/product/rk3399_Android11/vendor --dirmap /odm:out/target/product/rk3399_Android11/odm --dirmap /product:out/target/product/rk3399_Android11/product --dirmap /system_ext:out/target/product/rk3399_Android11/system_ext --property ro.product.first_api_level=30
For ODM SKU = EMPTY_ODM_SKU_PLACEHOLDER, vendor SKU = EMPTY_VENDOR_SKU_PLACEHOLDER
checkvintf I 12-26 13:12:32 24145 24145 VintfObject.cpp:55] getFrameworkHalManifest: Reading VINTF information.
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/manifest.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:84] List 'out/target/product/rk3399_Android11/system/etc/vintf/manifest/': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/manifest/android.hidl.allocator@1.0-service.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/manifest/android.frameworks.stats@1.0-service.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/manifest/manifest_media_c2_software.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/manifest/manifest_android.frameworks.cameraservice.service@2.1.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/manifest/android.system.suspend@1.0-service.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/product/etc/vintf/manifest.xml': No such file or directory
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:84] List 'out/target/product/rk3399_Android11/product/etc/vintf/manifest/': No such file or directory
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system_ext/etc/vintf/manifest.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:84] List 'out/target/product/rk3399_Android11/system_ext/etc/vintf/manifest/': No such file or directory
checkvintf I 12-26 13:12:32 24145 24145 VintfObject.cpp:61] getFrameworkHalManifest: Successfully processed VINTF information
checkvintf I 12-26 13:12:32 24145 24145 VintfObject.cpp:55] getDeviceHalManifest: Reading VINTF information.
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:122] Sysprop ro.boot.product.vendor.sku=
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/vendor/etc/vintf/manifest.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:84] List 'out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/android.hardware.cas@1.2-service.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/rockchip.hardware.rockit.hw@1.0-service.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/power-aidl-rockchip.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/manifest_android.hardware.drm@1.3-service.clearkey.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/manifest.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/android.hardware.wifi@1.0-service.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/lights-rockchip.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/android.hardware.health@2.1.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/android.hardware.wifi.hostapd.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/rockchip.hardware.outputmanager@1.0-service.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/android.hardware.weaver@1.0-service.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/android.hardware.gatekeeper@1.0-service.optee.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/android.hardware.drm@1.3-service.widevine.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/vendor/etc/vintf/manifest/android.hardware.keymaster@4.0-service.optee.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:122] Sysprop ro.boot.product.hardware.sku=
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/odm/etc/vintf/manifest.xml': No such file or directory
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/odm/etc/manifest.xml': No such file or directory
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:84] List 'out/target/product/rk3399_Android11/odm/etc/vintf/manifest/': No such file or directory
checkvintf I 12-26 13:12:32 24145 24145 VintfObject.cpp:61] getDeviceHalManifest: Successfully processed VINTF information
checkvintf I 12-26 13:12:32 24145 24145 VintfObject.cpp:55] getFrameworkCompatibilityMatrix: Reading VINTF information.
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:84] List 'out/target/product/rk3399_Android11/system/etc/vintf/': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.4.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.2.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/manifest.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.3.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.device.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.5.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.1.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.legacy.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:84] List 'out/target/product/rk3399_Android11/system_ext/etc/vintf/': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system_ext/etc/vintf/manifest.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:84] List 'out/target/product/rk3399_Android11/product/etc/vintf/': No such file or directory
checkvintf I 12-26 13:12:32 24145 24145 VintfObject.cpp:61] getFrameworkCompatibilityMatrix: Successfully processed VINTF information
checkvintf I 12-26 13:12:32 24145 24145 VintfObject.cpp:55] getDeviceCompatibilityMatrix: Reading VINTF information.
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/vendor/etc/vintf/compatibility_matrix.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 VintfObject.cpp:61] getDeviceCompatibilityMatrix: Successfully processed VINTF information
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:154] fetched kernel version 4.19.193
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:168] read kernel configs from out/target/product/rk3399_Android11/obj/PACKAGING/check_vintf_all_intermediates/kernel_configs.txt
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:84] List 'out/target/product/rk3399_Android11/system/etc/vintf/': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.4.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.2.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/manifest.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.3.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.device.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.5.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.1.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.legacy.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:84] List 'out/target/product/rk3399_Android11/system_ext/etc/vintf/': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system_ext/etc/vintf/manifest.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:84] List 'out/target/product/rk3399_Android11/product/etc/vintf/': No such file or directory
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:84] List 'out/target/product/rk3399_Android11/system/etc/vintf/': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.4.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.2.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/manifest.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.3.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.device.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.5.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.1.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system/etc/vintf/compatibility_matrix.legacy.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:84] List 'out/target/product/rk3399_Android11/system_ext/etc/vintf/': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:74] Fetch 'out/target/product/rk3399_Android11/system_ext/etc/vintf/manifest.xml': SUCCESS
checkvintf I 12-26 13:12:32 24145 24145 check_vintf.cpp:84] List 'out/target/product/rk3399_Android11/product/etc/vintf/': No such file or directory
checkvintf E 12-26 13:12:32 24145 24145 check_vintf.cpp:554] files are incompatible: Runtime info and framework compatibility matrix are incompatible: No compatible kernel requirement found (kernel FCM version = 5).
checkvintf E 12-26 13:12:32 24145 24145 check_vintf.cpp:554] For kernel requirements at matrix level 5, For config CONFIG_CRYPTO_MD4, value = y but required n
checkvintf E 12-26 13:12:32 24145 24145 check_vintf.cpp:554] : Success
INCOMPATIBLE
13:12:52 ninja failed with: exit status 1
#### failed to build some targets (01:10 (mm:ss)) ####
rootroot@rootroot-X99-Turbo:~/Toybrick_Android11.0$ cd kernel/
(五)、在LOG中很容易发现打开前置摄像头OV13850的时候,调用GPIO出错,结果就只有单摄像头了!
【也许/可能是因为最开始编译kernel的时候,defconfig选择错误firefly导致的!】
[ 7.915286] [dhd] dhd_module_init: Exit err=0
[ 7.947262] rockchip-pinctrl pinctrl: pin gpio2-11 already requested by 1-0010; cannot claim for 1-0010-1
[ 7.947339] rockchip-pinctrl pinctrl: pin-75 (1-0010-1) status -22
[ 7.947355] rockchip-pinctrl pinctrl: could not request pin 75 (gpio2-11) from group cif-clkout on device rockchip-pinctrl
[ 7.947370] ov13850 1-0010-1: Error applying setting, reverse things back
[ 7.947383] ov13850 1-0010-1: could not set pins
[ 7.949236] rockchip-pinctrl pinctrl: pin gpio2-11 already requested by 1-0010; cannot claim for 1-0010-1
[ 7.949258] rockchip-pinctrl pinctrl: pin-75 (1-0010-1) status -22
[ 7.949269] rockchip-pinctrl pinctrl: could not request pin 75 (gpio2-11) from group cif-clkout on device rockchip-pinctrl
[ 7.949276] ov13850 1-0010-1: Error applying setting, reverse things back
[ 7.949281] ov13850 1-0010-1: could not set pins
[ 8.008634] rockchip-pinctrl pinctrl: pin gpio2-11 already requested by 1-0010; cannot claim for 1-0010-1
[ 8.008662] rockchip-pinctrl pinctrl: pin-75 (1-0010-1) status -22
[ 8.008669] rockchip-pinctrl pinctrl: could not request pin 75 (gpio2-11) from group cif-clkout on device rockchip-pinctrl
[ 8.008676] ov13850 1-0010-1: Error applying setting, reverse things back
[ 8.008682] ov13850 1-0010-1: could not set pins
[ 8.011182] rockchip-pinctrl pinctrl: pin gpio2-11 already requested by 1-0010; cannot claim for 1-0010-1
[ 8.011202] rockchip-pinctrl pinctrl: pin-75 (1-0010-1) status -22
[ 8.011210] rockchip-pinctrl pinctrl: could not request pin 75 (gpio2-11) from group cif-clkout on device rockchip-pinctrl
[ 8.011217] ov13850 1-0010-1: Error applying setting, reverse things back
[ 8.011222] ov13850 1-0010-1: could not set pins
[ 8.042197] android_work: did not send uevent (0 0 (null))
[ 8.100956] rockchip-pinctrl pinctrl: pin gpio2-11 already requested by 1-0010; cannot claim for 1-0010-1
[ 8.100989] rockchip-pinctrl pinctrl: pin-75 (1-0010-1) status -22
[ 8.100998] rockchip-pinctrl pinctrl: could not request pin 75 (gpio2-11) from group cif-clkout on device rockchip-pinctrl
[ 8.101006] ov13850 1-0010-1: Error applying setting, reverse things back
[ 8.101013] ov13850 1-0010-1: could not set pins
[ 8.102237] rockchip-pinctrl pinctrl: pin gpio2-11 already requested by 1-0010; cannot claim for 1-0010-1
[ 8.102258] rockchip-pinctrl pinctrl: pin-75 (1-0010-1) status -22
[ 8.102271] rockchip-pinctrl pinctrl: could not request pin 75 (gpio2-11) from group cif-clkout on device rockchip-pinctrl
[ 8.102283] ov13850 1-0010-1: Error applying setting, reverse things back
[ 8.102293] ov13850 1-0010-1: could not set pins
[ 8.145907] rockchip-pinctrl pinctrl: pin gpio2-11 already requested by 1-0010; cannot claim for 1-0010-1
[ 8.145948] rockchip-pinctrl pinctrl: pin-75 (1-0010-1) status -22
[ 8.145957] rockchip-pinctrl pinctrl: could not request pin 75 (gpio2-11) from group cif-clkout on device rockchip-pinctrl
[ 8.145966] ov13850 1-0010-1: Error applying setting, reverse things back
[ 8.145973] ov13850 1-0010-1: could not set pins
[ 8.147847] rockchip-pinctrl pinctrl: pin gpio2-11 already requested by 1-0010; cannot claim for 1-0010-1
[ 8.147869] rockchip-pinctrl pinctrl: pin-75 (1-0010-1) status -22
[ 8.147876] rockchip-pinctrl pinctrl: could not request pin 75 (gpio2-11) from group cif-clkout on device rockchip-pinctrl
[ 8.147884] ov13850 1-0010-1: Error applying setting, reverse things back
[ 8.147889] ov13850 1-0010-1: could not set pins
[ 8.960000] rockchip-vop ff900000.vop: [drm:vop_crtc_atomic_enable] Update mode to 1920x1080p60, type: 11
参考资料:
http://www.friendlyelec.com.cn/agent.asp
http://www.friendlyelec.com.cn/
https://download.friendlyelec.com/NanoPC-T4
https://wiki.friendlyelec.com/wiki/index.php/NanoPC-T4/zh#.E4.B8.8B.E8.BD.BDAndroid10.E6.BA.90.E4.BB.A3.E7.A0.81
https://item.taobao.com/item.htm?spm=a1z09.2.0.0.37562e8dcotDm6&id=570312633249&_u=7ju3ku004a
友善NanoPC-T4瑞芯微RK3399开发板ROS双摄4K播放开源AI智能安卓10
WiKi维基教程(固件介绍,使用说明,操作步骤等)
http://wiki.friendlyelec.com/wiki/index.php/NanoPC-T4
系统固件下载
https://dl.friendlyelec.com/nanopct4
原理图(pdf格式)
http://wiki.friendlyelec.com/wiki/images/e/e0/NanoPC-T4-1902-Schematic.pdf
尺寸图(dxf格式)
http://wiki.friendlyelec.com/wiki/images/b/bc/NanoPC-T4_1802_Drawing%28dxf%29.zip
http://www.friendlyelec.com.cn/nanopi-m4.asp
NanoPi M4 | NanoPi M4V2
https://wiki.friendlyelec.com/wiki/index.php/NanoPi_M4/zh
15.3 编译Android10源代码
15.3.1 下载Android10源代码
有以下两种途径获取 Android10 的源代码,都需要联网:
使用网盘里的git repo压缩包
网盘下载地址: 点击进入
https://download.friendlyelec.com/NanoPiM4
https://pan.baidu.com/share/init?surl=oBLn9H31hILJKEPQXgrUog
提取码:yn6r