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)

AndrewX192 2012-01-15 20:24

Re: U-Boot for Nokia RX-51 with BootMenu
 
I've installed the tools and flasher packages, as well as the sample images + configs, and I don't see them in my boot menu. Instead I am offered to boot from Internal Flash, eMMC, SD, etc.

Here is the output of the u-boot-update-bootmenu script:

Quote:

# u-boot-update-bootmenu
Adding bootmenu entry for: Maemo 5 (Internal Nand)

Configuration file: /etc/bootmenu.d/01-Maemo-kernel-power-2.6.28.10-power49.item
Generating u-boot image for kernel zImage-2.6.28.10-power49...
Adding bootmenu entry for: Maemo kernel-power 2.6.28.10-power49

Configuration file: /etc/bootmenu.d/10-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/10-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/20-Maemo5-kernel-power-2.6.28.10-power49+pre50.item
Generating u-boot image for kernel zImage-2.6.28.10-power49+pre50...
Adding bootmenu entry for: Maemo 5 with kernel-power 2.6.28.10-power49+pre50

Configuration file: /etc/bootmenu.d/20-Maemo5-kernel-power-2.6.28.10-power49.item
Generating u-boot image for kernel zImage-2.6.28.10-power49...
Adding bootmenu entry for: Maemo 5 with kernel-power 2.6.28.10-power49

Configuration file: /etc/bootmenu.d/80-U-Boot-2011.12-1+zImage-2.6.28-omap1.item
Generating u-boot image for kernel u-boot-2011.12-1+zImage-2.6.28-omap1.bin...
Adding bootmenu entry for: U-Boot 2011.12-1 with zImage 2.6.28-omap1

Configuration file: /etc/bootmenu.d/80-U-Boot-2011.12-1.item
Generating u-boot image for kernel u-boot-2011.12-1.bin...
Adding bootmenu entry for: U-Boot 2011.12-1

Configuration file: /etc/bootmenu.d/backupmenu.item
cannot open /dev/null
another udev daemon already running
After the script has finished running, my screen backlight turns up, and starting a new X-Terminal window fails with message:

Quote:

CAL ERROR: open(/dev/mtd1): No such file or directory
mesg: /dev/pts/1: No such file or directory

pali 2012-01-15 20:27

Re: U-Boot for Nokia RX-51 with BootMenu
 
Quote:

Originally Posted by flocke000 (Post 1151006)
When I use your kernel images from the first post everything works fine, maybe I made a mistake before.

And would it be possible to use another dir for the config files?
Now if you have bootmenu installed along with u-boot you get the same menu items twice while booting.
And if you have the backupmenu entry in the dir the 'u-boot-update-bootmenu' command fails.

I have patches for fanoush bootmenu, which will ignore configs with kernels (fanoush bootmenu does not support booting kernels...)

Config file must have only variables with ITEM_ prefix. It is same in fanoush bootmenu.

Should I add some shell checking if config file has only variables? It will decreate bootmenu speed... But I think it is not needed...

pali 2012-01-15 20:29

Re: U-Boot for Nokia RX-51 with BootMenu
 
Quote:

Originally Posted by AndrewX192 (Post 1151007)
I've installed the tools and flasher packages, as well as the sample images + configs, and I don't see them in my boot menu. Instead I am offered to boot from Internal Flash, eMMC, SD, etc.

Here is the output of the u-boot-update-bootmenu script:



After the script has finished running, my screen backlight turns up, and starting a new X-Terminal window fails with message:

WTF, what you are doing? Config file must have only ITEM_ variables assing as written in first post!!

flocke000 2012-01-15 21:04

Re: U-Boot for Nokia RX-51 with BootMenu
 
Yeah that's what happend on my device too.
Move the 'backupmenu.item' out of the /etc/bootmenu.d, run 'u-boot-update-bootmenu' and move it back.

Fabry 2012-01-15 23:27

Re: U-Boot for Nokia RX-51 with BootMenu
 
Quote:

Originally Posted by pali (Post 1150994)
Try again, I updated u-boot-tools package

Unfortunately since some hours I have a N900 which no boot anymore (reboot loop) and I am trying to recover it without full reflash.

I have executed :
  • dpkg -i u-boot-tools (installed but not configured)
  • dpkg -i u-boot-flasher (install failed)
  • cd / && tar -xf /home/user/u-boot-images.tar.gz
  • u-boot-update-bootmenu
  • dpkg -i kernel-power-modules_2.6.28-10power49+pre50_armel.deb (which has removed power kernel v49 modules)
  • flashed manually new kernel
  • rebooted

Then phone has never completed boot process.

Tried many kernels but at some point it always reboots with all kernels (stock and power v50).
Tried RD mode and Kernel with FB but no results

Fortunately multiboot menu is still operative and I can launch backupmenu and its ssh shell, the problem is to find out what is the problem that causes reboot

Estel 2012-01-15 23:28

Re: U-Boot for Nokia RX-51 with BootMenu
 
Quote:

Originally Posted by pali (Post 1151008)
Should I add some shell checking if config file has only variables? It will decreate bootmenu speed... But I think it is not needed...

Absolutely agree with you. It;s already not noob-proof thing, so I think we can ommit things like this - everyone is responsible to check for typos/plain wrong content, before proceeding.

/Estel

AndrewX192 2012-01-16 01:49

Re: U-Boot for Nokia RX-51 with BootMenu
 
Quote:

Originally Posted by pali (Post 1151009)
WTF, what you are doing? Config file must have only ITEM_ variables assing as written in first post!!

Thanks! I'm not sure how that backupmenu.item file got in there.

For future thread readers, be sure to move backupmenu.item out of /etc/bootmenu.d/ before running u-boot-update-bootmenu.

Fabry 2012-01-16 03:28

Re: U-Boot for Nokia RX-51 with BootMenu
 
Quote:

Originally Posted by Fabry (Post 1151060)
Unfortunately since some hours I have a N900 which no boot anymore (reboot loop) and I am trying to recover it without full reflash.

Then phone has never completed boot process.

Tried many kernels but at some point it always reboots with all kernels (stock and power v50).
Tried RD mode and Kernel with FB but no results

Fortunately multiboot menu is still operative and I can launch backupmenu and its ssh shell, the problem is to find out what is the problem that causes reboot

Ok some hours needed but now phone is alive again.

Stock kernel can't work anymore (reboot loop), probably because I have updated dsp libs with N9 version.

Kernel v49 did not work because modules directory was not present (as I known)
Kernel v50 did not work because multiboot had replaced it with v49 at each boot tried with manually flashed v50 kernel

Solution: Manually install modules directory for kernel v49

Hurrian 2012-01-16 09:42

Re: U-Boot for Nokia RX-51 with BootMenu
 
Quote:

Originally Posted by AndrewX192 (Post 1151007)
I've installed the tools and flasher packages, as well as the sample images + configs, and I don't see them in my boot menu. Instead I am offered to boot from Internal Flash, eMMC, SD, etc.

I have this problem, but I don't have backupmenu item installed.
I updated to the newest tools and flasher, I don't get to see my menu.

How do I diagnose this? /home file system is ext4, if it's important.

pali 2012-01-16 10:43

Re: U-Boot for Nokia RX-51 with BootMenu
 
Quote:

Originally Posted by Hurrian (Post 1151205)
I have this problem, but I don't have backupmenu item installed.
I updated to the newest tools and flasher, I don't get to see my menu.

How do I diagnose this? /home file system is ext4, if it's important.

These U-Boot menu entries "Internal Nand", "Internal eMMC", "External SD card" are hardcoded into U-Boot binary and used if bootmenu script not exist (as fallback).

U-Boot bootmenu script is stored in MyDocs in file bootmenu.scr. U-Boot it load from first partition from internal mmc. So if you changed MyDocs partition number, U-Boot bootmenu will not work. Other partition on internal mmc (home, swap) has no effect for U-Boot.

Also you need to properly generate bootmenu.scr file. This file is generated by u-boot-update-bootmenu program. Do not forget to run it. Bootmenu entires is generated only if this program not failed - It must write someting like "generating bootmenu file..."


All times are GMT. The time now is 13:34.

vBulletin® Version 3.8.8