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)

Android_808 2014-07-21 18:13

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Is there a possibility of creating a package for U-boot with CSSU kernel in repos? Be it extras or within CSSU repos themselves.

I understand not wanting to force kernel-power on users via this method, but as an approved CSSU kernel it would be beneficial. Any errors with setup will causes issues for thumb users if they only have stock kernel available.

Mir57 2014-12-01 13:56

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Please, can someone help me?
I have Nemo Mobile (20130620.0.1) image written on the second partition (4 GB) of my 32 GB SD card. I´m just confused, when I read any guide for booting it.
I just want to know, where should I place nemo-armv7hl-n900-uImage and what should i write into 40-nemo.item

Thank you for any replies.

peterleinchen 2014-12-01 23:08

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Sorry, but I cannot remember as it is ages since I last used Nemo on N900.
But I still have that old config in /etc/bootmenu.d/
Code:

~ $ cat /etc/bootmenu.d/21-Nemo-2.6.37.item
ITEM_NAME="Nemo with kernel 2.6.37-12.2"
ITEM_KERNEL="vmlinuz-2.6.37-12.2.Nemo.Adaptation.N900-adaptation-n900"
ITEM_MODULES="ext3"

and from this I guess you may place the kernel (adapt name!) in /boot (or /opt/boot).
About location of nemo rootfs (second partition of your SD) I do not remember if something like this
Code:

ITEM_CMDLINE=root=/dev/mmcblk1p2
was already in kernel, or you needed to add (but as I do not have, guess not).

After putting all in place do not forget to run u-boot-update-bootmenu.
Hope it sheds some light.

Mir57 2014-12-06 14:21

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
I have installed U-Boot by Pali with Maemo power kernel support. After that, i followed instructions here in the 2nd post http://talk.maemo.org/showthread.php?t=90157 . Latest Nemo uImage and raw was downloaded from here http://releases.nemomobile.org/relea...-armv7hl-n900/ .
Still, if I used instructions in the post before, I´ve renamed uImage to vmlinuz..... And I put it both to /boot and /opt/boot, u-boot-update-bootmenu gives me ´vmlinuz...´ was not found.

saponga 2015-04-07 19:15

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Please, i need u-boot, kernel-power + settings e overcloking and CSSU-Thumb. If i start from a fresh system, can i install u-boot-flasher, kernel-power-u-bootimg, kernel-power-settings and finally CSSUThumb in that order or will the installation of kernel-power-flasher overwrite something on u-boot side ? :confused:
Thanks. :)

mihirdhanani 2015-06-23 08:13

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

I am not sure if this is the right place to post this, but need some help with my n900..
I can't seem to get into update mode for flashing it back to maemo, i am stuck with uboot screen as soon as i connect usb, i couldnt charge it either so i charged my battery in another n900 and tried to go back to update mode but no success. With my device not going in update mode i am unable to flash even just the kernel as read in some other posts. I am able to load meego and nemo from my sd card slot though if that can help me get back to maemo.

Please help and thanks in advance

peterleinchen 2015-06-23 11:52

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Pull battery, connect USB, start flasher on PC, hold 'U' button and put battery inside.
That should work.
Else give some more info about your steps ...

mihirdhanani 2015-06-23 12:47

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Hi, i tried that it doesnt go into update mode. As soon as i connect the usb pressing u, uboot starts directly and restarts after starting kernel, same thing over and over again.

peterleinchen 2015-06-23 13:33

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Please read again and do the steps in described sequence!

What kind of OS you are on? Windows? Then switch to any Linux flavour (also live CD) or try to reinstall Communication Drivers (e.g. by reinstalling flasher or Suite).
What kind of PC? Front USB?
switch to another port (mainboard)

Switch to a completely different PC ...

--
what is the output in flasher console?
(as a last resort, a cold flash may be helpful)

ymartin59 2015-07-17 20:33

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
My N900 is stuck at boot time with "default" U-boot menu without options to start Power52 kernel... after a mistake of mine manipulating /etc/bootmenu.d/ content.

First option "Attached kernel" leads to Backup Menu where I restored my latest rootfs and optfs backup... without more success to restore U-boot menu.

What u-boot commands should I invoke in console to load power52 initrd and kernel image... so that I can then call "u-boot-update-bootmenu" with hope to fix boot loading.

Thank you in advance for your help

ymartin59 2015-07-18 07:07

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
I find out my mistakes... I have broken bootmenu files in /home/user/MyDocs (bootmenu.scr and bootmenu.img.d/) and images there no longer match expected power kernel version installed on my latest rootfs/optfs backup !

Thanks to BackupMenu USB mass storage mount, I fixed content of /home/user/MyDocs and get my boot menu back and my full system. If I had guessed the mistake I did first, I would not have restored that backup as rootfs and optfs were not concerned by the defect.

mp107 2015-07-27 10:57

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
WARNING!
Do (or try to do) it on your own responsibility.
I do not take any responsibility for broken/bricked/forced-to-reflashing devices.

I was able to run BackupMenu (v. 1.1) on the U-boot.
How?
1. I downloaded backupmenu-uboot.zip. This file have been uploaded few times on BackupMenu's thread.
2. I unpacked all files on root directory of my sdcard. If you have more than one partition - the first one must be FAT.
3. I turned off my N900 and turned on.
4. When showed U-Boot I have interrupted the counter and went to U-boot console
5. I typed "run sdboot"
6. After some time it booted BackupMenu.
There were some errors and GUI was slightly broken but I was able to make a backup on eMMC, restore it and boot the Maemo so at least backup & restore seem to work.
I didn't checked other functions because I don't use them.

All the thanks for the author of backupmenu-uboot.zip file.
I didn't make anything unusual. ;)

EDIT:
Important note!
Try to avoid the "Quit and reboot" function in BackupMenu when you run it using my way. Using it may cause some lags when you booted Maemo after using that function.

px3x 2015-11-10 21:50

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Hello.
I've got a little problem. I renamed the default "bootmenu.img.d" to ".bootmenu.img.d", cause I hate seeing this directory any time I use FileBox (yes, I know, pretty silly decision). Now my phone doesn't want to boot any kernel, even the default one. Any way to rename that directory back so I can use my phone without reflashing? I tried connecting my phone via usb hoping that it will be detected as usb-storage so I can rename the folder, but Windows doesn't want to recognize it.
Any way to solve the problem using U-Boot console, or, whatever? Thanks in advance.

pali 2015-11-10 22:00

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
You should be able to boot attached kernel (stock nokia one) which is stored in nand together with uboot.

Other option is to prepare kernel in uImage format and store it on SD card (name uImage). And via uboot console boot it via "run sdboot" command.

px3x 2015-11-10 23:09

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
> You should be able to boot attached kernel (stock nokia one) which is stored in nand together with uboot.
But I can't. The phone simply reboots after chosing the default osso-kernel.

Any command to chose the image to boot from console?

pali 2015-11-11 23:32

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Look at available RX-51 commands in README file:
http://git.denx.de/?p=u-boot.git;a=b...nokia_rx51#l45

and their defintions in uboot source code:
http://git.denx.de/?p=u-boot.git;a=b...ia_rx51.h#l281

Basically, to load & book kernel from mmc device (eMMC or SD) card you need:
1) specify mmc device
2) specify mmc partition number
3) specify mmc partition type
4) load kernel file to memory address
5) boot image from memory address

For that set variables mmcnum, mmcpart, mmctype and mmckernfile. And then run trymmckernboot.

===

Another option is to connect phone via usb to computer via flasher-3.5 or 0xFFFF load kernel image (in load, not flash) mode and then boot it. This will allows you to boot temporary kernel without flashing it to nand...

explit 2015-12-08 13:00

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Hello guys. I have a small question.
I have the last u-boot form pali 2013.04.
I reformatted my MyDocs to ext3.
no i get "Unrecognised filesystem type"

I still can boot the attached kernel (NAND), but no other kernels.

Where i can set the filesystem type ext3? for the u-boot?

Thanks

reinob 2015-12-09 12:25

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

Originally Posted by explit (Post 1490879)
Hello guys. I have a small question.
I have the last u-boot form pali 2013.04.
I reformatted my MyDocs to ext3.
no i get "Unrecognised filesystem type"

I still can boot the attached kernel (NAND), but no other kernels.

Where i can set the filesystem type ext3? for the u-boot?

Thanks

Have you run "u-boot-update-bootmenu" after reformatting MyDocs?
are the u-boot kernels still in place? (i.e. after reformatting).

Run u-boot-update-menu and post the output here. It might help for diagnosing.

explit 2015-12-09 16:46

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

Originally Posted by reinob (Post 1490966)
Have you run "u-boot-update-bootmenu" after reformatting MyDocs?
are the u-boot kernels still in place? (i.e. after reformatting).

Run u-boot-update-menu and post the output here. It might help for diagnosing.

Yes of course i run it.
u-boot-update-menu find all Menu items and kernels. It also said that the default Menu item is kernel-power53 as i set it.
After i boot the mobile all menu items are correctly displayed but when i choose one it say "Unrecognised filesystem type"
:-(

peterleinchen 2015-12-09 20:00

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
I remember some problems with MyDocs formatted in fat from gparted or other tools. But iirc pali enabled all 'default' file formats.
How did you format it?

explit 2015-12-10 09:37

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

Originally Posted by peterleinchen (Post 1491016)
I remember some problems with MyDocs formatted in fat from gparted or other tools. But iirc pali enabled all 'default' file formats.
How did you format it?

Hallo peterleinchen. I have formattet my MyDOcs with this Howto:

https://talk.maemo.org/showthread.php?t=73478

The conversion from FAT32 to ext3 was done on N900. Yesterday i ran fsck.ext3 on the MyDocs: Anything was fine.
That is total frustrating because i don't really know where to dig.
tha las U-Boot from Pali should support MyDocs as ext3, it stands explicit in the u-boot thread.
All kernels and the menu items are in right place.
u-boot-update-bootmenu finds anything and create all menu items correctly without any error....

But on booting: bam...: Unrecognised file system.....

reinob 2015-12-10 15:06

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

Originally Posted by explit (Post 1491066)
But on booting: bam...: Unrecognised file system.....

The only reason I can think of is that U-boot's ext3 driver is most likely not as capable as the kernel's, so the question is if you used any special parameters or ext3 features when you created the file system.

I imagine "-m 0" should pose no problem, but using things like "-E ..." or "-O ..." might make U-boot confused. Can you confirm you didn't use any voodoo options when mkfs'ing MyDocs?

peterleinchen 2015-12-10 19:39

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Hmm, I do not know.
But I guess Maemo's mkfs is not really the latest technology! ;)
So it should be hard to not fulfill uboots needs? But I really do not know, so please confirm reinob's question.

Meanwhile I checked my older (all) configs and I found for nitdroid an entry of
ITEM_FSTYPE=vfat
Maybe you can try it with
ITEM_FSTYPE=ext3
or ITEM_FSTYPE="ext3"
and of course run u-boot-update-bootmenu.
But I do not think that solves your prob but worth a shot, right?

explit 2015-12-10 23:54

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

Originally Posted by reinob (Post 1491102)
The only reason I can think of is that U-boot's ext3 driver is most likely not as capable as the kernel's, so the question is if you used any special parameters or ext3 features when you created the file system.

I imagine "-m 0" should pose no problem, but using things like "-E ..." or "-O ..." might make U-boot confused. Can you confirm you didn't use any voodoo options when mkfs'ing MyDocs?


I can confirm i used the standard commands for creating ext3 partition. I copy-pasted each step from here:
https://talk.maemo.org/showthread.php?t=73478

Here is the exact command:

Code:

mkfs.ext3 -m 0 -L "Nokia N900" /dev/mmcblk0p1
Now i uninstalled u-boot at all and flashed kernel-power53 to the Nand. Backupmenu runs without U-boot, but it is just a workaround, not a solution ;-) U-Boot is a must if such freaks like I am wants to play with different OSes....

explit 2015-12-10 23:56

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

Originally Posted by peterleinchen (Post 1491149)
Hmm, I do not know.
But I guess Maemo's mkfs is not really the latest technology! ;)
So it should be hard to not fulfill uboots needs? But I really do not know, so please confirm reinob's question.

Meanwhile I checked my older (all) configs and I found for nitdroid an entry of
ITEM_FSTYPE=vfat
Maybe you can try it with
ITEM_FSTYPE=ext3
or ITEM_FSTYPE="ext3"
and of course run u-boot-update-bootmenu.
But I do not think that solves your prob but worth a shot, right?


Thanks Peter.
Tried this alredy and run u-boot-update-bootmenu afterwards = no success :-(

pali 2016-03-31 20:51

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Hi! There is bug in u-boot-update-bootmenu script which cause that only FAT fs for MyDocs is supported. Fix is in (new) github git repository at: https://github.com/pali/u-boot-maemo

explit 2016-03-31 21:19

Re: U-Boot for Nokia RX-51 with BootMenu (version 2013.04-1)
 
Thanks for the fix Pali!
So we wait for the next u-boot update?
So much work for one small bug :-(
All kernel flash-packages with u-boot should be updated now...
Or am i wrong?

pali 2016-03-31 21:33

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
u-boot-update-bootmenu is shell script, you can download it from github and replace it in your n900. After that you can re-run it. No need to recompile/reflash anything.

explit 2016-04-05 08:39

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
1 Attachment(s)
It seems, that the github page is down. I get an error:

This page is taking way too long to load.
Sorry about that. Please try refreshing and contact us if the problem persists.

Could somebody opload the updated u-boot-configuration file here?
Thanks guys!

reinob 2016-04-05 08:43

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

Originally Posted by explit (Post 1502831)
It seems, that the github page is down. I get an error:

This page is taking way too long to load.
Sorry about that. Please try refreshing and contact us if the problem persists.

Could somebody opload the updated u-boot-configuration file here?
Thanks guys!

Here the diff:
Code:


                mmcnum="$INT_CARD"
                mmcpart="1"
-                mmctype="fat"
+                mmctype="$type"
                mmckernfile="$BOOTMENU_IMG_DIR/$ITEM_KERNEL"
 
+                if test "$mmctype" = "vfat"; then
+                        mmctype="fat"
+                elif test "$mmctype" = "ext3"; then
+                        mmctype="ext2"
+                fi
+
                if ! test -z "$(mkimage -l $kernel_path 2>&1 1>/dev/null)"; then
 
                        echo "Generating u-boot image for kernel '$ITEM_KERNEL'..."

Github doesn't let me copy the line numbers, but I'm sure you'll be able to deal with it.

EDIT: added attached file (gzipped)

pali 2016-04-05 08:48

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

Originally Posted by explit (Post 1502831)
It seems, that the github page is down.

Github is currently down... just wait until github admins fix their servers...

pali 2016-04-06 22:18

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
I pushed update to extras-devel, please test.

explit 2016-04-08 21:25

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

Originally Posted by pali (Post 1502950)
I pushed update to extras-devel, please test.

Thanks Pali.
i updated the package u-boot-tools from extras-devel.

I see also the updated package u-boot-flasher but i can't install it, it says unmet dependencies:
kernel-modules (=2.6.28-20103103+0m5)


I have 3 kernels which i use: 2.6.28.10-cssu3, 2.6.28-omap1, 2.6.28-omap1-fb
in /lib/modules i have installed modules for:
/2.6.28-omap1
/2.6.28.10-cssu3

Did i need the package u-boot-flasher ? (u-boot is aledy installed in NAND and 2.6.28-cssu3 is the default boot entry)

In the future i want toboot other OSes from the MicroSD-Card, which is ext3-formatted.

Thank you....

pali 2016-04-08 21:31

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

Originally Posted by explit (Post 1503115)
Thanks Pali.
i updated the package u-boot-tools from extras-devel.

I see also the updated package u-boot-flasher but i can't install it, it says unmet dependencies:
kernel-modules (=2.6.28-20103103+0m5)

Do you have kernel-modules package installed? At which version? Run command: apt-cache policy kernel-modules

explit 2016-04-08 21:44

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

Originally Posted by pali (Post 1503117)
Do you have kernel-modules package installed? At which version? Run command: apt-cache policy kernel-modules

Seems it is not installed....


BusyBox v1.23.1 (Debian 1.23.1power2+thumb0) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900:~# apt-cache policy kernel-modules
kernel-modules:
Installed: (none)
Candidate: 2.6.28-20103103+0m5+cssu1.2
Version table:
2.6.28-20103103+0m5+cssu1.2 0
500 http://maemo.merlin1991.at fremantle/free Packages
2.6.28-20103103+0m5 0
500 http://maemo-repos.com ./ Packages
100 /var/lib/dpkg/status
Nokia-N900:~#

pali 2016-04-08 21:51

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
So install 2.6.28-20103103+0m5 version. Without it attached kernel into uboot and also 2.6.28-omap1-fb cannot work... Package kernel-modules includes all kernel modules installed in /lib/modules/2.6.28-omap1.

explit 2016-04-09 07:46

Re: U-Boot for Nokia RX-51 with BootMenu (version 2013.04-2)
 
Thanks Pali, i tried to install kernel-modules 2.6.28-20103103+0m5
with Faster application manager, but he wants to remove half of the system (including mp-fremantle-community-pr)

I don't understan whats wrong....

explit 2016-04-09 07:53

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

Originally Posted by pali (Post 1503122)
So install 2.6.28-20103103+0m5 version. Without it attached kernel into uboot and also 2.6.28-omap1-fb cannot work... Package kernel-modules includes all kernel modules installed in /lib/modules/2.6.28-omap1.


I think the problem is, that i am on cssu-thumb but installed u-boot with attached kernel-2.6.28-omap1 in the NAND. Right?
Now the 2.6.28-omap1 modules are not compatible with my cssu-thumb system.
So i think, i need an u-boot with attached kernel-cssu3 image installed in the NAND.

Maybe you can tell me, how i can create such an image from a normal kernel?

Or how i flash only the u-boot in the NAND without an attached kernel?
Afterwards u-boot will load the
2.6.28.10-cssu3 kernel zImage and i remove the images for
2.6.28-omap1
and
2.6.28-omap1-fb
....

explit 2016-04-10 05:18

Re: U-Boot for Nokia RX-51 with BootMenu (version 2013.04-2)
 
N900 gurus! Please tell me how i can flash u-boot only image in the NAND without attached kernel?
Thanks

pali 2016-04-10 09:22

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

Originally Posted by explit (Post 1503187)
N900 gurus! Please tell me how i can flash u-boot only image in the NAND without attached kernel?
Thanks

Compile u-boot yourself. If you are unable, then this option is not for you.

From above output I see that you have enabled cssu-devel (which may eat your brain!). So if you are not understand what are you doing, then do not do it!!!


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

vBulletin® Version 3.8.8