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)

Alecsandru 2013-06-25 21:19

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
can you add images to boot items? like n9's ubiboot?

ejcrashed 2013-06-26 21:18

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

Originally Posted by ejcrashed (Post 1354679)
Hi Pali, is there any way to boot a console only (aka recovery mode) kernel from SD card?

I did a mistake while doing some tinkering with my N900 and got into reboot loop, i don't wan to reflash, i just need to boot and mount rootfs so i could restore some files?

Greets.

Nevermind, got around it using nemo.

topet2k12001 2013-07-03 09:09

This Works Well
 
Quote:

Originally Posted by disappear (Post 1353207)
<snip>

Install u-boot from pali;

Code:

apt-get install -y u-boot-tools u-boot-flasher
restart n900

Code:

apt-get install kernel-power-settings
I would put a note here:

  1. There will be a pop-up notification telling you that U-Boot will be "overwritten" (i.e. Kernel Power will flash it). Do not accept it.
  2. This will result to Kernel Power Boot Image for U-Boot to be not installed.
  3. Open FAM and check if Kernel Power Boot Image for U-Boot is not installed. If so, install it. You will not be prompted to flash/overwrite the U-Boot Kernel
restart n900

Code:

sudo gainroot
u-boot-update-bootmenu

restart with open ukeyboard
choose kp52

If you want to installing backupmenu:

Code:

apt-get install backupmenu
Quote:

restart n900,with close ukeyboard,when shows the titles of u-boot,open ukeyboard and you see how loading bootmenu,choose maemo with..
I would edit this as:

  1. Turn off N900
  2. Keep keyboard open
  3. Turn on N900
  4. U-Boot will appear. You can select a Kernel.
  5. After selecting a Kernel, don't close the keyboard. Boot Menu (with Backupmenu inside of it) will initiate.

then advice from Pali:

Code:

root
ln -s /etc/bootmenu.d/20-Maemo5-kernel-power-2.6.28.10-power52.item /etc/default/bootmenu.item

after that the backmenu shoud properly load kp52
I think this is all,if somebody have other advice please share it

Just wanted to report that this works. :) I now have:

  1. Default kernel
  2. Kernel Power 52
  3. Backupmenu
...all powered by U-Boot. :) My next step now is to decide which CSSU I want to install, and then NITDroid. As for Nemo...I'll probably install it just so that I can write a Wiki Page/article about U-Boot and the steps to get it working with Backupmenu. :)

EDIT: I have modified the quoted message from "disappear" to show how I did it (basically it's the same steps but I rephrased them to be more descriptive/newbie-friendly).

I'll write an article for this in the Wiki Pages...not sure if this should be in a new Wiki article or if this should be placed/added in an existing Wiki Page/Article...please let me know your thoughts. I will likewise make a video of it (will reflash during the weekend to start all over).

marmistrz 2013-07-09 13:46

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Well, I put a config file for Nemo to /etc/bootmenu.d/

Code:

ITEM_NAME="Nemo"
ITEM_KERNEL="uImage"
ITEM_DEVICE="/dev/mmcblk0p6"
ITEM_FSTYPE="vfat"
ITEM_CMDLINE="root=/dev/mmcblk0p5"

But no entry is being displayed. What's more, I can't boot kernel-power now too (at first boot after installing kp there's was omap kernel and kp to choose, but now standard options (emmcboot, sdboot & etc.)). What am I doing wrong?

should u-boot-update-bootmenu be run as user or as root? Tried both, none work.

sLumPia 2013-07-09 14:23

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
ITEM_DEVICE value should be in format:
ITEM_DEVICE="${INT_CARD}pX"
or
ITEM_DEVICE="${EXT_CARD}pX"

marmistrz 2013-07-09 17:17

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

Originally Posted by sLumPia (Post 1357888)
ITEM_DEVICE value should be in format:
ITEM_DEVICE="${INT_CARD}pX"
or
ITEM_DEVICE="${EXT_CARD}pX"

OK, my 21-Nemo.item looks like that:


Code:

ITEM_NAME="Nemo"
ITEM_KERNEL="uImage"
ITEM_DEVICE="${INT_CARD}p6"
ITEM_FSTYPE="vfat"
ITEM_CMDLINE="root=/dev/mmcblk0p5"

But still no custom entries (including kernel-power-bootimg) show up.

pali 2013-07-09 18:18

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

Originally Posted by marmistrz (Post 1357885)
...now standard options (emmcboot, sdboot & etc.)...

This looks like your first eMMC partition (MyDocs) is not valid fat, ext2 or ext4. Some Windows and Linux systems using some fat extension which is not supported by u-boot, so then u-boot cannot read bootmenu file from MyDocs.
You need to (re)format MyDocs partition from Maemo (to be sure that you use correct format) to one support filesystem (fat, ext2 or ext4).

marmistrz 2013-07-09 18:41

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

Originally Posted by pali (Post 1357921)
This looks like your first eMMC partition (MyDocs) is not valid fat, ext2 or ext4. Some Windows and Linux systems using some fat extension which is not supported by u-boot, so then u-boot cannot read bootmenu file from MyDocs.
You need to (re)format MyDocs partition from Maemo (to be sure that you use correct format) to one support filesystem (fat, ext2 or ext4).

I was using gparted to shrink the partition. But fsck-ing the partition gives no problem. Is gparted doing some strange stuff?

pali 2013-07-09 18:45

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Problem is that u-boot support only subset of fat fs supported by linux and windows. gparted using dosfstools for fat support. And I think it enabled (or used) some fat extension which is not supported by u-boot.

marmistrz 2013-07-09 18:49

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

Originally Posted by pali (Post 1357929)
Problem is that u-boot support only subset of fat fs supported by linux and windows. gparted using dosfstools for fat support. And I think it enabled (or used) some fat extension which is not supported by u-boot.

Thanks.
and should I run u-boot-update-bootmenu as root or as user?


All times are GMT. The time now is 09:59.

vBulletin® Version 3.8.8