Re: [PATCH v2] New Nokia RX-51 power supply battery driver

From: Pali RohÃr
Date: Sat Mar 30 2013 - 18:51:21 EST


On Saturday 30 March 2013 22:42:29 Pavel Machek wrote:
> On Sat 2013-03-30 11:35:26, Anton Vorontsov wrote:
> > On Sat, Mar 30, 2013 at 07:07:05PM +0100, Pavel Machek wrote:
> > > On Wed 2012-10-31 10:48:40, Pali RohÃr wrote:
> > > > Hello, I fixed style issues and added it to Makefile and
> > > > Kconfig.
> > > >
> > > > power_supply: Add Nokia RX-51 battery driver
> > > >
> > > > This driver exporting battery design capacity,
> > > > temperature and voltage for battery in Nokia RX-51.
> > > > This driver is needed for open source battery
> > > > management on Nokia RX-51 (N900).
> > > >
> > > > Signed-off-by: Pali RohÃr <pali.rohar@xxxxxxxxx>
> > >
> > > Reviewed-by: Pavel Machek <pavel@xxxxxx>
> >
> > Thanks for the review, Pavel! Although, the patch is in
> > Linus' tree long ago. ;-)
>
> Yeah... I did a bit of history-digging ;-). Now, I should
> figure out how to put custom kernel on n900 _and_ keep it in
> working state at the same time.
>
> (I installed some kind of multiboot, then, apt decided to
> install some u-boot extension. Then it got interesting. I
> never got my own kernel to work, and u-boot magically
> disappeared, but I still have working phone :-).
>
> Pavel

Hello Pavel,

here are some hints for booting 3.8+ kernel on n900:

"multiboot" package from Maemo Extras is horrible hack which can
be used only for booting maemo 2.6.28 kernel. it flashing new
kernel to n900 nand, then reboot device, start maemo init and
mount/chroot into new os dir... after reboot it erasing kernel
nand area where is normaly uboot placed, so do not install it!

uboot in Maemo Extras cannot boot 3.x kernels because autobuilder
(Extras server app for buidling packages) has very old gcc which
produced semi-(non)working uboot (can boot some 2.6 kernels).

my uboot builds compiled by gcc 4.7 (which can boot 3.8 kernel):
http://atrey.karlin.mff.cuni.cz/~pali/u-boot/

info thread about uboot on n900:
http://talk.maemo.org/showthread.php?t=81613

kernel git repository with n900 patches (now based on v3.8-rc3):
https://gitorious.org/linux-n900/linux-n900

open source flasher 0xFFFF (working on x86-64 too) which can load
kernel and initfs via usb to n900 RAM without flashing nand:
https://gitorious.org/0xffff/0xffff

rescueOS - minimalistic n900 initrams distribution with usb mass
storage (eMMC and SD) and usb cdc ether for telnet console
http://206.253.166.96/N900/rescueOS/

If you need help with booting some upstream kernel on n900 join
to freenode #maemo-alternatives channel :-)

--
Pali RohÃr
pali.rohar@xxxxxxxxx

Attachment: signature.asc
Description: This is a digitally signed message part.