GithubHelp home page GithubHelp logo

Comments (49)

deeplyarnab avatar deeplyarnab commented on August 15, 2024

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

from xiaomi_kernel_opensource.

 avatar commented on August 15, 2024

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....

from xiaomi_kernel_opensource.

deeplyarnab avatar deeplyarnab commented on August 15, 2024

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

Refer this
kernel-hut@aff2f67

from xiaomi_kernel_opensource.

deeplyarnab avatar deeplyarnab commented on August 15, 2024

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

Refer this
kernel-hut@aff2f67

from xiaomi_kernel_opensource.

deeplyarnab avatar deeplyarnab commented on August 15, 2024

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

Refer this
kernel-hut@aff2f67

from xiaomi_kernel_opensource.

deeplyarnab avatar deeplyarnab commented on August 15, 2024

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

Refer this
kernel-hut@aff2f67

from xiaomi_kernel_opensource.

deeplyarnab avatar deeplyarnab commented on August 15, 2024

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

Refer this
kernel-hut@aff2f67

from xiaomi_kernel_opensource.

deeplyarnab avatar deeplyarnab commented on August 15, 2024

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

Refer this
kernel-hut@aff2f67

from xiaomi_kernel_opensource.

deeplyarnab avatar deeplyarnab commented on August 15, 2024

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

Refer this
kernel-hut@aff2f67

from xiaomi_kernel_opensource.

deeplyarnab avatar deeplyarnab commented on August 15, 2024

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

Refer this
kernel-hut@aff2f67

from xiaomi_kernel_opensource.

deeplyarnab avatar deeplyarnab commented on August 15, 2024

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

Refer this
kernel-hut@aff2f67

from xiaomi_kernel_opensource.

deeplyarnab avatar deeplyarnab commented on August 15, 2024

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

Refer this
kernel-hut@aff2f67

from xiaomi_kernel_opensource.

deeplyarnab avatar deeplyarnab commented on August 15, 2024

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

Refer this
kernel-hut@aff2f67

from xiaomi_kernel_opensource.

ramsudharsan avatar ramsudharsan commented on August 15, 2024

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 🐰 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.

from xiaomi_kernel_opensource.

deeplyarnab avatar deeplyarnab commented on August 15, 2024

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.

from xiaomi_kernel_opensource.

ramsudharsan avatar ramsudharsan commented on August 15, 2024

@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

from xiaomi_kernel_opensource.

 avatar commented on August 15, 2024

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

from xiaomi_kernel_opensource.

ramsudharsan avatar ramsudharsan commented on August 15, 2024

@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.

from xiaomi_kernel_opensource.

 avatar commented on August 15, 2024

@ramsudharsan thankyou, waiting for it :) 👍

from xiaomi_kernel_opensource.

ramsudharsan avatar ramsudharsan commented on August 15, 2024

@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. ✌️

from xiaomi_kernel_opensource.

niclimcy avatar niclimcy commented on August 15, 2024

@ramsudharsan did you get this?
ERROR: modpost: Found 2 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
To build the kernel despite the mismatches, build with:
'make CONFIG_NO_ERROR_ON_MISMATCH=y'
(NOTE: This is not recommended)
/home/nick/android/thomaskernel/scripts/Makefile.modpost:95: recipe for target 'vmlinux.o' failed
make[1]: *** [vmlinux.o] Error 1
Makefile:788: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 2

from xiaomi_kernel_opensource.

ramsudharsan avatar ramsudharsan commented on August 15, 2024

@xnickbrandtx Nope I didn't get any such error. Is it from my kernel source that you are getting this error?

from xiaomi_kernel_opensource.

niclimcy avatar niclimcy commented on August 15, 2024

@ramsudharsan No... I regenerated the defconfig from msm8916-perf_defconfig

from xiaomi_kernel_opensource.

ramsudharsan avatar ramsudharsan commented on August 15, 2024

Do this make CONFIG_DEBUG_SECTION_MISMATCH=y as your compiler asks you and you will know what exactly is troubling inside. 🐹

from xiaomi_kernel_opensource.

niclimcy avatar niclimcy commented on August 15, 2024

@ramsudharsan I'll just try your defconfig see if this error will occur again or not

from xiaomi_kernel_opensource.

niclimcy avatar niclimcy commented on August 15, 2024

@ramsudharsan any ideas?
WARNING: drivers/built-in.o(.data+0xd0cc): Section mismatch in reference from the variable smd_xprt_cfg to the function .init.text:mpm_irq_domain_linear_size()
The variable smd_xprt_cfg references
the function __init mpm_irq_domain_linear_size()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: drivers/built-in.o(.data+0xd0e4): Section mismatch in reference from the variable smd_xprt_cfg to the function .init.text:mpm_irq_domain_legacy_size()
The variable smd_xprt_cfg references
the function __init mpm_irq_domain_legacy_size()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

LD net/wireless/cfg80211.o
LD net/wireless/built-in.o
LD net/built-in.o
LINK vmlinux
LD vmlinux.o
MODPOST vmlinux.o
WARNING: vmlinux.o(.data+0xed8c): Section mismatch in reference from the variable smd_xprt_cfg to the function .init.text:mpm_irq_domain_linear_size()
The variable smd_xprt_cfg references
the function __init mpm_irq_domain_linear_size()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: vmlinux.o(.data+0xeda4): Section mismatch in reference from the variable smd_xprt_cfg to the function .init.text:mpm_irq_domain_legacy_size()
The variable smd_xprt_cfg references
the function __init mpm_irq_domain_legacy_size()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

from xiaomi_kernel_opensource.

 avatar commented on August 15, 2024

@ramsudharsan finished compiling. waiting someone to test now

from xiaomi_kernel_opensource.

niclimcy avatar niclimcy commented on August 15, 2024

@ramsudharsan I just realized i made a huge mistake. I used the wrong compiler :p

from xiaomi_kernel_opensource.

ramsudharsan avatar ramsudharsan commented on August 15, 2024

👍

from xiaomi_kernel_opensource.

niclimcy avatar niclimcy commented on August 15, 2024

@ramsudharsan do you want to join in github.com/thomas-dev ? I currently trying to bring over caf LA.BR.1.2.6_rb1.8

from xiaomi_kernel_opensource.

ramsudharsan avatar ramsudharsan commented on August 15, 2024

@xnickbrandtx I have already joined the organization. I am bringing up kernel from LA.BR.1.2.7_rb1.5

from xiaomi_kernel_opensource.

niclimcy avatar niclimcy commented on August 15, 2024

@ramsudharsan hmm 1.2.6 should be better since its used in cyanogenmod's msm8916 repo

from xiaomi_kernel_opensource.

ramsudharsan avatar ramsudharsan commented on August 15, 2024

@xnickbrandtx Though either family will probably work.The 1.2.7 family is a bit newer than 1.2.6 (though both are maintained).

from xiaomi_kernel_opensource.

niclimcy avatar niclimcy commented on August 15, 2024

@ramsudharsan do you have telegram? We can talk there instead

from xiaomi_kernel_opensource.

ramsudharsan avatar ramsudharsan commented on August 15, 2024

Nope. I don't use my mobile for disussions. Hangouts are preferred. Email: [email protected]

from xiaomi_kernel_opensource.

ramsudharsan avatar ramsudharsan commented on August 15, 2024

@jawircodes Can you get me logs?

from xiaomi_kernel_opensource.

 avatar commented on August 15, 2024

like this? @ramsudharsan this logs its not from me. bcz i'm not using miui and testing my self the kernel. http://pastebin.com/i8frcpvV
sorry for late reply

from xiaomi_kernel_opensource.

ramsudharsan avatar ramsudharsan commented on August 15, 2024

@ocoot Kernel specific logs are appreciated. Try pulling /proc/kmsg file.

from xiaomi_kernel_opensource.

abhisri1997 avatar abhisri1997 commented on August 15, 2024

@ramsudharsan Compiled the kernel and booted it but a black screen appeared after the boot and also am unable to take logs here is the error on adb logcat "Unable to open log device '/dev/log/main': No such file or directory" .. I checked if it is on or notby calling on the phone and the call rings but nothing is showing..

from xiaomi_kernel_opensource.

abhisri1997 avatar abhisri1997 commented on August 15, 2024

@ramsudharsan after sometimes it got rebooted... any idea

from xiaomi_kernel_opensource.

abhisri1997 avatar abhisri1997 commented on August 15, 2024

I hanged the call still it was ringing

from xiaomi_kernel_opensource.

abhisri1997 avatar abhisri1997 commented on August 15, 2024

Attached kmsg
kmsg.tx.zip

from xiaomi_kernel_opensource.

abhisri1997 avatar abhisri1997 commented on August 15, 2024

kmsg.txt

from xiaomi_kernel_opensource.

abhisri1997 avatar abhisri1997 commented on August 15, 2024

@jawircodes
Kernel got booted ???

from xiaomi_kernel_opensource.

abhisri1997 avatar abhisri1997 commented on August 15, 2024

@jawircodes need help do u use any messaging service ???

from xiaomi_kernel_opensource.

niclimcy avatar niclimcy commented on August 15, 2024

Well the kernel itself is an older version compared to the one build by miui.

from xiaomi_kernel_opensource.

abhisri1997 avatar abhisri1997 commented on August 15, 2024

@jawircodes https://github.com/dev-elixir/Xiaomi_Kernel_OpenSource/tree/thomas-kk-oss

from xiaomi_kernel_opensource.

abhisri1997 avatar abhisri1997 commented on August 15, 2024

@jawircodes miui ofcourse

from xiaomi_kernel_opensource.

eebssk1 avatar eebssk1 commented on August 15, 2024

drivers/soc/qcom/subsystem_restart.c: In function 'subsys_register':
drivers/soc/qcom/subsystem_restart.c:1480: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:1480: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

anyway to solve it?

from xiaomi_kernel_opensource.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.