I Compile the Huawei u8825d Kernel with GCC 4.7.x in ubuntu 13.04
add "#pragma GCC diagnostic ignored "-Wunused-value"" in some file then compile success
but the kernel can't boot
it just get stuck on the frist screen and then restarts itself
i can't get any log for the errors
someone can help how to get the log when the kernel can't boot
papersnake said:
I Compile the Huawei u8825d Kernel with GCC 4.7.x in ubuntu 13.04
add "#pragma GCC diagnostic ignored "-Wunused-value"" in some file then compile success
but the kernel can't boot
it just get stuck on the frist screen and then restarts itself
i can't get any log for the errors
someone can help how to get the log when the kernel can't boot
Click to expand...
Click to collapse
Try gcc 4.4.3 first some device fails to boot on gcc > 4.6 and make sure about config for your device.
Related
Hello,
I am trying to build the faux123 Atrix 4g CM_kernel from source and run it on my device. I have been able to load the pre-compiled zImage and ramdisk on my atrix without any problems, but when I try to load the zImage I compiled the system never boots. The screen stays locked on the fastboot message without ever advancing.
I am using the code sorcery toolchain and I compiled the kernel with the tegra_olympus_cyanogenmod_defconfig configuration and I grabbed the latest version of the CM_kernel branch from faux123's github repository.
Part of the difficulty is that the system never gets to a point where it can output information, so I have no idea how far it is making it in the boot sequence.
Any help debugging this is appreciated.
I got it to work. I changed to the android ndk toolchain (android-ndk-r6) for my cross compiler and it worked. Here is what I did:
$ make ARCH=arm tegra_olympus_cyanogenmod_defconfig
$ make ARCH=arm CROSS_COMPILE=/home/kingst/NVPACK/android-ndk-r6/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- -j20
the -j20 tells the compiler to use 20 jobs (rule of thumb -- use #cpu*2 for this) and the CROSS_COMPILE parameter tells kbuild the prefix of my cross compiler.
I did have to change a few things to get it to work, I will submit a patch to the faux123 kernel for the change
Update: if you use the arm-2010.09 toochain from code sourcery then you can compile the faux123 CM_kernel without any modifications. This is the toolchain being used for official builds, so it is the best one to use.
as the title asks if how do i compile the GCC 4.6.3 package into a working toolchain source??any guide or reference would be a great help..
am on Ubuntu 12.04 LTS..and i have downloaded the package already..
I'm trying to compile a rom for micromax a116 and I'm having trouble with the kernel sources... The sources don't have a defconfig file.. Its very different from other samsung device sources that I've seen before..
Sources :
https://github.com/zeetherocker/android_device_micromax_a116
https://github.com/zeetherocker/android_vendor_micromax_a116
https://github.com/zeetherocker/android_kernel_micromax_a116
When I try to compile it gives me error..!!
And I googled about it and found that these kernels have to be pre-built or something using these instructions...
Code:
Set toolchain path and compile with this command: TARGET_PRODUCT=wiko TARGET_BUILD_VARIANT=user MTK_ROOT_CUSTOM=../mediatek/custom/ make
and then patch zImage using mkimage tool located in mediatek/build/tools using this command: ./mkimage zImage KERNEL > zImage_patched
Repack zImage_patched with stock ramdisk to get boot.img.
Strip all built modules: make INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=./out/wiko/system INSTALL_MOD_DIR=./out/wiko/system android_modules_install
And then flash boot.img + modules from kernel/out/system/lib/modules !
I'm having troubles with those commands...
The first command TARGET_PRODUCT=wiko TARGET_BUILD_VARIANT=user MTK_ROOT_CUSTOM=../mediatek/custom/ make
Gave me an error : make: *** No targets specified and no makefile found. Stop.
I don't know how to build this kernel
And even if I build it...I don't know how to use this pre-built kernel to build my rom...
Thanks in advance...
Hi all,
Recently I have issues with building a zenfone kernel in uBuntu Trusty Tahr.
When I ran "make openssl", I got this error:
x86_64-linux-android-gcc: error: unrecognized command line option '-fno-canonical-system-headers'
make: *** [/out/zenfone-ze551ml/target/product/generic_x86/obj/STATIC_LIBRARIES/third_party_openssl_openssl_gyp_intermediates/third_party/openssl/openssl/crypto/aes/asm/aes-586.o] Error 1
Click to expand...
Click to collapse
and the compilation process stopped.
I have been searching to many forums but fail to find the solution to this problem.
Could you help me?
The gcc --version is gcc (Ubuntu 4.8.4-2ubuntu1~14.04.1) 4.8.4
leenakeenev said:
Hi all,
Recently I have issues with building a zenfone kernel in uBuntu Trusty Tahr.
When I ran "make openssl", I got this error:
and the compilation process stopped.
I have been searching to many forums but fail to find the solution to this problem.
Could you help me?
The gcc --version is gcc (Ubuntu 4.8.4-2ubuntu1~14.04.1) 4.8.4
Click to expand...
Click to collapse
U built for Lollipop or Marshmallow? And go to your prebuilts/gcc toolchain folder, then execute this below command to correct gcc version as suggested by ASUS "git checkout tools_r22.2"
Sent from my ASUS_Z00AD using Tapatalk
quanganh2627 said:
U built for Lollipop or Marshmallow? And go to your prebuilts/gcc toolchain folder, then execute this below command to correct gcc version as suggested by ASUS "git checkout tools_r22.2"
Sent from my ASUS_Z00AD using Tapatalk
Click to expand...
Click to collapse
I built it for Lollipop 5.0.0 (android-5.0.0_r7).
Git checkout tools_r22.2 doesn't work as it always says "error: pathspec 'tools_r22.2' did not match any file(s) known to git."
So according to this topic: asus.com/zentalk/forum.php?mod=viewthread&tid=7537 I downloaded the "tool_r22.2.tgz" tools from the page instead.
However it doesn't solve the problem.
sr, not read carefully. u followed Asus Readme in kernel package , didn't u? maybe they forgot to update that guide, "tools_r22.2" is deprecated of gcc4.7 and prior only, now at gcc4.8 or 4.9 on Aosp haven't got it, but u can use "lollipop-released" or "android-5.0.0_r7". And make sure ur local repo have "external/openssl" inside.
Sent from my ASUS_Z00AD using Tapatalk
Hey, i was trying to compile kernel from these ( https://github.com/ashwinr64/android_kernel_xiaomi_oxygen/tree/cm-14.1-clean?files=1) sources (cm 14.1 clean branch) without any modification and I'm getting an error with zsmalloc.o. I have used lineageos_oxygen_defconfig and I was following this thread https://forum.xda-developers.com/an...erence-how-to-compile-android-kernel-t3627297 Could you help me?
I'm using Ubuntu 16, Google's toolchain (gcc 4.9), Java installed
Log of compilation:
https://del.dog/yubunuguza.php