<div class="gmail_quote">On Sun, Feb 6, 2011 at 1:10 PM, Matei-Eugen VASILE <span dir="ltr"><<a href="mailto:matei.vasile@gmail.com">matei.vasile@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 2/6/11, Martin Jansa <<a href="mailto:martin.jansa@gmail.com">martin.jansa@gmail.com</a>> wrote:<br>
> On Sun, Feb 06, 2011 at 02:39:47AM -0800, skuphundaku wrote:<br>
</div><div class="im">>> The SHR I'm using doesn't have om at all.<br>
><br>
> opkg install omhacks<br>
><br>
>> Where can I find the source code for it?<br>
><br>
> git://<a href="http://git.debian.org/pkg-fso/omhacks.git" target="_blank">git.debian.org/pkg-fso/omhacks.git</a><br>
<br>
</div>Thank you! I took a look at it and through the source code.<br>
Unfortunately for me, it works by doing what I was trying to do<br>
anyway, so the fact that I don't have the charge_now node on my device<br>
is still a problem.<br>
<br>
Do you have any idea why charge_now is not there anymore? Could it be<br>
a problem in the kernel source? Or in SHR's build of the kernel? Or,<br>
maybe, even in SHR's image?<br>
<br>
M.<br>
</blockquote></div><br>I managed to figure it out. The newer kernels seem to be missing the feature I was looking for. Probably the kernel I was using back then had it (I never checked the code back then). I created a patch for drivers/power/bq27000_battery.c for shr-2.6.34, built a new kernel for my om-gta02 device and tested it. It seems to be working fine.<br>
<br>I attached the patch to this email, in case you find it useful and think others might need it.<br><br>M.<br>