[Q] problem with building kernel[solved] - A3000 Q&A, Help & Troubleshooting

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]

Related

kernel build and "please run 'make mrproper'"

I'm building kernel on Ubuntu 14.04
To build kernel...
1. make mrproper (delete config files..)
2. make menuconfig (create new config files..)
3. mp dev (compile and build kernel)
and, after mp dev
CHK include/generated/utsrelease.h
Using /root/shield-open-source_1/kernel as source for kernel
/root/shield-open-source_1/kernel is not clean, please run 'make mrproper'
in the '/root/shield-open-source_1/kernel' directory.
make[2]: *** [prepare3] Error 1
make[2]: *** Waiting for unfinished jobs....
UPD include/generated/utsrelease.h
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/root/shield-open-source_1/kernel'
dmake: *** [/root/shield-open-source_1/out/target/product/t210/obj/KERNEL/arch/arm64/boot/Image] Error 2
make: *** Waiting for unfinished jobs....
I changed menuconfig ex) randconfig, defconfig etc...
but this >please run 'make mrproper'< message always appear!
plz help what should I do..
Remove your .config file from your root directory. That's normally what will cause that error. You need a clean unmodified file tree.

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

OmniRom 6.0.1 error while building help !

anyone help please i cant fix it...
Code:
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
make[1]: Leaving directory `/home/ibrahim/wave/kernel/samsung/aries'
make -C kernel/samsung/aries O=/home/ibrahim/wave/out/target/product/wave/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" "/home/ibrahim/wave/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/"/arm-eabi-" dtbs
make[1]: Entering directory `/home/ibrahim/wave/kernel/samsung/aries'
make[2]: *** No rule to make target `dtbs'. Stop.
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/ibrahim/wave/kernel/samsung/aries'
make: [TARGET_KERNEL_BINARIES] Error 2 (ignored)
make -C kernel/samsung/aries O=/home/ibrahim/wave/out/target/product/wave/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" "/home/ibrahim/wave/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/"/arm-eabi-" modules
make[1]: Entering directory `/home/ibrahim/wave/kernel/samsung/aries'
CHK include/linux/version.h

MIUI Porting error Huawei P9 Please help!

Hello all! Last day i trying to port miui for Huawei P9 Stock 6.0 base,but it fails... Anyone help me please?
W/ResourceType(26253): ResTable_typeSpec entry count inconsistent: given 248, previously 1
/home/nexti/MIUI/tools/apktool --quiet if -p out/apktool out/framework-ext-res.apk
<<< build out/framework-ext-res.apk completed!
Copy: out/framework-ext-res.apk to out/ZIP/system/framework/framework-ext-res/framework-ext-res.apk
/home/nexti/MIUI/tools/apktool --quiet d -f /home/nexti/MIUI/miui/system/framework/framework.jar -o out/framework_miui
>>> build out/framework.jar...
cp: stat 'framework.jar.out/' sikertelen: Nincs ilyen fájl vagy könyvtár
/home/nexti/MIUI/build/porting.mk:179: recipe for target 'out/framework.jar' failed
make[1]: *** [out/framework.jar] Error 1
make[1]: Leaving directory '/home/nexti/MIUI/eva'
Makefile:8: recipe for target 'otapackage' failed
make: *** [otapackage] Error 2
[email protected]:~/MIUI$ make otapackage
make -C /home/nexti/MIUI/eva otapackage
make[1]: Entering directory '/home/nexti/MIUI/eva'
To add prebuilt files
mv: stat 'out/ZIP/system/bin/app_process64_miui' sikertelen: Nincs ilyen fájl vagy könyvtár
/home/nexti/MIUI/build/prebuilt.mk:6: recipe for target 'add-prebuilt-files' failed
make[1]: [add-prebuilt-files] Error 1 (ignored)
To add preintall files
Add miui prebuilt completed!
>>> build out/framework.jar...
cp: stat 'framework.jar.out/' sikertelen: Nincs ilyen fájl vagy könyvtár
/home/nexti/MIUI/build/porting.mk:179: recipe for target 'out/framework.jar' failed
make[1]: *** [out/framework.jar] Error 1
make[1]: Leaving directory '/home/nexti/MIUI/eva'
Makefile:8: recipe for target 'otapackage' failed
make: *** [otapackage] Error 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:

Categories

Resources