![]() |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
@guilledoc: U-Boot does not flashing kernels! It loads it and start it directly. Did you installed -bootimg kernel package?
|
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
Canīt believe myself
Sorry for bothering anyone with my posts same probleme as usual typing error- Wrote in config without the "S" ---REUSEATAG-- THANKS A LOT for your hard work and really really sorry |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
Hi. I'm trying to boot Nitdroid. N12umay is in the internal card mmcblk1p5 (ext3). Dropped nitdroid image in /boot and modules in /lib/modules, in first fat partition.
U-boot is reading kernel ok. It delays 10 sec (as configured) and then it reboots. Thanks for any help! |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
Quote:
/etc/bootmenu.d -- yes, it's mmcblk0p5 Code:
ITEM_NAME="NITDroid" Don't mess with mmc1, boot.scr or FAT partition, it's not needed. You might also want to check the last paragraph of this post out if you need camera to work. |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
Quote:
Thanks a lot, trompkins!!! you got it! That's it. Changing to /dev/mmcblk0p5 was the key. I already had the modules in place cause before I've tried to boot directly from ext3. Now works like a charm. Thanks again! :) |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
Sorry for bothering again
Intalled the cssu-thumb and now when I reboot with keyboard open only bootmenu loads but not u-boot any idea how to arreange it? |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
Quote:
So you basically lost u-boot. If you want u-boot and cssu-thumb you need to create a combined image of u-boot + cssu-thumb kernel (I believe you can find the instructions on the first post). |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
Instructions for manually combining can be found in palis post #6, page 1.
If you got Multiboot, just combine the u-boot and the uImage, create new multiboot item (e.g. kp50u-boot), symlink modules folder (kp50u-boot) to existing one (kp50) and boot/flash it. On next boot you will have u-boot (combined with multiboot, which is of course not needed anymore, but hey its still there) ... |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
Hi!
I wanted to install Backupmenu together with NITDroid. So, I installed first U-Boot and then Backupmenu, and it worked, I could start Backupmenu from U-Boot menu. Then, I installed NITDroid through the autoinstaller on the mass memory, but it replaced its own boot menu, U-Boot disappeared. So, is there a way to have both Backupmenu and NITDroid in U-Boot? Many thanks for your help! |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
Pali, do you have any information on preparing an initfs to be fed to u-boot?
I feel like putting mmc and filesystem modules in an initrd and booting Maemo off a uSD, without the hassle of losing power management. |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
@Hurrian:
first you need to create initfs file from root directory (e.g. mkfs.cramfs) then you need to create uInitrd file from your initfs (mkimage -T ramdisk) and then add ITEM_INITRD="<uInitrd_file>" to your bootmenu item file. |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
@pali,
Would you consider building the next kernel-power with the essential modules already linked in? (at least those necessary to access the rootfs, emmc and mmc if present as well as the usual file systems including ext2-4 and vfat). [ at least fat/vfat/ext3 + mmc modules are currently (kp50) not linked in ] That way we wouldn't need an initfs and it would make booting off-NAND Maemo directly via U-boot much easier? |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
Quote:
We'll need to find a solution to this before booting off MMC. |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
Quote:
Do you know if the same happens with the embedded MMC? |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
Quote:
So you need to find alternative solution (with initfs or custom kernel stored in MyDocs...) |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
excuse me i'm kinda mixed up here.. is this an alternative of multiboot?? if so, how can i use switch to it and make a dual boot of maemo and nitdroid?? i'm sorry i'm not as noob as my q is.. but i got confused since i read this thread and i actually would like know how can i make use of u-boot...
please clarify a little bit more thanks |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
Quote:
I know I could do that, but when I have time I don't have the computer with the SDK with me, and when I have it, I don't have time :) U-boot itself can only read from VFAT, is that correct? |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
Quote:
EXT3 partitions and theorically even some EXT4 partitions can be read by Ext2 driver |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
@reinob: u-boot ext2 driver cannot read ext4 paritions, but now in u-boot we have vfat, ext2 and ext4 drivers, so reading ext4 parts are working too. just specify parition type ext4 in your item file and update script will hande it.
|
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
New version 2012.04-2 is uploaded. It will load bootmenu.src always (if keyboard is closed, first menu entry will be automatically boot) and will generate omap atag (instead reusing). ITEM_REUSEATAGS is obsolated, use ITEM_OMAPATAG
See first post. |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
Hey pali,
thanks for making it always better and better and continuation! But one question: what is the benefit of loading bootmenu.scr always? Especially what will happen, if mmcblk0p1 is screwed (and it can not be read)? And one more: when I poweroff (and when I do it, I do it often with keyboard out in x-term) then u-boot will load and wait for 30 s. The display is dark, so I do not notice it as I want to start again. Any chance to detect boot reason=shutdown and shorten th timeout? Just a little personal liking request, so feel free to ignore ;) Oh and btw, I just reread first post and checked your repo. Could you please provide also your u-boot.bin again? Because I merged that with kp50 kernel, so my attachboot is kp50. (I am sure it would be possible to extract it from u-boot flasher kernel, but ...) Sorry, it is there (and has already been). |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
If mmcblk0p1 is not valid fat partition, bootmenu script will not be read.
Benefit of loading always is that you can specify "default" menu entry which will be first in list and will be booted when timer expires or auto booted with closed keyboard. Omap bootreason atag comes from NOLO and now u-boot can parse original atags and create its own. But there is no reason shutdown. Only ACK_DEAD which means shutdown or charger attached. And show u-boot menu in charger attached mode is usefull too. |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
Great to see the option to load a kernel by default.
Installed the two new packages and changed the atags. When rebooting with keyboard closed, I still get the u-boot menu and a 30 seconds timeout. Is this expected behaviour? I would expect it to instantly load the default kernel... |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
Yes, this is bug. It should boot without delay. I found problem that I forgot to call "setenv bootdelay 0" if keyboard is closed. Now compiling new version.
|
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
fixed and -flasher and -bootimg packages updated.
|
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
Quote:
|
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
Sorry again. I uploaded it to bad location. Now it should be fixed. Download again.
|
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
Yes, I can confirm the bug is fixed now.
|
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
Forgive me for not seeing 'it' but whatever I change, the .item filename itself or the description inside the .item file, I don't manage to get my preferred kernel listed before the auto-added 'u-boot attached' Maemo kernel.
So the ultimate list shown and used is not alphabetically sorted or the 'first-one-in-the-list' logic should skip the first, auto-added entry. Am I seeing it wrong somewhere ? Thanks for the new version ! Great to still see progress on all fronts. |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
Quote:
Could be for example: bootmenu.item -> /etc/bootmenu.d/20-Maemo5-kernel-power-2.6.28.10-power50.item |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
Thanks ade,
that was the missing link. I already had the updated u-boot-update script, but was wondering about that "/var/tmp/bootmenu.cmd.default" error. (So used original version.) But as I like to have the run attachboot as default, I just omit that /etc/default/bootmenu.item? Will the script run? Or is there another/nicer way to have attached kernel as default with new u-boot? (Because I do not have an item like that. OK. could create one, but hen I would have it two times in list, right?) |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
thanks, I tried the suggestion but my generated bootmenu.scr is a bit messed up.
It created (according to the command output) a default bootmenu item as per the symbolic link. I'll see later if it boots automatically. And then it created 2 (internal NAND) entries, one for 'Maemo 5 with attached kernel 2.6.28-Omap1...' and of for '...power51...' very strange. I think there's still something wrong with the update script, as per Highlander: "There can only be one" in the Internal NAND :D I'll reboot and see what's the result. EDIT: End result is rather ok, the default entry (power51) is indeed booting. Only visual error is in the menu, having the 2 ''Internal NAND" entries, on list position 1 and 2. I don't if the attached stock kernel (2nd item in the list now) boots fine. I'll try that right now. EDIT2: I can only see visual artifact, all functionality is fine : The auto-generated 1st entry, the default entry received a suffix in the menu:" (Internal NAND)", while it's not actually present in NAND, it's just the default. It might be an enhancement to show it's the User default setting. Thanks for the work! PS, now with the latest changes, could people later (after testing/finding out) post working .item files for Nemo (standard SD card dd based install) and NITDROID (standard install too) ? |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
1 Attachment(s)
Can not confirm 'screwness' of bootmenu. Everything fine here, just tested it. (I do not need it, as my default -KP50- is the attached one. So removed the link again ;)).
About boot items for NITDroid and Nemo, please see below. Both are running fine. NITDroid on SD, p1 (boot.scr, kernel) with FAT and p2 (nitdroid) wih EXT3 Nemo on SD, default image. NITDroid: put kernel (uImage) on p1 of SD (fat) and nitdroid rootfs on p2 of SD (ext3) or wherever you want it, just adapt ;) Code:
ITEM_NAME="NITDroid 2.6.28.NIT.07 on mmcblk1p2" put kernel into "/boot", to have update script convert it to uImage Code:
ITEM_NAME="Nemo with kernel 2.6.37-10.7" --edit another example for NITDroid: put kernel (uImage) on p2 (/home) of eMMC and nitdroid rootfs also on eMMC p2 (home) Code:
ITEM_NAME="NITDroid 2.6.28.NIT.07 on mmcblk0p2" put kernel (uImage) on p1 (MyDocs) of eMMC and nitdroid rootfs on different eMMC p2 (home) Code:
ITEM_NAME="NITDroid 2.6.28.NIT.07 on mmcblk0p2, kernel on p1" and another example for NITDroid: put kernel (uImage) on p5 of eMMC and nitdroid rootfs also on eMMC p5 Code:
ITEM_NAME="NITDroid 2.6.28.NIT.07 on mmcblk0p5" |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
Hi!
I wanted to install BackupMenu together with NITDroid; I first installed U-Boot, then BackupMenu and it worked, that is, I could load BackupMenu from U-Boot menu; then, I installed NITDroid with autoinstaller and it replaced U-Boot menu with its boot menu. NITDrois is installed in the mass memory: how can I create an entry in U-Boot menu to choose to load BackupMenu and NITDroid? I'm afraid to mess everything. :o I can see that in the NITDroid boot menu there's an entry: 11-NITDroid-mmcblk0p2-2.6.28.NIT.07.item with this lines: ITEM_NAME="NITDroid 2.6.28.NIT.07 on mmcblk0p5" ITEM_KERNEL=2.6.28.NIT.07 ITEM_MODULES=ext3 ITEM_DEVICE=${INT_CARD}p2 ITEM_FSTYPE=ext3 ITEM_FSOPTIONS=rw,noatime,errors=remount-ro but I guess I can't simply put it in U-Boot folder. :confused: Thanks in advance! |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
First: there is no need to fully quote the previous post (makes it hard to read; why to read it twice?)
Second: I suggest to move your topic to NITDroid thread, as Third: you already messed it up. Backupmenu depends on bootmenu, nitdroid (autoinstaller) on multiboot, bootmenu and multiboot are mutually exclusive. Do not know about latest autoinstaller, but v0.0.8 just removed all not compatible stuff :eek: and flashes the nitdroid kernel (removing u-boot). So again, please move to appropriate thread or open new one if you feel so. You will have to decide: using u-boot (bootmenu) or multiboot? |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
Ok... corrected. Actually, I just wanted to answer to you. :p
I tried to post in the NITDroid topic and even in the NITDroid forum, and I just got one answer which said that U-Boot has menu entries both for BackupMenu and NITDroid. So, I wanted to try U-Boot. My idea was to remove multiboot from NITDRoid, so I guess NITDroid won't load anymore, and add an entry in U-Boot, but I don't actually know what to do without messing all. I don't know if it's "correct" to copy NITDroid entry from multiboot in U-Boot folder and if that will work. |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
Quote:
|
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
I, for my personal liking, really do hate those "full quotations"!
But if you need another confirmation: YES. I have added a zip file in above post with some examples. @Mr Wolf decide to keep multiboot OR u-boot first option : flash the kernel to NAND with multiboot each time you change install backupmenu-multiboot, bootmenu not available/compatible reinstall u-boot second option reinstall backupmenu (incl.bootmenu), removing multiboot reinstall u-boot load the kernel with u-boot (follow dedicated u-boot forum.nitdroid.com thread guide) As this is not really related to this thread anymore, please keep this one clean and start on another one again, if you need more help. |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
1 Attachment(s)
I have some problems with new version of u-boot. I removed old u-boot-flasher and tools then installed new one, restarted phone to u-boot screen and everything looks just fine, i choosed kernel and it shows me that kernel is starting! but wait.. it hangs bit a while and just shutdowns and even not shown bootmenu console with opened keyboard. Stock and power51 kernels both fails, nitdroid loads just fine. :)) need help to find out whats wrong with him, thanks :)
EDIT: Remembered there is framebuffer that can i use :P so here is my real problem why he doesn't found my root ? EDIT2 : Is there possible to add framebuffer support to kernel-power, i like it more than usual booting :) ? |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
just read error messages. this looks like corrupted rootfs. kernel cannot mount ubifs rootfs filesystem.
|
All times are GMT. The time now is 15:54. |
vBulletin® Version 3.8.8