Compiling Kernel - Xiaomi Redmi Note 3 Questions & Answers

I tried to compile kernel from official CM github, but I end up with this errors:
Code:
make[1]: Nothing to be done for 'dtbs'.
make[1]: Nothing to be done for 'dtbs'.
GZIP arch/arm64/boot/Image.gz
make[1]: *** No rule to make target 'arch/arm64/boot/dts/msm8956-mtp.dtb', needed by 'arch/arm64/boot/Image.gz-dtb'. Stop.
/home/yaw/android/kenzo/android_kernel_xiaomi_msm8956/arch/arm64/Makefile:84: recipe for target 'Image.gz-dtb' failed
make: *** [Image.gz-dtb] Error 2
Anyone can help me fix this error?
Million Thanks

in your defconfig,disable "build_appended_dtb".
and build dtb seperately.

neonkat said:
in your defconfig,disable "build_appended_dtb".
and build dtb seperately.
Click to expand...
Click to collapse
thanks... it worked...
Now I got "Image" and "dt.img"
but still cannot boot... strange thing is my generated wlan.ko is way bigger (60MB) than other kernel (5MB)
Any help?

aabenroi said:
thanks... it worked...
Now I got "Image" and "dt.img"
but still cannot boot... strange thing is my generated wlan.ko is way bigger (60MB) than other kernel (5MB)
Any help?
Click to expand...
Click to collapse
use anykernel script.(take help from existing kernels)
disable CONFIG_DEBUG_INFO,it will become 5-10 mb.
don't say thanks,this is xda,we have a thanks button,feel free to break that.

neonkat said:
use anykernel script.(take help from existing kernels)
disable CONFIG_DEBUG_INFO,it will become 5-10 mb.
don't say thanks,this is xda,we have a thanks button,feel free to break that.
Click to expand...
Click to collapse
:good: okay... pressed the button
wlan.ko looks fine now... but the Image still not boot (I've tried anykernel in both @ktomov and @Umang96 kernel)
Is there something I need to change again ?

Related

Help with Compiling error please.

I am compiling a custom kernel for CM using cm source and a few other minor tweaks from others, and myself, and I am getting an error having to do with the bcm4329 while compiling.
I am pretty new to c programing and compiling and am not sure how to fix this error any help is greatly appreciated.
cc1: warnings being treated as errors
drivers/net/wireless/bcm4329/wl_iw.c: In function 'wl_iw_set_ap_security.clone.0':
drivers/net/wireless/bcm4329/wl_iw.c:4881: error: 'output' may be used uninitialized in this function
make[4]: *** [drivers/net/wireless/bcm4329/wl_iw.o] Error 1
make[3]: *** [drivers/net/wireless/bcm4329] Error 2
make[2]: *** [drivers/net/wireless] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
Gr8gorilla said:
I am compiling a custom kernel for CM using cm source and a few other minor tweaks from others, and myself, and I am getting an error having to do with the bcm4329 while compiling.
I am pretty new to c programing and compiling and am not sure how to fix this error any help is greatly appreciated.
cc1: warnings being treated as errors
drivers/net/wireless/bcm4329/wl_iw.c: In function 'wl_iw_set_ap_security.clone.0':
drivers/net/wireless/bcm4329/wl_iw.c:4881: error: 'output' may be used uninitialized in this function
make[4]: *** [drivers/net/wireless/bcm4329/wl_iw.o] Error 1
make[3]: *** [drivers/net/wireless/bcm4329] Error 2
make[2]: *** [drivers/net/wireless] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
Click to expand...
Click to collapse
have you modified the wlan source at all?
if not, repull down the source fresh, and then re-merge your changes in.
havn't modified the wlan source at all, so I will repull and try again, will report back. Thanks.
Ok i got the kernel compiled and now I I want to compile the .ko for the wireless, can I get a little help with that?
Gr8gorilla said:
Ok i got the kernel compiled and now I I want to compile the .ko for the wireless, can I get a little help with that?
Click to expand...
Click to collapse
If u ran a make, it was compiled.
Pick it up in drivers/net/wireless/bcm4329
I ran the make command from the cyanogen wiki, and used make ARCH=arm command and the wireless driver is not in the file it is supposed to be in.
Gr8gorilla said:
I ran the make command from the cyanogen wiki, and used make ARCH=arm command and the wireless driver is not in the file it is supposed to be in.
Click to expand...
Click to collapse
Pass this to make:
Foldertoputmodulesin/ modules_install
Then you'll see your modules in there.
Gr8gorilla,
What did you do to get the kernel to compile? I'm getting the same error with a fresh pull.
If you check out my overclock how to, I take you step by step through making a kernel.
Gr8gorilla said:
If you check out my overclock how to, I take you step by step through making a kernel.
Click to expand...
Click to collapse
I still get the compile error after I followed the guide except I didn't use your modified files; I'm not overvolting or overclocking.
For what its worth, if I remove the bcm4329 kernel module from the config then it builds fine and is running stable on my Nexus One, albeit, without wifi.
Nevermind, apparently there was something wrong with my kernel config.
how long ago did you resync your repo? I had a compile error today that is involving some of the new changes there was a new option when doing old config, I hit yes the first time and had an error, no wifi driver, but a boot image. Second time I hit enter and it compiled fine.

[Q] Error when building CM7

Anyone seen this error before? It has me stumped!
Code:
make: *** No rule to make target `device/htc/lexikon/prebuilt/kernel', needed by `out/target/product/lexikon/recovery.img'. Stop.
MandaNick said:
Anyone seen this error before? It has me stumped!
Code:
make: *** No rule to make target `device/htc/lexikon/prebuilt/kernel', needed by `out/target/product/lexikon/recovery.img'. Stop.
Click to expand...
Click to collapse
You have no prebuilt kernel in your device tree.
But I do have the zImage file there in "device/htc/lexikon/prebuilt/kernel" Do I need to name it "kernel"?
MandaNick said:
But I do have the zImage file there in "device/htc/lexikon/prebuilt/kernel" Do I need to name it "kernel"?
Click to expand...
Click to collapse
Yes

CM10 error [HELP]

I have thought of every possible way. The last way is to delete the lines but i need ur help to fix it
the error is
Code:
target arm C: libz <= external/zlib/adler32.c
In file included from external/zlib/zlib.h:34:0,
from external/zlib/zutil.h:24,
from external/zlib/adler32.c:9:
external/zlib/zconf.h:395:22: fatal error: limits.h: No such file or directory
compilation terminated.
make: *** [/home/yajnavalkya/cm10/out/target/product/beni/obj/SHARED_LIBRARIES/libz_intermediates/adler32.o] Error 1
you are missin limits.h try repo sync and update your source !
keyur2maru said:
you are missin limits.h try repo sync and update your source !
Click to expand...
Click to collapse
I searched a lot but found nothing
yajnab said:
I searched a lot but found nothing
Click to expand...
Click to collapse
He said to repo sync and then retry...not search, you may have to do a make clean after the repo sync if it still doesn't work
Sent from my SGH-I997 using Tapatalk 2

Cannot get JB to compile

I've attempted to build two different sources, one modified ICS AOSP and another from straight up JB AOSP. Both err on me.
JB spits out the following:
make: *** No rule to make target `out/target/product/devicetest/obj/STATIC_LIBRARIES/lib_driver_cmd_wext_intermediates/export_includes', needed by `out/target/product/devicetest/obj/EXECUTABLES/wpa_supplicant_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
target thumb C: wpa_cli <= external/wpa_supplicant_8/wpa_supplicant/src/utils/edit.c
Click to expand...
Click to collapse
I'd prefer to get JB working, but would be satisfied with ICS for now.
I debugged a few other issues but cannot figure out these...
Help is appreciated.
I figured out a long while back my ICS problem was just the old GCC compiler was needed. ICS works great.
JB on the other hand still gives me fits.
I have no clue what's up with:
* No rule to make target `out/target/product/fundevice/obj/STATIC_LIBRARIES/lib_driver_cmd_wext_intermediates/export_includes', needed by `out/target/product/fundevice/obj/EXECUTABLES/wpa_supplicant_intermediates/import_includes'. Stop.
make: * Waiting for unfinished jobs...
Click to expand...
Click to collapse
Any thoughts?
Everything is present in the hardware and external directories... Don't know what's going on.
Did you got solution? I'm facing same problem. Compiling Slim Bean for Beni.
Code:
Import includes file: /home/rish/Android/slim_bean-4.2.2/out/target/product/beni/obj/EXECUTABLES/wfd_intermediates/import_includes
Export includes file: frameworks/av/media/libstagefright/wifi-display/Android.mk -- /home/rish/Android/slim_bean-4.2.2/out/target/product/beni/obj/EXECUTABLES/wfd_intermediates/export_includes
Import includes file: /home/rish/Android/slim_bean-4.2.2/out/target/product/beni/obj/EXECUTABLES/wpa_cli_intermediates/import_includes
make: *** No rule to make target `/home/rish/Android/slim_bean-4.2.2/out/target/product/beni/obj/STATIC_LIBRARIES/lib_driver_cmd_wext_intermediates/export_includes', needed by `/home/rish/Android/slim_bean-4.2.2/out/target/product/beni/obj/EXECUTABLES/wpa_supplicant_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
The-Superman said:
Did you got solution? I'm facing same problem. Compiling Slim Bean for Beni.
Code:
Import includes file: /home/rish/Android/slim_bean-4.2.2/out/target/product/beni/obj/EXECUTABLES/wfd_intermediates/import_includes
Export includes file: frameworks/av/media/libstagefright/wifi-display/Android.mk -- /home/rish/Android/slim_bean-4.2.2/out/target/product/beni/obj/EXECUTABLES/wfd_intermediates/export_includes
Import includes file: /home/rish/Android/slim_bean-4.2.2/out/target/product/beni/obj/EXECUTABLES/wpa_cli_intermediates/import_includes
make: *** No rule to make target `/home/rish/Android/slim_bean-4.2.2/out/target/product/beni/obj/STATIC_LIBRARIES/lib_driver_cmd_wext_intermediates/export_includes', needed by `/home/rish/Android/slim_bean-4.2.2/out/target/product/beni/obj/EXECUTABLES/wpa_supplicant_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
I ended up finding working 4.2 source for the same chipset and copying the wpa suppicant folders over into my AOSP source.
crypted said:
I ended up finding working 4.2 source for the same chipset and copying the wpa suppicant folders over into my AOSP source.
Click to expand...
Click to collapse
eh? Can you elaborate more?
Where to define wpa_supplicant?
The-Superman said:
eh? Can you elaborate more?
Where to define wpa_supplicant?
Click to expand...
Click to collapse
I don't recall where it is, but I think it's in /framework/ somewhere. The files will be different per device.
so if anyone found fix
pls share
crypted said:
...
Click to expand...
Click to collapse
# root said:
...
Click to expand...
Click to collapse

[KERNEL] Some compile errors

Code:
Assembler messages:
arch/arm64/kernel/entry-fpsimd.S:53: Error: unexpected end of file in irp or irpc
/tmp/cczAQDmw.s: Error: local label `"0" (instance number 1 of a fb label)' is not defined
make[1]: *** [scripts/Makefile.build:344: arch/arm64/kernel/entry-fpsimd.o] Error 1
I got this error, I searched on Google but found nothing about it. I use Google's gcc-4.9 toolchain.
May anyone help me please?
Hi!
This is a preliminary suggestion, the ROM is not made for your phone.
CFCbazar said:
Hi!
This is a preliminary suggestion, the ROM is not made for your phone.
Click to expand...
Click to collapse
But I got this from Samsung OSS, just want to compile my device's kernel :/
Are you sure that you have the floating point configuration correct?
Code:
CONFIG_KERNEL_MODE_NEON
CONFIG_ENABLE_FP_SIMD_SETTINGS
Renate said:
Are you sure that you have the floating point configuration correct?
Code:
CONFIG_KERNEL_MODE_NEON
CONFIG_ENABLE_FP_SIMD_SETTINGS
Click to expand...
Click to collapse
I have CONFIG_KERNEL_MODE_ON as y on my defconfig but I don't have CONFIG_ENABLE_FP_SIMD_SETTINGS on my defconfig.
gorkemoji said:
But I got this from Samsung OSS, just want to compile my device's kernel :/
Click to expand...
Click to collapse
That's not a guarantee. It has happened before. Or you could try the steps from their site. Maybe you missed something.
Maybe the assembler and your FPU type don't agree.

Categories

Resources