maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1) (https://talk.maemo.org/showthread.php?t=81613)

Fabry 2012-07-31 14:13

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
 
Quote:

Originally Posted by Estel (Post 1245233)
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

patriotnop 2012-07-31 15:14

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
 
Quote:

Originally Posted by ersanpermana (Post 1245404)
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 :D
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

ersanpermana 2012-07-31 17:44

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
 
Quote:

Originally Posted by patriotnop (Post 1245484)
@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.:D

Estel 2012-07-31 21:46

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
 
Quote:

Originally Posted by Fabry (Post 1245469)
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

patriotnop 2012-08-01 01:56

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
 
Quote:

Originally Posted by ersanpermana (Post 1245534)
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.:D

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 :)

patriotnop 2012-08-01 23:35

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
 
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.

J4ZZ 2012-08-02 13:54

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
 
Quote:

Originally Posted by patriotnop (Post 1246270)
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

melisa queen 2012-08-02 14:31

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
 
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?! :)

AapoRantalainen 2012-08-02 23:02

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
 
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.

pali 2012-08-03 06:48

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
 
Quote:

Originally Posted by AapoRantalainen (Post 1246687)
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.

Quote:

Originally Posted by AapoRantalainen (Post 1246687)
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

Quote:

Originally Posted by AapoRantalainen (Post 1246687)
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

Quote:

Originally Posted by AapoRantalainen (Post 1246687)
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.

Quote:

Originally Posted by AapoRantalainen (Post 1246687)
----
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).

Quote:

Originally Posted by AapoRantalainen (Post 1246687)
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.


All times are GMT. The time now is 12:11.

vBulletin® Version 3.8.8