Welcome, Guest

Author Topic: Battery Stats for Debian Image  (Read 1811 times)

laughingguffly

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Battery Stats for Debian Image
« on: December 18, 2014, 10:15:18 PM »
Just bought the iMX233 and booted up the debian image. I've read the forums and they all seem to say that battery stats are available at /sys/class/power_supply/battery

/sys/class/power_supply/ directory is empty.

Am I looking in the wrong place?

laughingguffly

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: Battery Stats for Debian Image
« Reply #1 on: December 19, 2014, 03:24:34 AM »
Right I have done some research it turns out I had Kernel 3+ this means no support for the battery charger.

Ok, so I downloaded the other official kernel - Archlinux..

That only works if you boot it with the battery or the 5v charger.

If you boot together I receive

"unable to handle kernel NULL pointer dereference at virtual address 0000001d"

There seems to be a couple of posts over the last 12 months regarding this issue but with no solutions.

Does that mean that currently there is no official Distro that properly supports the charger for the iMX233?

swahren

  • Jr. Member
  • **
  • Posts: 99
  • Karma: +7/-0
Re: Battery Stats for Debian Image
« Reply #2 on: December 20, 2014, 11:59:58 AM »
Hi,

you could try to fetch the "latest" Kernel version from Freescale:

http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/?h=imx_2.6.35_maintain

In the case the problem is still reproducable you can post the complete stack trace here:

https://community.freescale.com/

Best regards
Stefan
« Last Edit: December 20, 2014, 12:02:25 PM by swahren »