20240107让Firefly的AIO-3399J开发板的Android11下配置为默认1080p录像
2024/1/7 23:01
开发板: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,性能优异。
1、简略的编译步骤:
rootroot@rootroot-X99-Turbo:~/3TB$ cat Android11.0.tar.bz2.a* > Android11.0.tar.bz2
rootroot@rootroot-X99-Turbo:~/3TB$ tar jxvf Android11.0.tar.bz2
rootroot@rootroot-X99-Turbo:~/3TB$ mv Android11.0 64rk3399-android-11
rootroot@rootroot-X99-Turbo:~/3TB$ cd 64rk3399-android-11
rootroot@rootroot-X99-Turbo:~/3TB/64rk3399-android-11$ cd u-boot
rootroot@rootroot-X99-Turbo:~/3TB/64rk3399-android-11/u-boot$ ./make.sh rk3399
rootroot@rootroot-X99-Turbo:~/3TB/64rk3399-android-11/u-boot$ cd ..
rootroot@rootroot-X99-Turbo:~/3TB/64rk3399-android-11$ cd kernel/
rootroot@rootroot-X99-Turbo:~/3TB/64rk3399-android-11/kernel$ make ARCH=arm64 rockchip_defconfig android-11.config -j36
rootroot@rootroot-X99-Turbo:~/3TB/64rk3399-android-11/kernel$ make ARCH=arm64 BOOT_IMG=../rockdev/Image-rk3399_Android11/boot.img rk3399-sapphire-excavator-edp-avb.img -j36
rootroot@rootroot-X99-Turbo:~/3TB/64rk3399-android-11$ source build/envsetup.sh
rootroot@rootroot-X99-Turbo:~/3TB/64rk3399-android-11$ lunch
36. rk3399_Android11-userdebug
Which would you like? [aosp_arm-eng] 36
rootroot@rootroot-X99-Turbo:~/3TB/64rk3399-android-11$
rootroot@rootroot-X99-Turbo:~/3TB/64rk3399-android-11$ make -j36
rootroot@rootroot-X99-Turbo:~/3TB/64rk3399-android-11$ ./build.sh -u
2、百度搜索:media_profiles_V1_0.xml
https://gitee.com/kaban/android_device_xiaomi_rosy/blob/lineage-16.0/device.mk
kaban / android_device_xiaomi_rosy
lineage-16.0 android_device_xiaomi_rosy/ device.mk
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
$(LOCAL_PATH)/configs/media_profiles_8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml
很容易/根据经验/很简单地找到这里:
Z:\3TB\65rk3399-android-11\device\rockchip\rk3399\media_profiles_default.xml
rootroot@rootroot-X99-Turbo:~/3TB/65rk3399-android-11$
rootroot@rootroot-X99-Turbo:~/3TB/65rk3399-android-11$ cd device/
rootroot@rootroot-X99-Turbo:~/3TB/65rk3399-android-11/device$ ll
total 28
drwxr-xr-x 7 rootroot rootroot 4096 3月 25 2022 ./
drwxr-xr-x 34 rootroot rootroot 4096 1月 7 18:51 ../
drwxr-xr-x 3 rootroot rootroot 4096 3月 13 2022 common/
drwxr-xr-x 18 rootroot rootroot 4096 3月 7 2022 generic/
drwxr-xr-x 3 rootroot rootroot 4096 3月 7 2022 google/
drwxr-xr-x 9 rootroot rootroot 4096 3月 7 2022 rockchip/
drwxr-xr-x 9 rootroot rootroot 4096 3月 13 2022 sample/
rootroot@rootroot-X99-Turbo:~/3TB/65rk3399-android-11/device$
rootroot@rootroot-X99-Turbo:~/3TB/65rk3399-android-11/device$
rootroot@rootroot-X99-Turbo:~/3TB/65rk3399-android-11/device$
rootroot@rootroot-X99-Turbo:~/3TB/65rk3399-android-11/device$ cd rockchip/
rootroot@rootroot-X99-Turbo:~/3TB/65rk3399-android-11/device/rockchip$ ll
total 36
drwxr-xr-x 9 rootroot rootroot 4096 3月 7 2022 ./
drwxr-xr-x 7 rootroot rootroot 4096 3月 25 2022 ../
drwxr-xr-x 34 rootroot rootroot 4096 1月 7 18:51 common/
drwxr-xr-x 14 rootroot rootroot 4096 3月 25 2022 rk3288/
drwxr-xr-x 11 rootroot rootroot 4096 3月 25 2022 rk3326/
drwxr-xr-x 12 rootroot rootroot 4096 3月 25 2022 rk3328/
drwxr-xr-x 17 rootroot rootroot 4096 1月 7 18:51 rk3399/
drwxr-xr-x 15 rootroot rootroot 4096 3月 25 2022 rk356x/
drwxr-xr-x 9 rootroot rootroot 4096 3月 25 2022 rk356x_box/
rootroot@rootroot-X99-Turbo:~/3TB/65rk3399-android-11/device/rockchip$
rootroot@rootroot-X99-Turbo:~/3TB/65rk3399-android-11/device/rockchip$ grep media_profiles_V1_0.xml . -R
./rk3399/nanopc-t4/nanopc_t4.mk: $(LOCAL_PATH)/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
./rk3399/rk3399_atv/device.mk: device/rockchip/$(TARGET_BOARD_PLATFORM)/media_profiles_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
./rk3399/device.mk: device/rockchip/$(TARGET_BOARD_PLATFORM)/media_profiles_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
./rk3288/device.mk: device/rockchip/$(TARGET_BOARD_PLATFORM)/media_profiles_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
./rk3326/device-common.mk: $(TARGET_DEVICE_DIR)/media_profiles_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml\
./rk356x/device.mk: $(TARGET_DEVICE_DIR)/media_profiles_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml\
./rk356x_box/device.mk: $(TARGET_DEVICE_DIR)/media_profiles_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
./rk3328/device-common.mk: $(TARGET_DEVICE_DIR)/media_profiles_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
rootroot@rootroot-X99-Turbo:~/3TB/65rk3399-android-11/device/rockchip$
rootroot@rootroot-X99-Turbo:~/3TB/65rk3399-android-11/device/rockchip$
rootroot@rootroot-X99-Turbo:~/3TB/65rk3399-android-11/device/rockchip$ find . -name media_profiles_default.xml
./rk3399/rk3399_atv/media_profiles_default.xml
./rk3399/media_profiles_default.xml
./rk3288/media_profiles_default.xml
./rk3326/PX30_Android11/media_profiles_default.xml
./rk3326/rk3326_q/media_profiles_default.xml
./rk3326/rk3326_r/media_profiles_default.xml
./rk3326/rk3326_pie/media_profiles_default.xml
./rk3326/rk3326_rgo/media_profiles_default.xml
./rk356x/rk3566_eink/media_profiles_default.xml
./rk356x/rk3566_einkw6/media_profiles_default.xml
./rk356x/rk3568_r/media_profiles_default.xml
./rk356x/rk3566_32bit/media_profiles_default.xml
./rk356x/rk3566_r/media_profiles_default.xml
./rk356x/rk3566_rgo/media_profiles_default.xml
./rk356x_box/rk356x_box_32/media_profiles_default.xml
./rk356x_box/rk356x_box/media_profiles_default.xml
./rk3328/rk3328_atv/media_profiles_default.xml
./rk3328/rk3328_box_32/media_profiles_default.xml
./rk3328/rk3328_box/media_profiles_default.xml
rootroot@rootroot-X99-Turbo:~/3TB/65rk3399-android-11/device/rockchip$
3、改动的部分:
Z:\3TB\65rk3399-android-11\device\rockchip\rk3399\media_profiles_default.xml
原始:
EncoderOutputFileFormat+,
VideoEncoderCap+,
AudioEncoderCap+,
VideoDecoderCap,
AudioDecoderCap)>
]>
minFrameWidth="176" maxFrameWidth="1920"
minFrameHeight="144" maxFrameHeight="1080"
minFrameRate="1" maxFrameRate="30" />
minFrameWidth="176" maxFrameWidth="800"
minFrameHeight="144" maxFrameHeight="480"
minFrameRate="1" maxFrameRate="24" />
minFrameWidth="176" maxFrameWidth="800"
minFrameHeight="144" maxFrameHeight="480"
minFrameRate="1" maxFrameRate="24" />
minSampleRate="8000" maxSampleRate="44100"
minChannels="1" maxChannels="1" />
minSampleRate="16000" maxSampleRate="16000"
minChannels="1" maxChannels="1" />
minSampleRate="8000" maxSampleRate="8000"
minChannels="1" maxChannels="1" />
修改成功:
EncoderOutputFileFormat+,
VideoEncoderCap+,
AudioEncoderCap+,
VideoDecoderCap,
AudioDecoderCap)>
]>
-->
-->
minFrameWidth="176" maxFrameWidth="1920"
minFrameHeight="144" maxFrameHeight="1080"
minFrameRate="1" maxFrameRate="30" />
minFrameWidth="176" maxFrameWidth="800"
minFrameHeight="144" maxFrameHeight="480"
minFrameRate="1" maxFrameRate="24" />
minFrameWidth="176" maxFrameWidth="800"
minFrameHeight="144" maxFrameHeight="480"
minFrameRate="1" maxFrameRate="24" />
minSampleRate="8000" maxSampleRate="48000"
minChannels="1" maxChannels="2" />
minSampleRate="16000" maxSampleRate="16000"
minChannels="1" maxChannels="1" />
minSampleRate="8000" maxSampleRate="8000"
minChannels="1" maxChannels="1" />
4、确认修改成功了!
参考资料:
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