build error HK n2+ android code

Post Reply
pruthvidns
Posts: 5
Joined: Thu Jul 23, 2020 12:31 pm
languages_spoken: english
Has thanked: 2 times
Been thanked: 0
Contact:

build error HK n2+ android code

Post by pruthvidns »

HI all,


i tried to build android 9 code downloaded as suggested in https://wiki.odroid.com/odroid-n2/softw ... ng_android

but i'm facing below error while command : "make -j8 selfinstall" , while "make -j8" itself is sucessfull

make[1]: Leaving directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'
make: Leaving directory `/home/pruthvi/hk/common'
make -C /home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ M=/home/pruthvi/hk/hardware/wifi/realtek/drivers/rtl8812au ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- modules
make[1]: Entering directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'
cp /home/pruthvi/hk/hardware/wifi/realtek/drivers/rtl8812au/8812au.ko out/target/product/odroidn2/obj/lib_vendor/
make -C /home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ M=/home/pruthvi/hk/hardware/wifi/realtek/drivers/rtl8821CU ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- modules
make[1]: Entering directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'
cp /home/pruthvi/hk/hardware/wifi/realtek/drivers/rtl8821CU/8821cu.ko out/target/product/odroidn2/obj/lib_vendor/
make -C /home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ M=/home/pruthvi/hk/hardware/wifi/realtek/drivers/8192cu ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- modules
make[1]: Entering directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'
cp /home/pruthvi/hk/hardware/wifi/realtek/drivers/8192cu/8192cu.ko out/target/product/odroidn2/obj/lib_vendor/
make -C /home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ M=/home/pruthvi/hk/hardware/wifi/broadcom/drivers/ap6xxx/bcmdhd.100.10.315.x CONFIG_DHD_USE_STATIC_BUF=y CONFIG_BCMDHD_SDIO=y ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- modules
make[1]: Entering directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'
make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
bcm SDIO driver configured
Building modules, stage 2.
bcm SDIO driver configured
MODPOST 1 modules
make[1]: Leaving directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'
cp /home/pruthvi/hk/hardware/wifi/broadcom/drivers/ap6xxx/bcmdhd.100.10.315.x/dhd.ko out/target/product/odroidn2/obj/lib_vendor/
make: Entering directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'
Building modules, stage 2.
MODPOST 27 modules
WARNING: /home/pruthvi/hk/out/target/product/odroidn2/obj/media_modules/stream_input/parser/hw_demux/aml_hardware_dmx: 'aml_get_dvb_adapter' exported twice. Previous export was in /home/pruthvi/hk/out/target/product/odroidn2/obj/media_modules/stream_input/parser/demux/aml_swdmx.ko
WARNING: /home/pruthvi/hk/out/target/product/odroidn2/obj/media_modules/stream_input/parser/hw_demux/aml_hardware_dmx: 'aml_get_dvb_device' exported twice. Previous export was in /home/pruthvi/hk/out/target/product/odroidn2/obj/media_modules/stream_input/parser/demux/aml_swdmx.ko
make: Leaving directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'




im building it as User and i have not done any code changes.
im building for userdebug.

User avatar
secuflag
Posts: 129
Joined: Sun Jun 16, 2019 12:12 am
languages_spoken: English, Italian
ODROIDs: N2 - N2+ - C4
Location: Switzerland
Has thanked: 25 times
Been thanked: 64 times
Contact:

Re: build error HK n2+ android code

Post by secuflag »

I don't see any error here, post the whole compiling log please.
If you like my work feel free to contribute to buy me some beers. ;)

pruthvidns
Posts: 5
Joined: Thu Jul 23, 2020 12:31 pm
languages_spoken: english
Has thanked: 2 times
Been thanked: 0
Contact:

Re: build error HK n2+ android code

Post by pruthvidns »

Code: Select all

[322/959] including hardware/amlogic/hwcomposer/Android.mk ...
"no pipeline configed, will use default"
"Build HWC 2.0"
[533/959] including system/sepolicy/Android.mk ...
system/sepolicy/Android.mk:79: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[945/959] including vendor/amlogic/common/frameworks/Android.mk ...
vendor/amlogic/common/frameworks/core/jni/screencontrol/Android.mk:7: warning: libnativehelper/include_jni
vendor/amlogic/common/frameworks/core/jni/systemcontrol/Android.mk:10: warning: libnativehelper/include_jni
[946/959] including vendor/amlogic/common/gpu/lib/Android.mk ...
"the value of BOARD_INSTALL_VULKAN is true"
TARGET_PRODUCT is odroidn2
[950/959] including vendor/amlogic/common/prebuilt/Android.mk ...
"no bootaccelerate source code, add prebuilts"
"no exoplayer source code, add prebuilts"
[956/959] including vendor/amlogic/common/tv/tvserver/Android.mk ...
"have hardware/amlogic/media"
"have hardware/amlogic/media"
[959/959] including vendor/widevine/Android.mk ...
device/hardkernel/odroidn2/Kernel.mk:105: warning: overriding commands for target `out/target/product/odroidn2/obj/lib_vendor/mali.ko'
vendor/amlogic/common//gpu/gpu-v2.mk:23: warning: ignoring old commands for target `out/target/product/odroidn2/obj/lib_vendor/mali.ko'
build/make/core/base_rules.mk:412: warning: overriding commands for target `out/target/product/odroidn2/system/usr/icu/icudt60l.dat'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `out/target/product/odroidn2/system/usr/icu/icudt60l.dat'
build/make/core/base_rules.mk:412: warning: overriding commands for target `out/host/linux-x86/usr/icu/icudt60l.dat'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `out/host/linux-x86/usr/icu/icudt60l.dat'
build/make/core/base_rules.mk:412: warning: overriding commands for target `out/target/product/odroidn2/vendor/lib/teetz/526fc4fc-7ee6-4a12-96e3-83da9565bce8.ta'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `out/target/product/odroidn2/vendor/lib/teetz/526fc4fc-7ee6-4a12-96e3-83da9565bce8.ta'
build/make/core/Makefile:28: warning: overriding commands for target `out/target/product/odroidn2/vendor/etc/init/android.hardware.wifi@1.0-service.rc'
build/make/core/base_rules.mk:426: warning: ignoring old commands for target `out/target/product/odroidn2/vendor/etc/init/android.hardware.wifi@1.0-service.rc'
build/make/core/Makefile:28: warning: overriding commands for target `out/target/product/odroidn2/vendor/etc/init/android.hardware.gnss@1.0-service.rc'
build/make/core/base_rules.mk:426: warning: ignoring old commands for target `out/target/product/odroidn2/vendor/etc/init/android.hardware.gnss@1.0-service.rc'
build/make/core/Makefile:28: warning: overriding commands for target `out/target/product/odroidn2/recovery/root/sbin/sh'
vendor/amlogic/common/external/busybox/Android.mk:307: warning: ignoring old commands for target `out/target/product/odroidn2/recovery/root/sbin/sh'
[ 61% 240/391] build out/target/product/odroidn2/obj/KERNEL_OBJ/.config
make: Entering directory `/home/pruthvi/hk/common'
make[1]: Entering directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'
  GEN     ./Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'
make: Leaving directory `/home/pruthvi/hk/common'
[ 80% 315/391] build out/target/product/odroidn2/selfinstall/odm.img
65536+0 records in
65536+0 records out
33554432 bytes (34 MB) copied, 0.37467 s, 89.6 MB/s
mkfs.fat 3.0.28 (2015-05-16)
[ 83% 325/391] build bootloader/uboot/sd_fuse/u-boot.bin
FAILED: bootloader/uboot/sd_fuse/u-boot.bin
/bin/bash -c "(make -C bootloader/uboot distclean ) && (make -C bootloader/uboot odroidn2_config ) && (make -C bootloader/uboot bootimage )"
make: Entering directory `/home/pruthvi/hk/bootloader/uboot'
make[1]: aarch64-none-elf-gcc: Command not found
/bin/sh: aarch64-none-elf-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
  CLEAN   scripts/basic
  CLEAN   scripts/kconfig
  CLEAN   include/config include/generated
  CLEAN   .config include/config.h
make: Leaving directory `/home/pruthvi/hk/bootloader/uboot'
make: Entering directory `/home/pruthvi/hk/bootloader/uboot'
  HOSTCC  scripts/basic/fixdep
  GEN     ./Makefile
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
make: Leaving directory `/home/pruthvi/hk/bootloader/uboot'
make: Entering directory `/home/pruthvi/hk/bootloader/uboot'
make[1]: aarch64-none-elf-gcc: Command not found
/bin/sh: aarch64-none-elf-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
  GEN     ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
  CHK     include/config.h
  UPD     include/config.h
  GEN     include/autoconf.mk
/bin/sh: aarch64-none-elf-gcc: command not found
make[3]: *** [include/autoconf.mk] Error 1
make[2]: *** [silentoldconfig] Error 1
make[1]: *** No rule to make target `include/config/auto.conf', needed by `include/config/uboot.release'.  Stop.
make: *** [sub-make] Error 2
make: Leaving directory `/home/pruthvi/hk/bootloader/uboot'
[ 83% 326/391] make Image
make: Entering directory `/home/pruthvi/hk/common'
make[1]: Entering directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'
  GEN     ./Makefile
scripts/kconfig/conf  --silentoldconfig Kconfig
make[1]: Leaving directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'
make[1]: Entering directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'
  CHK     include/config/kernel.release
  CHK     include/config/kernel.release_full
  GEN     ./Makefile
  CHK     include/generated/uapi/linux/version.h
  CHK     scripts/mod/devicetable-offsets.h
  Using /home/pruthvi/hk/common as source for kernel
  CHK     include/generated/utsrelease.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/bounds.h
  CHK     include/generated/asm-offsets.h
  CALL    /home/pruthvi/hk/common/scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  GZIP    kernel/config_data.gz
  CHK     kernel/config_data.h
  Building modules, stage 2.
  MODPOST 55 modules
make[1]: Leaving directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'
make: Leaving directory `/home/pruthvi/hk/common'
make -C /home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ M=/home/pruthvi/hk/hardware/wifi/realtek/drivers/rtl8812au ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- modules
make[1]: Entering directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'
cp /home/pruthvi/hk/hardware/wifi/realtek/drivers/rtl8812au/8812au.ko out/target/product/odroidn2/obj/lib_vendor/
make -C /home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ M=/home/pruthvi/hk/hardware/wifi/realtek/drivers/rtl8821CU ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- modules
make[1]: Entering directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'
cp /home/pruthvi/hk/hardware/wifi/realtek/drivers/rtl8821CU/8821cu.ko out/target/product/odroidn2/obj/lib_vendor/
make -C /home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ M=/home/pruthvi/hk/hardware/wifi/realtek/drivers/8192cu ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- modules
make[1]: Entering directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'
cp /home/pruthvi/hk/hardware/wifi/realtek/drivers/8192cu/8192cu.ko out/target/product/odroidn2/obj/lib_vendor/
make -C /home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ M=/home/pruthvi/hk/hardware/wifi/broadcom/drivers/ap6xxx/bcmdhd.100.10.315.x CONFIG_DHD_USE_STATIC_BUF=y CONFIG_BCMDHD_SDIO=y ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- modules
make[1]: Entering directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
bcm SDIO driver configured
  Building modules, stage 2.
bcm SDIO driver configured
  MODPOST 1 modules
make[1]: Leaving directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'
cp /home/pruthvi/hk/hardware/wifi/broadcom/drivers/ap6xxx/bcmdhd.100.10.315.x/dhd.ko out/target/product/odroidn2/obj/lib_vendor/
make: Entering directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'
  Building modules, stage 2.
  MODPOST 27 modules
WARNING: /home/pruthvi/hk/out/target/product/odroidn2/obj/media_modules/stream_input/parser/hw_demux/aml_hardware_dmx: 'aml_get_dvb_adapter' exported twice. Previous export was in /home/pruthvi/hk/out/target/product/odroidn2/obj/media_modules/stream_input/parser/demux/aml_swdmx.ko
WARNING: /home/pruthvi/hk/out/target/product/odroidn2/obj/media_modules/stream_input/parser/hw_demux/aml_hardware_dmx: 'aml_get_dvb_device' exported twice. Previous export was in /home/pruthvi/hk/out/target/product/odroidn2/obj/media_modules/stream_input/parser/demux/aml_swdmx.ko
make: Leaving directory `/home/pruthvi/hk/out/target/product/odroidn2/obj/KERNEL_OBJ'
ninja: build stopped: subcommand failed.
21:36:33 ninja failed with: exit status 1

#### failed to build some targets (03:21 (mm:ss)) ####

Luke.go
Posts: 534
Joined: Mon May 30, 2016 1:55 pm
languages_spoken: english
Has thanked: 62 times
Been thanked: 65 times
Contact:

Re: build error HK n2+ android code

Post by Luke.go »

Did you install the toolchain for u-boot?

pruthvidns
Posts: 5
Joined: Thu Jul 23, 2020 12:31 pm
languages_spoken: english
Has thanked: 2 times
Been thanked: 0
Contact:

Re: build error HK n2+ android code

Post by pruthvidns »

i have installed
gcc-linaro-aarch64-none-elf-4.9-2014.09_linux
gcc-linaro-arm-none-eabi-4.8-2014.04_linux
gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu

Luke.go
Posts: 534
Joined: Mon May 30, 2016 1:55 pm
languages_spoken: english
Has thanked: 62 times
Been thanked: 65 times
Contact:

Re: build error HK n2+ android code

Post by Luke.go »

hmm.. It looks environment value is not exported. please follow the wiki.
https://wiki.odroid.com/odroid-n2/softw ... #toolchain

Code: Select all

make[1]: aarch64-none-elf-gcc: Command not found
/bin/sh: aarch64-none-elf-gcc: command not found
Above lines means that aarch64-none-elf's toolcahins are not exported. :)
These users thanked the author Luke.go for the post:
pruthvidns (Wed Sep 16, 2020 4:44 pm)

pruthvidns
Posts: 5
Joined: Thu Jul 23, 2020 12:31 pm
languages_spoken: english
Has thanked: 2 times
Been thanked: 0
Contact:

Re: build error HK n2+ android code

Post by pruthvidns »

thanks for help.

i successfully built code post exporting variables in .bashrc

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 1 guest