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)

Nobless 2012-04-30 19:47

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

Originally Posted by vakkov (Post 1199155)
@Nobless you didn't replace init.nokia.rc and init_subsys

I replaced :) but in you filename : "init.nokia.rc" was error: "init.nokia .rc" and i checked now, renamed it and its works :) Thanks now its boot ok. :)

pali 2012-05-01 00:36

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
1 Attachment(s)
Here is new version of script u-boot-update-bootmenu which support specifing first (default) menu entry. Specifing first menu entry is done by creating symlink from menu entry file to /etc/default/bootmenu.item

For example this will configure kernel power v50 as first entry:

Code:

$ ln -sf /etc/bootmenu.d/20-Maemo5-kernel-power-2.6.28.10-power50.item /etc/default/bootmenu.item
$ u-boot-update-bootmenu

Please note that when keyboard is closed, u-boot will always boot attached kernel. This behaviour must be changed in u-boot binary.

J4ZZ 2012-05-01 13:31

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
Just tried the above, but in u-boot when I choose attached kernel, again only omap1 gets loaded and after that in boot menu, there's only one option which says Maemo 5 (Internal Nand) and wich again only boots omap1 instead of anything else? *feeling noobish*

What I'm missing? :D

Greetz,

J4ZZ

pali 2012-05-01 13:38

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
@J4ZZ, what about writing output from update script and output of ls -l /etc/default/bootmenu.item ?

J4ZZ 2012-05-01 13:43

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
This is update-script output:
Code:

┌[ root]+[N900]
└[~]--> u-boot-update-bootmenu
Default bootmenu entry is '/etc/bootmenu.d/20-Maemo5-kernel-power-2.6.28.10-power50.item'
Adding bootmenu entry for: Maemo 5 with attached kernel 2.6.28-omap1 (Internal Nand)

Configuration file: /etc/bootmenu.d/20-Maemo5-kernel-power-2.6.28.10-power50.item
Generating u-boot image for kernel 'zImage-2.6.28.10-power50'...
Adding bootmenu entry for: 'Maemo 5 with kernel-power 2.6.28.10-power50'
Configuring this bootmenu entry as default

Configuration file: /etc/bootmenu.d/30-Maemo5-2.6.28-omap1-fb.item
Generating u-boot image for kernel 'zImage-2.6.28-omap1-fb'...
Adding bootmenu entry for: 'Maemo 5 with 2.6.28-omap1-fb'

Configuration file: /etc/bootmenu.d/30-Maemo5-2.6.28-omap1.item
Generating u-boot image for kernel 'zImage-2.6.28-omap1'...
Adding bootmenu entry for: 'Maemo 5 with 2.6.28-omap1'

Configuration file: /etc/bootmenu.d/40-Nemo.item
Adding bootmenu entry for: 'Nemo'

Configuration file: /etc/bootmenu.d/50-NITDroid.item
Adding bootmenu entry for: 'NITDroid'

Configuration file: /etc/bootmenu.d/60-Kubuntu.item
Adding bootmenu entry for: 'Kubuntu'

Generating u-boot bootmenu script...

And here is ln -s...:
Code:

lrwxrwxrwx    1 root    root            61 Jan  1  2000 /etc/default/bootmenu.item -> /etc/bootmenu.d/20-Maemo5-kernel-power-2.6.28.10-power50.item

pali 2012-05-01 13:47

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
Now you should have in u-boot first entry "Maemo 5 with kernel-power 2.6.28.10-power50". If not, sent me generated file bootmenu.scr from MyDocs

J4ZZ 2012-05-01 14:01

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
1 Attachment(s)
The first pickable options I see from bootmenu are only:

Attached kernel
Internal eMMC
External SD card
U-Boot boot order
U-Boot console

Then when I select "Attached kernel"
Fanoush Boot menu starts with
"Maemo 5 (Internal Nand)"
and
"Power off (when not on charger)" options. That's all I get.

I attached bootmenu.scr :)

pali 2012-05-01 14:21

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

Originally Posted by J4ZZ (Post 1200073)
The first pickable options I see from bootmenu are only:

Attached kernel
Internal eMMC
External SD card
U-Boot boot order
U-Boot console

Then when I select "Attached kernel"

This output is default hardcoded into u-boot. And it is fallback if bootmenu.scr cannot be loaded from first eMMC fat32 partition.

So you have problem, that u-boot cannot read bootmenu.scr from that location. But no idea why. Do you have corrupted/resized/reformated/... MyDocs?

Quote:

Originally Posted by J4ZZ (Post 1200073)
Fanoush Boot menu starts with
"Maemo 5 (Internal Nand)"
and
"Power off (when not on charger)" options. That's all I get.

Fanoush bootmenu is now irrelevant.

Quote:

Originally Posted by J4ZZ (Post 1200073)
I attached bootmenu.scr :)

Uhm, your bootmenu.scr does not contains kernel power... This is also strange... I will try to investigate this problem too.

J4ZZ 2012-05-01 14:46

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
http://img705.imageshack.us/img705/9...0512164317.png

I reformatted MyDocs a while back under Ubuntu with Gparted, because i had to delete a few unused partitions. But I think that should be no problem at all, should it?

pali 2012-05-01 15:02

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
run in u-boot these commands:
mmcinfo
mmc dev 1
mmc part 1
fatls mmc 1:1 /


All times are GMT. The time now is 04:25.

vBulletin® Version 3.8.8