![]() |
Re: U-Boot for Nokia RX-51 with BootMenu
Now Carsten Munk wrote me, that Nemo kernel needs atags from NOLO.
I tried to add ITEM_USEATAG="1" to nemo bootmenu file and nemo kernel booted :-) |
Re: U-Boot for Nokia RX-51 with BootMenu
Quote:
No booting to Nemo. I had run Nemo with multiboot before, so I thought it would be easier than to try NITDroid, but couldn't make it. Tomorrow will try NITDroid manual install. |
Re: U-Boot for Nokia RX-51 with BootMenu
Question - uboot+kernel boots before /sbin/preinit runs when booting into Maemo 5, correct?
|
Re: U-Boot for Nokia RX-51 with BootMenu
Quote:
|
Re: U-Boot for Nokia RX-51 with BootMenu
Quote:
|
Re: U-Boot for Nokia RX-51 with BootMenu
indeed now the Nemo kernel boots but i'm getting a kernel panic due to "cannot open root device "mmcblk1p1" and it gives a list of possible partition options but those are the mtdblock0 to mtdblock5 partitions ??? Not the 3 partitions on the SD card.
So the kernel looks at the wrong device to find the root. Any idea ? EDIT: Maybe the syntax for the discovered external SD card partitions is different than the syntax for the internal ones or due to newer kernel version the names are different ? Over to Carsten again ? Thanks everyone for trying to crack this thing. After the hopefully very close successfull Nemo boot we only have Nitdroid left. Or maybe (k)Ubuntu and Archlinux, but the followers for those are less in numbers and I guess/hope by then all knowledge and experience will be in the open so it's less painful. |
Re: U-Boot for Nokia RX-51 with BootMenu
Question, if you boot into the u-boot console, don't boot into any O.S., but kick the watchdogs over enough to keep the system from shutting down, if you wait long enough, will the screen shut-off?
I noticed that from the /sbin/preinit shell, if you leave the N900 in it for a while 5-10 min, never timed it, the screen will shut off. Interacting with the keyboard, however, brings it back on. I'm just wondering if that's the Maemo 5 kernel, one of the bare minimum of drivers loaded in my /sbin/preinit boot-shell (I haven't tested with the one you have in your git repo), or something lower down in the hardware having a built-in screen shut-off-when-idle feature. |
Re: U-Boot for Nokia RX-51 with BootMenu
Quote:
For SD the correct device is mmcblk0p1 |
Re: U-Boot for Nokia RX-51 with BootMenu
just tried it with mmcblk0p1 as well, same issue. the kernel still only shows the mtdblock0 to mtdblock5 partitions and panics.
Am I the only one who has a starting/booting Nemo kernel but non-completing all the way to Nemo itself ? BTW, it's on the SD card. |
Re: U-Boot for Nokia RX-51 with BootMenu
Command line (bootargs) for MeeGo/Nemo is :
Code:
root=/dev/mmcblk0p1 rootwait rw console=ttyO2,115200n8 console=tty0 omapfb.vram=0:2M,1:2M,2:2M mtdoops.mtddev=2 |
Re: U-Boot for Nokia RX-51 with BootMenu
yay, i managed to boot with:
ITEM_NAME="Mer - Nemo Mobile" ITEM_ID="nemo" ITEM_CMDLINE="root=/dev/mmcblk0p1 rootwait rw console=ttyO2,115200n8 console=tty0 omapfb.vram=0:2M,1:2M,2:2M mtdoops.mtddev=2" ITEM_DEVICE="${EXT_CARD}p3" ITEM_KERNEL="uImage" ITEM_FSTYPE="fat" ITEM_USEATAG="1" I got some mmcblk0 errors during boot but it managed to get into nemo. But then after a while it crashed by spraying the console with something like: mmcblk0: error -110 sending read/write comand mmcblk0: error -110 sending status comand But that might just be due to my sd card being damaged or something? Anyway, thanks for all the help! |
Re: U-Boot for Nokia RX-51 with BootMenu
ha, exact same behavior here. And after that crash Nemo doesn't boot anymore.
It complaints about locked x server files etc. Ends up in an endless loop. I'm now rewriting my SD card, thinking I was sold a bad card. It seems it's not the case. There must still be other things to tweak. PS I'm having a Samsung Class 10 8 GB card, from a reputable seller at Amazon. I'm expecting also a Samsung Class 6 8GB card, for actual runtime speed comparison testing. |
Re: U-Boot for Nokia RX-51 with BootMenu
I get exactly the same errors with the bootmenu entry posted by plipp.
My card is a 8GB class 10 from samsung, I don't think it's an issue with a bad card if we all got the same errors. Maybe some of the options in the CMDLINE are wrong or it still needs more options ... |
Re: U-Boot for Nokia RX-51 with BootMenu
The bootmenu items should be:
For SD generated by Nemo image: Code:
ITEM_NAME="Mer - Nemo Mobile from SD" Code:
ITEM_NAME="Mer - Nemo Mobile generic" |
Re: U-Boot for Nokia RX-51 with BootMenu
Quote:
|
Re: U-Boot for Nokia RX-51 with BootMenu
mmmm, are you sure about that external SD card bootmenu item ?
When trying that I'm getting in U-Boot : Quote:
The 3rd partition (the FAT one) on the SD card does not contain a boot.scr file, only a kernel config text file, a kernel memory map text file, the vmlinuz version of the kernel and the uImage version of the kernel. No boot.scr file. What are we doing wrong ? Does this work on your N900 ? PS. In the mean time received I my Samsung 8GB Class 6 SD card and I used that one as the target for the image, writing was fine. As opposed to the class 10 SD card, which seems like f*cked up. rewriting the image took forever and the card reader activity light was very strange behaving. I'll try to recover that one later. |
Re: U-Boot for Nokia RX-51 with BootMenu
Quote:
|
Re: U-Boot for Nokia RX-51 with BootMenu
I tried again, with the removal of the SCRIPT line. Now I'm having the same result as with the CMDLINE='root= ..." version we were trying before. Getting loads of mmblck1: error -110 lines in succession reading/receiving for minutes (already 8 minutes ...) in a row. This is now the 2nd card I'm putting in giving this issue. But this one hasn't even fallen through yet to Nemo, as the first one finally did.
I did see something on the Nemo install wiki : Quote:
So there must be something else ... UPDATE: now I'm having the thousands of scrolling errors on mmcblk0. Same error -110 sending/receiving ... |
Re: U-Boot for Nokia RX-51 with BootMenu
Same problem with dmesg error messages. Similar errors I was getting in U-boot (when I tried to activate mmc) and in U-Boot was problem that mmc/sd card was not activated with twl4030 regulator.
So I think this is problem in Nemo kernel. (U-Boot maybe does not set same sd state as NOLO, but kernel should not depends on bad bootloader). Can somebody ask maintainers/developers of Nemo kernel about this problem? At least default Nokia Maemo 2.6.28 has no problems with eMMC/SD memory. |
Re: U-Boot for Nokia RX-51 with BootMenu
I've found this info on the error, talking about a kernel bug in the same kernel version as Nemo is using, also on armel architecture :)
http://groups.google.com/group/beagleboard/browse_thread/thread/87f191353f55ecc2?pli=1 Smoking gun ??? Something for Carsten and his team I guess. |
Re: U-Boot for Nokia RX-51 with BootMenu
Quote:
|
Re: U-Boot for Nokia RX-51 with BootMenu
from the Nemo Kernel config :
Quote:
I'm not sure what side effects that has. Need to do some more digging for that... UPDATE : I see why this option was chosen, to reduce latency. http://www.hotaboutlinux.com/2010/01...air-scheduler/ Might be a proper kernel patch solution is the best one, if existing ... I'll dig up the link for the Nemo/Mer bug report. |
Re: U-Boot for Nokia RX-51 with BootMenu
I have found a bug in bootmenu generation.
I have used this profile: Code:
ITEM_NAME="Nemo from boot.scr" It not works and if i examine the generated menu entry, I find : Code:
setenv bootmenu_3 'Nemo from boot.scr= |
Re: U-Boot for Nokia RX-51 with BootMenu
bug entered on the Mer/Nemo bugzilla for the External SD card initialization failure : https://bugs.merproject.org/show_bug.cgi?id=150
|
Re: U-Boot for Nokia RX-51 with BootMenu
I have the same problem (error -110) with eMMC but with previous u-boot instead it is working fine
|
Re: U-Boot for Nokia RX-51 with BootMenu
Hi Pali,
can u have a look at your code again ? Specifically compare with the patches that were used by Carsten to create his uboot-pr13 package, as they seem to initialize everything fine : http://al.robotfuzz.com/~al/maemo/u-...-support.patch We have to avoid ending up in the fingerpointing : it's the Nemo kernel's fault <-> it's Pali's u-boot fault :) Also Fabry, if you say it was working fine with the previous one, is that a previous Pali version (with the battery drain) or the 'official' uboot-pr13 version ? Just to narrow down where the differences can be looked for. Thanks again. I hope u have some time, as I know your pretty busy recently. |
Re: U-Boot for Nokia RX-51 with BootMenu
Quote:
I checked update script and ITEM_USEATAG is relevant only for booting kernel. ... But what other people think? Should external u-boot script set all needed variables for booting? Or should only some and some should set update-bootmenu? I think that - if user/developer/... decide to use own u-boot script for booting (not prepaired u-boot variables for kernel/initrd) it should also handle passing atags to bootm command. |
Re: U-Boot for Nokia RX-51 with BootMenu
Quote:
|
Re: U-Boot for Nokia RX-51 with BootMenu
Whoever is interested, some more reading on the same issue, encountered by other people on Armel platform:
http://permalink.gmane.org/gmane.lin...arm.omap/52674 same issue, fixed by dissect between 2 kernel trees to find the troubled sourcecode in ubuntu on beagleboard : https://bugs.launchpad.net/ubuntu/+s...ux/+bug/591941 issue still stays why some kernels work. Basically the 2.6.28 kernels (stock + derived kernel-power line) all work. Are they maybe configured with PREEMPT_NONE=y ? That could explain the difference in behavior with the 2.6.37 Nemo kernel line. Minute timing differences in the boot/init process can already influence this race condition, making it hard to pinpoint the issue. Reading back at the Mer/Nemo install wiki, it almost looks like this issue was known/encountered before but was never really bottomed out, maybe because other more important issue were present.at the time. Just my 2 cents, to be confirmed. |
Re: U-Boot for Nokia RX-51 with BootMenu
kernel-power has this config:
Code:
$ grep PREEMPT .config |
Re: U-Boot for Nokia RX-51 with BootMenu
ok, thanks, that's ruled out then.
A bit deeper now... As per the Ubuntu ARM bug, the commit below was introduced in 2.6.34rc1 so is surely not included in our 2.6.28. It got removed later by the Ubuntu Arm team to fix their (and our identical) issue. I checked the code in the Nemo 2.6.37 N900 Adaptation kernel in OBS and an evolved version from this commit is STILL in the code. Also the modification we have in our kernel for the Class 10 cards (setting DTO to 14, iirc), in the same source file, is also NOT in the Nemo kernel. I suppose, when patched (and that commit rebased/reverted) the same way as our kernel-power, it would have more chance of working but it needs a more experienced kernel programmer than me to create the correct patch and create a new kernel for testing :) Quote:
|
Re: U-Boot for Nokia RX-51 with BootMenu
Quote:
/Estel |
Re: U-Boot for Nokia RX-51 with BootMenu
Quote:
|
Re: U-Boot for Nokia RX-51 with BootMenu
ok, some progress, as I did have some time :)
I made 2 patches on top of the latest Nemo kernel. Now I'm waiting for my OBS account, then I can branch off the kernel and compile my own version. I'll create combinations, looking which of the 2 patches fixes the issue (or both or none ...). It's weekend and FOSDEM in Brussels, I guess people will be busy/having a party tonight (I would if I was there ...). So if I don't get that account soon, then I'll try the local compilation method and do the proper admin/patch workflow in OBS later, Fun times ahead, tackling the OBS beast! :) Ultimate goal, a Nemo kernel working with the Pali u-boot. Win odds? ... tbd :D |
Re: U-Boot for Nokia RX-51 with BootMenu
@pali
I installed uboot in the repos and nemo works just fine with it, maybe you should check your u-boot? |
Re: U-Boot for Nokia RX-51 with BootMenu
Quote:
|
Re: U-Boot for Nokia RX-51 with BootMenu
Hi, pali, ppl.
1. Plz apply this: sed -i 's|test -f "\$BOOTMENU_BOOT_DIR|test -s "$BOOTMENU_BOOT_DIR|' u-boot-update-bootmenu This will allow processing kernel images which are symlinks. 2. BTW where's the public repo with u-boot-update-bootmenu? Guthub? 3. Would be very nice having ability to change the default boot item through /etc/bootmenu.d/ items. |
Re: U-Boot for Nokia RX-51 with BootMenu
Confirming bug. Installed on external microSD partition 3.
SD Card is a Sandisk 32GB class 2. Note that the mmc problems also occur with the internal mmc1. MMC init is therefore to blame for message flooding. |
Re: U-Boot for Nokia RX-51 with BootMenu
anyone tried to boot the kernel with kexec? Maybe that would separate loader problems from kernel problems?
|
Re: U-Boot for Nokia RX-51 with BootMenu
Quote:
2. Not yet. If I have correct debian/* packaging I will create new branch on gitorious u-boot-shr project 3. Why? I think that the best is to have one place with one format for all multiboot programs... |
All times are GMT. The time now is 04:57. |
vBulletin® Version 3.8.8