After that I build all the packages and software for building the Android BSP.
I am using Ubuntu 18.04 64 bit
But after executing below commands as mentioned in wiki -
./FFTools/make.sh -d rk3399-firefly-aio-lvds-HSX101H40C -j8 -l rk3399_firefly_aio_lvds_box-userdebug
uboot and kernel compilation is done but build is failing in android compilation.
it doesn't give any error but fails abruptly -
including ./vendor/rockchip/common/gpu/Android.mk ...
including ./vendor/rockchip/common/hdcp2/Android.mk ...
including ./vendor/rockchip/common/pluginsvc/Android.mk ...
including ./vendor/rockchip/common/rftesttool/broadcom/app/Android.mk ...
including ./vendor/rockchip/common/tools/log_capture/amtl/Android.mk ...
including ./vendor/rockchip/common/tools/log_capture/backtrace/Android.mk ...
including ./vendor/rockchip/common/tools/log_capture/crashlog/Android.mk ...
including ./vendor/rockchip/common/tools/log_capture/debug_anr/Android.mk ...
including ./vendor/rockchip/common/tools/log_capture/dvc_tools/dvc_desc/Android.mk ...
including ./vendor/rockchip/common/tools/log_capture/dvc_tools/libdvcdesc/Android.mk ...
including ./vendor/rockchip/common/tools/log_capture/intel_prop/Android.mk ...
including ./vendor/rockchip/common/tools/log_capture/lct/cli/Android.mk ...
including ./vendor/rockchip/common/tools/log_capture/lct/lib/Android.mk ...
including ./vendor/rockchip/common/tools/log_capture/lct/libsock/Android.mk ...
including ./vendor/rockchip/common/tools/log_capture/libbtdump/Android.mk ...
including ./vendor/rockchip/common/tools/log_capture/libintelconfig/Android.mk ...
including ./vendor/rockchip/common/tools/log_capture/log-watch/Android.mk ...
including ./vendor/rockchip/common/tools/log_capture/log_service/Android.mk ...
including ./vendor/rockchip/common/tools/log_capture/logcatext/Android.mk ...
including ./vendor/rockchip/common/tools/log_capture/parse_stack/Android.mk ...
including ./vendor/rockchip/common/vpu/Android.mk ...
including ./vendor/widevine/Android.mk ...
*** Overlay change detected, clean shared intermediate files...
*** rm -rf out/target/common/obj/APPS/SystemUITests_intermediates out/target/common/obj/APPS/Settings_intermediates out/target/common/obj/APPS/framework-res_intermediates out/target/common/obj/APPS/Bluetooth_intermediates out/target/common/obj/APPS/TeleService_intermediates out/target/common/obj/APPS/SettingsProvider_intermediates out/target/common/obj/APPS/SystemUI_intermediates
PRODUCT_COPY_FILES device/rockchip/common/init.rk30board.usb.rc:root/init.rk30board.usb.rc ignored.
PRODUCT_COPY_FILES device/rockchip/common/fstab.rk30board.bootmode.unknown:root/fstab.rk30board.bootmode.unknown ignored.
PRODUCT_COPY_FILES device/rockchip/common/fstab.rk30board.bootmode.emmc:root/fstab.rk30board.bootmode.emmc ignored.
PRODUCT_COPY_FILES vendor/rockchip/common/nand/modules/arm/rk30xxnand_ko.ko.3.10.0:root/rk30xxnand_ko.ko ignored.
PRODUCT_COPY_FILES vendor/rockchip/common/nand/modules/arm/drmboot.ko:root/drmboot.ko ignored.
PRODUCT_COPY_FILES vendor/rockchip/common/phone/lib/libreference-ril.so:system/lib/libreference-ril.so ignored.
PRODUCT_COPY_FILES device/rockchip/common/public.libraries.vendor.txt:system/vendor/etc/public.libraries.txt ignored.
No private recovery resources for TARGET_DEVICE rk3399_firefly_aio_lvds_box
build/core/base_rules.mk:341: warning: overriding commands for target `out/target/product/rk3399_firefly_aio_lvds_box/system/etc/init/bluetoothtbd.rc'
build/core/base_rules.mk:341: warning: ignoring old commands for target `out/target/product/rk3399_firefly_aio_lvds_box/system/etc/init/bluetoothtbd.rc'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/rk3399_firefly_aio_lvds_box/root/init.rc'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/rk3399_firefly_aio_lvds_box/root/init.rc'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/rk3399_firefly_aio_lvds_box/system/xbin/io'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/rk3399_firefly_aio_lvds_box/system/xbin/io'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/rk3399_firefly_aio_lvds_box/system/lib/libreference-ril.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/rk3399_firefly_aio_lvds_box/system/lib/libreference-ril.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/rk3399_firefly_aio_lvds_box/system/lib64/libreference-ril.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/rk3399_firefly_aio_lvds_box/system/lib64/libreference-ril.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/rk3399_firefly_aio_lvds_box/system/lib/libjpeghwenc.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/rk3399_firefly_aio_lvds_box/system/lib/libjpeghwenc.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/rk3399_firefly_aio_lvds_box/system/lib/libjpeghwdec.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/rk3399_firefly_aio_lvds_box/system/lib/libjpeghwdec.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/rk3399_firefly_aio_lvds_box/system/lib64/libjpeghwenc.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/rk3399_firefly_aio_lvds_box/system/lib64/libjpeghwenc.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/rk3399_firefly_aio_lvds_box/system/lib64/libjpeghwdec.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/rk3399_firefly_aio_lvds_box/system/lib64/libjpeghwdec.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/rk3399_firefly_aio_lvds_box/system/bin/chat'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/rk3399_firefly_aio_lvds_box/system/bin/chat'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/rk3399_firefly_aio_lvds_box/system/bin/usb_modeswitch'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/rk3399_firefly_aio_lvds_box/system/bin/usb_modeswitch'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/rk3399_firefly_aio_lvds_box/system/lib/libril-rk29-dataonly.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/rk3399_firefly_aio_lvds_box/system/lib/libril-rk29-dataonly.so' build/core/ninja.mk:163: recipe for target 'out/build-rk3399_firefly_aio_lvds_box.ninja' failed
make: *** [out/build-rk3399_firefly_aio_lvds_box.ninja] Killed
make: *** Deleting file 'out/build-rk3399_firefly_aio_lvds_box.ninja'
Warning:
The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /home/Maneesh/.jack-server/server.jks -destkeystore /home/Maneesh/.jack-server/server.jks -deststoretype pkcs12".
Warning:
The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /home/Maneesh/.jack-server/client.jks -destkeystore /home/Maneesh/.jack-server/client.jks -deststoretype pkcs12".
Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation -cp /home/Maneesh/.jack-server/launcher.jar com.android.jack.launcher.ServerLauncher
Jack server failed to (re)start, try 'jack-diagnose' or see Jack server log
SSL error when connecting to the Jack server. Try 'jack-diagnose'
SSL error when connecting to the Jack server. Try 'jack-diagnose'
[ 24% 10196/41233] host C++: libartd <= art/runtime/native/org_apache_harmony_dalvik_ddmc_DdmServer.cc
[ 24% 10196/41233] host C++: libartd <= art/runtime/native/sun_misc_Unsafe.cc
[ 24% 10196/41233] host C++: libartd <= art/runtime/object_lock.cc
[ 24% 10196/41233] host C++: libartd <= art/runtime/verifier/register_line.cc
[ 24% 10196/41233] host C++: libartd <= art/runtime/oat_file_assistant.cc
[ 24% 10196/41233] host C++: libartd <= art/runtime/oat_file.cc
[ 24% 10196/41233] host C++: libartd <= art/runtime/oat_file_manager.cc
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1Author: jpchen Time: 5/30/2022 12:58
Thanks for your reply. I am able to solve my ninja build issue with your suggestions and now my build is completed.
I am facing one MMC /SD-Card related issue can you help me with that ?
Issue :-
I am using AIO- RK3399 J Board for my development and using External SD Card for storage purpose.
I am able to build and boot the board with Android 7.1 and able to access the external SD card.
While testing sometime when I am trying to save any data on SD Card i get error - SD card is read only.