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)

Estel 2013-04-21 12:17

Re: U-Boot for Nokia RX-51 with BootMenu (version 2013.04-1)
 
Thanks a lot for your explanation, Pali!

Quote:

Originally Posted by pali (Post 1337556)
No, you can specify different path to first eMMC partition. Maemo using /home/user/MyDocs, but you can mount it to other path... now u-boot-update-bootmenu will work if you change it (by specifing path param).

Where I need to specify that path param? A argument applied after u-boot-update-bootmenu? Is syntax explained in -h of u-boot-update-bootmenu?

Quote:

Originally Posted by pali (Post 1337556)
ITEM_DEVICE will tell u-boot-update-bootmenu where to find kernel and initfs images. bootmenu.img.d must be always on first emmc partition.

Wait, I don't get something. bootmenu.img.d is the place, where kernel uImages are stored. But, you've just said that it always *must* be on first eMMC partition and, at the same time, that ITEM_DEVICE tells, where to look for kernel images? I hope I'm not suck at explaining, but it looks like conflicting statements.

Quote:

Originally Posted by pali (Post 1337556)
ITEM_INITRD tells u-boot what initrd file to use when booting.

Where we can find syntax for it? Is it regular, absolute path, or something containing EXT_CARD (or INT_CARD) and partition numbers?

/Estel

pali 2013-04-21 12:30

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
u-boot-update-bootmenu -h should show that help message

ITEM_DEVICE will tell u-boot-update-bootmenu where to find kernel and initfs images in uimage format. Then ITEM_KERNEL and ITEM_INITRD is absolute path (without leading /) to images on ITEM_DEVICE. ITEM_DEVICE should use ${EXT_CARD} and ${INT_CARD} (see bellow)

if ITEM_DEVICE is not specified, the u-boot-update-bootmenu, will try to find ITEM_KERNEL and ITEM_INITRD images in /boot and /opt/boot in normal (zImage bootable format), pack them into uimage format and store to first emmc partition in dir bootmenu.img.d. Then generate menu entry to load images (in uimage format) from bootmenu.img.d

bootmenu.scr will be always at first emmc partition.

${EXT_CARD} and ${INT_CARD} are special variables which contains special uboot strings which can be used only in ITEM_DEVICE.

pali 2013-04-21 12:31

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

Originally Posted by panjgoori (Post 1337714)
finally I successfully migrated from multiboot to u-boot without messing with my device. But my phones bootmenu is different than the image attached at first post by pali.
http://i.imgur.com/5HKgggR.jpg

This is not uboot, but maemo bootmenu: http://talk.maemo.org/showthread.php?t=74720
It cannot boot other kernels, only start another script (like backupmenu or recovery console mode)

ArchiMark 2013-04-21 18:51

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Trying to install latest version from Extras-Devel via HAM....

However, when I try to install it, I get error message:

Quote:

!!!U-Boot with kernel 2.6.28-omap1 breaks the 3rd party package policy
If I click on the 'Details' button, it says under the Problems tab:

Quote:

Unable to install'U-Boot with kernel 2.6.28-omap1'
What can I do to install U-Boot?

FWIW, I recently reflashed my n900, so, all fresh....


Wow! It has been several days since I posted about install problem and requesting some help....but no input...is it because there is no solution or my problem is so elementary that I should have figured it out myself or ??? :rolleyes:


Seriously, would greatly appreciate some guidance as to how to get U-Boot installed...

Thanks!

panjgoori 2013-04-25 05:01

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

Originally Posted by pali (Post 1337727)
This is not uboot, but maemo bootmenu: http://talk.maemo.org/showthread.php?t=74720
It cannot boot other kernels, only start another script (like backupmenu or recovery console mode)

thanks for the reply. i thought may be i have installed U-boot :o. Can you guide me to how to install U-boot. I have never installed u-boot before.

pali 2013-04-25 09:26

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Really you cannot read?

handaxe 2013-04-25 11:18

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Hintful completion of Pali's sentence :-)

""Really you cannot read...." all the stuff I typed in the first and later posts and that of others in the thread?"

explit 2013-04-25 17:45

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

i have a following scenario:
I have N900 with Kernel-power52 and latest U-Boot 04.2013
My External SD Card is 32GB Class 10 and has 3 Partitions:

/dev/mmcblk1p1 /media/mmc1 (FAT32)
/dev/mmcblk1p2 /media/mmc1p2 (EXT3), NitDroid
/dev/mmcblk1p3 /media/mmc1p3 (EXT4), Nemo

I want to have a Triple-Boot System via U-Boot with Maemo, NitDroid and Nemo.

Nemo is installed on the third partition on the external MicroSD Card, the uImage and all other files like system configuration*.map etc. files are also there.

Maemo and NitDroid are booting fine, Nemo starts booting, but then it freezes on the Nemo Background. After some time it try to remount the ext4 partition and doing the same. Freezing on Nemo Background, retrying to remount...

Maybe something is wrong with my Nemo U-Boot configuration ?

Here are my Nemo configiguration:

TEM_NAME="NEMO 2.6.37"
ITEM_KERNEL="uImage"
ITEM_DEVICE="${EXT_CARD}p3"
ITEM_FSTYPE="ext4"
ITEM_CMDLINE="root=/dev/mmcblk0p3 rootwait rw console=tty02,115200n8 console=tty0 omapfb.vram=0:2M,1:2M,2:2M mtdoops.mtddev=2"
ITEM_OMAPATAG="1"

I set
ITEM_CMDLINE=root=/dev/mmcblk0p3, I think in nemo the external sd card is /dev/mmcblk0 and not mmcblk1 like in Maemo.


Maybe somebody, who have Triple-Boot via U-Boot can share me his configuration, or maybe I need a second swap partition on the external sd-card to boot Nemo?

misiak 2013-04-25 19:12

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

Originally Posted by explit (Post 1338887)
...
/dev/mmcblk1p1 /media/mmc1 (FAT32)
/dev/mmcblk1p3 /media/mmc1p3 (EXT3), NitDrodi
/dev/mmcblk1p2 /media/mmc1p2 (EXT4), Nemo
...
ITEM_DEVICE="${EXT_CARD}p3"

Are you sure that it shuld be "p3" in the .item file while you ave Nemo on "p2"? What does your NITDroid configuration look like?

explit 2013-04-25 19:21

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

Originally Posted by misiak (Post 1338924)
Are you sure that it shuld be "p3" in the .item file while you ave Nemo on "p2"? What does your NITDroid configuration look like?

Yes it is on p3, because my NITDROID is on the p2 and booting fine.

The Problem is Nemo, starting to boot, but then it freezing.

NITDROID Configuration is the same, only

ITEM_DEVICE="${EXT_CARD}p2"


I know, when you make the Nemo SD Card from an image, your nemo rootfs would be
ITEM_DEVICE="${EXT_CARD}p2"
because, it is on the second partition, the first is small fat, which contains uImage Kernel and the third is Swap.

I have different partition map on my microsd:

First is FAT with my Data, second is NITDROID and Third is NEMO. I copied all files from the small FAT Partition to the nemo Partition, so that kernel, map files etc. are on the same partition like the nemo rootfs. Bad idea ?

peterleinchen 2013-04-25 19:38

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

Originally Posted by explit (Post 1338887)
/dev/mmcblk1p1 /media/mmc1 (FAT32)
/dev/mmcblk1p3 /media/mmc1p3 (EXT3), NitDroid
/dev/mmcblk1p2 /media/mmc1p2 (EXT4), Nemo

If nit is on p2 and nemo on p3, then please correct above! ;)

Quote:

Originally Posted by explit (Post 1338887)
ITEM_CMDLINE=root=/dev/mmcblk0p3, I think in nemo the external sd card is /dev/mmcblk0 and not mmcblk1 like in Maemo.

set
ITEM_CMDLINE=root=/dev/mmcblk1p3
and try again

explit 2013-04-25 19:53

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
[QUOTE=peterleinchen;1338935]If nit is on p2 and nemo on p3, then please correct above! ;)


Sorry my error. So it correct.

/dev/mmcblk1p1 /media/mmc1 (FAT32)
/dev/mmcblk1p2 /media/mmc1p2 (EXT3), NitDroid
/dev/mmcblk1p3 /media/mmc1p3 (EXT4), Nemo

In Maemo my Nemo rootfs partition is /dev/mmcblk1p3.

In Nemo this partition is /dev/mmcblk0p3, because /dev/mmcblk1p3 is the third partition on the Internal EMMC.

Nemo booting correct, it loads more then only kernel ( i see the nemo background).

But then i got a loop. Freezing on background, trying to remount, freezing on background...

I tried to change to
ITEM_CMDLINE=root=/dev/mmcblk1p3
like you wrote it, I get no filesystem found on /dev/mmcblk1p3

I checked the ext4 Nemo partition for errors and found a lot of !
fsck.ext4 quit after a while with Segmentation fault.

I created an new ext4 fs on /dev/mmcbl1p3, wrote an Nemo raw image on another card and than tar the ext4 partition with Nemo Rootfs to file and than i have untar this file on my mmcblk1p3.
Then I copied the uImage and 3 other files from Nemo FAT16 Partition also to my mmcblk1p3 and tryed to boot afterwards...
I got the same problem...

If i try to boot Nemo from the other card, i have created, it boots fine.
Can I read out the Nemo logs or dmesg from the Maemo ?

Or maybe, someone, who has Nemo and Nitdroid on the same Card, can post his configuration?

Here are my Nemo.item configiguration:

ITEM_NAME="NEMO 2.6.37"
ITEM_KERNEL="uImage"
ITEM_DEVICE="${EXT_CARD}p3"
ITEM_FSTYPE="ext4"
ITEM_CMDLINE="root=/dev/mmcblk0p3 rootwait rw console=tty02,115200n8 console=tty0 omapfb.vram=0:2M,1:2M,2:2M mtdoops.mtddev=2"
ITEM_OMAPATAG="1"

Thanks

ArchiMark 2013-04-27 15:41

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

Originally Posted by ArchiMark (Post 1337789)
Trying to install latest version from Extras-Devel via HAM....

However, when I try to install it, I get error message:



If I click on the 'Details' button, it says under the Problems tab:



What can I do to install U-Boot?

FWIW, I recently reflashed my n900, so, all fresh....


Wow! It has been several days since I posted about install problem and requesting some help....but no input...is it because there is no solution or my problem is so elementary that I should have figured it out myself or ??? :rolleyes:


Seriously, would greatly appreciate some guidance as to how to get U-Boot installed...

Thanks!

It's been 6 days since my post above and no input.....

Can some kind soul please give me some guidance as to what to do to get U-Boot to install ?

I really need to get it installed....

Thank you!

pali 2013-04-27 15:44

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Try installing via apt-get.

ArchiMark 2013-04-28 04:11

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

Originally Posted by pali (Post 1339458)
Try installing via apt-get.

Thanks....

So, installed u-boot-flasher via apt-get....

I created a new u-boot menu entry as follows:

Code:

ITEM_NAME="Arch Linux ARM (eMMC)"
ITEM_KERNEL="/boot/uImage"
ITEM_DEVICE="${INT_CARD}p5"
ITEM_FSTYPE="ext3"
ITEM_OMAPATAG="1"
ITEM_CMDLINE="root=/dev/mmcblk0p5 rootwait init=/bin/systemd omapfb.vram=0:3M,1:3M,2:3M quiet"

Then I did

Code:

# u-boot-update-bootmenu

Adding entry for: 'Maemo 5 with attached kernel 2.6.28-omap1 (internal Nand)'

Configuration file: /etc/bootmenu/d/20-archlinux.item

Warning: Invalid file - missing kernel or script file - skipping...

Generating u-boot bootmenu script....


FYI, I am trying to get Arch Linux up and running....per these instructions on this blog page:

http://blog.jakgibb.com/2013/03/28/a...stall-on-n900/


Any suggestions?

Thanks!

starkwiz 2013-04-28 09:32

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
I haven't tried this as I am not planning to get arch linux installed, but might try later.
Did you extract Arch Linux rootfs to partition mentioned in the ".item" file ?
u-boot-update-bootmenu needs to be run after that.
From the error message it seems it can't find the kernel image which should be in that partition.

ArchiMark 2013-04-28 14:52

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

Originally Posted by starkwiz (Post 1339617)
I haven't tried this as I am not planning to get arch linux installed, but might try later.
Did you extract Arch Linux rootfs to partition mentioned in the ".item" file ?
u-boot-update-bootmenu needs to be run after that.
From the error message it seems it can't find the kernel image which should be in that partition.

Yes, I did extract the rootfs to the partition mentioned....

The only thing I can think of now is that particular partition that I created is not getting mounted automatically when I boot to maemo. So, maybe same thing happening when I boot up using u-boot, ie, if not mounted, then can't find kernel....

starkwiz 2013-04-28 15:01

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
hmm...
Can you make sure your u-boot tools are also updated ?
By running the command below.
apt-get install u-boot-tools
Then run u-boot-update-bootmenu

I had a problem in which u-boot-tools weren't updated automatically after installing u-boot from HAM/FAM.

Edit: I didn't notice the new version.
Check if your u-boot is updated as well:
Update: 20.04.2013 10:00 UTC: Version 2013.04-1 is in Extras-Devel, support for bootmenu ext2/3/4 partition

ArchiMark 2013-04-28 15:30

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

Originally Posted by starkwiz (Post 1339688)
hmm...
Can you make sure your u-boot tools are also updated ?
By running the command below.
apt-get install u-boot-tools
Then run u-boot-update-bootmenu

I had a problem in which u-boot-tools weren't updated automatically after installing u-boot from HAM/FAM.

Thanks for your help....

I just did as you instructed...says I already have the latest version....

starkwiz 2013-04-28 16:28

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
You're welcome.
Now, I can think of few things as below:
1. Check if the partition created is ext3,p5 and on your internal sd.
2. Check if you are still able to correctly mount in /mnt, also go through the data once mounted.
3. If the above 2 things look fine, try extracting again.

Hope you know the commands to check those things.

I might give a try sometime this week.
Will let you know if it works for me.

ArchiMark 2013-04-28 16:59

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

Originally Posted by starkwiz (Post 1339712)
You're welcome.
Now, I can think of few things as below:
1. Check if the partition created is ext3,p5 and on your internal sd.
2. Check if you are still able to correctly mount in /mnt, also go through the data once mounted.
3. If the above 2 things look fine, try extracting again.

Hope you know the commands to check those things.

I might give a try sometime this week.
Will let you know if it works for me.

Thanks again for all your help!

1. I just did

Code:

# mount
/dev/mmcblk0p5 on /mnt type ext3 (0)

It is on my internal storage (and I don't have a microSD card inside n900 right now...)

However, I reboot and then do mount command /dev/mmcblk0p5 is not listed. Only /dev/mmcblk0p2 and /dev/mmcblk0p1 are shown plus 4-5 other mount points....

So, I have to do

Code:

# mount -t ext3 /dev/mmcblk0p5 /mnt
Then I can see it mounted....

And then I do 'u-boot-update-bootmenu' and get the error message I wrote before:

Code:

# u-boot-update-bootmenu

Adding entry for: 'Maemo 5 with attached kernel 2.6.28-omap1 (internal Nand)'

Configuration file: /etc/bootmenu/d/20-archlinux.item

Warning: Invalid file - missing kernel or script file - skipping...

Generating u-boot bootmenu script....



2. When I do 'ls' in '/mnt', I do see all the Arch Linux directories listed that I extracted from the rootfs file....

Strange.....

I have a feeling there's something very simple that is wrong....just have to find it.....

pali 2013-04-28 17:15

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
/etc/bootmenu/d/20-archlinux.item

It should be /etc/bootmenu.d/20-archlinux.item

starkwiz 2013-04-28 17:17

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

Originally Posted by pali (Post 1339722)
/etc/bootmenu/d/20-archlinux.item

It should be /etc/bootmenu.d/20-archlinux.item

I was just about to reply that, hope it works.

ArchiMark 2013-04-28 18:31

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

Originally Posted by pali (Post 1339722)
/etc/bootmenu/d/20-archlinux.item

It should be /etc/bootmenu.d/20-archlinux.item

I only have '/etc/bootmenu.d directory from what I see in '/etc'....

I do not have a '/etc/bootmenu/d/' directory !

?????

:confused:

UPDATE

I ran u-boot-update-bootmenu again, just to check error message....

It does say /etc/bootmenu.d/20-archlinux.item

So, the '/etc/bootmenu/d/20-archlinux.item' must have been a typo when typing post.....sorry about that....

Still says

Code:

#u-boot-update-bootmenu

Adding bootmenu entry for: 'Maemo 5 with attached kernel 2.6.28-omap1 (Internal Nand)'
Configuration file: /etc/bootmenu.d/20-archlinux.item

Warning: Invalid file - missing kernel or script - skipping....

Generating u-boot bootmenu script....

Any other ideas???

starkwiz 2013-04-28 19:20

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
I believe this is the original article for arch linux on n900:
http://talk.maemo.org/showthread.php?t=81892
It suggests an option of using latest version of archlinux arm, you might want to try it, instead of using already modified archlinux rootfs.
Also it suggests running "sync" command after extracting files to make sure all the data is actually written to disk and not in buffer.
Before you to try the other option, can you try extracting again and run the sync command.
Make sure that uimage exists in /mnt/boot
Then run u-boot-update-menu while p5 is not mounted.

I am not really sure how u-boot-update-menu accesses the image file location and if it needs to be mounted, while running the command.
So, just wondering if mounting that partition is locking access to uimage.

ArchiMark 2013-04-28 19:32

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

Originally Posted by starkwiz (Post 1339748)
I believe this is the original article for arch linux on n900:
http://talk.maemo.org/showthread.php?t=81892
It suggests an option of using latest version of archlinux arm, you might want to try it, instead of using already modified archlinux rootfs.

Yes, that is the Arch thread....although, instructions are very high level, ie, not 'step-by-step'...that is why I am following step-by-step instructions on the other blog page I gave link to before...

http://blog.jakgibb.com/2013/03/28/a...stall-on-n900/

Quote:

Also it suggests running "sync" command after extracting files to make sure all the data is actually written to disk and not in buffer.
Before you to try the other option, can you try extracting again and run the sync command.
Make sure that uimage exists in /mnt/boot
Yes, I did 'sync' command after extracting files...


Quote:

Then run u-boot-update-menu while p5 is not mounted.

I am not really sure how u-boot-update-menu accesses the image file location and if it needs to be mounted, while running the command.
So, just wondering if mounting that partition is locking access to uimage.
Hmmm....Just tried with p5 unmounted and still get same error message in u-boot-update-bootmenu....

I checked and 'uImage' is in /mnt/boot/.....

So, will try re-extracting again and see what happens...

Thanks...

UPDATE

Re-extracted the rootfs file and tried u-boot-update-bootmenu again, but still get the same error message....

:confused:

peterleinchen 2013-04-28 20:56

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

Originally Posted by ArchiMark (Post 1339569)
Thanks....

So, installed u-boot-flasher via apt-get....

I created a new u-boot menu entry as follows:

Code:

ITEM_NAME="Arch Linux ARM (eMMC)"
ITEM_KERNEL="/boot/uImage"
ITEM_DEVICE="${INT_CARD}p5"
ITEM_FSTYPE="ext3"
ITEM_OMAPATAG="1"
ITEM_CMDLINE="root=/dev/mmcblk0p5 rootwait init=/bin/systemd omapfb.vram=0:3M,1:3M,2:3M quiet"


Just a simple question: did you edit that item file under Windows?
Then it is obvious ...

And one more, but not related to your posted problem: I do not know about arch kernel to see the devices on N900. Maybe you need to change your "root=/dev/mmcblk0p5" to "root=/dev/mmcblk1p5".

pali 2013-04-28 22:21

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
bootmenu item files must have \n line ending (not \r\n)

ArchiMark 2013-04-28 23:02

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

Originally Posted by peterleinchen (Post 1339765)
Just a simple question: did you edit that item file under Windows?
Then it is obvious ...

No, edited the file in nano in terminal on N900.....

Quote:

And one more, but not related to your posted problem: I do not know about arch kernel to see the devices on N900. Maybe you need to change your "root=/dev/mmcblk0p5" to "root=/dev/mmcblk1p5".
You are right, that for some reason, arch does flip partitions around....will try that....

**** Well, tried changing partition reference, but still get same error message in u-boot-update-bootmenu....

Thanks for all your help...

ArchiMark 2013-04-28 23:16

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

Originally Posted by pali (Post 1339780)
bootmenu item files must have \n line ending (not \r\n)

So, are you saying that if I click return key after the last line and then save file, it is OK or are you saying to actually type in '\n' at the end of the last line or ?

Thanks.

starkwiz 2013-04-29 05:30

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Can you try it by reformatting the partition to ext2 and updating FS_TYPE in boot item file ?
I didn't try booting to archlinux but u-boot-update-boot-menu command didn't gave any errors.

ArchiMark 2013-04-29 13:17

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

Originally Posted by starkwiz (Post 1339827)
Can you try it by reformatting the partition to ext2 and updating FS_TYPE in boot item file ?
I didn't try booting to archlinux but u-boot-update-bootmenu command didn't gave any errors.

I actually had that partition formatted to ext4 per the instructions on the blog....but for some reason, my n900 had problem with that.

So, that is why I reformatted partition to ext3.....

Meanwhile, someone over on the Arch thread suggested that I delete my boot menu entry file and start over. I did that and now when I did u-boot-update-bootmenu it worked without error message and when I rebooted I see the menu item!

Now, I just need to fix some Arch boot errors..... :rolleyes:

Thanks for all your help!

handaxe 2013-04-29 18:34

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

Originally Posted by ArchiMark (Post 1339790)
So, are you saying that if I click return key after the last line and then save file, it is OK or are you saying to actually type in '\n' at the end of the last line or ?

Thanks.

No :-) It is a platform thing.....

http://en.wikipedia.org/wiki/Newline

sLumPia 2013-05-04 18:58

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Hi, I have kernel 2.6.28.10-cssu3 installed.
This is my item file:
Code:

# ls -l /etc/bootmenu.d/
-rw-r--r--    1 root    root          217 May  4 23:08 20-ArchLinuxARM.item
-rw-r--r--    1 root    root            87 May  5 01:03 20-Maemo5-kernel-cssu.item
-rw-r--r--    1 root    root            82 Apr 20 16:56 30-U-Boot-2013.04-1.item
-rw-r--r--    1 root    root            99 May  4 23:34 99-backupmenu.item

This is the content of 20-Maemo5-kernel-cssu.item:
Code:

ITEM_NAME="Maemo 5 kernel cssu"
ITEM_KERNEL="kernel-2.6.28.10-cssu3"
ITEM_OMAPATAG="1"

Kernel already copied to /opt/boot :
Code:

# ls -l /opt/boot/
-rw-r--r--    1 root    root      1785748 May  4 21:34 kernel-2.6.28.10-cssu3
-rw-r--r--    1 root    root        212768 Apr 20 16:56 u-boot-2013.04-1.bin

This is the output when I run u-boot-update-bootmenu
Code:

# u-boot-update-bootmenu
Default bootmenu entry is '/etc/bootmenu.d/20-Maemo5-kernel-cssu.item'
Adding bootmenu entry for: 'Maemo 5 with attached kernel 2.6.28-omap1 (Internal Nand)'

Configuration file: /etc/bootmenu.d/20-ArchLinuxARM.item
Adding bootmenu entry for: 'Arch Linux ARM'

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

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

Configuration file: /etc/bootmenu.d/99-backupmenu.item
Warning: Invalid file - missing kernel or script file - skipping...

Generating u-boot bootmenu script...

But when I reboot and select "Maemo 5 kernel cssu" on u-boot, it always boot backupmenu.
Can't u-boot load kernel-cssu directly? Something wrong with my configuration?

Also backupmenu is not listed in u-boot menu. How can I add backupmenu to u-boot menu?

pali 2013-05-04 19:10

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

Originally Posted by sLumPia (Post 1341251)
Also backupmenu is not listed in u-boot menu. How can I add backupmenu to u-boot menu?

u-boot booting kernels not shell scripts. backupmenu is shell script which depends on linux kernel. so u-boot cannot boot backupmenu.

Estel 2013-05-04 21:04

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

Originally Posted by sLumPia (Post 1341251)
But when I reboot and select "Maemo 5 kernel cssu" on u-boot, it always boot backupmenu.

Slide keyboard *in* just after selecting "Maemo 5 kernel cssu" ;)

Otherwise, you may want to make it default boot entry, so u-boot will boot it automatically, if keyboard isn't slided *out* during boot.

/Estel

sLumPia 2013-05-04 21:33

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Thanks Estel, it is boot to backupmenu because the keyboard was out.
I have set kernel-cssu as default entry and u-boot boot kernel-cssu right away.

Alecsandru 2013-05-25 19:11

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
u-boot doesn't read bootmenu.img.d and bootmenu folder on ext4 MyDocs , any hints? thank you

pali 2013-05-25 19:15

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
@Alecsandru: Make sure, you have last uboot version (2013.04-1), MyDocs is on first eMMC partition and you are not using new ext4 features (which are not supported by uboot).

Alecsandru 2013-05-25 19:19

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
I've successfully converted MyDocs and /home to ext4 ,but u-boot can't read ext4 MyDocs ( I think) , any hint on this ,can be fixed or we have to wait the new release? thank you for everything pali


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

vBulletin® Version 3.8.8