[Q] How to update Mali driver ? - Android Q&A, Help & Troubleshooting

Hello,
In these last weeks i have been cooking and modifying my kernel's device.
Successfully. Changed all sorts of things, memory management, kernel, filesystem made it linaro compilable and so on so on.
However i have been unable to update the Mali Driver. It is currently running r2p4, so is UMP.
Any tips, or anyone could share his own experience on the general steps that one has to make in order to update the graphic driver ?
Thank you in advance

Related

[Q] Making a custom Kernel?

I've had a search and a look around but can't see anything specific enough to answer this.
I have read that the SGS2 uses the new BCM4330 chipset for it's WiFi-N support.
It looks to me that for existing kernels they are using either the existing kernel support or possibly the b43 driver.
I need to find out, and while I have compiled custom kernels in nix in the past, I have never done so in Android, so I'm a little out of my comfort zone here.
I want to compile a kernel where the WiFI driver will support monitor mode, ideally it would be the CM7 kernel with just this extra functionality added, however a number of the tools that I would use to identify the existing configuration do not seem to be available in the standard CM7 build (lspci being one).
I don't want to frack around too much without having read up first so could anyone point me at a good guide for creating my own Android Kernel, even better if the guide was specific to the CM7 version.
Lastly I mostly run a Fedora environment, however the bits I have read seem to suggest a number of tools are only available in a Ubuntu guise (heimdall springs to mind and while I'm sure it's possible to recreate it for Fedora I'm trying to reduce the number of dependencies I'll have to recreate as much as possible). Therefore can I get some advice regarding the least complicated way to generate an Android build environment in Linux.
Thanks
For kernel compilation on android, you can check the several repositories there are for the several kernels. Depending on each kernel/repository/user, you can find a predefined .config inside them, so you can get the basic configuration to compile the kernel, don't know if CM7 has it in its repository...
As for the enviorment, I haven't tried compiling a kernel, but I did compile some ROM on Gentoo Linux, so I suppose it could also be done in Fedora without many problems. The main thing about using Ubuntu is that is very extended, so they're using it as main Linux base, but that doesn't mean it can't be done in other linux distros. You can check CM7 wiki for building from source to install the required packages for your enviorment. In my case I cross checked the Ubuntu packages with Gentoo to install gentoo's version of that packages/tools to be able to compile without problems.
Also in the case of building kernels, you need a toolchain to be able to compile, but there are several webs/tutorials with info on how to use that.
EDIT: You have a complete tutorial for CM7 in their wiki with the needed packages for both Debian and Red Hat based distributions...
Very useful, thanks for the info.
Very useful info.
Hi,
I'm interested in compiling a custom kernel to support wifi monitor mode, but I read in a previous post that it can be a hardware limitation which makes it impossible to use monitor mode. Can anyone confirm that? Maybe a statement/answer from Broadcom?
I'm just asking it because I don't want to start playing with kernel compilation and driver hacking if it can't be done because of some missing code on the chipset or something.
Thanks.
kepten said:
Can anyone confirm that? Maybe a statement/answer from Broadcom?
Click to expand...
Click to collapse
I doubt Broadcom will answer that, but you can try to search the chipset info in Broadcom's web and see if its supported. Also you can check kernel modules if they can compile against that version.
AzureusPT said:
I doubt Broadcom will answer that, but you can try to search the chipset info in Broadcom's web and see if its supported. Also you can check kernel modules if they can compile against that version.
Click to expand...
Click to collapse
Well, Broadcom's website says nothing about monitor mode but I've found a driver (https:// github.com/cyanogen/galaxy-2636/blob/ics/drivers/net/wireless/bcm4330/src/include/wlioctl.h#L1153) which at least mentions it. This is for Galaxy Tab 10.1 which has the same chipset so maybe someone with a Tab 10.1 could verify if monitor mode works with that kernel/driver? ??

How to update mali driver at kernel?

Hi!
First, I'm sorry to my little English. please understand.
I'm a newbie kernel maker. I saw some kernel post. example, siyahkernel and how to kernel compile... etc.
then I known how to add governor, io scheduler and update wifi driver.
but I want how to update mali driver and another specially driver or source.
I downloaded mali android driver. hmm... but I don't know.:crying:
How to update mali driver or add kernel driver?
Please advise to me!
ps. please explain to add kernel driver is anything.
umm... that's hard question?
then, where do other kernel developers know update or add kernel driver?
...

[Q] Mainline kernel for Galaxy S III

Dear users!
A few days ago I compiled a mainline Linux kernel for my server and I saw this kernel supports the Samsung Exynos 4412 so I had the idea to run a mainline kernel on my S III. The reason why I want this is that I want to run Debian, which is available for ARMv7 processors, on my S III.
My question is: How do I have to compile the kernel to get a binary out that's compatible with my phone? Do I need a special configuration?
I'm sorry for writing it here but I don't have permission to write into the correct part of this forum and I need the information.
Thank you!
I m no expert but there too much out-of-tree code running on a typical handset; mainline kernels simply lack the drivers needed to make everything on that handset work. A typical phone is running 1-3 million lines of out-of-tree code. Read more here
https:**lwn.net*Articles*662147* (replace * by / ) i cant post links yet

Building a Kernel/rom

Hi everyone.
I know little-nothing about Linux and compiling kernels. I almost never used Linux, I don't know any programming language, but I'm a PC master(hardware/windows etc). First of all, from what I read, I need to learn Linux and only after I should learn how to build a kernel. Can someone help me, or give me a link for better understanding/learning linux, and after how to compile own kernel from source(or modify it, for ex: updating libs(if it's possible, adding overclock to cpu/gpu, update gpu driver, upstream kernel at the latest one etc). I'm saying again, I'm newbie, but I can learn very fast + i can have virtual machine with latest Ubuntu).
Thanks everyone who try to help me! Have a good life.

Android kernel how to make compatible with higher os? (+Where can I find the patch?)

Hello, I'm newbie dev trying to build CM13 for Lenovo Phab plus.
I think I'm almost finished with device and vendor, but I cannot figure it out what to do with kernel.
The circumstance is,
I have a stock kernel source which runs in 5.1.1 LP, with version of 3.10.49.
What I want is to make kernel compatible with 6.0.1.
I already know that linux kernel version doesn't have to be exactly same with new Android OS versions and I can just make a few patches in order to run kernel in higher OS.
So I googled and studied(?) for 2-3weeks, but got not many useful informations and I still cannot figure out where to find required patches for 6.0.1 .
So here's what I am not sure about.
1. I found that I can either upstream, merge, cherry-pick kernel sources from higher OS. For instance, if I merge kernel patches (starting from 3.10.50 to 3.18 step by step) and check if the kernel compiles successfully, is this a right thing to do? I am confused whether merging or cherry-picking is required for my situation.
2. I see lots of commits when comparing with other kernel sources in github. How do you find those kinds of patches? -> just keep compiling kernel and if error comes out->search->commit
Always this pattern goes again and again till boot properly?
3. i'm quite curious with backports. What i know is that "backports" are the files which is compatible for lower version kernels. For example, backported audio driver originally based on 4.9 can be used in kernels with version below 4.9. Is it right?
4. If there is an useful links, anything could be helped a lot.
THANKS IN ADVANCE.

Categories

Resources