maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   u-boot for the RX-51 (N900) (https://talk.maemo.org/showthread.php?t=62146)

Fabry 2011-11-19 16:30

Re: u-boot for the RX-51 (N900)
 
Quote:

Originally Posted by pali (Post 1125946)
I know twl4030 part of u-boot source code. And this new definitions are not used in u-boot. I added it because in next commits I need use twl4030 regulator for enable eMMC...

Twl4030 is the power management chip (as you of course know), so the problem could be around it.

If u-boot without some RX51 patches doesn't have the problem and if you tell that some TWL4030's patches are used only by your code one possible conclusion is that it is your TWL4030 code that generates the high power consumption problem.

I haven't a working SDK so I can't check myself, but if someone can compile u-boot without TWL4030 extra code we can check this supposition.

Radicalz38 2011-11-19 16:56

Re: u-boot for the RX-51 (N900)
 
I'll try to ask the source code/binary from my friend(after weekend) since she isn't online unless weekdays. or unless pali can provide us a copy without that commit to test. I also like to try it but the new rx51.c code depends on that commit and thats just the limit of my C programming skills scared of messing up with that part of my phone. lol

pali 2011-11-19 18:09

Re: u-boot for the RX-51 (N900)
 
Ok. I try to disable twl4030 regulator (but then eMMC not working) if this is that problem.

Radicalz38 2011-11-19 18:33

Re: u-boot for the RX-51 (N900)
 
Hmmm I'm not really good at these things + I haven't looked at into twl's documentation but I got a feeling this code snippet is the cause.. What do you think?


PHP Code:

twl4030_pmrecv_vsel_cfg(TWL4030_PM_RECEIVER_VSIM_DEDICATED,
TWL4030_PM_RECEIVER_VSIM_VSEL_18,
TWL4030_PM_RECEIVER_VSIM_DEV_GRP,
TWL4030_PM_RECEIVER_DEV_GRP_P1); 


pali 2011-11-19 18:39

Re: u-boot for the RX-51 (N900)
 
I disabled all twl4030 pm code (your written code too) and all mmc code.
But it did not help. :(

Radicalz38 2011-11-19 18:44

Re: u-boot for the RX-51 (N900)
 
:/ sorry for the trouble and false hope pali... Will ask my friend by monday maybe he did something else other that the twl code.

Radicalz38 2011-11-19 18:51

Re: u-boot for the RX-51 (N900)
 
btw follow up question pali... Is it possible that the power consumption issue is from mainstream? If no I might try making binaries and seperate your patches to know which one is the cause.

pali 2011-11-19 18:57

Re: u-boot for the RX-51 (N900)
 
I try to start commenting rx51 code and maybe I find line which cause problems. We can hope that problem is here and not in u-boot...

But if not I starting binary searching u-boot master upstream commit which could bring n900 power problem. (Rebasing rx51 patches on top of each tested commit...). This spends a lot of time and it is hard manuall work :(

Radicalz38 2011-11-19 19:06

Re: u-boot for the RX-51 (N900)
 
Sorry about that... That power consumption bug is really a major and showstopper bug for me. As it heats up my n900 even on idle usage + it reduces 1 to 3% of battery life per 30 mins on a starving profile from KP.

If you won't mind please post the tests, changes & results you have from rx51 code after you test cause I might try to continue your work later in case you still haven't found the problem.

qwazix 2011-11-26 19:10

Re: u-boot for the RX-51 (N900)
 
question: is kp49+uboot.bin.new the same as stable kp49 in devel or are there any changes.
Also, I would like to report that I also have the power consumption problem. 12 hours from full to empty (off) with cellular reception (fair), wifi on, no IM accounts enabled and NO use, it was just sitting on the table. I just checked the time once at about 10 hours after unplugging, battery was almost empty. If I flash kp49 without u-boot this is going to be remedied?

qwazix 2011-12-07 07:57

Re: u-boot for the RX-51 (N900)
 
I can confirm the power issue is u-boot related. I flashed kp49 only and all is well. After 12 hours of idleness the stock battery indicator still shows full.

flocke000 2011-12-17 01:15

Re: u-boot for the RX-51 (N900)
 
I can confirm this too, after changing back from uboot (u-boot+kp49.bin) to the normal kernel-power from the repo my battery lasts considerably longer.

m4r0v3r 2012-01-06 18:34

Re: u-boot for the RX-51 (N900)
 
for me kp49 seemed to do it, am using the latest uboot with pr1.3 and its working fine, am just trying to get it to work with multiboot grrr

anybody got any idea what the uboot + fiasco image is? is it the normal boot image? since am getting errors when i try to

flasher -u -F uboot.bin "(combined image)"

m4r0v3r 2012-01-07 01:52

Re: u-boot for the RX-51 (N900)
 
Quote:

Originally Posted by qwazix (Post 1122406)
Thank you all for your help,

I created the bootmenu.scr with m4r0v3r's
Code:

setenv bootmenu_4 'MeegoBoot (External SD card, partition 3, fat, uImage)=setenv mmcnum 0; setenv mmcpart 3; setenv mmctype fat; setenv mmcfile uImage; run trymmcuimage';
and now u-boot finds the meego ce kernel (it shows size, name and all) sticks at Starting Kernel for a few seconds and then the device turns off. Any ideas?

ive got that problem now, with stock kernel and the latest Nemo Mobile release, damnnn

freemangordon 2012-01-09 20:27

Re: u-boot for the RX-51 (N900)
 
@all - is it possible that all of you who have tested u-boot did not notice (or report) that system is running slow as hell, that Nokia boot video is jerky and not in sync with sound, etc,etc.

Anyway, the reason for the above (and I am almost sure for the battery drain too) is that L2(not sure about L1) CACHE IS DISABLED.

I fixed that (on my git tree) and sent a mail to Pali. Just asking here in case I got it wrong, i.e. am I the only one who have noticed the above behavior.

In case someone wants to test my changes (which are really minimal) here is my git tree (use branch pali and instructions from here)

flocke000 2012-01-13 17:49

Re: u-boot for the RX-51 (N900)
 
Could you build a .bin and upload it?
I tried to build it but when I boot with keyboard open there are some graphical errors instead of the bootmenu ...
Any idea what could cause this? Booting with keyboard closed works fine.

pali 2012-01-13 17:53

Re: u-boot for the RX-51 (N900)
 
post errors here.

flocke000 2012-01-13 17:56

Re: u-boot for the RX-51 (N900)
 
How do I get the error messages?
The only thing the screen shows are graphical artifacts, and only in the bootmenu. If I drop into the uboot console or boot with the screen closed the display is fine and there are no messages.

freemangordon 2012-01-13 18:36

Re: u-boot for the RX-51 (N900)
 
Quote:

Originally Posted by pali (Post 1150188)
post errors here.

Pali, confirming the above, after reboot the whole screen is full with garbage, seems there is some bug in ether video init or in code drawing the graphics.

flocke000 2012-01-13 23:23

Re: u-boot for the RX-51 (N900)
 
So my image was build correctly and the problem is in the code, thats good to know since it was my first time building uboot myself.
I would try to help, but my knowledge on this stuff is limited ;)
If someone could point me in the right direction on where to look I would love to get the log/error messages to help pali.

pali 2012-01-14 04:30

Re: u-boot for the RX-51 (N900)
 
Now I see that problem. But it was caused by upstream commit http://git.denx.de/?p=u-boot.git;a=c...8742960139f090

I already sent mail to list about that problem.

freemangordon 2012-01-14 07:52

Re: u-boot for the RX-51 (N900)
 
High battery drain fixed?

pali 2012-01-14 11:16

Re: u-boot for the RX-51 (N900)
 
Quote:

Originally Posted by freemangordon (Post 1150416)
High battery drain fixed?

seems yes :-)
I asked on mailinglist and they told me that, new #define which you used is correct way how to disable L2.

freemangordon 2012-01-14 12:51

Re: u-boot for the RX-51 (N900)
 
Quote:

Originally Posted by pali (Post 1150390)
Now I see that problem. But it was caused by upstream commit http://git.denx.de/?p=u-boot.git;a=c...8742960139f090

I already sent mail to list about that problem.

====

New builds of u-boot for pr1.3 and kp 49/50 with freemangordon fix are on http://atrey.karlin.mff.cuni.cz/~pali/

Does this build include workaround/fix for video garbage? Also I don't see commit with fix for L2 disabled bug neither in your branch nor in master.

pali 2012-01-14 13:13

Re: u-boot for the RX-51 (N900)
 
I did not pushed patches to git repo yet. Workaround for video garbage is commented function video_invertchar.

pali 2012-01-14 23:53

Re: u-boot for the RX-51 (N900)
 
Battery draining is really fixed, thanks freemangordon!
My N900 is still not discharged :-)

I'm prepairing new patch series (for upstream). I will update git repo, when I send patches to u-boot mailinglist...

I created simple format for u-boot bootmenu entires (similar as fanoush bootmenu) and shell script which generating u-boot script (storing to MyDocs). So it will be easy to add new kernels to u-boot bootmenu or booting another system...

pali 2012-01-15 04:20

Re: u-boot for the RX-51 (N900)
 
I created new thread about new version of RX-51 U-Boot:
http://talk.maemo.org/showthread.php?t=81613

Move here for discussion about new U-Boot


All times are GMT. The time now is 08:19.

vBulletin® Version 3.8.8