Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Android] AIO-RK3399 Android 7.1 Build Failing

48

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
48

【Android】 AIO-RK3399 Android 7.1 Build Failing

Posted at 5/26/2022 15:55:42      View:2327 | Replies:4        Print      Only Author   [Copy Link] 1#
Last edited by man1920 In 5/26/2022 15:57 Editor

Hi,
I followed all the instruction given on wiki and downloaded the Android 7.1 SDK
https://wiki.t-firefly.com/en/AI ... id7.1_firmware.html

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
'



Any Suggestion why it is failing ??

NOTE - I am using ubuntu 18.04


PFA the full logs with this post.



Thanks
Reply

Use props Report

1080

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1080
Posted at 5/27/2022 09:49:05        Only Author  2#
First, suggestion use the rk3399 industry7.1 verison
https://wiki.t-firefly.com/en/AI ... ustry_firmware.html

second,ubuntu18.04 compile rk3399 android7.1 box version issue
~./.bashrc add follow  
export LC_ALL=C
Reply

Use props Report

48

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
48
Posted at 5/28/2022 13:58:09        Only Author  3#
Hi jpchen,

Thanks for your reply.

With above solution my build is going ahead but after some time I got below error -

[ 24% 10189/41233] host C++: libartd <= art/runtime/native/java_lang_reflect_Field.cc
[ 24% 10190/41233] host C++: libartd <= art/runtime/native/java_lang_reflect_AbstractMethod.cc
[ 24% 10191/41233] host C++: libartd <= art/runtime/native/java_lang_reflect_Method.cc
[ 24% 10192/41233] host C++: libartd <= art/runtime/oat.cc
[ 24% 10193/41233] host C++: libartd <= art/runtime/native/java_lang_reflect_Proxy.cc
[ 24% 10194/41233] host C++: libartd <= art/runtime/native/java_lang_reflect_Constructor.cc
[ 24% 10195/41233] host C++: libartd <= art/runtime/native/org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc
[ 24% 10196/41233] Ensure Jack server is installed and started
FAILED: /bin/bash -c "(prebuilts/sdk/tools/jack-admin install-server prebuilts/sdk/tools/jack-launcher.jar prebuilts/sdk/tools/jack-server-4.8.ALPHA.jar  2>&1 || (exit 0) ) && (JACK_SERVER_VM_ARGUMENTS=\"-Dfile.encoding=UTF-8 -XX:+TieredCompilation\" prebuilts/sdk/tools/jack-admin start-server 2>&1 || exit 0 ) && (prebuilts/sdk/tools/jack-admin update server prebuilts/sdk/tools/jack-server-4.8.ALPHA.jar 4.8.ALPHA 2>&1 || exit 0 ) && (prebuilts/sdk/tools/jack-admin update jack prebuilts/sdk/tools/jacks/jack-2.28.RELEASE.jar 2.28.RELEASE || exit 47; prebuilts/sdk/tools/jack-admin update jack prebuilts/sdk/tools/jacks/jack-3.36.CANDIDATE.jar 3.36.CANDIDATE || exit 47; prebuilts/sdk/tools/jack-admin update jack prebuilts/sdk/tools/jacks/jack-4.7.BETA.jar 4.7.BETA || exit 47 )"
Writing client settings in /home/Maneesh/.jack-settings
Installing jack server in "/home/Maneesh/.jack-server"

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 1
Reply

Use props Report

1080

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1080
Posted at 5/30/2022 12:58:17        Only Author  4#
Reply

Use props Report

48

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
48
Posted at 5/30/2022 14:13:22        Only Author  5#
Hi jpchen,

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.

Error msg -
System.err: java.io.FileNotFoundException: /storage/emulated/0/User_Notes.txt (Read-only file system)

After Restart everything works fine. I checked my SD Card and it is also working fine. No issue in SD Card.


This error is not very frequent. Some time it occur soemtime it didint occure. When I keep writing the sensor data from

my android app to SD Card then after some time I face this issue. But its not frequest.  After Restart everything works fine


Since I am not facing this issue every time hence I am not sure what might be cause for this issue ?

Any suggestion what might be issue in Android BSP side?  Or how can I rootcause this issue ?

NOTE : - I already gave external read and write permission in my android app. I checked my SD Card and it is also working fine.

Thanks  
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list