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)

drucula 2012-05-02 06:13

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

Originally Posted by J4ZZ (Post 1200475)
sorry, but I cannot confirm that. No such *.item file here. But the problem still exists.

can you please `ls -al /etc/bootmenu.d/`?

J4ZZ 2012-05-02 08:23

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
Sure but what for?
http://img821.imageshack.us/img821/5...0512102221.png

Btw... We already figured out that backupmenu.item needs to be moved out of bootmenu.d or at least be renamed for u-boot-update to work properly. So, that's not the issue.

drucula 2012-05-02 09:46

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

Originally Posted by J4ZZ (Post 1200637)
Sure but what for?
http://img821.imageshack.us/img821/5...0512102221.png

Btw... We already figured out that backupmenu.item needs to be moved out of bootmenu.d or at least be renamed for u-boot-update to work properly. So, that's not the issue.

Oh, right.. haven't seen that. That was like 22 pages ago :D
Your u-boot menu looked exactly like mine when I had my problems, so I thought it was related.

J4ZZ 2012-05-02 10:12

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

Originally Posted by drucula (Post 1200671)
Your u-boot menu looked exactly like mine when I had my problems, so I thought it was related.

Did you experienced the following issue too?

Quote:

proper U-boot menu is now showing omap1-power50 and all the others, but after selecting default entry all I get is "Starting Kernel..."
and then the phone turns off

drucula 2012-05-02 10:25

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
Yeah, it's not booting attached kernel (omap1) and it's not selecting power50 as default. bootmenu.item is symlinked to power50.item.
My guess is that updated dsp modules are causing the boot to fail.

J4ZZ 2012-05-02 11:24

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
I uninstalled DSP stuff but it's still the same.
Now I'm wondering why kernel images are loaded from /home/user/MyDocs/bootmenu.img.d when all kernel files are already in /boot

joerg_rw 2012-05-02 12:46

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
on a wider scope it seems to have been a suboptimal decision to reuse this directory for different unrelated subsystems like fanoush's bootmenu and uBoot bootmenu.
Terribly confusing to everybody tying to understand what's the nature of uBoot and bootmenu, and obviously even confusing uBoot tools.

I'd at least have defined a dedicated /etc/uboot-bootmenu.d/ and symlinked it to /etc/bootmenu.d/ in case I really want to do this "one dir for all" approach. Now it's probably not exactly simple to fix all this.
Usual approach to fix: tools first check for existence of /etc/uboot-bootmenu.d and fall back to /etc/bootmenu.d/ if the former doesn't exist resp isn't readable (incl symlink to a readable real dir).
Quote:

Item config file has same format as Fanoush bootmenu and is stored in same folder (Multiboot package has same format too, but in folder /etc/multiboot.d/)
(I boggled and frowned on this part when I first read it, now it turns out my intuitive reaction was obviously justified)
/j

scoobydoo 2012-05-02 19:15

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
this is what i get when trying to unpack boot images from first post any help appreciated cheers in advance


Nokia-N900:/home/user/MyDocs# tar -xf u-boot-images.tar.gz
tar: boot/zImage-2.6.28-omap1-fb: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: boot/zImage-2.6.28-omap1: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: etc/bootmenu.d/30-Maemo5-2.6.28-omap1-fb.item: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: etc/bootmenu.d/30-Maemo5-2.6.28-omap1.item: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: etc/bootmenu.d/40-Nemo.item: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: etc/bootmenu.d/50-NITDroid.item: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: etc/bootmenu.d/60-Kubuntu.item: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: Exiting with failure status due to previous errors
Nokia-N900:/home/user/MyDocs#

reinob 2012-05-02 19:59

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

Originally Posted by scoobydoo (Post 1200934)
this is what i get when trying to unpack boot images from first post any help appreciated cheers in advance


Nokia-N900:/home/user/MyDocs# tar -xf u-boot-images.tar.gz
tar: boot/zImage-2.6.28-omap1-fb: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: boot/zImage-2.6.28-omap1: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: etc/bootmenu.d/30-Maemo5-2.6.28-omap1-fb.item: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: etc/bootmenu.d/30-Maemo5-2.6.28-omap1.item: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: etc/bootmenu.d/40-Nemo.item: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: etc/bootmenu.d/50-NITDroid.item: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: etc/bootmenu.d/60-Kubuntu.item: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: Exiting with failure status due to previous errors
Nokia-N900:/home/user/MyDocs#

MyDocs is a VFAT partition, which does not support Unix file permissions. This means you can ignore those errors.

J4ZZ 2012-05-02 20:16

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

Originally Posted by scoobydoo (Post 1200934)
this is what i get when trying to unpack boot images from first post any help appreciated cheers in advance


Nokia-N900:/home/user/MyDocs# tar -xf u-boot-images.tar.gz
tar: boot/zImage-2.6.28-omap1-fb: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: boot/zImage-2.6.28-omap1: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: etc/bootmenu.d/30-Maemo5-2.6.28-omap1-fb.item: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: etc/bootmenu.d/30-Maemo5-2.6.28-omap1.item: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: etc/bootmenu.d/40-Nemo.item: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: etc/bootmenu.d/50-NITDroid.item: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: etc/bootmenu.d/60-Kubuntu.item: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: Exiting with failure status due to previous errors
Nokia-N900:/home/user/MyDocs#

Go to / and extract the archive there.
Code:

cd /
wget http://atrey.karlin.mff.cuni.cz/~pali/u-boot/u-boot-images_2012.04-1.tar.gz
tar -xf u-boot-images_2012.04-1.tar.gz

And all is set up. :)

J4ZZ 2012-05-03 17:21

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
Pali is there anything else I can try to get power-kernel booting?
Omap1 and Omap1-fb are booting just fine so why kernel-power50 does not I don't get it? On page 1 flocke had the same problem, but somehow it was working later.


Edit: Somehow kernel-power50 is finally booting. But I'm not sure what exactly fixed it. I re-ran FSCK on MyDocs, renamed REUSEATAGS to USEATAGS and ran u-boot-update-bootmenu again.


Regards,

J4ZZ

bcunha 2012-05-05 22:08

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
I'd like some help here. I've managed to flash the power kernel with the u-boot, and successfully load it. I've then proceeded to burn a Meego image into the SD card. When I select "external SD card" from the boot menu, it recognizes the meego kernel, and begins boot, but then a white strip is painted across the screen and 10-15s afterwards the phone reboots. The same behavior happens when I try to boot Nemo from the external card.

I don't know what I'm doing wrong... I must have forgotten something, but I don't know what it is...

drucula 2012-05-05 22:44

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

Originally Posted by bcunha (Post 1202366)
I'd like some help here. I've managed to flash the power kernel with the u-boot, and successfully load it. I've then proceeded to burn a Meego image into the SD card. When I select "external SD card" from the boot menu, it recognizes the meego kernel, and begins boot, but then a white strip is painted across the screen and 10-15s afterwards the phone reboots. The same behavior happens when I try to boot Nemo from the external card.

I don't know what I'm doing wrong... I must have forgotten something, but I don't know what it is...

I'm experiencing the same problem.

ivyking 2012-05-06 19:55

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

Originally Posted by bcunha (Post 1202366)
I'd like some help here. I've managed to flash the power kernel with the u-boot, and successfully load it. I've then proceeded to burn a Meego image into the SD card. When I select "external SD card" from the boot menu, it recognizes the meego kernel, and begins boot, but then a white strip is painted across the screen and 10-15s afterwards the phone reboots. The same behavior happens when I try to boot Nemo from the external card.

I don't know what I'm doing wrong... I must have forgotten something, but I don't know what it is...

I have been having the same problem while trying to boot directly this way, but the system booted fine after creating the appropriate item file and updating the menu.

[Edit]

Quote:

Originally Posted by bcunha (Post 1202769)
Thanks for the reply. I've tried creating an .item file at /etc/multiboot.d/ pointing to the uImage at the external SD card. The u-boot updater simply ignores it. Could you please post your .item file here?

you are placing the item file in a wrong directory(it should be placed in /etc/bootmenu.d/), please re-read the first post carefully before going further.

if you are going to boot nemo make sure you use u-boot version built on the 4th of May or later.

I found that reading /usr/bin/u-boot-update-bootmenu is very useful for learning how the item file parameters should be filled.

example .item file:

http://talk.maemo.org/showpost.php?p...&postcount=183

please note that if you are going to boot from an external loaction(other than nand) using a ready made uImage, ITEM_DEVICE and ITEM_FSTYPE actually refer to where the uImage is located whether or not it is the same partition you intend to boot from..

you specify the root device (the partition you want to boot from) along with other kernel parameters using ITEM_CMDLINE.

also for some reason, if the target kernel requires nolo atags and ITEM_REUSEATAGS is used instead of ITEM_USEATAGS, the target system won't boot (this even happens with KP when booting maemo).

bcunha 2012-05-06 22:57

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
Thanks for the reply. I've tried creating an .item file at /etc/multiboot.d/ pointing to the uImage at the external SD card. The u-boot updater simply ignores it. Could you please post your .item file here?

MaddogG 2012-05-07 21:35

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

I could not create "bootmenu.scr" file, so I investigated a bit and I think I found a little bug in u-boot-update-bootmenu script.
In fact, if file "BOOTMENU_CMD.default" is never created, the script will surely fail at lines 269, and file "bootmenu.scr" will never be generated.
I think this happens if you don't set any default entry (you don't create the symlink "bootmenu.item" in /etc/default/).
Maybe you should check if this file exist before line 269:

Code:

if test -f "$BOOTMENU_CMD.default"; then
cat "$BOOTMENU_CMD.default" "$BOOTMENU_CMD" > "$BOOTMENU_CMD.new"
mv "$BOOTMENU_CMD.new" "$BOOTMENU_CMD"
fi

I included command

Code:

mv "$BOOTMENU_CMD.new" "$BOOTMENU_CMD"
in the "if" statement because, at line 255, you delete the file "BOOTMENU_CMD.new", so if file "BOOTMENU_CMD.default" doesn't exist, file "BOOTMENU_CMD.new" is not created and this command fails, too.

I hope I explained myself... :p

What do you think?

drucula 2012-05-07 21:54

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

Originally Posted by bcunha (Post 1202769)
Thanks for the reply. I've tried creating an .item file at /etc/multiboot.d/ pointing to the uImage at the external SD card. The u-boot updater simply ignores it. Could you please post your .item file here?

ivyking is right. Nemo is now booting properly using the following .item in /etc/bootmenu.d/:
Code:

ITEM_NAME="Nemo"
ITEM_KERNEL="uImage"
ITEM_DEVICE="${EXT_CARD}p3"
ITEM_FSTYPE="vfat"
ITEM_CMDLINE="root=/dev/mmcblk0p1 rootwait ro console=ttyO2,115200n8 console=tty0 omapfb.vram=0:2M,1:2M,2:2M mtdoops.mtddev=2 quiet"
ITEM_USEATAG=1


scoobydoo 2012-05-08 07:20

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
how can i extract nitdroid rc7 kernel on device as no pc at present cheers

sifo 2012-05-09 17:48

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
hi friends just questions as we know that u-boot loads and multiboot flash
but if i installed multiboot and choose kp50 and boot but i didnt open the keyboard anytime so in short does multiboot flash if i didnt open the keyboard and change the kernel does it flash ?
thanks in advance.

pali 2012-05-10 07:33

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

Originally Posted by MaddogG (Post 1203244)
@Pali

I could not create "bootmenu.scr" file, so I investigated a bit and I think I found a little bug in u-boot-update-bootmenu script.
In fact, if file "BOOTMENU_CMD.default" is never created, the script will surely fail at lines 269, and file "bootmenu.scr" will never be generated.
I think this happens if you don't set any default entry (you don't create the symlink "bootmenu.item" in /etc/default/).
Maybe you should check if this file exist before line 269:

Code:

if test -f "$BOOTMENU_CMD.default"; then
cat "$BOOTMENU_CMD.default" "$BOOTMENU_CMD" > "$BOOTMENU_CMD.new"
mv "$BOOTMENU_CMD.new" "$BOOTMENU_CMD"
fi

I included command

Code:

mv "$BOOTMENU_CMD.new" "$BOOTMENU_CMD"
in the "if" statement because, at line 255, you delete the file "BOOTMENU_CMD.new", so if file "BOOTMENU_CMD.default" doesn't exist, file "BOOTMENU_CMD.new" is not created and this command fails, too.

I hope I explained myself... :p

What do you think?

do you have free space on rootfs? try to reboot device

sifo 2012-05-10 08:29

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
please i asked a question up there and i really need to know the answer please can someone answer me about it :o

reinob 2012-05-10 09:17

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

Your question is about multiboot. I'm sure there's a thread about it. This one is about U-boot.

[OFF-TOPIC]
As far as I can understand your question, you want to know if multiboot flashes the kernel every time you boot or only when you select a different kernel than the last one you booted from?

If so, the answer is (AFAIK, I don't use multiboot): multiboot only flashes the kernel when it's necessary, i.e. when you boot a different kernel than the one currently flashed (i.e. the one you booted last time).
[/OFF-TOPIC]

sifo 2012-05-10 09:20

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
sorry for that off topic post and thanks much apperciated reinob

MaddogG 2012-05-10 12:00

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

Originally Posted by pali (Post 1204557)
do you have free space on rootfs? try to reboot device

Yes, I have free space, and I managed to solve the problem applying the changes I showed you, thanks (btw, I rebooted the device before noticing the error, and I got stuck in a reboot loop, but that's another story :)).
Anyway, could you reproduce the issue? Maybe I did something wrong, but I think that adding the additional check that I suggested you won't do any harm.

quixote 2012-05-10 20:43

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
uboot not seeing Mer on sdcard in N900:

I followed the instructions here to put Mer on an sdcard. I have uboot on my n900 from an earlier time when I was looking at Nitdroid on an sdcard. It's very important to me not to brick the phone or blow up my Maemo on the phone itself. As with Nitdroid, I just want to take a look at Mer and see how I like it.

(I tried to ask my question in the Mer threads but was directed here. I'm not sure I belong here either -- :confused: -- so apologies if that's the case!)

When I power up with the slider open, I get the uboot screen, but my choices are Maemo5 (which works fine), or "Nitdroid" even though the sdcard has Mer on it.

I'm obviously missing something, but the more threads I read the more confused I'm getting! What do I need to do to get uboot to see my Mer card? (Edit: I did read the first post and few pages in this thread, but didn't understand it well enough to apply it to my case.)

freemangordon 2012-05-10 21:03

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

Originally Posted by quixote (Post 1204938)
uboot not seeing Mer on sdcard in N900:

I followed the instructions here to put Mer on an sdcard. I have uboot on my n900 from an earlier time when I was looking at Nitdroid on an sdcard. It's very important to me not to brick the phone or blow up my Maemo on the phone itself. As with Nitdroid, I just want to take a look at Mer and see how I like it.

(I tried to ask my question in the Mer threads but was directed here. I'm not sure I belong here either -- :confused: -- so apologies if that's the case!)

When I power up with the slider open, I get the uboot screen, but my choices are Maemo5 (which works fine), or "Nitdroid" even though the sdcard has Mer on it.

I'm obviously missing something, but the more threads I read the more confused I'm getting! What do I need to do to get uboot to see my Mer card? (Edit: I did read the first post and few pages in this thread, but didn't understand it well enough to apply it to my case.)

try with:

run sdboot

or

run mmcboot

or

run immcboot

depending on your u-boot version

quixote 2012-05-11 16:03

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

Originally Posted by freemangordon (Post 1204949)
try with:

run sdboot

or

run mmcboot

or

run immcboot

depending on your u-boot version

Hmm. I don't seem to have any option to enter anything on boot up. Choice 1 is Maemo, which boots by default after 30 seconds. Choice 2 is Nitdroid. If I press any key except 1 or 2, it restarts the countdown. After trying to enter the command anyway, I think I got as far as the "u" of "run sdboot" and it turned itself off. On a retry with the keyboard closed it booted into Maemo normally.

Do I have a corrupt uboot? Is there some trick to getting at the uboot command prompt?

:rolleyes: More hmm: I was trying to check my version of uboot so I could write it down here, and maybe this is my problem. I have something called Enhanced bootloader for Maemo, version 0.2.10-1. Unless that's another name for uboot, I don't have it at all! I'm even more confused than I realized.

Piffle.

Okay I checked what I could about that bootloader, and this 2010 thread says, "...the kernel you flash MUST recognize Multiboot, and show its menu. It occurs with Maemo and NITDroid kernels, but not with MeeGo kernel. So you can't back from MeeGo without Flasher." So it sounds like it's not going to work with Mer/Meego.

What's the best way for me to proceed from here, given that I don't want to blow up my Maemo?

bcunha 2012-05-12 12:17

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
Still doesn't work.

I've flashed Meego, copied the .item file into bootmenu.d (thanks ivyking!), and updated the menu with u-boot-update-bootmenu -- I've also had to patch the program as MaddogG's instructions. The program runs fine, but when I try to boot the phone, the same four items show. The flashed kernel boots ok, but nothing else. When I try to boot from the sdcard, it searches over every partition until it finds the kernel uImage at the third one. Then the line draws at the middle of the screen and the phone boots.

I've the impression that putting an .item file would create a menu item that would point to the chosen kernel. Am I wrong?

riv64 2012-05-20 12:18

emmc broken
 
I cannot load bootmenu.src from first eMMC fat32 partition because I use sdcard instead internal emmc (broken).Is there any way to change directory which use u-boot to show bootmenu? Now I can boot only stock kernel. After boot I see:
Attached kernel
Internal eMMC
External SD card
U-Boot boot order
U-Boot console
When I select "Attached kernel" 2.6.28-omap starts boot.


Sorry for my bad English

pali 2012-05-20 12:24

Re: emmc broken
 
Quote:

Originally Posted by riv64 (Post 1209562)
I cannot load bootmenu.src from first eMMC fat32 partition because I use sdcard instead internal emmc (broken).Is there any way to change directory which use u-boot to show bootmenu? Now I can boot only stock kernel. After boot I see:
Attached kernel
Internal eMMC
External SD card
U-Boot boot order
U-Boot console
When I select "Attached kernel" 2.6.28-omap starts boot.


Sorry for my bad English

store bootmenu script on sd card under name boot.scr and choose External SD card. It will load script from SD card and run new bootmenu.

But do not forget that other maemo kernels are stored in MyDocs too, so if you have corrupted MyDocs you will not boot other maemo kernels...

riv64 2012-05-20 14:58

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
1 Attachment(s)
Maybe I do something wrong but after rename /media/mmc1/bootmenu.scr to /media/mmc1/boot.scr. Next I select External SD card but it doesn't show bootmenu.

misiak 2012-05-20 15:38

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

Originally Posted by MaddogG (Post 1204706)
Yes, I have free space, and I managed to solve the problem applying the changes I showed you, thanks (btw, I rebooted the device before noticing the error, and I got stuck in a reboot loop, but that's another story :)).
Anyway, could you reproduce the issue? Maybe I did something wrong, but I think that adding the additional check that I suggested you won't do any harm.

I had the same issue, I have >10% free on rootfs, I had multiboot installed previously, what i've done was:

1. remove multiboot
2. reboot two times to confirm n900 works
3. installed two debs from your first post (second and third one, as first one was marked as not necessary)
4. downloaded tar.gz from your first post and extracted to root, confirmed that zImage files were in /boot and item files in /etc/bootmenu.d
5. removed framebuffer kernel and item file ([...]-omap1-fb)
6. so I had in /boot kernel with -omap1 and power kernel from kernel-power-bootimg package, and in /etc/bootmenu.d entries from your tar (all but the omap1-fb one) and entry from kernel-power-bootimg package (I replaced ITEM_USEATAG to ITEM_REUSEATAGS according to warning which was displayed)
7. i run u-boot-update-bootmenu, it said "Adding bootmenu entry for" and power50, omap1, Nemo, NITDroid and Kubuntu items were processed, but right after "Adding bootmenu entry for: 'Kubuntu'", it failed with message:
Code:

cat: can't open '/var/tmp/bootmenu.cmd.default': No such file or directory
8. I tried creating this file manually, still the same error and after running u-boot-update-bootmenu file was not in fs (it was deleted)
9. in /usr/bin/u-boot-update-bootmenu I wrapped lines 269-270 in the "if" statement as you suggested, re-run u-boot-update-bootmenu
10. http://benfairfieldtrumpet.com/wp-co.../05/borat1.jpg

Quote:

Originally Posted by MaddogG (Post 1203244)
I think this happens if you don't set any default entry (you don't create the symlink "bootmenu.item" in /etc/default/).

I don't have /etc/default/bootmenu.item, but haven't checked if it works after creating symlink, so I cannot confirm if that's the case, but i cannot deny it either.

qwazix 2012-05-20 21:15

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

First I get the following errors after u-boot-update-bootmenu
Code:

/etc/bootmenu.d $ 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-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'

Configuration file: /etc/bootmenu.d/nitdroid.ext.item
Adding bootmenu entry for: 'NITDroid 2.6.28.NIT.06'
cat: can't open '/var/tmp/bootmenu.cmd.default': No such file or directory

Thr kp.item is the one that came with kp-bootimg from extras-testing and the nitdroid one I wrote it myself (probably doesn't work anyway, but it doesn't seem to be the problem)

2nd, I want to boot kernel power by default (in fact I don't even care about PR1.3, I don't need it) how can it be done? I suppose I can generate attached kernel on my pc and flash it just like I did with kp49 but isn't this new uboot supposed to make it easier to upgrade kp?

Thanks


EDIT: feeling stupid. I read the above post and saw I must have a /etc/default/bootmenu.item

please add a more detailed warning in the error or mention the need for this file in the first post. Suppose both my questions are now answered. Rebooting now...

misiak 2012-05-20 21:35

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

Originally Posted by qwazix (Post 1209870)
2 questions.

First I get the following errors after u-boot-update-bootmenu
Code:

/etc/bootmenu.d $ 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-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'

Configuration file: /etc/bootmenu.d/nitdroid.ext.item
Adding bootmenu entry for: 'NITDroid 2.6.28.NIT.06'
cat: can't open '/var/tmp/bootmenu.cmd.default': No such file or directory

Thr kp.item is the one that came with kp-bootimg from extras-testing and the nitdroid one I wrote it myself (probably doesn't work anyway, but it doesn't seem to be the problem)

2nd, I want to boot kernel power by default (in fact I don't even care about PR1.3, I don't need it) how can it be done? I suppose I can generate attached kernel on my pc and flash it just like I did with kp49 but isn't this new uboot supposed to make it easier to upgrade kp?

Thanks


EDIT: feeling stupid. I read the above post and saw I must have a /etc/default/bootmenu.item

please add a more detailed warning in the error or mention the need for this file in the first post. Suppose both my questions are now answered. Rebooting now...

Nice to see someone else has exactly the same problem on the same day ;)

@pali
So, basically, if we want to have power kernel by default, we should run commands
Code:

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

, right? If u-boot-update-bootmenu is a script, it would be nice if, after reading all config files from /etc/bootmenu.d it asked which kernel we want to use as default one if there is no /etc/default/bootmenu.item , or assume the first one (alphabetically) as default one. But that is only a suggestion/wish, I feel horrible to ask you for something anyway, you've already done so much useful stuff for me and my device...

qwazix 2012-05-20 21:41

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
yes I did that but it does not boot. Neither does NitDroid (after reinstalling kernel which recreated the -hopefully- correct item file. I can only boot attached kernel. Kp hangs and nitdroid complains it cannot find the file. Have to go to sleep now but I'll try again tomorrow. G'night.

clarification: after creating the /etc/default/bootmenu.item symlink the error went away but still can't boot

misiak 2012-05-20 21:43

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

Originally Posted by qwazix (Post 1209888)
yes I did that but it does not boot. Neither does NitDroid (after reinstalling kernel which recreated the -hopefully- correct item file. I can only boot attached kernel. Kp hangs and nitdroid complains it cannot find the file. Have to go to sleep now but I'll try again tomorrow. G'night.

G'night. You may try the solution posted by MaddogG 2 pages ago -
wrap lines 269-270 with if statement as described in post http://talk.maemo.org/showpost.php?p...&postcount=256 -
and see if you can boot kernel power manually selecting its menu entry. I can ;)

qwazix 2012-05-20 21:49

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
check out my clarification edit. I don't have the error anymore but still can't boot

misiak 2012-05-20 21:59

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

Originally Posted by qwazix (Post 1209897)
check out my clarification edit. I don't have the error anymore but still can't boot

but what if you DELETE the symlink from /etc/default and edit /usr/bin/u-boot-update-bootmenu script to wrap lines 269 and 270 in an "if" statement, then run u-boot-update-bootmenu and reboot? The default kernel would be omap1 I think, but you should be able to select other kernels manually and they should boot.

qwazix 2012-05-21 18:43

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
I tried it again, without changing anything and I am inside maemo with kp50. Yay!

Now on to boot NITDroid and then Nemo and Ubuntu

qwazix 2012-05-21 19:42

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
I made a uImage of NitDroid kernel, using mkImage, put it in the 2nd sd partition and tried to boot.

Code:

ITEM_NAME="NITDroid 2.6.28.NIT.07 on mmcblk1p2"
ITEM_KERNEL=2.6.28.NIT.07
ITEM_MODULES=ext3
ITEM_DEVICE=${EXT_CARD}p2
ITEM_FSTYPE=ext3
ITEM_FSOPTIONS=rw,noatime,errors=remount-ro

It does find the uImage, loads it but it gets stuck at Starting kernel...
what am I doing wrong?

of course NitDroid root is unpacked in that partition


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

vBulletin® Version 3.8.8