Active Topics

 


Reply
Thread Tools
Posts: 362 | Thanked: 426 times | Joined on Nov 2010 @ Italy, Lombardia
#421
Originally Posted by Estel View Post
powertop output is absolutely OK, no unexpected wakes from kernel, etc.

Fabry, could You open my tutorial for measuring battery capacity (it's in my signature), grab bq27200.sh script posted there (You may ignore everything else written there, if You wish), put it in your device, ensure, that You have i2c-tools installed, and finally, run it in loop, via:

Code:
bq27200.sh 5
...On idle device, with everything (including GSM) turned off. Then, lock the screen, and put phone to rest for 5 min, with script running in background. After this, copy and paste here last 15-20 lines, OK?

Normal result for idle device, with script like bq27200.sh looping every 5 seconds, is 20-25 mA current detected. We will see, if Your current usage is higher.

/Estel
Test done for ten minutes with WiFi Off and 3G in offline mode.
Current detected is like an average of 26-27mA with a minimum of 24 and a maximum of 29.

Now I am retesting with gps off and with log to file

Last edited by Fabry; 2012-07-31 at 14:16.
 

The Following User Says Thank You to Fabry For This Useful Post:
Posts: 12 | Thanked: 12 times | Joined on Jan 2011
#422
Originally Posted by ersanpermana View Post
You must Create symlink to /etc/default/bootmenu.item from your item file. For example:
$ ln -s /etc/bootmenu.d/20-Maemo5-kernel-power-2.6.28.10-power51.item /etc/default/bootmenu.item
don't forget u-boot-update-bootmenu
and change ITEM_OMAPATAG to ITEM_REUSEATAGS
@ersanpermana Thank you very much but I did all what you said but I got the same result. More idea pls.

PS. I got warning text during u-boot-update-bootmenu

Previously, after failed to boot KP51 via uboot I over write uboot flasher with KP51 and tried as @ersanpermana posted with 3 zImage Omap1 KP51 KP48 ln -s KP51 as default kernel but Omap1 loaded instead KP51

Last edited by patriotnop; 2012-07-31 at 15:23. Reason: more comment
 
ersanpermana's Avatar
Posts: 92 | Thanked: 41 times | Joined on Jun 2012 @ indonesia
#423
Originally Posted by patriotnop View Post
@ersanpermana Thank you very much but I did all what you said but I got the same result. More idea pls.

PS. I got warning text during u-boot-update-bootmenu

Previously, after failed to boot KP51 via uboot I over write uboot flasher with KP51 and tried as @ersanpermana posted with 3 zImage Omap1 KP51 KP48 ln -s KP51 as default kernel but Omap1 loaded instead KP51
You have to try again.
Save zImage KP51 in /boot/
and you must change
ITEM_OMAPATAG in / etc / bootmenu.d / to ITEM_REUSEATAGS
remove the default boot symlinks in / etc /default /
and make the default boot anymore .. finish do not forget to update u-boot-boot-menu.
 
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#424
Originally Posted by Fabry View Post
Test done for ten minutes with WiFi Off and 3G in offline mode.
Current detected is like an average of 26-27mA with a minimum of 24 and a maximum of 29.

Now I am retesting with gps off and with log to file
Re-testing won't hurt, but even current results are absolutely OK. Even better than average result considered as "within error margin".

This script checks actual power usage, no matter where it originates - from U-boot, screen, kernel, or whatever - so, I think that it should convince You, that everything is OK, after all.

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 
Posts: 12 | Thanked: 12 times | Joined on Jan 2011
#425
Originally Posted by ersanpermana View Post
You have to try again.
Save zImage KP51 in /boot/
and you must change
ITEM_OMAPATAG in / etc / bootmenu.d / to ITEM_REUSEATAGS
remove the default boot symlinks in / etc /default /
and make the default boot anymore .. finish do not forget to update u-boot-boot-menu.
Still the same the problem is u-boot-update-bootmenu let KP51 image as default but the command add Omap1 into internal Nand. Don't know why. I will recheck my step again.
Thank a lot @ersanpermana for your help
 
Posts: 12 | Thanked: 12 times | Joined on Jan 2011
#426
Finally, I rechecked my step nothing wrong. I tried to change ATAG but still the same, no bootlist kernel. It only boot omap1 internal Nand.
BTW I found the problem when reboot my device after u-boot-update. The bootmenu.src cannot read, then it was boot by internal Nand again. I opened /home/user/MyDocs/bootmenu.src with text editor but nothing there.

so anyone pls guide how about this http://talk.maemo.org/showpost.php?p...&postcount=256 How to edit u-boot-update script pls supervise.
 
Posts: 539 | Thanked: 518 times | Joined on May 2010 @ nanaurbusiness
#427
Originally Posted by patriotnop View Post
Finally, I rechecked my step nothing wrong. I tried to change ATAG but still the same, no bootlist kernel. It only boot omap1 internal Nand.
BTW I found the problem when reboot my device after u-boot-update. The bootmenu.src cannot read, then it was boot by internal Nand again. I opened /home/user/MyDocs/bootmenu.src with text editor but nothing there.

so anyone pls guide how about this http://talk.maemo.org/showpost.php?p...&postcount=256 How to edit u-boot-update script pls supervise.
Your emmc is damaged... I had the same issue.

So backup everything from MyDocs to PC and then
Code:
mkfs.vfat -F32 /dev/mmcblk0p1      #in most cases
After that copy your files back.

now re-run u-boot-update-bootmenu

and you should be fine.

If not run a FSCK on MyDocs again and make sure *power51.item uses ITEM_OMAPATAG=1 (not REUSEATAGS or USEATAG) <- See 1st post!

You can follow all the steps by reading through pages 22 to 26 from Posts #220 -> #251 between me, Pali and drucula

Regards,

J4ZZ
__________________

N900 ~ $ make me a sandwich
-bash: no, make it yourself
N900 ~ $ sudo make me a sandwich
-bash: ok then...
 

The Following User Says Thank You to J4ZZ For This Useful Post:
Posts: 53 | Thanked: 105 times | Joined on Jan 2012 @ Iran
#428
I read the thread!

Now I have Kpv51, omap1 with fb, Omap1, and Android!

But I don't have the most important one! Backupmenu!

How can I get this also working?!
 
Posts: 838 | Thanked: 3,384 times | Joined on Mar 2009
#429
I tried to compile u-boot:

(inside scratchbox1, with stock tools)
Code:
git clone git://gitorious.org/u-boot-shr/u-boot.git
cd u-boot
git checkout origin/pali
fakeroot dpkg-buildpackage
a) Build-Depends: kernel-bootimg
Where to get this package?
Workaround: place zImage to the /boot/zImage-2.6.28-omap1

b)
Code:
debian/u-boot-tools/usr/bin/u-boot-gen-combined debian/u-boot-bootimg/boot/u-boot-2012.04-2.bin uImage combined.bin
U-Boot binary is too big (actual size 262580, max size 262144)
Before "objcopy --gap-fill=0xff -O binary", it's size is 985157.

----
With gcc-4.6 and ld2.22

couple warnings:
board.c:49:13: warning: 'omap3_invalidate_l2_cache_secure' declared 'static' but never defined [-Wunused-function]
board.c:393:13: warning: 'omap3_update_aux_cr' defined but not used [-Wunused-function]

sizes:
1002559 debian/build/nokia_rx51/u-boot
250028 debian/build/nokia_rx51/u-boot.bin
-> fits.
 

The Following User Says Thank You to AapoRantalainen For This Useful Post:
Posts: 2,153 | Thanked: 8,462 times | Joined on May 2010
#430
Originally Posted by AapoRantalainen View Post
I tried to compile u-boot:

(inside scratchbox1, with stock tools)
I'm using arm-linux-gnueabi-gcc from Ubuntu, version:
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)

and madde gcc (arm-none-linux-gnueabi-gcc), version:
gcc version 4.2.1

I do not know of other (and special scratchbox old) compiler will work.

Originally Posted by AapoRantalainen View Post
Code:
git clone git://gitorious.org/u-boot-shr/u-boot.git
cd u-boot
git checkout origin/pali
fakeroot dpkg-buildpackage
better use: dpkg-buildpackage -b -rfakeroot

Originally Posted by AapoRantalainen View Post
a) Build-Depends: kernel-bootimg
Where to get this package?
Workaround: place zImage to the /boot/zImage-2.6.28-omap1
Download package kernel, it contains /boot/zImage*.fiasco
Use flasher-3.5 to unpack fiasco image: flasher-3.5 -F zImage*.fiasco
And then copy unpacked zImage to /boot/zImage-2.6.28-omap1

Originally Posted by AapoRantalainen View Post
b)
Code:
debian/u-boot-tools/usr/bin/u-boot-gen-combined debian/u-boot-bootimg/boot/u-boot-2012.04-2.bin uImage combined.bin
U-Boot binary is too big (actual size 262580, max size 262144)
Before "objcopy --gap-fill=0xff -O binary", it's size is 985157.
Sounds bad. maybe bad gcc or other u-boot scripts.... Try to use gcc optiomalization for size.

Originally Posted by AapoRantalainen View Post
----
With gcc-4.6 and ld2.22

couple warnings:
board.c:49:13: warning: 'omap3_invalidate_l2_cache_secure' declared 'static' but never defined [-Wunused-function]
board.c:393:13: warning: 'omap3_update_aux_cr' defined but not used [-Wunused-function]
Ignore, upstream problems. (You can comment that two functions, they are not needed for our rx51 build).

Originally Posted by AapoRantalainen View Post
sizes:
1002559 debian/build/nokia_rx51/u-boot
250028 debian/build/nokia_rx51/u-boot.bin
-> fits.
u-boot.bin should be stripped and not (ELF) wrapped version of u-boot which is bootable by nolo.
 

The Following 3 Users Say Thank You to pali For This Useful Post:
Reply

Tags
bootmenu, u-boot


 
Forum Jump


All times are GMT. The time now is 22:45.