View Single Post
  #806  
Old 2011-05-15, 13:03
joerg_rw's Avatar
joerg_rw joerg_rw is offline
 
Join Date: Mar 2010
Location: SOL 3
Posts: 2,222
Thanks!: 3,399
Thanked 12,651 Times in 1,970 Posts
Default Re: [Announce] USB hostmode beta release

Quote:
Originally Posted by Estel View Post
Also, i don't want to put pressure but if You could kindly look @ that posted in last page:
It turned out a proper replacement of bme needs kernel tweaks (driver providing /sys nodes for bq27200 and bq24150), a rewrite of hal-addon-bme (to report battery state to hal and make things like normal battery applet work), among others, and those patches inevitably would cause bme to not work at all or at very least need severe messing around with kernel etc - in the end you have either a system with bme or a system working with bme-replacement but breaking several APIs for the way maemo works now, but you hardly can build a system that can do both.

([edit:] there's a kernel driver providing bq27200 sysfs API, and loading this driver causes bme to break, because the way bme is accessing that chip (direct I2C) is incompatible to what the driver does to kernel (exclusive allocation of the I2C resource, so bme can't do that).
Also I changed my mind recently towards a proper implementation of a bq24150 based charging controller shouldn't be done in userspace at all, like bme is done (Nokia probably chosen this approach only because for a kernel borne "bme" they couldn't keep it closed due to GPL). Rather it should become a comprehensive kernel module that exposes a sane mix of low level sysfs nodes to access chip registers/properties directly, and high level sysfs nodes to control what the kernel based charger does - there's a still half done spec for that I stopped to finish as nobody been interested in implementing it, obviously for the reasons mentioned above: it's no longer maemo but an incompatible kernel and APIs that needs rewrite of a lot of mostly closed source things like battery applet, and/or hal, dialer (yes!), et al [/edit])

My present ideas are more along a augmented h-e-n that implements charging hostmode in a kernel independent way. For jrbme probably shadowjk's charging script is almost as good as it gets.

[edit2] http://mg.pov.lt/maemo-irclog/%23mae...09-30T14:44:46 ff has some of the more recent stuff going on or planned regarding all that[/edit2]
sorry
jOERG
__________________
Maemo Community Council member [2012-10, 2013-05, 2013-11, 2014-06 terms]
Hildon Foundation Council inaugural member.
MCe.V. foundation member

EX Hildon Foundation approved
Maemo Administration Coordinator (stepped down due to bullying 2014-04-05)
aka "techstaff" - the guys who keep your infra running - Devotion to Duty http://xkcd.com/705/

IRC(freenode): DocScrutinizer*
First USB hostmode fanatic, father of H-E-N

Last edited by joerg_rw; 2011-09-30 at 12:30.
Reply With Quote
The Following 6 Users Say Thank You to joerg_rw For This Useful Post: