N810 battery notes
Just some notes for the N810:
- Read battery voltage from /dev/retu with the kcbatt tool here:
http://mrrau.dyndns.org:23280/n800/kcbatt/
- Perhaps other things from this list could be read from /dev/retu the same way, but I don't see the time here unfortunately:
http://marc.info/?l=linux-omap&m=120752529631862&w=2
- Set up bme for battery charging (use at your own risk of course):
1. Copy initfs to /root/initfs or somewhere
2. Put the two attached files in there and 'chmod +x' them
3. Run, as root: 'chroot initfs /c_bat' (after each boot)
4. Test; you should be able to charge your battery now
#!/bin/sh
mount -t proc none /proc
mount -t sysfs none /sys
mount -t tmpfs none -o size=512K /tmp
mkdir /tmp/dev
mknod /tmp/dev/retu c 10 $( grep retu /proc/misc | cut -d " " -f 2 ) mknod /tmp/dev/tahvo c 10 $( grep tahvo /proc/misc | cut -d " " -f 2 ) dsme -d -l stderr -v 0 -p /usr/lib/dsme/libstartup.so waitfordsme
#!/bin/sh
if ! test -e /tmp/dsme.pid ; then
/c_start
fi
dsmetool -f "/usr/bin/bme_$( grep product /proc/component_version | cut -c 13- )"