Xiaomi_Kernel_OpenSource icon indicating copy to clipboard operation
Xiaomi_Kernel_OpenSource copied to clipboard

Release the Source code of Redmi Note 2 and of other MTK devices

Open Azizb750 opened this issue 8 years ago • 27 comments

You have promised to release the kernel source of any device in 2-3 months but I see that you have released only the kernel source Qualcomm devices only. To be honest, we have fed up to waiting your Xiaomi to release the kernel source of MTK devices. About Redmi Note 2 (and not only), there have been more than 3 years and still we are waiting to release the kernel source.

Please release the source code of our MTK devices, otherwise I will find a way to lawsuit your Company alongside Longcheer and Mediatek and I'm very very serious for it.

Thank you!

Azizb750 avatar Sep 30 '18 06:09 Azizb750

Are you serious? You don't even know why mtk devices doesn't have kernel sources released... And you want to lawsuit a company for this? They don't have the source from that time mtk were not open source compliant at all So calm down or i will ban your from github I'm very serious for it.

DeadneM avatar Sep 30 '18 08:09 DeadneM

I'm sorry for the anger but there are many developers who are waiting to have the kernel source code of the devices, not just me. Me and some others before than me were working on a custom kernel for Xiaomi redmi note 2, there are also some threads were some developers are asking to have the access to the source code (or even just an part of it, like some lens, camera and alsps drivers etc.) To make the kernel stable. About banning me, it's your choice to do it, but I have many Important works which I forked and I'm managing to fix them (like the device tree, vendor tree and the incomplete kernel sources which we managed to fix them) if I get banned all of these will be wanished for ever and you will destroy my work... Probably you have right about my reaction

Azizb750 avatar Sep 30 '18 17:09 Azizb750

Yeah, I need to be calm

Azizb750 avatar Sep 30 '18 17:09 Azizb750

But are you sure that Xiaomi Does not have access to the kernel? If does not have access to it, how do they compile the kernel, check the miui kernel version if you want

Azizb750 avatar Sep 30 '18 17:09 Azizb750

I see that the person who compile it its xiaomi cause I see that both host and user seems to belong to xiaomi's pc

"Linux version 3.10.61+8c25ca99-3ffb4-8564dbd9 ([email protected]) (gcc version 4.9 20140514 (mtk-20150408) (GCC)) #1 SMP PREEMPT Wed Aug 1 20:22:31 CST 2018"

Edit: this is from miui 9.6.3.0 prebuilt kernel

And you still believe that they dont have access to the source code?? @DeadneM

Azizb750 avatar Sep 30 '18 17:09 Azizb750

Well that doesnt mean that they are using a source code compiled kernel. This variable is generated automatically by the build system. Could be that xiaomi is indeed using a pre built kernel from MTK.

PythonLimited avatar Sep 30 '18 21:09 PythonLimited

@PythonLimited They have full access to mtk alps. /dev/xiaomi_memsw_state is there just like in other xiaomi devices. https://github.com/jianglu/framework_native Xiaomi developer posted source code of frameworks/native that include both odm and MIUI changes.

Dinolek avatar Sep 30 '18 21:09 Dinolek

Are you serious? You don't even know why mtk devices doesn't have kernel sources released... And you want to lawsuit a company for this? They don't have the source from that time mtk were not open source compliant at all So calm down or i will ban your from github I'm very serious for it.

Why BQ has released full mtk source for M10 FHD Tablet ? LOL

scafroglia93 avatar Oct 01 '18 07:10 scafroglia93

Are you serious? You don't even know why mtk devices doesn't have kernel sources released... And you want to lawsuit a company for this? They don't have the source from that time mtk were not open source compliant at all So calm down or i will ban your from github I'm very serious for it.

Well not mtk but your vendor can release sources if they pay for this to mtk! So, don't be a smartass

Well that doesnt mean that they are using a source code compiled kernel. This variable is generated automatically by the build system. Could be that xiaomi is indeed using a pre built kernel from MTK.

For Your Kind Information whenever a vendor makes a deal with soc manufacturers( mtk, qcom, etc) for their soc than soc manufactures also provides a manual on how to compile it + sources for soc they're dealing with! No matter if it's mtk or qcom, vendor will definitely get sources for their dealed socs! And (mtk, qcom, etc) will not compile kernels for you, vendor have to do that, mtk provides only Alps sources which contains sources for many libraries as well as kernel also ( you can say it as a "Complete Package" ) job of your vendor is to just add your device specific changes on it! And also the date on which kernel is compiled is not changeable or if you understand binary code than yes it's, mostly nobody have this much knowledge!

I see that the person who compile it its xiaomi cause I see that both host and user seems to belong to xiaomi's pc

"Linux version 3.10.61+8c25ca99-3ffb4-8564dbd9 ([email protected]) (gcc version 4.9 20140514 (mtk-20150408) (GCC)) #1 SMP PREEMPT Wed Aug 1 20:22:31 CST 2018"

Edit: this is from miui 9.6.3.0 prebuilt kernel

And you still believe that they dont have access to the source code?? @DeadneM

Here is a list of drivers I got when I reversed some code from your stock firmwares https://del.dog/raw/bexibatici

Here's a Kernel for Hermes that's made by reversing code by @nofearnohappy https://github.com/Azizb750/android_kernel_xiaomi_hermes

ghost avatar Oct 10 '18 15:10 ghost

Why BQ provide full mtk kernel source ?

Please, ban me from github LOL

scafroglia93 avatar Oct 10 '18 15:10 scafroglia93

Why BQ provide full mtk kernel source ?

Please, ban me from github LOL

They wanted to release and they did any problems? Xiaomi is a hoe

ghost avatar Oct 10 '18 16:10 ghost

i wish they'd do so.

luk1337 avatar Oct 10 '18 16:10 luk1337

Are you serious? You don't even know why mtk devices doesn't have kernel sources released... And you want to lawsuit a company for this? They don't have the source from that time mtk were not open source compliant at all So calm down or i will ban your from github I'm very serious for it.

Well not mtk but your vendor can release sources if they pay for this to mtk! So, don't be a smartass

Well that doesnt mean that they are using a source code compiled kernel. This variable is generated automatically by the build system. Could be that xiaomi is indeed using a pre built kernel from MTK.

For Your Kind Information whenever a vendor makes a deal with soc manufacturers( mtk, qcom, etc) for their soc than soc manufactures also provides a manual on how to compile it + sources for soc they're dealing with! No matter if it's mtk or qcom, vendor will definitely get sources for their dealed socs! And (mtk, qcom, etc) will not compile kernels for you, vendor have to do that, mtk provides only Alps sources which contains sources for many libraries as well as kernel also ( you can say it as a "Complete Package" ) job of your vendor is to just add your device specific changes on it! And also the date on which kernel is compiled is not changeable or if you understand binary code than yes it's, mostly nobody have this much knowledge!

I see that the person who compile it its xiaomi cause I see that both host and user seems to belong to xiaomi's pc "Linux version 3.10.61+8c25ca99-3ffb4-8564dbd9 ([email protected]) (gcc version 4.9 20140514 (mtk-20150408) (GCC)) #1 SMP PREEMPT Wed Aug 1 20:22:31 CST 2018" Edit: this is from miui 9.6.3.0 prebuilt kernel And you still believe that they dont have access to the source code?? @DeadneM

Here is a list of drivers I got when I reversed some code from your stock firmwares https://del.dog/raw/bexibatici

how did you reversed the drivers? is there any good way to reverse prebuilt kernel? i have ida pro installed but I cant dissasemble the kernel for a reason, somewhere i have a serious mistake

Here's a Kernel for Hermes that's made by reversing code by @nofearnohappy https://github.com/Azizb750/android_kernel_xiaomi_hermes

about this, I had forked his kernels so i can improve them in the future if possible, cause I'm interested to reverse engineering a lot, yeah when I asked him on telegram about how reverse engineering helped him, he said that he helped him a lot but he needs a script need an intelligent person who creates a script for IDA which can convert to the inverse code, so, can you tell us how you did this please? did you reversed by hand or did you used an extention on ida?

Azizb750 avatar Oct 10 '18 18:10 Azizb750

Are you serious? You don't even know why mtk devices doesn't have kernel sources released... And you want to lawsuit a company for this? They don't have the source from that time mtk were not open source compliant at all So calm down or i will ban your from github I'm very serious for it.

Well not mtk but your vendor can release sources if they pay for this to mtk! So, don't be a smartass

Well that doesnt mean that they are using a source code compiled kernel. This variable is generated automatically by the build system. Could be that xiaomi is indeed using a pre built kernel from MTK.

For Your Kind Information whenever a vendor makes a deal with soc manufacturers( mtk, qcom, etc) for their soc than soc manufactures also provides a manual on how to compile it + sources for soc they're dealing with! No matter if it's mtk or qcom, vendor will definitely get sources for their dealed socs! And (mtk, qcom, etc) will not compile kernels for you, vendor have to do that, mtk provides only Alps sources which contains sources for many libraries as well as kernel also ( you can say it as a "Complete Package" ) job of your vendor is to just add your device specific changes on it! And also the date on which kernel is compiled is not changeable or if you understand binary code than yes it's, mostly nobody have this much knowledge!

I see that the person who compile it its xiaomi cause I see that both host and user seems to belong to xiaomi's pc "Linux version 3.10.61+8c25ca99-3ffb4-8564dbd9 ([email protected]) (gcc version 4.9 20140514 (mtk-20150408) (GCC)) #1 SMP PREEMPT Wed Aug 1 20:22:31 CST 2018" Edit: this is from miui 9.6.3.0 prebuilt kernel And you still believe that they dont have access to the source code?? @DeadneM

Here is a list of drivers I got when I reversed some code from your stock firmwares https://del.dog/raw/bexibatici

how did you reversed the drivers? is there any good way to reverse prebuilt kernel? i have ida pro installed but I cant dissasemble the kernel for a reason, somewhere i have a serious mistake

Here's a Kernel for Hermes that's made by reversing code by @nofearnohappy https://github.com/Azizb750/android_kernel_xiaomi_hermes

about this, I had forked his kernels so i can improve them in the future if possible, cause I'm interested to reverse engineering a lot, yeah when I asked him on telegram about how reverse engineering helped him, he said that he helped him a lot but he needs a script need an intelligent person who creates a script for IDA which can convert to the inverse code, so, can you tell us how you did this please? did you reversed by hand or did you used an extention on ida?

Well these paths are saved as data inside binary, you can later analyse the whole binary for it, and yes you can't disassemble a 64bit kernel easily there is a lot of problems in doing so. Actually, ida gives wrong code for arm64 by default and it's fixed in ida 7.1 , but you can still disassemble it , by your message I think you're talking about loading symbols from kallsyms file to binary than yes you can but you need to remove headers containing dtb sections, I did this manually by hands and literally no script will convert and give you exact code to put in driver, you have to do it by hands by analysing the function which is required scripts are just to parse external symbols into your binary! And lazyc0der was the one who helped @nofearnohappy to get display driver for redmi note 2 (Hermes) commonly known as lcm, So don't think it's @nofearnohappy who did this!, It was lazyc0der and he's not active from almost one year

ghost avatar Oct 10 '18 19:10 ghost

Yeah, I know that @nofearnohappy didn't reversed it, but he says that it helped a lot to look the functions of the compiled drivers in the kernel

Azizb750 avatar Oct 11 '18 05:10 Azizb750

Are you serious? You don't even know why mtk devices doesn't have kernel sources released... And you want to lawsuit a company for this? They don't have the source from that time mtk were not open source compliant at all So calm down or i will ban your from github I'm very serious for it.

LOLOL. You can try ban me, i'm waiting for that to be happened, i'll wait for a week, i think that's enough time to do that.

You should write your opinion with more composure, rather than boasting like that. We are all in here is to give contribution to the community, not to boasting each other.

Good day and merry christmas. Ho Ho Ho

heindrix avatar Dec 26 '18 04:12 heindrix

C'mon!!?

People still blaming MediaTek?

Even back 4/5 years ago... The responsibility to release kernel source relies on the OEM ... Truth is many ODMs don't even give kernel source to their clients, even when requested

But what do I know right?

Edit: Or in many cases ODM ask for an ( absurd ) amount of money to share the kernel/fw/etc with their clients ^ this is the number one reason why small companies selling MTK based devices, don't release kernel sources

dragonpt avatar Dec 28 '18 12:12 dragonpt

Thank Youuuu, Mi 😍 not that hard, was it?

santomet avatar Jan 16 '19 11:01 santomet

I will close now the issue as hermes and hennessy's kernel source is now released, thanks @Micode a lot, please keep releasing the kernel source of other MTK devices too, have a good year

Azizb750 avatar Jan 17 '19 11:01 Azizb750

3 years to relase a lollipop source

LOL

#chinesefuckgpl

scafroglia93 avatar Jan 17 '19 14:01 scafroglia93