[Q] creating and updating device tree - Android Q&A, Help & Troubleshooting

i am very much interested in compiling cm from sources . If a device(running 2.3) is not officially supported by cm so no device tree is found in github also..i want to learn how to make a device tree and vendor tree from scrach please guide me .aim fully prepared to spend my free time n this

Related

[Q] Compiling CM from Source

I was planning to build CM for a new device.
I saw some threads on xda related on creating device tree for a new device.
I made the prototype version of device tree and kept it aside for working later.
When I searched for making vendor tree, I cannot find any useful thread.
So how do one actually create a vendor tree?
If there is any thread related to that, link me up.
Some links here to help. - http://forum.xda-developers.com/showthread.php?t=2073370

[Q] Github help!! Vendor and device tree...

Hello, i am just a begineer, i want to compile a rom from official cyanogen...
The doubt i hav..
What are device trees and vendor trees in detail???
Vendor trees are made for specific devices like device trees?
parth.bhatia said:
Hello, i am just a begineer, i want to compile a rom from official cyanogen...
The doubt i hav..
What are device trees and vendor trees in detail???
Vendor trees are made for specific devices like device trees?
Click to expand...
Click to collapse
Device tree's contain the configuration files and settings files for your device, while vendor tree's contain proprietary binary blobs such as graphics, and other sensors. Vendor tree's are usually made for specific devices but there are some additional vendor tree's that are common to certain devices that share the same chipset and other features. The best way to learn about vendor and device tree's is to take a look at a good example of a device tree and a good example of a vendor tree, as well as a good example of a vendor wide common tree. Let me know if you still have questions I'll be happy to help you out.
Can i use vendor tree of my device made for ics in jb too??
parth.bhatia said:
Can i use vendor tree of my device made for ics in jb too??
Click to expand...
Click to collapse
You can try using that tree for compiling JB, you may get a compile error which you may have to fix but test it and it find out. Overall it should work for you, somethings may break but it should work.

Porting AOSP issues

Hello,
I'm a beginner with building ROMs, yet I found an interest in build an AOSP for a phone(mi4c). I found the kernel sources released by the vendor, but I am trying to figure out the next steps: creating a device tree and getting the vendor blobs.
As I could check the kernel if for 5.1(managed to build it), and I would like to try to make that - AOSP 5.1.
Is there any way to extract the device tree from kernel(I found some device tree on git, yet I would like to know if there is another way to create it)?
for vendor blobs and which are required I found some information here on xda, but haven't tested so far.
Thanks!

How to get kernel, device tree and vendor blobs?

I've seen one tutorial on developing custom rom from source. To do that device specific files like kernel, device tree and vendor blobs are needed. I have following problems regarding those files.
* Kernel - I have zip file of kernel downloaded from my device manufacturer site. How can i make use of that to build a rom?
* device tree - I'm not able to find a device tree for my device anywhere (github or anywhere), how can I build device tree using (kernel/stockrom...)
I'm totally new for this so I don't know if it is even possible or not. Or Is there any other way to create device tree.
* vendor blobs - I've same problem for vendor blobs as in device tree.
~ so from where and how I can extract or create device tree and vendor?
~ and make things ready to develop a custom rom
My device is HTC one (m8 eye)
code name : melsuhl
I have not found any tutorial to build vendor tree but there is an outstanding tutorial on building device tree..
Check this out : https://youtu.be/Uw_caMHZRC4
hello @HarshOne i am looking for the same things as you. Trying to build a lineageOS ROM for my cph2025 OPPO Find X2 Pro. Did you find a way to find those trees?

[Questions] Kernel source issues when compiling LOS/TWRP

Hello guys.
This question is specially for devs or advanced users with development skills.
My question is related to the kernel source of one of my devices, Huawei Mediapad T1 10 (codename: hwt1a21l). I got the kernel source from the oficial Huawei website and uploaded it to a github repo. My device, which has a msm8916 chiset, doesn't have any development (roms, recoveries, device tree, etc) and his rom, EMUI 3.0, is based on Kit Kat 4.4.2.
I have been trying to bring development for this tablet many months ago because the stock rom is too deprecated for the hardware that has, with the msm8916 there is a huge potential to bring it a lot of development.
Well, i'm going to summarize my problems when trying to bring development for the device:
To get started development, for example a LineageOS build i needed a solid base to start with: device tree, propietary blobs and kernel source, so i got all of them. I ported the device tree from another one very similar to mine (with the same chipset), extracted the propietary blobs with the build tools from the source and got the kernel source from the Huawei website. So everything seemed to be good, but when i start the build process with my Linux machine (repo sync > source build/envsetup.sh > breakfast hwt1a21l > brunch hwt1a21l) i always receive thousands of build error by the kernel source, and i have been fixing (or at least avoid) a lot of them but it never ends, so i don't know if it's worth to keep trying to "fix" them or if i'm wasting my time.
So, what i have been trying to do: i have been trying to build a LineageOS 14.1 and TWRP recovery with my device tree This: Mustang-ssc/android_device_huawei_msm8916-common ported from this one from @dianlujitao : dianlujitao/android_device_huawei_msm8916-common and the specific kernel source for my device downloaded from the Huawei website Mustang-ssc/android_kernel_huawei_hwt1a21l. Here ends the summary.
So after a lot of hours, days and nights over the last months trying to make progress with this and not getting any help from the few devs i asked after seeing my lack of progress i decided to publicly ask for help.
The questions:
1. I have the official kernel source (Mustang-ssc/android_kernel_huawei_hwt1a21l) which i didn't have success to compile it, and then i saw the kernel source from a device almost identical to mine (same chipset, brand, ram, ...) (dianlujitao/android_kernel_huawei_msm8916). Can i use that kernel source as a base for my device after porting the specific configurations of my official kernel source (defconfig, drivers, libraries)? That one is much more updated and probably optimized than mine, but i don't know if it's possible to adapt a kernel source from other device using your kernel source.
2. This may be a dumb question: my device has Kit Kat 4.4.2. Is there any link between the kernel source and the android version the device has? I mean, i don't know if i should do something to adapt my kernel source for newer android versions (Marshmallow, Nougat) of if it's ok to just build with it without any change.
If you read it all, congratulations, you're awesome
Still waiting for a reply

Categories

Resources