Xiaomi_Kernel_OpenSource icon indicating copy to clipboard operation
Xiaomi_Kernel_OpenSource copied to clipboard

Thomas Error Compiling

Open ghost opened this issue 10 years ago • 49 comments

hi guys, i faced new error here for thomas. maybe anyone can help me?

DTC arch/arm/boot/dts/qcom/../msm8226-sim.dtb Error: arch/arm/boot/dts/qcom/msm8226-regulator.dtsi:532.2-3 label or path, 'pm8226_chg_chgr', not found FATAL ERROR: Syntax error parsing input tree /android/miui/arch/arm/boot/dts/qcom/Makefile:173: recipe for target 'arch/arm/boot/dts/qcom/../msm8226-sim.dtb' failed make[1]: *** [arch/arm/boot/dts/qcom/../msm8226-sim.dtb] Error 1 /android/miui/arch/arm/Makefile:307: recipe for target 'dtbs' failed make: *** [dtbs] Error 2 make: *** Waiting for unfinished jobs....

ghost avatar Mar 03 '16 06:03 ghost

msm8226-regulator.dtsi:532.2-3 label or path, 'pm8226_chg_chgr', not found

Check if that file is present, otherwise you downloaded incomplete source

deeplyarnab avatar Mar 03 '16 08:03 deeplyarnab

how about this?

drivers/soc/qcom/subsystem_restart.c: In function 'subsys_register': drivers/soc/qcom/subsystem_restart.c:1343:19: error: 'WT_SUBSYSTEM_REASTART_LEVEL' undeclared (first use in this function) if (0 == strncmp(WT_SUBSYSTEM_REASTART_LEVEL, "system", 6)) { ^ drivers/soc/qcom/subsystem_restart.c:1343:19: note: each undeclared identifier is reported only once for each function it appears in scripts/Makefile.build:308: recipe for target 'drivers/soc/qcom/subsystem_restart.o' failed make[3]: *** [drivers/soc/qcom/subsystem_restart.o] Error 1 scripts/Makefile.build:455: recipe for target 'drivers/soc/qcom' failed make[2]: *** [drivers/soc/qcom] Error 2 scripts/Makefile.build:455: recipe for target 'drivers/soc' failed make[1]: *** [drivers/soc] Error 2 make[1]: *** Waiting for unfinished jobs....

ghost avatar Mar 03 '16 09:03 ghost

U have to edit makefile to ignore some basic warnings. I am assuming you are trying to build the kernel alone

Refer this https://github.com/kernel-hut/android_kernel_xiaomi_cancro/commit/aff2f67f47c264cd1ff43f68573b58951a76dbaa

deeplyarnab avatar Mar 03 '16 18:03 deeplyarnab

U have to edit makefile to ignore some basic warnings. I am assuming you are trying to build the kernel alone

Refer this https://github.com/kernel-hut/android_kernel_xiaomi_cancro/commit/aff2f67f47c264cd1ff43f68573b58951a76dbaa

deeplyarnab avatar Mar 03 '16 18:03 deeplyarnab

U have to edit makefile to ignore some basic warnings. I am assuming you are trying to build the kernel alone

Refer this https://github.com/kernel-hut/android_kernel_xiaomi_cancro/commit/aff2f67f47c264cd1ff43f68573b58951a76dbaa

deeplyarnab avatar Mar 03 '16 18:03 deeplyarnab

U have to edit makefile to ignore some basic warnings. I am assuming you are trying to build the kernel alone

Refer this https://github.com/kernel-hut/android_kernel_xiaomi_cancro/commit/aff2f67f47c264cd1ff43f68573b58951a76dbaa

deeplyarnab avatar Mar 03 '16 18:03 deeplyarnab

U have to edit makefile to ignore some basic warnings. I am assuming you are trying to build the kernel alone

Refer this https://github.com/kernel-hut/android_kernel_xiaomi_cancro/commit/aff2f67f47c264cd1ff43f68573b58951a76dbaa

deeplyarnab avatar Mar 03 '16 18:03 deeplyarnab

U have to edit makefile to ignore some basic warnings. I am assuming you are trying to build the kernel alone

Refer this https://github.com/kernel-hut/android_kernel_xiaomi_cancro/commit/aff2f67f47c264cd1ff43f68573b58951a76dbaa

deeplyarnab avatar Mar 03 '16 18:03 deeplyarnab

U have to edit makefile to ignore some basic warnings. I am assuming you are trying to build the kernel alone

Refer this https://github.com/kernel-hut/android_kernel_xiaomi_cancro/commit/aff2f67f47c264cd1ff43f68573b58951a76dbaa

deeplyarnab avatar Mar 03 '16 18:03 deeplyarnab

U have to edit makefile to ignore some basic warnings. I am assuming you are trying to build the kernel alone

Refer this https://github.com/kernel-hut/android_kernel_xiaomi_cancro/commit/aff2f67f47c264cd1ff43f68573b58951a76dbaa

deeplyarnab avatar Mar 03 '16 18:03 deeplyarnab

U have to edit makefile to ignore some basic warnings. I am assuming you are trying to build the kernel alone

Refer this https://github.com/kernel-hut/android_kernel_xiaomi_cancro/commit/aff2f67f47c264cd1ff43f68573b58951a76dbaa

deeplyarnab avatar Mar 03 '16 18:03 deeplyarnab

U have to edit makefile to ignore some basic warnings. I am assuming you are trying to build the kernel alone

Refer this https://github.com/kernel-hut/android_kernel_xiaomi_cancro/commit/aff2f67f47c264cd1ff43f68573b58951a76dbaa

deeplyarnab avatar Mar 03 '16 18:03 deeplyarnab

U have to edit makefile to ignore some basic warnings. I am assuming you are trying to build the kernel alone

Refer this https://github.com/kernel-hut/android_kernel_xiaomi_cancro/commit/aff2f67f47c264cd1ff43f68573b58951a76dbaa

deeplyarnab avatar Mar 03 '16 18:03 deeplyarnab

I managed to work on the errors present in the kernel source and have made it to compile. I can link you to my alpha source code :rabbit: I have used the original defconfig (msm8916_defconfig) for my build which seems pretty bloated. As I don't have a device, I can't do much work for this device. I hope my kernel source atleast acts a base reference for starting.

Link to the source: https://github.com/ramsudharsan/android_kernel_xiaomi_thomas

P.S. I have used arm-eabi-4.7 cross compiler from Google to compile the kernel. P.P.S. @deeplyarnab I don't think removing gcc wrapper is ideal. Do you think all the manufacturers who tweak the kernel source for their own products might not have noticed that? Its simply like we are moving away from the errors/warnings instead of facing it. I myself have used those commits in the past but now, imo, it is not ideal. Do correct me if I am wrong.

ramsudharsan avatar Mar 04 '16 17:03 ramsudharsan

You are completely right @ramsudharsan I provided that fix cuz i am guessing he is new to yhe development and hence won't be completely be able to fix it as it requires tedious work, that was just a quick fix to errors so he could try n learn more. Thanks for pointing it out to people.

deeplyarnab avatar Mar 04 '16 17:03 deeplyarnab

@jawircodes It should not be commented. Instead I have implemented in another way. See here: https://github.com/ramsudharsan/android_kernel_xiaomi_thomas/commit/ddc4d2c3dd5a551ef95b7dda3198dbcf4ae0301b#diff-8e3ed10d54de9baa5c023449807590c8R45

ramsudharsan avatar Mar 05 '16 05:03 ramsudharsan

@ramsudharsan i faced an brightness and wifi bug -_-

ghost avatar Mar 05 '16 14:03 ghost

@ocoot The wifi bug is because of lack of prima drivers in kernel. I will work on adding it tonight. I think the Xiaomi uses the same kernel tag for its prima modem. Else we have to do some trial and error method. And for brightness I have to review the defconfig. I will do these tonight and push it.

ramsudharsan avatar Mar 05 '16 14:03 ramsudharsan

@ramsudharsan thankyou, waiting for it :) :+1:

ghost avatar Mar 05 '16 14:03 ghost

@jawircodes @ocoot I have tried to resolve all warnings and errors that showed up after merging prima drivers. Don't forget to copy the *.ko files after compiling. If you guys don't like it, I will put everything inbuilt. Check my repo for the updated kernel tree. Peace. :v:

ramsudharsan avatar Mar 05 '16 20:03 ramsudharsan