[Xperia Z2 Q&A, Help & Troubleshooting] naitik2012:
Hi bro

Sry to distrubing you again but i need your help

First try >

naitik@naitik-desktop:~$ cd kernel

naitik@naitik-desktop:~/kernel$ ARCH=arm CROSS_COMPILE=~/arm-cortex_a15-linux-gnueabihf-linaro_4.9.1-2014.04/bin/arm-gnueabi- cm_shinano_sirius_defconfig

cm_shinano_sirius_defconfig: command not found

naitik@naitik-desktop:~/kernel$ export ARCH=arm

naitik@naitik-desktop:~/kernel$ export CROSS_COMPILE=~/arm-cortex_a15-linux-gnueabihf-linaro_4.9.1-2014.04/bin/arm-gnueabi-

naitik@naitik-desktop:~/kernel$ make cm_shinano_sirius_defconfig

#

# configuration written to .config

#

naitik@naitik-desktop:~/kernel$ make menuconfig

HOSTCC scripts/kconfig/lxdialog/checklist.o

HOSTCC scripts/kconfig/lxdialog/inputbox.o

HOSTCC scripts/kconfig/lxdialog/menubox.o

HOSTCC scripts/kconfig/lxdialog/textbox.o

HOSTCC scripts/kconfig/lxdialog/util.o

HOSTCC scripts/kconfig/lxdialog/yesno.o

HOSTCC scripts/kconfig/mconf.o

HOSTLD scripts/kconfig/mconf

scripts/kconfig/mconf Kconfig

*** End of the configuration.

*** Execute 'make' to start the build or try 'make help'.

naitik@naitik-desktop:~/kernel$ make 2

/home/naitik/arm-cortex_a15-linux-gnueabihf-linaro_4.9.1-2014.04/bin/arm-gnueabi-gcc: 1: /home/naitik/arm-cortex_a15-linux-gnueabihf-linaro_4.9.1-2014.04/bin/arm-gnueabi-gcc: ELF: not found

/home/naitik/arm-cortex_a15-linux-gnueabihf-linaro_4.9.1-2014.04/bin/arm-gnueabi-gcc: 2: /home/naitik/arm-cortex_a15-linux-gnueabihf-linaro_4.9.1-2014.04/bin/arm-gnueabi-gcc: [MENTION=5839521 [MENTION=1065870 [MENTION=1879310]@@@[/MENTION][/MENTION][/MENTION]00pp@p@@@�

�

: not found

/home/naitik/arm-cortex_a15-linux-gnueabihf-linaro_4.9.1-2014.04/bin/arm-gnueabi-gcc: 3: /home/naitik/arm-cortex_a15-linux-gnueabihf-linaro_4.9.1-2014.04/bin/arm-gnueabi-gcc: cannot open <Q�tdR�tdh�

h�kh�k��/lib64/ld-linux-x86-64.so.2GNUGNU��0@!1V�n���+�: No such file

/home/naitik/arm-cortex_a15-linux-gnueabihf-linaro_4.9.1-2014.04/bin/arm-gnueabi-gcc: 3: /home/naitik/arm-cortex_a15-linux-gnueabihf-linaro_4.9.1-2014.04/bin/arm-gnueabi-gcc: ��J��J: not found

/home/naitik/arm-cortex_a15-linux-gnueabihf-linaro_4.9.1-2014.04/bin/arm-gnueabi-gcc: 4: /home/naitik/arm-cortex_a15-linux-gnueabihf-linaro_4.9.1-2014.04/bin/arm-gnueabi-gcc: Syntax error: "(" unexpected

scripts/kconfig/conf --silentoldconfig Kconfig

include/config/auto.conf:180:warning: symbol value 'elf32-i386' invalid for OUTPUT_FORMAT

include/config/auto.conf:261:warning: symbol value 'arch/x86/configs/i386_defconfig' invalid for ARCH_DEFCONFIG

include/config/auto.conf:615:warning: symbol value '-fcall-saved-ecx -fcall-saved-edx' invalid for ARCH_HWEIGHT_CFLAGS

*** Error during update of the configuration.

make[2]: *** [silentoldconfig] Error 1

make[1]: *** [silentoldconfig] Error 2

make: *** No rule to make target `2'. Stop.

tried 2nd time and got this >

naitik@naitik-desktop:~/kernel$ make j2

make: /home/naitik/arm-cortex_a15-linux-gnueabihf-linaro_4.9.1/bin/arm-eabi-gcc: Command not found

scripts/kconfig/conf --silentoldconfig Kconfig

include/config/auto.conf:180:warning: symbol value 'elf32-i386' invalid for OUTPUT_FORMAT

include/config/auto.conf:261:warning: symbol value 'arch/x86/configs/i386_defconfig' invalid for ARCH_DEFCONFIG

include/config/auto.conf:615:warning: symbol value '-fcall-saved-ecx -fcall-saved-edx' invalid for ARCH_HWEIGHT_CFLAGS

*** Error during update of the configuration.

make[2]: *** [silentoldconfig] Error 1

make[1]: *** [silentoldconfig] Error 2

make: *** No rule to make target `j2'. Stop.

Also tried command u mentioned above

. build/envsetup.sh

and got this

naitik@naitik-desktop:~$ build/envsetup.sh

bash: build/envsetup.sh: No such file or directory

do i need to replace build with my kernel folder or something ?

Thanks :)

EDIT - btw i was building from CM12.1 Kernel source downloaded from github