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)

Fabry 2012-02-08 00:28

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

Originally Posted by ildar (Post 1161587)
anyone tried to boot the kernel with kexec? Maybe that would separate loader problems from kernel problems?

In the past I have tried (meego's kernel), but with no success

Netweaver 2012-02-08 23:31

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

Originally Posted by Netweaver (Post 1159444)
bug entered on the Mer/Nemo bugzilla for the External SD card initialization failure : https://bugs.merproject.org/show_bug.cgi?id=150

As I had entered it on the wrong bug capturing system, I re-entered it just now on the right system. I also updated the text of the bug with some extra info: basically both (tiny) kernel patches didn't solve the issue. Oh well, it was worth the try.

new bug created in Nemo Mobile bugzilla system : 92
https://bugs.nemomobile.org/show_bug.cgi?id=92

Netweaver 2012-02-09 20:37

Re: U-Boot for Nokia RX-51 with BootMenu
 
Some update

Ali1234, the creator of the 'official' Nemo Mobile uboot package was willing to have a look at the problem, on my plea, as he was very close to the code before. You can follow the discussion in the irc chat log, starting yesterday http://mer.bfst.de/logs/%23mer/%23me...02-08.log.html 23:47. It continued early this morning till just now. Feel free to read along and understand the background and issues to resolve this problem.

Right now he/we're a bit on a dead end as the publicised code is not behaving as the binaries so it's very hard to analyse and simulate the problem.

Pali, can you help ali1234 along, to get him to compile the proper code that behaves like ur published binaries ? I think it's always good to have a 2nd or 3rd pair of eyes looking at a complex issue.

irc, #mer is a good spot to meet for now, I guess:)

Thanks.

ali1234 2012-02-09 21:06

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

Originally Posted by Netweaver (Post 1162815)
You can follow the discussion in the irc chat log, starting yesterday

tl;dr

I have rebased my n900-v2011.06 branch on to v2011.12 which uses the omap_hsmmc driver instead of the omap3_mmc legacy driver. You can find this in the branch n900-v2011.12 in my github repo. It boots the nemo kernel correctly.

I also tested the u-boot binary in the first post of this thread, and it gives the -110 timeout errors as reported.

vakkov 2012-02-13 22:27

Re: U-Boot for Nokia RX-51 with BootMenu
 
I want to ask: If i put for example nitdroid will it be flashed (like multiboot does) or will it be loaded by u-boot

[DarkGUNMAN] 2012-02-13 22:45

Re: U-Boot for Nokia RX-51 with BootMenu
 
If it were working, NITDroid kernel would be loaded by uBoot, no flashing required, but I haven't managed to get it going yet.

vakkov 2012-02-13 22:51

Re: U-Boot for Nokia RX-51 with BootMenu
 
e-yes told me that we have to modify init scripts to use uboot and nitdroid

Hurrian 2012-02-15 09:52

Re: U-Boot for Nokia RX-51 with BootMenu
 
Pali, will you update u-boot-bootmenu to use the said new mmc driver?

pali 2012-02-15 10:01

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

Originally Posted by Hurrian (Post 1165301)
Pali, will you update u-boot-bootmenu to use the said new mmc driver?

which new mmc driver? and where? I do not know that there is some new mmc driver in kernel...

Netweaver 2012-02-15 17:18

Re: U-Boot for Nokia RX-51 with BootMenu
 
the -more complete- version of the story ...

There is no new mmc driver in the kernel but there was a new generic mmc driver in the 'officail' u-boot code introduced over the last months. Pali is already using that one as the basis for his work.

The latest 'official' u-boot code (+RX-51 patches, as ali1234 made/described above) from the developers is booting Nemo fine. TEsted by ali1234.

So the Pali introduction of the bootmenu style on top of the 'working' code is breaking the init of the mmc, not allowing Nemo kernel to boot through.

Either by not completely initializing/resetting the twl4030 power convertor to power on the mmc subsystem as well or by not restoring/resetting the mmc registers the way the kernel expects them.

btw, Nemo is not the only kernel having this issue. Maemo5 had to include patches to get it working. The Kubuntu Mobile kernel (only one specific patched version of 2.6.35) is working fine with the Beagleboard (v v v similar HW). Later, unpatched kernel versions don't work. Same issue. Plenty of references on the gmane lists on this.

This can be solved (by smart people) on the Kernel side or on the u-boot side. Unfortunately the Nemo kernel people are not really interested, as they say it's mainly a u-boot (Pali version) fault and Pali says it's the kernel fault. I guess it's somewhere in the middle ...

btw, my Nemo Mobile - N900 Adaptation bug has been accepted and received status low.

Unfortunately ali1234 doesn't have access to the real code as created by Pali to help pinpointing where the issue might be on the u-boot side. Kernel side is v hard, as lots of patches I've tried for v similar issues (Error -110, TimeOut while waiting for a mmc answer), are not fixing the issue so far.

We asked Pali for that code so ali1234 can have a look as well and debug his way through if need be.

To be continued ??

pali 2012-02-15 17:28

Re: U-Boot for Nokia RX-51 with BootMenu
 
Ok. Now I will try to generate diff between my and last ali version (for rx51 code). So then I maybe find real problem...

@Netweaver:
Do you have some kernel patch which fixing this problem?

freemangordon 2012-02-15 17:31

Re: U-Boot for Nokia RX-51 with BootMenu
 
@Netweaver - AFAIK the code is on the same gitorious repo as the ali's.

here

pali 2012-02-15 17:35

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

Originally Posted by freemangordon (Post 1165467)
@Netweaver - AFAIK the code is on the same gitorious repo as the ali's.

here

ali's code are hosted on github. But I'm cloning his code to that gitorious repo to have all rx51 u-boot code on one place.

pali 2012-02-15 17:42

Re: U-Boot for Nokia RX-51 with BootMenu
 
If somebody find something interesting which can break SD card write here.

ade 2012-02-16 15:11

Re: U-Boot for Nokia RX-51 with BootMenu
 
@Pali
Could it be the boot image kernel-power v50 (pre) from the first page gz file is not compatible with the latest kernel-power v50 ( modules)?

Today, I installed kernel-power v50 succesfully and after that I decided to installed uboot (had to remove mkimage installation first) and removed multiboot.
I could start kernel-power v50 from Nand from the uboot menu, but when trying to start it from the image, it did not go pass the blinking dots. When I eventually had it overwritten with the latest multiboot image (from kernel-power-bootimg_2.6.28-10power49+pre50_armel.deb) and generated a new uboot image (u-boot-update-bootmenu), it started to work.

As you can see I got it working, thanks for this excellent work. But I was just curious if this could have been the cause, or if I did something else the wrong way.

pali 2012-02-16 15:15

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

Originally Posted by ade (Post 1165821)
@Pali
Could it be the boot image kernel-power v50 (pre) from the first page gz file is not compatible with the latest kernel-power v50 ( modules)?

Today, I installed kernel-power v50 succesfully and after that I decided to installed uboot (had to remove mkimage installation first) and removed multiboot.
I could start kernel-power v50 from Nand from the uboot menu, but when trying to start it from the image, it did not go pass the blinking dots. When I eventually had it overwritten with the latest multiboot image (from kernel-power-bootimg_2.6.28-10power49+pre50_armel.deb) and generated a new uboot image (u-boot-update-bootmenu), it started to work.

As you can see I got it working, thanks for this excellent work. But I was just curious if this could have been the cause, or if I did something else the wrong way.

Yes, boot image in tar.gz file for kernel-power pre v50 is old.

Up-to-date pre v50 image is in package pre v50 kernel-power-bootimg in kernel-power thread.

DarkPoe 2012-02-16 20:45

Re: U-Boot for Nokia RX-51 with BootMenu
 
Hello all,

I have been using kernel-power from like version 39 or so (im even using pre50) and now i decided to start testing Nemo

As all of you point out, i cant initialize from SD as it says starting kernel and then just shuts down...

I dont know if i havent understood but, with current u-boot from pali there is nothing to do?

vakkov 2012-02-23 08:52

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

Originally Posted by pali (Post 1150937)
Problem can be only with address where to load kernel. Different HW revisions has different NOLO and NOLO can load U-Boot to different addres. And if we load kernel to address space of uboot it can lead to errors (e.g u-boot rewrite kernel or u-boot rewrite itself code...).

But now in U-Boot lowlevel init is assembler code which move u-boot itself to address 0x80008000. Kernel is always loaded to 0x82008000, so it should not rewrite code (max size of kernel and u-boot is 2MB=0x2000000).

But if somebody has problem, please boot kernel with framebuffer included static linked support. It can write some early error logs, which can be usefull...


Can you tell me how to boot with framebuffer included static linked support - I am trying to make nitdroid work with ubootmenu but after u-boot says loading kernel the phone stays like that for about 10 seconds and turns off - I want to see a log or something

pali 2012-02-23 08:54

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

Originally Posted by vakkov (Post 1168639)
Can you tell me how to boot with framebuffer included static linked support...

You need to recompile kernel with framebuffer support.

Hurrian 2012-02-23 22:35

Re: U-Boot for Nokia RX-51 with BootMenu
 
I loaded the Nemo kernel with flasher -l and still no dice, leaving error -110's before kicking the watchdog timer.

It's definitely their fault, and they need to patch their kernel.

pali 2012-02-24 08:11

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

Originally Posted by Hurrian (Post 1168951)
I loaded the Nemo kernel with flasher -l and still no dice, leaving error -110's before kicking the watchdog timer.

It's definitely their fault, and they need to patch their kernel.

Please report that proble to their bugtracker!

Hurrian 2012-02-24 09:17

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

Originally Posted by pali (Post 1169112)
Please report that proble to their bugtracker!

Submitted as a new bug.
This is pretty damn serious, I wonder why they haven't got around to getting people to report what happens when they load it fresh from flasher.

EDIT: Got the official reply. Apparently, the kernel being pretty complete wrt goals is done, so all dev has moved towards Mer itself. And the official boot option is uboot-pr13.

Whelp, one side has to budge somehow. The fact that it doesn't work from flasher, which is as clean as a load source as you can get, pretty much means that you've ****ed something up.

vakkov 2012-02-24 12:43

Re: U-Boot for Nokia RX-51 with BootMenu
 
If I try to start a kernel from u-boot-images.tar.gz different from omap-1 it loads it says starting and shuts down. why? do I have to install something to support them?

EDIT: I forgot to install modules ... sorry

pali 2012-02-24 21:16

Re: U-Boot for Nokia RX-51 with BootMenu
 
Can somebody try these patches for Nemo?
http://bazaar.launchpad.net/~beagleb...t-errors.patch
http://marc.info/?l=linux-omap&m=129489302515240&w=2

Netweaver 2012-02-24 22:53

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

Originally Posted by pali (Post 1169380)

The first patch is rather crude, just doubles the DTO. I can try it, I guess the value can become higher than 14, maybe it has an influence then ...

The second patch is (in my eyes) not really relevant, as it just bumps the DTO value with one (and in the explanatory text it says it should always work with DTO value of 14). NOT :(

I don't think anymore the error is in the (too low) DTO value, I have a gut feeling we have to look in the TWL4030 power init to the MMC and SD card subssystem. But I'm happy to be proven wrong, just let me know what you would like me to try and I can create/test the kernels.

This is my OBS repository and these are the different patches I had applied already, resulting in slightly different behavior but no salvation :
https://build.pub.meego.com/package/...ptation%3AN900

the patches I have tried, in all combinations are :
linux-2.6-OMAP-mmc-set-DTO-timeout-to-14.patch
linux-2.6.37-OMAP-mmc_restore-power-mode.patch
linux-2.6.37-OMAP-mmc_hw_reset_after_warm-restart.patch

I'll try the DTO doubling patch as well.

vakkov 2012-02-26 21:34

Re: U-Boot for Nokia RX-51 with BootMenu
 
http://forum.nitdroid.com/index.php?....msg135#msg135

THANKS PALI!

ivyking 2012-02-26 22:15

Re: U-Boot for Nokia RX-51 with BootMenu
 
1 Attachment(s)
Quote:

Originally Posted by vakkov (Post 1170158)

just quoting what you wrote over the nitdroid forum

Quote:

Title: U-boot and Nitdroid for n900
Post by: vakkov on February 26, 2012, 09:24:56 pm

Ok this is a short guide because i have to go but i will explain for more andvanced users:
1. Download Nitdroid 2.3.4 N12_Umay and install it on ext3 partition (mmcblk1p2) (MUST BE EXT3 BECAUSE I HAVEN'T ADDED EXT4 SUPPORT YET)
2. Your first sd card partition should be FAT (for ext2/ext3 and etc will explain tomorrow)
3. Install U-boot by Pali - http://talk.maemo.org/showthread.php?t=81613
4. Download nitdroid rc7 kernel and extract the file - then go to /system/lib/modules/2.6.28.NIT.07/ and copy all the files to /system/lib/modules/current in NITDROID partition (mmcblk1p2)
4.1. Replace init.nokia.rc with mine
5. Now download boot.scr from attachments and copy it to the first partition (FAT)
6. Dowload uImage and copy it to the same place as boot.scr
7. Insert sd card in n900 and power on with opened keeyboard
8. Stop u-boot counting and enter U-boot console
9. Write - run sdboot... and watch booting
P.S. Soon booting will be faster - now it waits 10 seconds for rootfs to be mounted

Credits: E-yes (For help and Nitdroid), Pali (for help and U-boot), Marex_ (at #u-boot at freenode) for help and Vakkov for making it possible. and everybody else who i have forgot about.

MOre instructions and option tomorrow - I have to sleep now, school is coming

FILES: http://www.4shared.com/zip/asS9CW01/NIT.html


Fabry 2012-02-27 22:38

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

Originally Posted by Hurrian (Post 1168951)
I loaded the Nemo kernel with flasher -l and still no dice, leaving error -110's before kicking the watchdog timer.

It's definitely their fault, and they need to patch their kernel.

I confirm that there are same problems on eMMC also (with kernel loaded by flasher).

But only if Pali's U-Boot is present on phone.

If you remove u-boot from the phone then Nemo kernel will work perfectly when loaded by flasher !!

So it is not only a problem of Nemo's kernel.

pali 2012-02-27 22:44

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

Originally Posted by Fabry (Post 1170967)
I confirm that there are same problems on eMMC also (with kernel loaded by flasher).

But only if Pali's U-Boot is present on phone.

If you remove u-boot from the phone then Nemo kernel will work perfectly when loaded by flasher !!

So it is not only a problem of Nemo's kernel.

Ehm what? flasher, x-loader and NOLO has nothing with U-Boot. NOLO is started before U-Boot and flasher send image directly to NOLO... So kernel image booted with flasher has nothing with NOLO!

Fabry 2012-02-27 22:55

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

Originally Posted by pali (Post 1170974)
Ehm what? flasher, x-loader and NOLO has nothing with U-Boot. NOLO is started before U-Boot and flasher send image directly to NOLO... So kernel image booted with flasher has nothing with NOLO!

Please try yourself before complain!

The defect is perfectly reproducible

Fabry 2012-02-27 23:03

Re: U-Boot for Nokia RX-51 with BootMenu
 
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!!

tanpoaran 2012-02-28 16:58

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!!

please tell me how to make dualboot maemo and nemo in the emmc??

Fabry 2012-02-29 02:12

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

Originally Posted by tanpoaran (Post 1171398)
please tell me how to make dualboot maemo and nemo in the emmc??

http://talk.maemo.org/showpost.php?p...3&postcount=29
http://talk.maemo.org/showpost.php?p...2&postcount=30

int_ua 2012-03-01 23:42

Re: U-Boot for Nokia RX-51 with BootMenu
 
Is it possible to listen for errors through USB cable (instead of serial?)? Such option is mentioned on http://wiki.openmoko.org/wiki/U-boot...tty_from_Linux but is it possible with N900 and specifically with this new U-Boot?

Fabry 2012-03-03 13:28

Re: U-Boot for Nokia RX-51 with BootMenu
 
I am not 100% sure but it seems that latest Pali's u-boot have little power consumption issue yet.

Since I have removed u-boot (to test latest Nemo) I have noticed a much longer stand-by.

Now I am about 60 hours after last full battery recharge and I still have about 44% of battery (of course with very little usage of N900), before with pali's u-boot I have difficulties to reach 48 hours (with same usage).

BatteryGraph's graph shows that before idle power consumption was about 10% of battery on 5 hours, now instead it is about 10% of battery on 18 hours.

It seems that with pali's u-boot installed idle power consumption is 3-3.5x greater

I repeat it is not a scientific test, I should have to do many tests with and without pali's u-boot to confirm or not the situation.
But unfortunately now I have no time to dedicate to testing, if someone other can verify and report the results

int_ua 2012-03-05 14:03

Re: U-Boot for Nokia RX-51 with BootMenu
 
According to https://gitorious.org/u-boot-shr/u-b...ccd096a7/diffs
Quote:

USB tty works but is disabled because it prevents the current Maemo kernel from booting.
USB tty support was dropped.
Is it possible to re-enable it without recompiling U-Boot?

m4r0v3r 2012-03-07 12:59

Re: U-Boot for Nokia RX-51 with BootMenu
 
well at the moment am trying to get nitdroid to boot from an EMMC partition, the only problem am having is when setting enviroment I have to choose were to load the uImage from and am presented with mmc 1:1 which is the sd card, but is the maemo partition mmc 0:5? Since its the 5th partition, or even mmc 0:4?

edit, am not 100% sure how to merge the boot.scr i generate with the bootmenu.scr

also ive had a lot of stability issues with kernel 49, yes i have overclocked, but that has never been an issue before, the phone never randomly rebooted till i installed uboot

right it seems to reboot when i use the network at certain times, wireless network, mainly when i connect to FaceBook am not sure why yet but am looking into it.

tanpoaran 2012-03-21 07:20

Re: U-Boot for Nokia RX-51 with BootMenu
 
when i did your command on http://www.smartphonetab.net/forum/s...-MeeGo-su-eMMC

i partitoned emmc with ext4 and i can not mount it
mount-t ext4-o noatime / dev/mmcblk0p4 dst-part /

is that command correct ??

reinob 2012-03-21 11:34

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

Originally Posted by tanpoaran (Post 1182274)
when i did your command on http://www.smartphonetab.net/forum/s...-MeeGo-su-eMMC

i partitoned emmc with ext4 and i can not mount it
mount-t ext4-o noatime / dev/mmcblk0p4 dst-part /

is that command correct ??

You got the spaces all wrong. Try:

# mount -t ext4 -o noatime /dev/mmcblk0p4 /dst-part

make sure /dst-part exists, obviously.

Fabry 2012-03-22 15:11

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

Originally Posted by reinob (Post 1182297)
You got the spaces all wrong. Try:

# mount -t ext4 -o noatime /dev/mmcblk0p4 /dst-part

make sure /dst-part exists, obviously.

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


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

vBulletin® Version 3.8.8