Ganesh
October 3, 2017, 1:07pm
1
Hi Gouwa,
How to build Android Mmallow or Nougat with DTV support. General build process is not generating DTVPlayer apk and not compiling other supported dvb libraries.
android_vendor_amlogic_dvb
android_vendor_amlogic_apps_DTVPlayer
android_vendor_amlogic_apps_TvMiddleware
android_vendor_amlogic_apps_TvInput
Tried adding BOARD_HAVE_TV := true in BoardConfig.mk , but nothing happened.!
Terry
October 3, 2017, 2:58pm
2
I only have test ROM for DVB . Did you need the source code? @Frank.DTV can answer your question.
Ganesh
October 3, 2017, 3:11pm
3
@Terry Yes need the source code to build android, can you share the ROM atleast will try with it initally.
Ganesh
October 3, 2017, 3:12pm
4
@Terry you got the ROM from @Frank.DTV .?
Terry
October 3, 2017, 3:27pm
5
I only have the DVB apk and library but donât have the DVB source code.
That ROM was built by myself and not from Frank.DTV.
Ganesh
October 3, 2017, 3:31pm
6
@Terry can you tell me how to build the ROM with DVB, you can share the apk and libraries i can install them and check.
Terry
October 3, 2017, 3:37pm
7
Now is National Day Holidays in China. I am not at office.
I will provide the DVB patch for you after the holiday.
You can try to flash the DVB ROM and have a test.
Thanks.
Ganesh
October 4, 2017, 2:10pm
8
@Terry Thanks. Enjoy your holidays.!
Ganesh
October 9, 2017, 7:23am
9
@Terry Can you provide me the DVB ROM link, and Please please provide me the DVB Patch also.
Thanks.
Terry
October 9, 2017, 8:11am
10
This is DVB ROM
This is DVB Patch
Have a try.
Thanks.
Gytis
October 9, 2017, 5:42pm
11
Are there instructions how to build Android Nougat with DTV support like VIM2_Nougat_vTV_V170930 ?
Terry
October 10, 2017, 1:24am
12
You only need to patch the DVB Patch and build android update image again.
# cd ~/$Project/uboot
# make distclean
# make CROSS_COMPILE=aarch64-linux-gnu- kvim2_defconfig
# make CROSS_COMPILE=aarch64-linux-gnu-
# cd ~/$Project
# source build/envsetup.sh
# lunch kvim2-userdebug-64
# make otapackage -jN
1 Like
Gytis
October 10, 2017, 7:24pm
13
Terry:
You only need to patch the DVB Patch and build android update image again.
# cd ~/$Project/uboot
# make distclean
# make CROSS_COMPILE=aarch64-linux-gnu- kvim2_defconfig
# make CROSS_COMPILE=aarch64-linux-gnu-
# cd ~/$Project
# source build/envsetup.sh
# lunch kvim2-userdebug-64
# make otapackage -jN
Can you advise how to apply patch ? As I can see in the archive it contains diffs to the files, probably those available on regular Nougat image GitHub.
Terry
October 11, 2017, 1:27am
14
example:
The directory âdevice-khadasâ
Copy the file â0001-DVB-add-support-for-DVB.patchâ to the directory âdevice/khadasâ
# copy device-khadas/0001-DVB-add-support-for-DVB.patch ~/$PROJECT/device/khadas
Copy the file â0002-DVB-add-build-config-for-VTV-application-KVIM2.patchâ to the directory âdevice/khadasâ
# copy device-khadas/0002-DVB-add-build-config-for-VTV-application-KVIM2.patch ~/$PROJECT/device/khadas
Go to the directory âdevice/khadasâ
# cd ~/$PROJECT/device/khadas
# git am 0001-DVB-add-support-for-DVB.patch
# git am 0002-DVB-add-build-config-for-VTV-application-KVIM2.patch
1 Like
Gytis
October 14, 2017, 8:20pm
15
This patch fails:
device/khadas/0001-DVB-add-support-for-DVB.patch
Applying: DVB: add support for DVB
error: patch failed: kvim2/init.amlogic.board.rc:40
error: kvim2/init.amlogic.board.rc: patch does not apply
Patch failed at 0001 DVB: add support for DVB
The copy of the patch that failed is found in: .git/rebase-apply/patch
When you have resolved this problem, run âgit am --continueâ.
If you prefer to skip this patch, run âgit am --skipâ instead.
To restore the original branch and stop patching, run âgit am --abortâ.
All other patches succeed.
Problem is that device/khadas/0001-DVB-add-support-for-DVB.patch is not corresponding to kvim/init.amlogic.board.rc file that is on GitHub.
Used DVB_Patch uploaded on 2017-10-10 .
1 Like
Terry
October 15, 2017, 5:04am
16
You can modify this file manually.
I will verify it tommorow because Iâm not at office now.
Gytis
October 15, 2017, 9:32am
17
Modified manually, but stuck on build error:
FAILED: /bin/bash -c â(PWD=/proc/self/cwd prebuilts/misc/linux-x86/ccache/ccache prebuilts/clang/host/linux-x86/clang-2690385/bin/clang -I vendor/amlogic/external/ffmpeg -I out/target/product/kvim2/obj/SHARED_LIBRARIES/libamffmpeg_intermediates -I out/target/product/kvim2/gen/SHARED_LIBRARIES/libamffmpeg_intermediates -I libnativehelper/include/nativehelper $(cat out/target/product/kvim2/obj/SHARED_LIBRARIES/libamffmpeg_intermediates/import_includes) -isystem system/core/include -isystem system/media/audio/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem hardware/ril/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem out/target/product/kvim2/obj/include -isystem bionic/libc/arch-arm64/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/common -isystem bionic/libc/kernel/uapi/asm-arm64 -isystem bionic/libm/include -isystem bionic/libm/include/arm64 -c -fno-exceptions -Wno-multichar -fno-strict-aliasing -fstack-protector-strong -ffunction-sections -fdata-sections -funwind-tables -Wa,ânoexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast -Werror=implicit-function-declaration -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -DNDEBUG -O2 -g -Wstrict-aliasing=2 -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -nostdlibinc -target aarch64-linux-android -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -std=gnu99 -DHAVE_AV_CONFIG_H -Ivendor/amlogic/external/ffmpeg -Wno-error=return-type -Wno-missing-field-initializers -Wno-parentheses -Wno-pointer-sign -Wno-sign-compare -Wno-switch -fPIC -std=c99 -llvm -DDISABLE_NEONINTR -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -DFF_API_AV_GETTIME=0 -fPIC -DARCH_AARCH64 -D_USING_LIBCXX -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=null-dereference -Werror=return-type -MD -MF out/target/product/kvim2/obj/SHARED_LIBRARIES/libamffmpeg_intermediates/libavutil/âŚ/compat/strtod.d -o out/target/product/kvim2/obj/SHARED_LIBRARIES/libamffmpeg_intermediates/libavutil/âŚ/compat/strtod.o vendor/amlogic/external/ffmpeg/libavutil/âŚ/compat/strtod.c ) && (cp out/target/product/kvim2/obj/SHARED_LIBRARIES/libamffmpeg_intermediates/libavutil/âŚ/compat/strtod.d out/target/product/kvim2/obj/SHARED_LIBRARIES/libamffmpeg_intermediates/libavutil/âŚ/compat/strtod.P; sed -e âs/#.//â -e 's/ : *//â -e âs/ *\\$//â -e â/^$/ dâ -e âs/$/ :/â < out/target/product/kvim2/obj/SHARED_LIBRARIES/libamffmpeg_intermediates/libavutil/âŚ/compat/strtod.d >> out/target/product/kvim2/obj/SHARED_LIBRARIES/libamffmpeg_intermediates/libavutil/âŚ/compat/strtod.P; rm -f out/target/product/kvim2/obj/SHARED_LIBRARIES/libamffmpeg_intermediates/libavutil/âŚ/compat/strtod.d )â
error: unable to open output file âout/target/product/kvim2/obj/SHARED_LIBRARIES/libamffmpeg_intermediates/libavutil/âŚ/compat/strtod.oâ: âNo such file or directoryâ
1 error generated.
Update:
This error is shown when patches were applied on never built sources. Make sure to build kvim2, then apply patches and rebuild again - then it succeeds.
Terry
October 15, 2017, 11:05am
18
It doesnât matter about DVB patch. Maybe you need to check your PC host environment.
Gytis
October 15, 2017, 3:51pm
19
This is how I solved:
Download sources
Build kvim2 as usual
Apply patches
Build again
If patches were applied on sources that were not built yet, build fails on mpeg part. If it was built before applying the patch, it worked.
Anyway, I have another issue - VTV app fails channel search - whether itâs automatic or manual, as soon as it is initated it stops and comes back to start window of app. The same happens with VIM2_Nougat_vTV_V170930 firmware.
I have tried with DVB-T (Lithuania) antenna plugged in.
And one more thing - can I make VTV app not autostart when Android boots up? I want to launch it myself when wanted.
Terry
October 16, 2017, 1:13am
20
I didnât find the issue from built error message provided by you.
The amffmpeg donât matter about DVB Patch. Maybe you need to provide more build error message for me.
Thanks.
Gytis:
Anyway, I have another issue - VTV app fails channel search - whether itâs automatic or manual, as soon as it is initated it stops and comes back to start window of app. The same happens with VIM2_Nougat_vTV_V170930 firmware.
I have tried with DVB-T (Lithuania) antenna plugged in.
And one more thing - can I make VTV app not autostart when Android boots up? I want to launch it myself when wanted.
@Frank.DTV Can you answer this question? Thanks very much.