FORUMS

[REFERENCE] How to compile an Android kernel

13,746 posts
Thanks Meter: 50,843
 
By nathanchance, Recognized Developer / Recognized Contributor on 26th June 2017, 04:38 AM
Post Reply Email Thread
8th August 2019, 09:00 PM |#601  
FSadino's Avatar
Retired Forum Moderator
Flag Blue River City
Thanks Meter: 4,711
 
Donate to Me
More
Quote:
Originally Posted by nathanchance

You will need https://github.com/nathanchance/marl...19b8e23b904aff for vdso32 support on 3.18.

Fixed vdso32

Now i´m at 31% with these error.
Remember that i reverted this commit because i don't have drivers/soc/qcom/smp2p_test.c in NitrogenOS project...

Code:
FAILED: TARGET_KERNEL_BINARIES 
/bin/bash -c "(PATH=/home/fsadino/Android_Build/NitrogenOS_pie/prebuilts/clang/host/linux-x86/clang-4691093/bin:\$PATH LD_LIBRARY_PATH=/home/fsadino/Android_Build/NitrogenOS_pie/prebuilts/clang/host/linux-x86/clang-4691093/lib64:\$LD_LIBRARY_PATH make -j8  CFLAGS_MODULE=\"-fno-pic\" -C kernel/oneplus/msm8996 O=/home/fsadino/Android_Build/NitrogenOS_pie/out/target/product/oneplus3/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"arm-linux-androideabi-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\" clang\" Image.gz-dtb ) && (if grep -q '^CONFIG_OF=y' /home/fsadino/Android_Build/NitrogenOS_pie/out/target/product/oneplus3/obj/KERNEL_OBJ/.config; then 			echo -e \"Building DTBs\" ; 			PATH=/home/fsadino/Android_Build/NitrogenOS_pie/prebuilts/clang/host/linux-x86/clang-4691093/bin:\$PATH LD_LIBRARY_PATH=/home/fsadino/Android_Build/NitrogenOS_pie/prebuilts/clang/host/linux-x86/clang-4691093/lib64:\$LD_LIBRARY_PATH make -j8  CFLAGS_MODULE=\"-fno-pic\" -C kernel/oneplus/msm8996 O=/home/fsadino/Android_Build/NitrogenOS_pie/out/target/product/oneplus3/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"arm-linux-androideabi-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\" clang\" dtbs; 		fi ) && (if grep -q '^CONFIG_MODULES=y' /home/fsadino/Android_Build/NitrogenOS_pie/out/target/product/oneplus3/obj/KERNEL_OBJ/.config; then 			echo -e \"Building Kernel Modules\" ; 			PATH=/home/fsadino/Android_Build/NitrogenOS_pie/prebuilts/clang/host/linux-x86/clang-4691093/bin:\$PATH LD_LIBRARY_PATH=/home/fsadino/Android_Build/NitrogenOS_pie/prebuilts/clang/host/linux-x86/clang-4691093/lib64:\$LD_LIBRARY_PATH make -j8  CFLAGS_MODULE=\"-fno-pic\" -C kernel/oneplus/msm8996 O=/home/fsadino/Android_Build/NitrogenOS_pie/out/target/product/oneplus3/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"arm-linux-androideabi-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\" clang\" modules; 		fi )"
make: Entering directory '/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996'
make[1]: Entering directory '/home/fsadino/Android_Build/NitrogenOS_pie/out/target/product/oneplus3/obj/KERNEL_OBJ'
  GEN     ./Makefile
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config/kernel.release
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/scripts/setlocalversion: linha 185: scm: comando não reconhecido
  UPD     include/config/kernel.release
  GEN     ./Makefile
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  Using /home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996 as source for kernel
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/sound/soc/codecs/tfa9890/tfa_container.c:291:7: error: logical not is only applied to the left hand side of this comparison [-Werror,-Wlogical-not-parentheses]
                if (!prof->list[i].type == dscRegister) {
                    ^                   ~~
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/sound/soc/codecs/tfa9890/tfa_container.c:291:7: note: add parentheses after the '!' to evaluate the comparison first
                if (!prof->list[i].type == dscRegister) {
                    ^
                     (                                )
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/sound/soc/codecs/tfa9890/tfa_container.c:291:7: note: add parentheses around left hand side expression to silence this warning
                if (!prof->list[i].type == dscRegister) {
                    ^
                    (                  )
1 error generated.
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/scripts/Makefile.build:265: recipe for target 'sound/soc/codecs/tfa9890/tfa_container.o' failed
make[4]: *** [sound/soc/codecs/tfa9890/tfa_container.o] Error 1
make[4]: ** Esperando que outros processos terminem.
  CC      kernel/trace/trace_stat.o
  LD      drivers/clocksource/built-in.o
  CC      kernel/trace/trace_printk.o
  CC      kernel/trace/trace_sched_switch.o
  LD      fs/kernfs/built-in.o
  CC      fs/nls/nls_base.o
  CC      fs/notify/fsnotify.o
  LD      drivers/clk/msm/mdss/built-in.o
  LD      drivers/clk/msm/built-in.o
  LD      drivers/clk/built-in.o
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/scripts/Makefile.build:410: recipe for target 'sound/soc/codecs' failed
make[3]: *** [sound/soc/codecs] Error 2
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/scripts/Makefile.build:410: recipe for target 'sound/soc' failed
make[2]: *** [sound/soc] Error 2
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/Makefile:974: recipe for target 'sound' failed
make[1]: *** [sound] Error 2
make[1]: ** Esperando que outros processos terminem.
  CC      drivers/media/platform/msm/camera_v2/common/cam_soc_api.o
In file included from /home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/drivers/input/touchscreen/synaptics_driver_s3320.c:2562:
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/drivers/input/touchscreen/fw_update_v7.if:1692:20: error: use of logical '&&' with constant operand [-Werror,-Wconstant-logical-operand]
        if (add_buf[4]>>5 && 0x2)
                          ^  ~~~
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/drivers/input/touchscreen/fw_update_v7.if:1692:20: note: use '&' for a bitwise operation
        if (add_buf[4]>>5 && 0x2)
                          ^~
                          &
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/drivers/input/touchscreen/fw_update_v7.if:1692:20: note: remove constant to silence this warning
        if (add_buf[4]>>5 && 0x2)
                         ~^~~~~~
1 error generated.
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/scripts/Makefile.build:265: recipe for target 'drivers/input/touchscreen/synaptics_driver_s3320.o' failed
make[4]: *** [drivers/input/touchscreen/synaptics_driver_s3320.o] Error 1
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/scripts/Makefile.build:410: recipe for target 'drivers/input/touchscreen' failed
make[3]: *** [drivers/input/touchscreen] Error 2
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/scripts/Makefile.build:410: recipe for target 'drivers/input' failed
make[2]: *** [drivers/input] Error 2
make[2]: ** Esperando que outros processos terminem.
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/Makefile:974: recipe for target 'drivers' failed
make[1]: *** [drivers] Error 2
make[1]: Leaving directory '/home/fsadino/Android_Build/NitrogenOS_pie/out/target/product/oneplus3/obj/KERNEL_OBJ'
Makefile:145: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996'
[ 31% 29491/92497] build /home/fsadino/Android_Bu...cy_neverallows_intermediates/sepolicy_neverallows
/home/fsadino/Android_Build/NitrogenOS_pie/out/host/linux-x86/bin/checkpolicy:  loading policy configuration from /home/fsadino/Android_Build/NitrogenOS_pie/out/target/product/oneplus3/obj/ETC/sepolicy_neverallows_intermediates/policy.conf
/home/fsadino/Android_Build/NitrogenOS_pie/out/host/linux-x86/bin/checkpolicy:  policy configuration loaded
/home/fsadino/Android_Build/NitrogenOS_pie/out/host/linux-x86/bin/checkpolicy:  writing binary representation (version 30) to /home/fsadino/Android_Build/NitrogenOS_pie/out/target/product/oneplus3/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows
[ 31% 29492/92497] build /home/fsadino/Android_Bu.../obj/ETC/sepolicy.recovery_intermediates/sepolicy
/home/fsadino/Android_Build/NitrogenOS_pie/out/host/linux-x86/bin/checkpolicy:  loading policy configuration from /home/fsadino/Android_Build/NitrogenOS_pie/out/target/product/oneplus3/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf
/home/fsadino/Android_Build/NitrogenOS_pie/out/host/linux-x86/bin/checkpolicy:  policy configuration loaded
/home/fsadino/Android_Build/NitrogenOS_pie/out/host/linux-x86/bin/checkpolicy:  writing binary representation (version 30) to /home/fsadino/Android_Build/NitrogenOS_pie/out/target/product/oneplus3/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp
ninja: build stopped: subcommand failed.
20:49:34 ninja failed with: exit status 1

#### failed to build some targets (03:18 (mm:ss)) ####

[email protected]:~/Android_Build/NitrogenOS_pie$
9th August 2019, 07:22 AM |#602  
nathanchance's Avatar
OP Recognized Developer / Recognized Contributor
Flag Mesa, AZ
Thanks Meter: 50,843
 
More
Quote:
Originally Posted by Relentless Terminator

Fixed vdso32

Now i´m at 31% with these error.
Remember that i reverted this commit because i don't have drivers/soc/qcom/smp2p_test.c in NitrogenOS project...

Code:
FAILED: TARGET_KERNEL_BINARIES 
/bin/bash -c "(PATH=/home/fsadino/Android_Build/NitrogenOS_pie/prebuilts/clang/host/linux-x86/clang-4691093/bin:\$PATH LD_LIBRARY_PATH=/home/fsadino/Android_Build/NitrogenOS_pie/prebuilts/clang/host/linux-x86/clang-4691093/lib64:\$LD_LIBRARY_PATH make -j8  CFLAGS_MODULE=\"-fno-pic\" -C kernel/oneplus/msm8996 O=/home/fsadino/Android_Build/NitrogenOS_pie/out/target/product/oneplus3/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"arm-linux-androideabi-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\" clang\" Image.gz-dtb ) && (if grep -q '^CONFIG_OF=y' /home/fsadino/Android_Build/NitrogenOS_pie/out/target/product/oneplus3/obj/KERNEL_OBJ/.config; then 			echo -e \"Building DTBs\" ; 			PATH=/home/fsadino/Android_Build/NitrogenOS_pie/prebuilts/clang/host/linux-x86/clang-4691093/bin:\$PATH LD_LIBRARY_PATH=/home/fsadino/Android_Build/NitrogenOS_pie/prebuilts/clang/host/linux-x86/clang-4691093/lib64:\$LD_LIBRARY_PATH make -j8  CFLAGS_MODULE=\"-fno-pic\" -C kernel/oneplus/msm8996 O=/home/fsadino/Android_Build/NitrogenOS_pie/out/target/product/oneplus3/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"arm-linux-androideabi-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\" clang\" dtbs; 		fi ) && (if grep -q '^CONFIG_MODULES=y' /home/fsadino/Android_Build/NitrogenOS_pie/out/target/product/oneplus3/obj/KERNEL_OBJ/.config; then 			echo -e \"Building Kernel Modules\" ; 			PATH=/home/fsadino/Android_Build/NitrogenOS_pie/prebuilts/clang/host/linux-x86/clang-4691093/bin:\$PATH LD_LIBRARY_PATH=/home/fsadino/Android_Build/NitrogenOS_pie/prebuilts/clang/host/linux-x86/clang-4691093/lib64:\$LD_LIBRARY_PATH make -j8  CFLAGS_MODULE=\"-fno-pic\" -C kernel/oneplus/msm8996 O=/home/fsadino/Android_Build/NitrogenOS_pie/out/target/product/oneplus3/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"arm-linux-androideabi-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\" clang\" modules; 		fi )"
make: Entering directory '/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996'
make[1]: Entering directory '/home/fsadino/Android_Build/NitrogenOS_pie/out/target/product/oneplus3/obj/KERNEL_OBJ'
  GEN     ./Makefile
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config/kernel.release
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/scripts/setlocalversion: linha 185: scm: comando não reconhecido
  UPD     include/config/kernel.release
  GEN     ./Makefile
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  Using /home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996 as source for kernel
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/sound/soc/codecs/tfa9890/tfa_container.c:291:7: error: logical not is only applied to the left hand side of this comparison [-Werror,-Wlogical-not-parentheses]
                if (!prof->list[i].type == dscRegister) {
                    ^                   ~~
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/sound/soc/codecs/tfa9890/tfa_container.c:291:7: note: add parentheses after the '!' to evaluate the comparison first
                if (!prof->list[i].type == dscRegister) {
                    ^
                     (                                )
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/sound/soc/codecs/tfa9890/tfa_container.c:291:7: note: add parentheses around left hand side expression to silence this warning
                if (!prof->list[i].type == dscRegister) {
                    ^
                    (                  )
1 error generated.
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/scripts/Makefile.build:265: recipe for target 'sound/soc/codecs/tfa9890/tfa_container.o' failed
make[4]: *** [sound/soc/codecs/tfa9890/tfa_container.o] Error 1
make[4]: ** Esperando que outros processos terminem.
  CC      kernel/trace/trace_stat.o
  LD      drivers/clocksource/built-in.o
  CC      kernel/trace/trace_printk.o
  CC      kernel/trace/trace_sched_switch.o
  LD      fs/kernfs/built-in.o
  CC      fs/nls/nls_base.o
  CC      fs/notify/fsnotify.o
  LD      drivers/clk/msm/mdss/built-in.o
  LD      drivers/clk/msm/built-in.o
  LD      drivers/clk/built-in.o
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/scripts/Makefile.build:410: recipe for target 'sound/soc/codecs' failed
make[3]: *** [sound/soc/codecs] Error 2
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/scripts/Makefile.build:410: recipe for target 'sound/soc' failed
make[2]: *** [sound/soc] Error 2
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/Makefile:974: recipe for target 'sound' failed
make[1]: *** [sound] Error 2
make[1]: ** Esperando que outros processos terminem.
  CC      drivers/media/platform/msm/camera_v2/common/cam_soc_api.o
In file included from /home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/drivers/input/touchscreen/synaptics_driver_s3320.c:2562:
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/drivers/input/touchscreen/fw_update_v7.if:1692:20: error: use of logical '&&' with constant operand [-Werror,-Wconstant-logical-operand]
        if (add_buf[4]>>5 && 0x2)
                          ^  ~~~
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/drivers/input/touchscreen/fw_update_v7.if:1692:20: note: use '&' for a bitwise operation
        if (add_buf[4]>>5 && 0x2)
                          ^~
                          &
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/drivers/input/touchscreen/fw_update_v7.if:1692:20: note: remove constant to silence this warning
        if (add_buf[4]>>5 && 0x2)
                         ~^~~~~~
1 error generated.
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/scripts/Makefile.build:265: recipe for target 'drivers/input/touchscreen/synaptics_driver_s3320.o' failed
make[4]: *** [drivers/input/touchscreen/synaptics_driver_s3320.o] Error 1
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/scripts/Makefile.build:410: recipe for target 'drivers/input/touchscreen' failed
make[3]: *** [drivers/input/touchscreen] Error 2
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/scripts/Makefile.build:410: recipe for target 'drivers/input' failed
make[2]: *** [drivers/input] Error 2
make[2]: ** Esperando que outros processos terminem.
/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996/Makefile:974: recipe for target 'drivers' failed
make[1]: *** [drivers] Error 2
make[1]: Leaving directory '/home/fsadino/Android_Build/NitrogenOS_pie/out/target/product/oneplus3/obj/KERNEL_OBJ'
Makefile:145: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/home/fsadino/Android_Build/NitrogenOS_pie/kernel/oneplus/msm8996'
[ 31% 29491/92497] build /home/fsadino/Android_Bu...cy_neverallows_intermediates/sepolicy_neverallows
/home/fsadino/Android_Build/NitrogenOS_pie/out/host/linux-x86/bin/checkpolicy:  loading policy configuration from /home/fsadino/Android_Build/NitrogenOS_pie/out/target/product/oneplus3/obj/ETC/sepolicy_neverallows_intermediates/policy.conf
/home/fsadino/Android_Build/NitrogenOS_pie/out/host/linux-x86/bin/checkpolicy:  policy configuration loaded
/home/fsadino/Android_Build/NitrogenOS_pie/out/host/linux-x86/bin/checkpolicy:  writing binary representation (version 30) to /home/fsadino/Android_Build/NitrogenOS_pie/out/target/product/oneplus3/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows
[ 31% 29492/92497] build /home/fsadino/Android_Bu.../obj/ETC/sepolicy.recovery_intermediates/sepolicy
/home/fsadino/Android_Build/NitrogenOS_pie/out/host/linux-x86/bin/checkpolicy:  loading policy configuration from /home/fsadino/Android_Build/NitrogenOS_pie/out/target/product/oneplus3/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf
/home/fsadino/Android_Build/NitrogenOS_pie/out/host/linux-x86/bin/checkpolicy:  policy configuration loaded
/home/fsadino/Android_Build/NitrogenOS_pie/out/host/linux-x86/bin/checkpolicy:  writing binary representation (version 30) to /home/fsadino/Android_Build/NitrogenOS_pie/out/target/product/oneplus3/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp
ninja: build stopped: subcommand failed.
20:49:34 ninja failed with: exit status 1

#### failed to build some targets (03:18 (mm:ss)) ####

[email protected]:~/Android_Build/NitrogenOS_pie$

Revert this commit: https://github.com/FSadino/android_k...109effa422bee6

You have the toggable one: https://github.com/FSadino/android_k...a66ef74c3d8112

I would recommend fixing those warnings when you can so that you can turn -Werror back on but it's not critical to do so.

I just realized that you have a OnePlus 3. For whatever reason, I don't know anyone who has been able to get the OnePlus 3 kernel to boot with clang. Don't know why, it must be some OnePlus specific driver because other msm8998 devices can do it just fine. Not sure if anyone has tried it recently or succeeded, I haven't paid much attention to the Android kernel scene in a bit.
The Following User Says Thank You to nathanchance For This Useful Post: [ View ]
9th August 2019, 07:28 AM |#603  
Junior Member
Thanks Meter: 0
 
More
Drivers in Wahoo kernel
Quote:
Originally Posted by nathanchance

You need to change all of the '=m' entries in the defconfig to '=y'.

Yeah I understood we are converting modules to object but after replacing "=m" with "=y" it stucked in google logo.

Sent from my OnePlus6 using XDA Labs



Yeah I understood that we've converted modules to kernel object. But the
device stucked in google LOGO.
9th August 2019, 10:20 PM |#604  
FSadino's Avatar
Retired Forum Moderator
Flag Blue River City
Thanks Meter: 4,711
 
Donate to Me
More
Quote:
Originally Posted by nathanchance

Revert this commit: https://github.com/FSadino/android_k...109effa422bee6

You have the toggable one: https://github.com/FSadino/android_k...a66ef74c3d8112

I would recommend fixing those warnings when you can so that you can turn -Werror back on but it's not critical to do so.

I just realized that you have a OnePlus 3. For whatever reason, I don't know anyone who has been able to get the OnePlus 3 kernel to boot with clang. Don't know why, it must be some OnePlus specific driver because other msm8998 devices can do it just fine. Not sure if anyone has tried it recently or succeeded, I haven't paid much attention to the Android kernel scene in a bit.

I had to fix qcacld-2.0 errors with other @kenny3fcb commits and build finished, but as you said, it doesn't boot
Tried to adb -d logcat &> log.txt but without sucess, log.txt is empty! Is there any other way to take log from boot?

EDIT: Forget this Nathan, this is to much for me... Thank you very much for your support!
The Following User Says Thank You to FSadino For This Useful Post: [ View ] Gift FSadino Ad-Free
20th August 2019, 03:59 AM |#605  
Junior Member
Thanks Meter: 0
 
More
??
i have both a image and image.gz in the boot folder. Both same size, well the image in the zip in the same size as the image file. Did i do something wrong or can i use either? thx for this guide

---------- Post added at 02:59 AM ---------- Previous post was at 02:31 AM ----------

Quote:
Originally Posted by nathanchance

Revert this commit: https://github.com/FSadino/android_k...109effa422bee6

You have the toggable one: https://github.com/FSadino/android_k...a66ef74c3d8112

I would recommend fixing those warnings when you can so that you can turn -Werror back on but it's not critical to do so.

I just realized that you have a OnePlus 3. For whatever reason, I don't know anyone who has been able to get the OnePlus 3 kernel to boot with clang. Don't know why, it must be some OnePlus specific driver because other msm8998 devices can do it just fine. Not sure if anyone has tried it recently or succeeded, I haven't paid much attention to the Android kernel scene in a bit.

im sry i just saw the quote you statement. i have both a image and image.gz in the boot folder. Both same size, well the image in the zip in the same size as the image file. Did i do something wrong or can i use either? thx for this guide
23rd August 2019, 03:15 PM |#606  
v1da's Avatar
Member
Thanks Meter: 29
 
More
I compiled my first kernel successfully. AFter that,
I want to modify 'make menuconfig' step.
From what step do I have to go? to modify menuconfig? in the kernel source
I just want to add wlan support/configuration in menuconfig, and then recompile new kernel again

I used this command when I compiled the kernel
Code:
make clean && make mrproper
mkdir ../out
make O=../out mido_defconfig
make O=../out -j4
27th August 2019, 07:39 AM |#607  
nathanchance's Avatar
OP Recognized Developer / Recognized Contributor
Flag Mesa, AZ
Thanks Meter: 50,843
 
More
Quote:
Originally Posted by mastakillah576

i have both a image and image.gz in the boot folder. Both same size, well the image in the zip in the same size as the image file. Did i do something wrong or can i use either? thx for this guide

No, the Image.gz is most likely the one you want to use (gzip compressed Image). I don't know of a device off the top of my head that uses a decompressed kernel image.

Quote:
Originally Posted by v1da

I compiled my first kernel successfully. AFter that,
I want to modify 'make menuconfig' step.
From what step do I have to go? to modify menuconfig? in the kernel source
I just want to add wlan support/configuration in menuconfig, and then recompile new kernel again

I used this command when I compiled the kernel

Code:
make clean && make mrproper
mkdir ../out
make O=../out mido_defconfig
make O=../out -j4

You'll want to run:

make O=../out menuconfig

after make O=../out mido_defconfig.
The Following 4 Users Say Thank You to nathanchance For This Useful Post: [ View ]
28th August 2019, 06:18 AM |#608  
Junior Member
Thanks Meter: 0
 
More
How can add message encryption feature in Kernel
29th August 2019, 07:48 AM |#609  
v1da's Avatar
Member
Thanks Meter: 29
 
More
Quote:
Originally Posted by nathanchance

No, the Image.gz is most likely the one you want to use (gzip compressed Image). I don't know of a device off the top of my head that uses a decompressed kernel image.



You'll want to run:

make O=../out menuconfig

after make O=../out mido_defconfig.

thanks sir,
Another problem I found is like I said before, I build successfully and it boot successfully on my android device
When I look at in the build messages, I found out this:
Code:
Building modules, stage 2.
MODPOST 0 modules 
GZIP arch/arm64/boot/Image.gz
CAT arch/arm64/boot/Image.gz-dtb
The modules are not build with MODPOST 0 modules
How can I solve this, I compiled many times, but still doesn't built modules
I search on Google, I cannot find the solutions related with android kernel

toolchain: https://android.googlesource.com/pla...ux-android-4.9 -b pie-release toolchain64
30th August 2019, 04:08 PM |#610  
Senior Member
Thanks Meter: 224
 
More
Hey guys anyone here success OC msm8998 big core more than 2592mhz ?? If anyone have any idea I would love to learn.

For now currently I only able to OC GPU to max 850mhz but for CPU is kinda tricky I don't know how what is the 0x0004044c and 0x0660006c

Would appreciate if anyone will help gracias
3rd September 2019, 06:27 AM |#611  
nathanchance's Avatar
OP Recognized Developer / Recognized Contributor
Flag Mesa, AZ
Thanks Meter: 50,843
 
More
Quote:
Originally Posted by v1da

thanks sir,
Another problem I found is like I said before, I build successfully and it boot successfully on my android device
When I look at in the build messages, I found out this:

Code:
Building modules, stage 2.
MODPOST 0 modules 
GZIP arch/arm64/boot/Image.gz
CAT arch/arm64/boot/Image.gz-dtb
The modules are not build with MODPOST 0 modules
How can I solve this, I compiled many times, but still doesn't built modules
I search on Google, I cannot find the solutions related with android kernel

toolchain: https://android.googlesource.com/pla...ux-android-4.9 -b pie-release toolchain64

Do you have any modules enabled in your config?
The Following User Says Thank You to nathanchance For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes