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)

Netweaver 2012-03-23 11:47

Re: U-Boot for Nokia RX-51 with BootMenu
 
some update on Nemo booting in Bootmenu u-boot.

David Greaves has added a hint to the Nemo bug report on what to patch to MAYBE allow the NEMO kernel to boot on our hw.
I took that patch, rebased it on our 2.6.37 kernel (here) and created the kernel in COBS.

Can anyone take the uImage and modules out of my latest compiled kernel (including that patch) here and try it on a freshly prepared NEMO SD card install ?

It could actually be in the right area, the patch, as I did see once a complete SD card corruption after trying to boot from it, with the stock NEMO kernel, requiring a lowlevel format. And that can only happen during writes :D

I'm being 'attacked' at my normal business job here, otherwise I would do the testing myself.

Please let me know the results.

reinob 2012-03-23 13:52

Re: U-Boot for Nokia RX-51 with BootMenu
 
Quote:

Originally Posted by Fabry (Post 1182810)
Not "/dst-part" but "dst-part".
So: mount -t ext4 -o noatime /dev/mmcblk0p4 dst-part

With "/dst-part" you search on root dir and theorically dst-part is on /home/user, so wrong path

No idea what that's about. I assumed "dst-part" was just a generic placeholder for the name of a mount point.

In any case, the spacing was all wrong. The choice of a mount point is something very personal :) so it's none of my business...

Hurrian 2012-03-23 14:02

Re: U-Boot for Nokia RX-51 with BootMenu
 
Quote:

Originally Posted by Netweaver (Post 1183162)
Can anyone take the uImage and modules out of my latest compiled kernel (including that patch) here and try it on a freshly prepared NEMO SD card install ?

The link needs a username and password. Can you upload it somewhere else?

Netweaver 2012-03-23 14:10

Re: U-Boot for Nokia RX-51 with BootMenu
 
sorry, this link should work. Forgot about the login requirements.

I just quickly took the rpm, the uImage and all you might wanna see/know about the kernel is in there.
http://www.filefactory.com/file/c445...00_armv7hl_rpm

Netweaver 2012-03-24 00:43

Re: U-Boot for Nokia RX-51 with BootMenu
 
updating my own request.

I ran the modified kernel on a newly prepared card and still the same issue :(
After 100s of error -110 it does fall through to a proper Nemo Mobile screen but again 100s of error -110 later it finally stops with a systemd-fsck alert.
It was worth the try. Please also try on other cards/environments.

I'll update the bug to say it's not the definitive solution.

Hurrian 2012-03-27 04:10

Re: U-Boot for Nokia RX-51 with BootMenu
 
Tried on a 2GB Nokia uSD and 32GB Sandisk Class 4.
Both ended up exploding under Nemo.

Lemme try once more.

sicelo 2012-03-27 09:13

Re: U-Boot for Nokia RX-51 with BootMenu
 
:confused: I installed this u-boot, and got the penguin logo fine. system booted using stock kernel. since i use kp49, i rebooted and tried to choose kp49, but device stopped at Loading Kernel... stage. after several tries, and edits of /etc/bootmenu.d/ files, nothing at all boots, not even stock kernel.

I understand i must have done something wrong somewhere. anyone can help me 'fix' this? now i can't even charge the device by the way.

I'm sure my rootfs is still fine though, so I don't think a reflash is needed, yet. I suppose there should be some command (maybe via flasher utility) which would 'override' u-boot, allowing me to boot into maemo normally.

Please help

sicelo 2012-03-27 18:19

Re: U-Boot for Nokia RX-51 with BootMenu
 
well, further investigations showed that there were kernel panics as per http://talk.maemo.org/showthread.php?t=83094 thread. so i'll rescue whatever files i can and reflash.

sicelo 2012-03-28 20:56

Re: U-Boot for Nokia RX-51 with BootMenu
 
FIXED: you can follow the discussion with Pali and NIN101 here: http://mg.pov.lt/maemo-irclog/%23mae...03-28T22:46:34

No reflash was needed.

Hurrian 2012-03-29 09:54

Re: U-Boot for Nokia RX-51 with BootMenu
 
Tested the latest Nemo image on eMMC - no -110 errors at all.

However, performance is completely destroyed, and totally unusable.

ukaef 2012-04-03 12:16

Re: U-Boot for Nokia RX-51 with BootMenu
 
So basically there is no way to be able to choose if I want to boot Maemo KPv50 from eMMC, or to boot NEMO from SD card?

I have now U-Boot with BootMenu, Maemo`s KP v50. When trying to boot from mmc there is a lot of -110 errors.

Card is ADATA 8GB Class 10.

What I have to do to check out NEMO which I have wrote on SD card?

Uninstall those 3 U-Boot packages by dpkg and then installs UBOOT-PR1.3 from Application Manager?

hxka 2012-04-12 15:31

Re: U-Boot for Nokia RX-51 with BootMenu
 
Too bad we can't load attached kernel with different cmdline.
And it would be better if u-boot will add parameters to cmdline (like flasher), instead of replacing them all.

ildar 2012-04-16 10:10

Re: U-Boot for Nokia RX-51 with BootMenu
 
I was shocked finding SHR kernel have this issue too.
Now I wonder if installing SHR's U-boot would solve the issue.
Pali: would SHR U-boot see your bootmenu.scr? NO.

I think SHR staff could help, maybe better then Nemo's. Pali: anyone tried contacting them?

ildar 2012-04-18 11:17

Re: U-Boot for Nokia RX-51 with BootMenu
 
Quote:

Originally Posted by Fabry (Post 1170994)
I have Nemo (fresh install) on eMMC so no problem for SD Class 10 or similar.
I have tried to boot Nemo with u-boot and as I have told some weeks ago, but it has always failed to boot (many I/O errors -110)

Today I have tried three times with flasher and the results has been always the same: No boot and many I/O errors

In the past I have loaded many times MeeGo / Nemo kernel with flasher and it has always worked!
So it is impossible that now it no longer works.

I have done an experiment:
  1. Flashed a Power Kernel v49 without u-boot (before I had PK49 with latest Pali's u-boot)
  2. Booted Maemo one or two times (I don't remember) and then powered off.
  3. Loaded Nemo's Kernel with flasher

This time Nemo has booted correctly without errors!!

I deny that: I just successfully booted SHR with:
Quote:

sudo modprobe -r cdc_phonet ; ./flasher-3.5 -k zImage -l --boot='root=/dev/mmcblk0p5 rootwait rw console=ttyO2,115200n8 console=tty0 omapfb.vram=0:2M,1:2M,2:2M mtdoops.mtddev=2 panic=10'
with U-boot installed where it was.
I can't imagine anything you can try except getting battery and USB away for a couple of sec.

skykooler 2012-04-19 17:49

Re: U-Boot for Nokia RX-51 with BootMenu
 
Quote:

Originally Posted by ildar (Post 1193777)
I deny that: I just successfully booted SHR with:
Code:

sudo modprobe -r cdc_phonet ; ./flasher-3.5 -k zImage -l --boot='root=/dev/mmcblk0p5 rootwait rw console=ttyO2,115200n8 console=tty0 omapfb.vram=0:2M,1:2M,2:2M mtdoops.mtddev=2 panic=10'
with U-boot installed where it was.
I can't imagine anything you can try except getting battery and USB away for a couple of sec.

Was this run on the computer or the N900? I can't seem to boot SHR from u-boot (even with SHR u-boot it kernel panics).

ildar 2012-04-20 11:36

Re: U-Boot for Nokia RX-51 with BootMenu
 
Quote:

Originally Posted by skykooler (Post 1194518)
Was this run on the computer or the N900? I can't seem to boot SHR from u-boot (even with SHR u-boot it kernel panics).

Surely from the computer in "Update firmware" mode. The reason for my post was to show that installed U-boot doesn't prevent from successfully booting from the mode.

Furthermore, I guess your kernel panics because it can't find the root partition. You should provide a more detailed diagnostics.

pali 2012-04-21 18:31

Re: U-Boot for Nokia RX-51 with BootMenu
 
Now I'm prepairing new rx51 patch series for upstream u-boot.

It will break some existing u-boot scripts, but I update bootmenu shell script, so bootmenu item entries maybe will work.

And now maybe all systems which does not use nokia 2.6.28 kernel will boot without copying atags from NOLO (I found bug that U-boot on rx51 passing one atag with bad size of RAM)

Also has somebody nice parser of /proc/atags? Something like in this post: http://talk.maemo.org/showpost.php?p...&postcount=148

skykooler 2012-04-23 15:42

Re: U-Boot for Nokia RX-51 with BootMenu
 
Quote:

Originally Posted by ildar (Post 1194824)
Surely from the computer in "Update firmware" mode. The reason for my post was to show that installed U-boot doesn't prevent from successfully booting from the mode.

Furthermore, I guess your kernel panics because it can't find the root partition. You should provide a more detailed diagnostics.

It is telling me something about a 110 error; but I can't write it all down before it reboots. Is this logged somewhere?

freemangordon 2012-04-23 17:13

Re: U-Boot for Nokia RX-51 with BootMenu
 
Guys, can someone of you report for which EXACT device those -110 errors are thrown, is it mmcblk1 or mmcblk0.

Sorry for asking, right now I have Maemo on sdcard with 2.6.37 meego kernel and the device giving me -110 errors is INTERNAL eMMC (mmcblk1) and not the external one(sd card). But I don't have Nemo or Ubuntu to test with and confirm.

Estel 2012-04-23 20:21

Re: U-Boot for Nokia RX-51 with BootMenu
 
Quote:

Originally Posted by freemangordon (Post 1196484)
right now I have Maemo on sdcard with 2.6.37 meego kernel

Are You kidding me? :eek:

Seriously though, I wonder if errata incompatibility won't hit us like bus. Holding thumbs for Your efforts! It would be funny to rewrite all kp patches to comply with 2.6.37, yep?

[/off-topic]

Nobless 2012-04-23 20:28

Re: U-Boot for Nokia RX-51 with BootMenu
 
Quote:

Originally Posted by ildar (Post 1158845)
Have the same here. Details:
  1. 1. Have the healthy FAT at /home/user/MyDocs
  2. 2. U-boot shows default menu
  3. 3. U-boot console:
    Code:

    mmc init
    mmc dev 1
    fatls 1

    It shows the contents of /home/user/MyDocs/Text/0scraps/20111026223145
So U-boot indeed handles (v)FAT incorrectly.
My guess it is due to misaligned partition OR parted resize. I mean I used parted to resize /dev/mmcblk0p1 so that I could put another system on eMMC.

Any ideas howto fix?

I also parted MyDocs(resized) and added mmcblk0p4 partition of 2GB, and u-boot offers to boot from Internal Flash, eMMC, SD, etc. What u do to fix that ? And when i type:
Code:

fatls mmc 1
i get this
Code:

./
../
nameshistory.syg
voices/
sounds/
skin/
itinerary/
icons/
eula/

1 files, 8 dirs

Before partitioning all worked fine :)

freemangordon 2012-04-23 20:30

Re: U-Boot for Nokia RX-51 with BootMenu
 
Quote:

Originally Posted by Estel (Post 1196622)
Are You kidding me? :eek:

Seriously though, I wonder if errata incompatibility won't hit us like bus. Holding thumbs for Your efforts! It would be funny to rewrite all kp patches to comply with 2.6.37, yep?

[/off-topic]

Well, I've never said it boots to hildon-desktop correctly :). Actually it fails early in "getbootstate" but that is not the point. I am booting Maemo, because it has syslogd enabled, and now I have nice looking -110 errors in syslog, plus hsmmc driver debug messages ;). It is just much easier for me to boot Maemo and try to capture some useful data re SD/eMMC =110 failures, than fight Ubuntu or Nemo

pali 2012-04-23 20:33

Re: U-Boot for Nokia RX-51 with BootMenu
 
Quote:

Originally Posted by freemangordon (Post 1196630)
Well, I've never said it boots to hildon-desktop correctly :). Actually it fails early in "getbootstate" but that is not the point. I am booting Maemo, because it has syslogd enabled, and now I have nice looking -110 errors in syslog, plus hsmmc driver debug messages ;). It is just much easier for me to boot Maemo and try to capture some useful data re SD/eMMC =110 failures, than fight Ubuntu or Nemo

This patch add /proc/bootreason and bootmode fremantle interface to meego kernel: http://atrey.karlin.mff.cuni.cz/~pal...remantle.patch Also it fixing some problem with booting from nand and support for maemo gpio keys interface. Before booting meego kernel make sure that BME will not be started (e.g. remove/rename file /etc/event.d/bme) - it is incompatible with >= 2.6.32 (?)

freemangordon 2012-04-23 20:42

Re: U-Boot for Nokia RX-51 with BootMenu
 
@Pali - again, I am trying to find the reason for -110 errors, not to boot Maemo from sdcard, however, thanks for the patch.

BTW it seems that for me -110 errors are for eMMC, not for SD card. AFAIK stskeeps' u-boot does not enable eMMC, while your u-boot does. Could this be the reason, i.e. kernel expect eMMC disabled, and when it is enabled, it cannot deal with the situation. Anyway, right now I am instlling Ububtu 12.04 on my SD card, once it is ready, I will try to boot it with a meego 2.6.37+ kernel with several patches collected from this thread (dto patch, host->power_mode = -1 patch) and some forward-ported code from 2.6.28. Lets see how it will behave.

pali 2012-04-23 20:57

Re: U-Boot for Nokia RX-51 with BootMenu
 
Quote:

Originally Posted by Nobless (Post 1196629)
I also parted MyDocs(resized) and added mmcblk0p4 partition of 2GB, and u-boot offers to boot from Internal Flash, eMMC, SD, etc. What u do to fix that ? And when i type:
Code:

fatls mmc 1
i get this
Code:

./
../
nameshistory.syg
voices/
sounds/
skin/
itinerary/
icons/
eula/

1 files, 8 dirs

Before partitioning all worked fine :)

Run as root: fsck.vfat -a /dev/your_fat_part
It will check and repair fat partition. Also problem can be in u-boot...

freemangordon 2012-04-24 07:35

Re: U-Boot for Nokia RX-51 with BootMenu
 
@Pali - confirmed, both Maemo and Ubuntu throw -110 errors for mmcblk1 (eMMC), when started with run sdboot. SD card is rock stable with modified kernel (2.6.37) I am using.

Would you give me a hint where u-boot enables eMMC? I will disable code which enables and will check how is the siuation.

Having in mind that one of the major differences between your and stskeeps' u-boot is internal memory being enabled by yours, I am almost sure your u-boot leaves eMMC in a state from which kernels cannot recover. And while it is definitely a bug in the kernel, I think we should do our best to workaround it in u-boot.

pali 2012-04-24 07:39

Re: U-Boot for Nokia RX-51 with BootMenu
 
Enabling eMMC is done in board/nokia/rx51.c in function misc_init_r.
It call functions: twl4030_pmrecv_vsel_cfg, twl4030_i2c_write_u8 and twl4030_regulator_set_mode

unknown.obvious 2012-04-24 07:55

Re: U-Boot for Nokia RX-51 with BootMenu
 
@freemangordon

Did you compile the Kernel yourself or do you use the one I posted? Because if you use the posted one, it could be my fault because I didn't investigate the eMMC and can't say for sure I included everything.

Hurrian 2012-04-24 08:31

Re: U-Boot for Nokia RX-51 with BootMenu
 
Quote:

Originally Posted by freemangordon (Post 1196484)
Guys, can someone of you report for which EXACT device those -110 errors are thrown, is it mmcblk1 or mmcblk0.

Sorry for asking, right now I have Maemo on sdcard with 2.6.37 meego kernel and the device giving me -110 errors is INTERNAL eMMC (mmcblk1) and not the external one(sd card). But I don't have Nemo or Ubuntu to test with and confirm.

Both of them.
You'll see when you copy Nemo to eMMC partition 4 and use swap on SD.

Quote:

Originally Posted by freemangordon (Post 1196484)
Maemo on sdcard with 2.6.37 meego kernel

:O

freemangordon 2012-04-24 11:26

Re: U-Boot for Nokia RX-51 with BootMenu
 
Quote:

Originally Posted by unknown.obvious (Post 1196850)
@freemangordon

Did you compile the Kernel yourself or do you use the one I posted? Because if you use the posted one, it could be my fault because I didn't investigate the eMMC and can't say for sure I included everything.

I compiled the kernel by myself, not using yours. Don't have access to my home PC right now, so I will publish the patches later on, but in short:
dto 14 patch
mmc_restore-power-mode.patch

forwar port some logic from 2.6.28 kernel - disable off mode for 16GB cards.

once (and if) everything is ok I will publish a full set of patches. But anyway fixing u-boot is my primary goal.

@Pali: are you aware of some (weak) "misc_fini_r" function in u-boot code, i.e. the one similar to misc_init_r, but called just before the control is passed to kernel?

freemangordon 2012-04-24 11:30

Re: U-Boot for Nokia RX-51 with BootMenu
 
Quote:

Originally Posted by Hurrian (Post 1196860)
Both of them.
You'll see when you copy Nemo to eMMC partition 4 and use swap on SD.


:O

Well, Ubuntu is booting just fine from SD card (swap in sdcard too), but as long as there is an access to internal flash, -110 errors start to be trown. It could be that i've done some modifications to u-boot code, when I am back home I will pull a clean tree from Pali's repo and will retry with clean u-boot build.

@Pali - the garbadge on u-boot boot options select screen is still not fixed.

EDIT:
@Hurrian and by saying "just fine" I really mean it, my SD card is 16 GB class 10 AData :)

Hurrian 2012-04-24 14:10

Re: U-Boot for Nokia RX-51 with BootMenu
 
This is great, can't wait to test the new u-boot builds.

TrD 2012-04-25 17:39

Re: U-Boot for Nokia RX-51 with BootMenu
 
Can't install for some reason, it sais the package is not compatible (any of the packages)

Estel 2012-04-25 18:58

Re: U-Boot for Nokia RX-51 with BootMenu
 
Very informative.
...
..
.

what You're waiting for... More details, please?

TrD 2012-04-25 19:14

Re: U-Boot for Nokia RX-51 with BootMenu
 
oh well, not too much details to give but first tried while using KP50 (uninstalled bootimg first) and then with stock kernel, also downloaded all packages again few times to see if that worked but nope, app manager just sais the package is not compatible, might try reflashing tomorrow and see if it helps.

pali 2012-04-27 16:10

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
I published new version, see first post. There are some incompatible changes which previous version. Also now I pushed source code of debian control files to gitorious u-boot-shr project, branch pali.

J4ZZ 2012-04-28 00:07

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

pali have you tested the new package? I stuck in a reboot loop when loading internal flash and loading omap-1-fb stucks at white screen with "Booting from (mtdblock4 jffs2)..." and that's it.

Reflashed kernel, didn't help... tried to flash -fb kernel to see if it's kernel panic again, but console entry is there.
Still got the reboot loop but Boot Menu is there again but no matter what entry I pick. It won't boot.

-Internal Flash:
just reboot loop

-omap1:
mount: mounting /dev/mtdblock4 on /mnt/new_root failed: No such device
Command exited with non-zero status 255

-same for omap1-fb

Any ideas what happen here? :(

Regards,

J4ZZ

pali 2012-04-28 00:46

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
Do you mean new u-boot or new fanoush bootmenu?

Hurrian 2012-04-28 00:50

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
Built the new u-boot from git, slapped it onto kernel-power and it works funderfully. Thanks, pali!

fw190 2012-04-28 01:06

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
I probably did something wrong and here is the output of my mess:

BusyBox v1.20.0 (Debian 1.20.0power1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ sudo u-boot-update-bootmenu
Adding bootmenu entry for: Maemo 5 (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'...
/usr/bin/mkimage: line 1: syntax error: unexpected word (expecting ")")
~ $

any hints what to do now?


All times are GMT. The time now is 08:11.

vBulletin® Version 3.8.8