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)

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?


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

vBulletin® Version 3.8.8