S3 neo compile kernel error - Galaxy S3 Neo Q&A, Help & Troubleshooting

When I run command make -j3 I get error:
include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
make[1]: Nothing to be done for 'arch/arm/boot/dtbs'.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC net/netfilter/xt_mark.o
net/netfilter/xt_mark.c:16:37: fatal error: linux/netfilter/xt_mark.h: No such file or directory
compilation terminated.
scripts/Makefile.build:307: recipe for target 'net/netfilter/xt_mark.o' failed
make[2]: *** [net/netfilter/xt_mark.o] Error 1
scripts/Makefile.build:443: recipe for target 'net/netfilter' failed
make[1]: *** [net/netfilter] Error 2
Makefile:950: recipe for target 'net' failed
make: *** [net] Error 2
make: *** Waiting for unfinished jobs....
LD drivers/video/console/built-in.o
CC drivers/usb/core/driver.o
CC drivers/usb/core/config.o
CC drivers/video/msm/mdss/mdss_mdp.o
drivers/usb/core/driver.c: In function 'usb_hnp_polling_work':
drivers/usb/core/driver.c:1318:2: error: implicit declaration of function 'do_unbind_rebind' [-Werror=implicit-function-declaration]
drivers/usb/core/driver.c:1318:25: error: 'DO_UNBIND' undeclared (first use in this function)
drivers/usb/core/driver.c:1318:25: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
scripts/Makefile.build:307: recipe for target 'drivers/usb/core/driver.o' failed
make[3]: *** [drivers/usb/core/driver.o] Error 1
make[3]: *** Waiting for unfinished jobs....
CC drivers/usb/gadget/android.o
scripts/Makefile.build:443: recipe for target 'drivers/usb/core' failed
make[2]: *** [drivers/usb/core] Error 2
make[2]: *** Waiting for unfinished jobs....
CC drivers/video/msm/mdss/mdss_fb.o
LD drivers/video/msm/mdss/mdss-mdp.o
LD drivers/video/msm/mdss/mdss-dsi.o
LD drivers/video/msm/mdss/built-in.o
LD drivers/video/msm/built-in.o
LD drivers/video/built-in.o
LD drivers/usb/gadget/g_android.o
LD drivers/usb/gadget/built-in.o
scripts/Makefile.build:443: recipe for target 'drivers/usb' failed
make[1]: *** [drivers/usb] Error 2
Makefile:950: recipe for target 'drivers' failed
make: *** [drivers] Error 2

Related

[Q] problem with building kernel[solved]

Hi every one I have a problem with compiling zImage of a3000 kernel so i enter these coomands:
Code:
export TARGET_BUILD_VARIANT=eng TARGET_PRODUCT=a3000_prc_3gfull MTK_ROOT_CUSTOM=/mediatek/custom/ TARGET_KERNEL_VERSION=3.4.5 &&export PATH=arm-eabi-linaro-4.6.2/bin/:$PATH&&export CROSS_COMPILE=arm-eabi-&&export ARCH=arm
then for setup:
Code:
make menuconfigscripts/kconfig/mconf Kconfig
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
I don't touch configurations.
problem is here
Code:
[B][SIZE="4"][U]make zImage[/U][/SIZE][/B]
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC arch/arm/kernel/asm-offsets.s
In file included from include/linux/timex.h:174:0,
from include/linux/sched.h:57,
from arch/arm/kernel/asm-offsets.c:13:
[B][U][SIZE="4"][COLOR="black"][COLOR="Red"]/media/***/****/kernel/arch/arm/include/asm/timex.h:15:24: fatal error: mach/timex.h: No such file or directory
compilation terminated.
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2[/COLOR][/COLOR][/SIZE][/U][/B]

Compile kernel

Is this guide enough for making kernel for android: http://forum.xda-developers.com/android/software/ultimate-guide-compile-android-kernel-t2871276
Not really.
http://xda-university.com/as-a-developer/getting-started-building-a-kernel-from-source
Even this one you should look at as a advertisement for a good book that is free.
You need to read that book along side with going truth complete source on your git to get to know infrastructure & only after that you can go ahead with device specific not to get stuck to much & truly knowing what are you doing. When you do those two you are ready for costimizing & porting naturally counting on that you have a basic coding knowledge all redy. No shortcuts there.
I have problem.I am using linaro-arm-eabi-4.9.When I execute command -j3 it says:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
CC scripts/mod/empty.o
/opt/toolchains/arm-eabi-4.6/bin/arm-eabi-gcc: No such file or directory
Is your PATH set correctly?
scripts/Makefile.build:307: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 2
scripts/Makefile.build:443: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
Makefile:510: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
CC kernel/bounds.s
/opt/toolchains/arm-eabi-4.6/bin/arm-eabi-gcc: No such file or directory
Is your PATH set correctly?
/media/sf_gti9301i/GT-I9301I_KK_Opensource/Kernel/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 2
Makefile:990: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
@Pavlex4
You need to set the correct path to the tool chain in the makefile
Best Regards

S3 Neo voltage regulators

Can this voltage and current regulators enable 5V for OTG support:
http://postimg.org/image/5tz9sq3k1/
http://postimg.org/image/cjkigpqwx/
http://postimg.org/image/3vykulf9d/
It will be nice - if you add it to the kernel.
The new kernel is coming ?
I tried do a new but always ERROR 2 in Ubuntu
nalas said:
It will be nice - if you add it to the kernel.
The new kernel is coming ?
I tried do a new but always ERROR 2 in Ubuntu
Click to expand...
Click to collapse
I also have error.
When I run command make -j3 I get error:
scripts/kconfig/conf --silentoldconfig Kconfig
sound/soc/codecs/audience/Kconfig:40:warning: type of 'SND_SOC_ES_SLIM' redefined from 'boolean' to 'tristate'
sound/soc/codecs/audience/Kconfig:43:warning: type of 'SND_SOC_ES_I2C' redefined from 'boolean' to 'tristate'
sound/soc/codecs/audience/Kconfig:44:warning: choice value used outside its choice group
sound/soc/codecs/audience/Kconfig:41:warning: choice value used outside its choice group
warning: (SND_SOC_MSM8226) selects DOLBY_DAP which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_MSM8974)
warning: (SND_SOC_MSM8226) selects DOLBY_DAP which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_MSM8974)
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: Nothing to be done for 'arch/arm/boot/dtbs'.
make[1]: 'include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC arch/arm/mach-msm/board-dt.o
CC arch/arm/mach-msm/sec-switch.o
LD drivers/base/regmap/built-in.o
LD drivers/base/built-in.o
arch/arm/mach-msm/sec-switch.c:818:16: error: redefinition of 'midas_switch_show_vbus'
arch/arm/mach-msm/sec-switch.c:226:16: note: previous definition of 'midas_switch_show_vbus' was here
arch/arm/mach-msm/sec-switch.c:838:16: error: redefinition of 'midas_switch_store_vbus'
arch/arm/mach-msm/sec-switch.c:246:16: note: previous definition of 'midas_switch_store_vbus' was here
arch/arm/mach-msm/sec-switch.c:884:1: error: redefinition of 'dev_attr_disable_vbus'
arch/arm/mach-msm/sec-switch.c:292:1: note: previous definition of 'dev_attr_disable_vbus' was here
arch/arm/mach-msm/sec-switch.c:940:21: error: redefinition of 'sec_booster'
arch/arm/mach-msm/sec-switch.c:348:21: note: previous definition of 'sec_booster' was here
arch/arm/mach-msm/sec-switch.c:946:19: error: redefinition of 'midas_sec_switch_init'
arch/arm/mach-msm/sec-switch.c:354:19: note: previous definition of 'midas_sec_switch_init' was here
arch/arm/mach-msm/sec-switch.c:983:5: error: redefinition of 'current_cable_type'
arch/arm/mach-msm/sec-switch.c:391:5: note: previous definition of 'current_cable_type' was here
arch/arm/mach-msm/sec-switch.c: In function 'max77804k_muic_mhl_cb':
arch/arm/mach-msm/sec-switch.c:1235:18: error: 'MAX77804K_MUIC_ATTACHED' undeclared (first use in this function)
arch/arm/mach-msm/sec-switch.c:1235:18: note: each undeclared identifier is reported only once for each function it appears in
arch/arm/mach-msm/sec-switch.c: At top level:
arch/arm/mach-msm/sec-switch.c:1348:8: error: variable 'max77804k_muic' has initializer but incomplete type
arch/arm/mach-msm/sec-switch.c:1349:2: error: unknown field 'usb_cb' specified in initializer
arch/arm/mach-msm/sec-switch.c:1349:2: warning: excess elements in struct initializer [enabled by default]
error, forbidden warning: sec-switch.c:1349
scripts/Makefile.build:307: recipe for target 'arch/arm/mach-msm/sec-switch.o' failed
make[1]: *** [arch/arm/mach-msm/sec-switch.o] Error 1
Makefile:950: recipe for target 'arch/arm/mach-msm' failed
make: *** [arch/arm/mach-msm] Error 2
make: *** Waiting for unfinished jobs....
CC sound/soc/codecs/wcd9306.o
CC sound/soc/codecs/wcd9306-tables.o
CC sound/soc/codecs/wcd9xxx-resmgr.o
LD drivers/gpio/built-in.o
CC sound/soc/codecs/wcd9xxx-mbhc.o
LD drivers/leds/built-in.o
LD drivers/input/touchscreen/built-in.o
LD drivers/input/built-in.o
LD sound/soc/codecs/snd-soc-wcd9306.o
LD sound/soc/codecs/snd-soc-msm-stub.o
LD sound/soc/codecs/built-in.o
CC sound/soc/msm/msm8226.o
CC drivers/mfd/sm501.o
CC drivers/misc/max77888-muic.o
CC sound/soc/msm/qdsp6v2/msm-dai-q6-v2.o
CC drivers/mfd/tps65010.o
CC drivers/mfd/twl-core.o
LD sound/soc/msm/qdsp6v2/snd-soc-qdsp6v2.o
CC drivers/misc/max77828-muic.o
LD sound/soc/msm/qdsp6v2/built-in.o
CC drivers/mfd/twl4030-irq.o
LD sound/soc/msm/snd-soc-qdsp6v2.o
LD sound/soc/msm/snd-soc-msm8226.o
LD sound/soc/msm/snd-soc-hostless-pcm.o
LD sound/soc/msm/built-in.o
CC drivers/mfd/twl6030-irq.o
LD sound/soc/built-in.o
LD sound/built-in.o
CC drivers/mfd/twl4030-madc.o
LD drivers/misc/built-in.o
drivers/misc/max77828-muic.o: In function `get_switch_sel':
/home/toor/Desktop/GT-I9301I_KK_Opensource/Kernel/drivers/misc/max77828-muic.c:223: multiple definition of `get_switch_sel'
drivers/misc/max77888-muic.o:/home/toor/Desktop/GT-I9301I_KK_Opensource/Kernel/drivers/misc/max77888-muic.c:205: first defined here
drivers/misc/max77828-muic.o: In function `powered_otg_control':
/home/toor/Desktop/GT-I9301I_KK_Opensource/Kernel/drivers/misc/max77828-muic.c:1854: multiple definition of `powered_otg_control'
drivers/misc/max77888-muic.o:/home/toor/Desktop/GT-I9301I_KK_Opensource/Kernel/drivers/misc/max77888-muic.c:1951: first defined here
drivers/misc/max77828-muic.o: In function `muic_otg_control':
/home/toor/Desktop/GT-I9301I_KK_Opensource/Kernel/drivers/misc/max77828-muic.c:1845: multiple definition of `muic_otg_control'
drivers/misc/max77888-muic.o:/home/toor/Desktop/GT-I9301I_KK_Opensource/Kernel/drivers/misc/max77888-muic.c:1942: first defined here
CC drivers/mfd/twl4030-power.o
scripts/Makefile.build:375: recipe for target 'drivers/misc/built-in.o' failed
make[2]: *** [drivers/misc/built-in.o] Error 1
scripts/Makefile.build:443: recipe for target 'drivers/misc' failed
make[1]: *** [drivers/misc] Error 2
make[1]: *** Waiting for unfinished jobs....
CC drivers/mfd/ezx-pcap.o
CC drivers/mfd/wcd9xxx-core.o
drivers/mfd/ezx-pcap.c: In function 'pcap_isr_work':
drivers/mfd/ezx-pcap.c:205:2: error: implicit declaration of function 'irq_to_gpio' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
scripts/Makefile.build:307: recipe for target 'drivers/mfd/ezx-pcap.o' failed
make[2]: *** [drivers/mfd/ezx-pcap.o] Error 1
make[2]: *** Waiting for unfinished jobs....
scripts/Makefile.build:443: recipe for target 'drivers/mfd' failed
make[1]: *** [drivers/mfd] Error 2
Makefile:950: recipe for target 'drivers' failed
make: *** [drivers] Error 2
Error 2 - too.
I think this is problem with some path .
I have everythink installed what is nessesary.
nalas said:
Error 2 - too.
I think this is problem with some path .
I have everythink installed what is nessesary.
Click to expand...
Click to collapse
Do you know how to solve this problem?
not yet I still looking for it in google but every video have not this problem
nalas said:
not yet I still looking for it in google but every video have not this problem
Click to expand...
Click to collapse
Does this have to be installed?
Current Minimal Requirements
============================
Upgrade to at *least* these software revisions before thinking you've
encountered a bug! If you're unsure what version you're currently
running, the suggested command should tell you.
Again, keep in mind that this list assumes you are already functionally
running a Linux kernel. Also, not all tools are necessary on all
systems; obviously, if you don't have any ISDN hardware, for example,
you probably needn't concern yourself with isdn4k-utils.
o Gnu C 3.2 # gcc --version
o Gnu make 3.80 # make --version
o binutils 2.12 # ld -v
o util-linux 2.10o # fdformat --version
o module-init-tools 0.9.10 # depmod -V
o e2fsprogs 1.41.4 # e2fsck -V
o jfsutils 1.1.3 # fsck.jfs -V
o reiserfsprogs 3.6.3 # reiserfsck -V
o xfsprogs 2.6.0 # xfs_db -V
o squashfs-tools 4.0 # mksquashfs -version
o btrfs-progs 0.18 # btrfsck
o pcmciautils 004 # pccardctl -V
o quota-tools 3.09 # quota -V
o PPP 2.4.0 # pppd --version
o isdn4k-utils 3.1pre1 # isdnctrl 2>&1|grep version
o nfs-utils 1.0.5 # showmount --version
o procps 3.2.0 # ps --version
o oprofile 0.9 # oprofiled --version
o udev 081 # udevd --version
o grub 0.93 # grub --version || grub-install --version
o mcelog 0.6 # mcelog --version
o iptables 1.4.2 # iptables -V
Yhx - I check it.
I have Ubuntu 16.04 LTS and GCC 5.0 - maybe not compatible ...
make: /opt/toolchains/arm-eabi-4.6/bin/arm-eabi-gcc: Command not found
CHK include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/basic/fixdep
make[1]: 'include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
/bin/sh: 1: /opt/toolchains/arm-eabi-4.6/bin/arm-eabi-gcc: not found
/home/nala/S3NEO/kernel/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 127
Makefile:986: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
CC scripts/mod/empty.o
/bin/sh: 1: /opt/toolchains/arm-eabi-4.6/bin/arm-eabi-gcc: not found
scripts/Makefile.build:307: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 127
scripts/Makefile.build:443: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:506: recipe for target 'scripts' failed
make: *** [scripts] Error 2
Did you select right directory of toolchain?
nalas said:
Yhx - I check it.
I have Ubuntu 16.04 LTS and GCC 5.0 - maybe not compatible ...
make: /opt/toolchains/arm-eabi-4.6/bin/arm-eabi-gcc: Command not found
CHK include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/basic/fixdep
make[1]: 'include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
/bin/sh: 1: /opt/toolchains/arm-eabi-4.6/bin/arm-eabi-gcc: not found
/home/nala/S3NEO/kernel/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 127
Makefile:986: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
CC scripts/mod/empty.o
/bin/sh: 1: /opt/toolchains/arm-eabi-4.6/bin/arm-eabi-gcc: not found
scripts/Makefile.build:307: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 127
scripts/Makefile.build:443: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:506: recipe for target 'scripts' failed
make: *** [scripts] Error 2
Click to expand...
Click to collapse
Did you select right directory?
Pavlex4 said:
Did you select right directory?
Click to expand...
Click to collapse
I check it again but I'vo copiet it from arm-eabi- (file path) - thx
nalas said:
I check it again but I'vo copiet it from arm-eabi- (file path) - thx
Click to expand...
Click to collapse
Does this errors appear because of gcc?
Pavlex4 said:
Does this errors appear because of gcc?
Click to expand...
Click to collapse
Do you know how to downgrade version of gcc???
Find on github - google it.
Wysłane z mojego SM-G935F przy użyciu Tapatalka
nalas said:
Find on github - google it.
Wysłane z mojego SM-G935F przy użyciu Tapatalka
Click to expand...
Click to collapse
Did you try to compile kernel with gcc 3.2???

Roms and device tree

I'm looking for a device tree and maybe some help as I want to build lineage or RR for this device
For the people that is unlocked.it should work on any device but I'll need trees I have ta1000 and 1025.any others I can get (device trees) to bring on development.
1021 is the EU tree...but didnt know where to get it
Gesendet von meinem TA-1021 mit Tapatalk
You can start with kernel, sources are open.
Can not use the files from system.img for rom ?
You can use mine : https://github.com/NokiaCustoms
pirrat25 said:
You can use mine : https://github.com/NokiaCustoms
Click to expand...
Click to collapse
Thank you imma try building something
RomLord14495 said:
Thank you imma try building something
Click to expand...
Click to collapse
Have you build anything successful? Could you share it?
I need help!!!
I'm trying to compile Nokia 6 kernel. But I stuck in this error. I'm learning to compile Kernel source. Please help me!
PHP:
[email protected]:/home/levu/Desktop/LINUX/android/kernel# make -j2
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
LD drivers/usb/gadget/libcomposite.o
CC drivers/usb/gadget/android.o
CC drivers/video/fbdev/msm/../../msm/msm_dba/msm_dba.o
In file included from drivers/usb/gadget/android.c:47:0:
./drivers/usb/gadget/function/f_midi.c:35:17: fatal error: u_f.h: No such file or directory
#include "u_f.h"
^
compilation terminated.
make[3]: drivers/video/fbdev/msm/../../msm/msm_dba/msm_dba.c:25:30: fatal error: msm_dba_internal.h: No such file or directory
#include <msm_dba_internal.h>
^
compilation terminated.
*** [drivers/usb/gadget/android.o] Error 1
make[2]: *** [drivers/usb/gadget] Error 2
make[1]: *** [drivers/usb] Error 2
make[1]: *** Waiting for unfinished jobs....
make[6]: *** [drivers/video/fbdev/msm/../../msm/msm_dba/msm_dba.o] Error 1
make[5]: *** [drivers/video/fbdev/msm/../../msm/msm_dba] Error 2
make[4]: *** [drivers/video/fbdev/msm/../../msm] Error 2
make[3]: *** [drivers/video/fbdev/msm] Error 2
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [drivers/video/fbdev] Error 2
make[1]: *** [drivers/video] Error 2
make: *** [drivers] Error 2
[email protected]:/home/levu/Desktop/LINUX/android/kernel#
Elvaa said:
I need help!!!
I'm trying to compile Nokia 6 kernel. But I stuck in this error. I'm learning to compile Kernel source. Please help me!
PHP:
[email protected]:/home/levu/Desktop/LINUX/android/kernel# make -j2
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
LD drivers/usb/gadget/libcomposite.o
CC drivers/usb/gadget/android.o
CC drivers/video/fbdev/msm/../../msm/msm_dba/msm_dba.o
In file included from drivers/usb/gadget/android.c:47:0:
./drivers/usb/gadget/function/f_midi.c:35:17: fatal error: u_f.h: No such file or directory
#include "u_f.h"
^
compilation terminated.
make[3]: drivers/video/fbdev/msm/../../msm/msm_dba/msm_dba.c:25:30: fatal error: msm_dba_internal.h: No such file or directory
#include <msm_dba_internal.h>
^
compilation terminated.
*** [drivers/usb/gadget/android.o] Error 1
make[2]: *** [drivers/usb/gadget] Error 2
make[1]: *** [drivers/usb] Error 2
make[1]: *** Waiting for unfinished jobs....
make[6]: *** [drivers/video/fbdev/msm/../../msm/msm_dba/msm_dba.o] Error 1
make[5]: *** [drivers/video/fbdev/msm/../../msm/msm_dba] Error 2
make[4]: *** [drivers/video/fbdev/msm/../../msm] Error 2
make[3]: *** [drivers/video/fbdev/msm] Error 2
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [drivers/video/fbdev] Error 2
make[1]: *** [drivers/video] Error 2
make: *** [drivers] Error 2
[email protected]:/home/levu/Desktop/LINUX/android/kernel#
Click to expand...
Click to collapse
You need to make those directorys
Rom nokia 6 TA 1003 ( .nb0 )
DJxSpeedy said:
1021 is the EU tree...but didnt know where to get it
Gesendet von meinem TA-1021 mit Tapatalk
Click to expand...
Click to collapse
Friend, I need the rom, nokia 6 TA-1003 (.nb0) I searched the internet, I could not find, you can indicate a link, thank you.:confuso:

Exec format error when building Google Kernel for Nexus 7 2012

Hi,
I am trying to build kernel for Nexus 7 (2012) but it is giving my exec format error. The commands and the errors are shown below:
Code:
LIFEBOOK-S761:~/Desktop$ git clone https://android.googlesource.com/kernel/tegra.git
Cloning into 'tegra'...
remote: Sending approximately 758.70 MiB ...
remote: Counting objects: 102, done
remote: Finding sources: 100% (8/8)
remote: Total 4341886 (delta 3657743), reused 4341880 (delta 3657743)
Receiving objects: 100% (4341886/4341886), 758.70 MiB | 10.87 MiB/s, done.
Resolving deltas: 100% (3657743/3657743), done.
LIFEBOOK-S761:~/Desktop$ cd tegra/
LIFEBOOK-S761:~/Desktop/tegra$ git checkout android-tegra3-grouper-3.1-kitkat-mr2
Checking out files: 100% (38132/38132), done.
Branch 'android-tegra3-grouper-3.1-kitkat-mr2' set up to track remote branch 'android-tegra3-grouper-3.1-kitkat-mr2' from 'origin'.
Switched to a new branch 'android-tegra3-grouper-3.1-kitkat-mr2'
LIFEBOOK-S761:~/Desktop/tegra$ export ARCH=arm
LIFEBOOK-S761:~/Desktop/tegra$ export SUBARCH=arm
LIFEBOOK-S761:~/Desktop/tegra$ export CROSS_COMPILE=/home/user/Desktop/arm-eabi-4.6/bin/arm-eabi-
LIFEBOOK-S761:~/Desktop/tegra$ make tegra3_android_defconfig
#
# configuration written to .config
#
LIFEBOOK-S761:~/Desktop/tegra$ make -j4
/home/user/Desktop/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/user/Desktop/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
scripts/kconfig/conf --silentoldconfig Kconfig
/home/user/Desktop/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/user/Desktop/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
CHK include/linux/version.h
UPD include/linux/version.h
HOSTCC scripts/kallsyms
CC scripts/mod/empty.o
/bin/sh: 1: /home/user/Desktop/arm-eabi-4.6/bin/arm-eabi-gcc: Exec format error
scripts/Makefile.build:305: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 2
scripts/Makefile.build:441: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/selinux/mdp/mdp
Makefile:506: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
Can you please tell what I might be doing wrong or what could be the problem?

Categories

Resources