Notices


Reply
Thread Tools
BluesLee's Avatar
Posts: 311 | Thanked: 754 times | Joined on Jan 2010 @ Europe
#621
Originally Posted by minimec View Post
I contacted 'kido' of AsteroidOS today. The 'brcm-patchram-plus' tool alone is not enough. We also need to patch 'bluesleep.c' in the kernel sources. I got some links now and will have a closer look into it. Obviously I do this on the CM12 kernel sources. I guess you use a newer kernel now with the CM13 base.
BluesLeep.c .. A sign
 

The Following 5 Users Say Thank You to BluesLee For This Useful Post:
Posts: 304 | Thanked: 817 times | Joined on Feb 2014 @ Germany
#622
Originally Posted by minimec View Post
I contacted 'kido' of AsteroidOS today. The 'brcm-patchram-plus' tool alone is not enough. We also need to patch 'bluesleep.c' in the kernel sources. I got some links now and will have a closer look into it. Obviously I do this on the CM12 kernel sources. I guess you use a newer kernel now with the CM13 base.
I saw something like that when looking through their github page. Could you post the necessary commits?
 

The Following 3 Users Say Thank You to mautz For This Useful Post:
Posts: 75 | Thanked: 245 times | Joined on Feb 2012 @ Switzerland
#623
Originally Posted by mautz View Post
I saw something like that when looking through their github page. Could you post the necessary commits?
The 'BIG' patch is this one...

https://github.com/AsteroidOS/meta-d...-proc-bl.patch

Then you also have to compile 'brcm-patchram-plus' with this flag... "-DLPM_HAMMERHEAD"

I have to admit that this is far beyond my coder knowledge, but 'kido' offered his help. You will see in the patch, that in fact there are changes in multiple files of the bluetooth stack... You can always catch him in #asteroid on irc.freenode.
 

The Following 3 Users Say Thank You to minimec For This Useful Post:
Posts: 304 | Thanked: 817 times | Joined on Feb 2014 @ Germany
#624
Seems like most of the patches in bluesleep.c are already included in cm12.1 kernel. Adding the rest seems easy, if it doesn't throw any build errors.

I haven't figued out how to build brcm-patchram-plus, but i only tried for a few minutes...

Thanks again!
 

The Following 2 Users Say Thank You to mautz For This Useful Post:
Posts: 75 | Thanked: 245 times | Joined on Feb 2012 @ Switzerland
#625
Originally Posted by mautz View Post
Seems like most of the patches in bluesleep.c are already included in cm12.1 kernel. Adding the rest seems easy, if it doesn't throw any build errors.

I haven't figued out how to build brcm-patchram-plus, but i only tried for a few minutes...

Thanks again!
Yeah I also realized that some code is already baked in.


I add a comment of the conversation I had with 'kido' on #asteroid
Code:
19:07 @ kido : ok, anyway the patch just takes a couple of minutes to write. it's just a matter of hooking the standard kernel's HCI subsystem's HCI_DEV_REG, HCI_DEV_UNREG and HCI_DEV_WRITE to a handler in bluesleep.c that reproduces what bluesleep_write_proc_lpm and bluesleep_write_proc_btwrite do on the equivalents event

Last edited by minimec; 2017-05-10 at 22:07.
 

The Following 3 Users Say Thank You to minimec For This Useful Post:
Reply

Tags
hammerhead, nexus5, sailfishos, sfdroid

Thread Tools

 
Forum Jump


All times are GMT. The time now is 05:26.