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

From: Pavel Machek
Date: Wed Apr 10 2013 - 06:06:30 EST


Hi!

> > > 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 :-).
>
> Hello Pavel,
>
> here are some hints for booting 3.8+ kernel on n900:

Ok, I have compiled defconfig kernel (with patches, as indicated).

sudo src/0xFFFF -m /data/l/linux-n900/arch/arm/boot/zImage -l -b

seems to boot it, I see kernel messages scrolling, but it reboots
instead of going to the GUI.

> "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!

I had it already :-(. Removed now. I tried running custom kernel, but
then multiboot interfered. I got u-boot installed with help from irc.

Unfortunately, the u-boot can not boot kernel-power, so I'm back to
original kernel without tethering :-(.

> 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/

Can I get away with using u-boot package in the repositories?

Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/