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)

misiak 2012-05-21 19:51

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

Originally Posted by qwazix (Post 1210395)
I made a uImage of NitDroid kernel, using mkImage, put it in the 2nd sd partition and tried to boot.

Code:

ITEM_NAME="NITDroid 2.6.28.NIT.07 on mmcblk1p2"
ITEM_KERNEL=2.6.28.NIT.07
ITEM_MODULES=ext3
ITEM_DEVICE=${EXT_CARD}p2
ITEM_FSTYPE=ext3
ITEM_FSOPTIONS=rw,noatime,errors=remount-ro

It does find the uImage, loads it but it gets stuck at Starting kernel...
what am I doing wrong?

of course NitDroid root is unpacked in that partition

The default .item file for NITDroid from archive http://atrey.karlin.mff.cuni.cz/~pal...12.04-1.tar.gz is:
Code:

ITEM_NAME="NITDroid"
ITEM_KERNEL="uImage"
ITEM_DEVICE="${EXT_CARD}p2"
ITEM_FSTYPE="ext4"
ITEM_CMDLINE="snd-soc-rx51.hp_lim=42 snd-soc-tlv320aic3x.hp_dac_lim=6 console=tty1 root=/dev/mmcblk1p2 rw rootdelay=10 init=/init panic=20 debug"
ITEM_REUSEATAGS="1"

So you may want to add lines with ITEM_CMDLINE and ITEM_REUSEATAGS - i guess ITEM_CMDLINE may be your issue as it finds kernel and gets stuck at starting kernel ;)

qwazix 2012-05-22 06:05

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
Thanks very much. The .item file was generated by installing the nitdroid kernel .deb so I assumed it was correct. I also tried with a simple ITEM_CMDLINEthat just sets the root but with the same result.

I will try the .item file you suggested and report back.

qwazix 2012-05-22 06:34

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
unfortunately no change, I have to recreate that partition in ext4 and unpack NitDroid again to rule out any problems in the filesystem

kivanov 2012-05-22 07:44

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

Originally Posted by qwazix (Post 1210591)
unfortunately no change, I have to recreate that partition in ext4 and unpack NitDroid again to rule out any problems in the filesystem

Hi i have the same problem. I'm trying to install nitdroid by this method : http://forum.nitdroid.com/index.php?....msg135#msg135 , but i stuck on Starting Kernel.. and then the phone powers off.

This is my post at nitdroid forum:

Hi all,
I try to install nitdroid, but when i try to boot from sdcard i get the screen and line "Starting kernel" and after ~ 15 seconds the phone powers off. Any ideas why?

Android is on mmcblk1p5 - i've updated boot.scr
Boot.scr and uImage is on mmcblk1p1

misiak 2012-05-22 07:54

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

Originally Posted by qwazix (Post 1210591)
unfortunately no change, I have to recreate that partition in ext4 and unpack NitDroid again to rule out any problems in the filesystem

what I would try is:
1. place kernel in /boot of Maemo rootfs, name it zImage-2.6.28.NIT.07 and kernel modules in /lib/modules/2.6.28.NIT.07 of Maemo rootfs and check if it boots
2. do the same but in Android rootfs and check if it boots

I know uboot is better, but I remember multiboot required kernel and modules to be in maemo rootfs while the rootfs was on sd/emmc, so I would give it a try (I didn't boot nitdroid with uboot, didn't have time to play with it yet).

qwazix 2012-05-24 06:48

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
I tried that, but I forgot the modules. Now my N900 is over at nokia care for a clock battery change (I was told to wait 2-3 weeks).

Now I just hope I don't get an E7

pali 2012-05-28 16:53

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
Hi all, please help me with atags for u-boot: http://talk.maemo.org/showthread.php?t=84560

caveman 2012-06-01 13:40

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

in the last few days I have installed Pali's u-boot with bootmenu. No problems booting pr-1.3 kernel or kp50.

I have not been able to boot the latest nemo image, though. I have tried both with 'run sdboot' at u-boot's console, and using the following .item file:
Code:

ITEM_NAME="Nemo"
ITEM_KERNEL="uImage"
ITEM_DEVICE="${EXT_CARD}p3"
ITEM_FSTYPE="vfat"
ITEM_CMDLINE="root=/dev/mmcblk0p1 rootwait ro console=ttyO2,115200n8 console=tty0 omapfb.vram=0:2M,1:2M,2:2M mtdoops.mtddev=2 quiet"
ITEM_REUSEATAGS=1

as suggested previously in this thread.

Both attempts load the kernel, but it panics with
Code:

mmc0: error -110 whilst initializing sd card
and says that root partition cannot be found.

For the record, I am using a SanDisk uSDHC 4Gb, class 4 (I know it will be slow as hell :-( )

Any suggestions to workaround this issue (besides buying another sd card)?

misiak 2012-06-01 14:20

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

Originally Posted by caveman (Post 1215957)
U-Booters,

in the last few days I have installed Pali's u-boot with bootmenu. No problems booting pr-1.3 kernel or kp50.

I have not been able to boot the latest nemo image, though. I have tried both with 'run sdboot' at u-boot's console, and using the following .item file:
Code:

ITEM_NAME="Nemo"
ITEM_KERNEL="uImage"
ITEM_DEVICE="${EXT_CARD}p3"
ITEM_FSTYPE="vfat"
ITEM_CMDLINE="root=/dev/mmcblk0p1 rootwait ro console=ttyO2,115200n8 console=tty0 omapfb.vram=0:2M,1:2M,2:2M mtdoops.mtddev=2 quiet"
ITEM_REUSEATAGS=1

as suggested previously in this thread.

Both attempts load the kernel, but it panics with
Code:

mmc0: error -110 whilst initializing sd card
and says that root partition cannot be found.

For the record, I am using a SanDisk uSDHC 4Gb, class 4 (I know it will be slow as hell :-( )

Any suggestions to workaround this issue (besides buying another sd card)?

.item files from http://atrey.karlin.mff.cuni.cz/~pal...12.04-1.tar.gz (linked in first post of this thread) suggests (changes in bold):
Code:

ITEM_NAME="Nemo"
ITEM_KERNEL="uImage"
ITEM_DEVICE="${EXT_CARD}p1"
ITEM_FSTYPE="ext4"
ITEM_CMDLINE="root=/dev/mmcblk0p1 rootwait ro console=ttyO2,115200n8 console=tty0 omapfb.vram=0:2M,1:2M,2:2M mtdoops.mtddev=2 quiet"

and no "ITEM_REUSEATAGS=1" line... I haven't tried to boot Nemo yet, so this is just a tip which values you should double check. Are you sure your ITEM_DEVICE is p3, not p1 on memory card? and that it is vfat formatted, not ext4?

caveman 2012-06-01 15:00

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
Thanks for the tip!

Quote:

and no "ITEM_REUSEATAGS=1" line... I haven't tried to boot Nemo yet, so this is just a tip which values you should double check. Are you sure your ITEM_DEVICE is p3, not p1 on memory card? and that it is vfat formatted, not ext4?
I tried to create another item file with the proposed changes, but the boot failed with 'no uImage found' or something like that.

For the record, the sd card is partitioned as follows:
Code:

  Device Boot Start    End  #cyls    #blocks  Id  System
/dev/mmcblk1p1          0+  57599  57600-  3686399+  83  Linux
/dev/mmcblk1p2      57600  57727    128      8192  82  Linux swap / Solaris
/dev/mmcblk1p3      57728  58239    512      32768    c  W95 FAT32 (LBA)
/dev/mmcblk1p4          0      -      0          0    0  Empty

which is the standard nemo image.

AWasisto 2012-06-01 15:23

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
U-Boot is very useful for booting other OS on Nokia N900. But if U-Boot available for Nokia N9, I will buy it immediately. :D
Will it happen? :D

ade 2012-06-08 15:53

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

It is addressed here a few times, but it still manifests itself.

Running u-boot-update-bootmenu can lead to the error:
Code:

cat: can't open '/var/tmp/bootmenu.cmd.default': No such file or directory
if /etc/default/bootmenu.item is not present.

I ignored the error a few days ago as an innocent warning, but later realized it exits before the actual mkimage. Not sure if it had to do with this, but had to reflash my phone fully afterwards to get it working again.

/etc/default/bootmenu.item has to be created manually if I understand correctly? Then why not ignore it if it is not present, or give a message a link has to be created?

I now have u-boot running, but my next issue is: I can only start the default omap kernel. I get the exact screen as in in the first post of the thread, but only the option "attached kernel" works, which starts the default kernel after the bootmenu screen. Bootmenu.scr and the images in bootmenu.img.d are created succesfully in MyDocs but I see no alternative kernels to choose from during startup.

pali 2012-06-08 16:08

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
@ade: I found where is problem. I will fix script in new version. Temporary solution will be to create some default menu entry. See this post how to set kernel power as default boot entry: http://talk.maemo.org/showpost.php?p...&postcount=222

pali 2012-06-08 16:10

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
Proper fix is to edit u-boot-update-bootmenu script and replace:

cat "$BOOTMENU_CMD.default" "$BOOTMENU_CMD" > "$BOOTMENU_CMD.new"
mv "$BOOTMENU_CMD.new" "$BOOTMENU_CMD"

with:

if test -f "$BOOTMENU_CMD.default"; then
cat "$BOOTMENU_CMD.default" "$BOOTMENU_CMD" > "$BOOTMENU_CMD.new"
mv "$BOOTMENU_CMD.new" "$BOOTMENU_CMD"
fi

ade 2012-06-08 16:19

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
Thanks for your swift response.
Any idea about the mentioned issue of not being able to choose other kernels? I like to start the framebuffer kernel for looking at the bootmenu watchdog issue.

pali 2012-06-08 16:22

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
just drop your kernel zImage to /boot, create bootmenu entry for your zImage and run update script (and before starting script fix it)

ade 2012-06-08 16:32

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

Originally Posted by pali (Post 1219546)
just drop your kernel zImage to /boot, create bootmenu entry for your zImage and run update script (and before starting script fix it)

I did, as the instructions tell in the first post:
zImages in /boot, related items in bootmenu.img.d, running u-boot-update-bootmenu etc. It results in the expected files in MyDocs.

It already works fine on my primary N900 for quit a while... don't know why I do not see the other kernels on this phone.

pali 2012-06-08 16:35

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
ade, write here output of file MyDocs/bootmenu.scr and output of u-boot command 'mmc part'.

ade 2012-06-08 16:50

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
bootmenu.scr:
Code:

bootmenu
setenv bootmenu_0 'Maemo 5 with kernel-power 2.6.28.10-power50=setenv mmcnum 1;setenv mmcpart 1;setenv mmctype fat;setenv bootargs;setenv atagaddr 0x80000100;setenv mmckernfile bootmenu.img.d/zImage-2.6.28.10-power50;setenv mmcinitrdfile;setenv mmcscriptfile;run trymmckernboot;';setenv bootmenu_1 'Maemo 5 with attached kernel 2.6.28-omap1 (Internal Nand)=run attachboot';setenv bootmenu_2 'Maemo 5 with kernel fb-omap1-pr13=setenv mmcnum 1;setenv mmcpart 1;setenv mmctype fat;setenv bootargs;setenv atagaddr 0x80000100;setenv mmckernfile bootmenu.img.d/zImage-fb-omap1-pr13;setenv mmcinitrdfile;setenv mmcscriptfile;run trymmckernboot;';setenv bootmenu_3;

mmc output:
Code:

Partition map for MMC device 1  -- Partion type: DOS

Partition      Start sector      Num Sectors      Type
1                    64                  41940928        c
2                    41940992      18884608        83
3                    60825664      1572864        82

I do have an extra 4GB sd card installed (already tried to boot without it, but it makes no difference).

pali 2012-06-08 17:08

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
eMMC partiton and bootmenu script is OK. Do you have in U-Boot menu entry "Maemo 5 with kernel fb-omap1-pr13"?

ade 2012-06-08 17:17

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
Glad to hear that :)

As I said, I see the screen as in your first post of this thread. I can only succesfully start the "attached kernel" option. It brings me to the bootmenu, where I can choose maemo 5 nand, recovery console, backupmenu and power off.

pali 2012-06-08 17:36

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
ade, run these u-boot commands and write output:

setenv mmcnum 1
setenv mmcpart 1
setenv mmctype fat
setenv mmcscriptfile bootmenu.scr
run trymmcscriptboot

ade 2012-06-08 17:39

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
sure. I have to go now and will we back in a few hours. Then I will update this post with your request.

pali 2012-06-08 17:42

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
ade also check if your MyDocs partition is correct FAT32.

ade 2012-06-08 19:53

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
I already did a fsck on MyDocs to find any errors. It did not find any problems.

The output I get after the console commands:

Code:

mmc1 is current device
reading bootmenu.scr

** Unable to read "bootmenu.scr" from mmc 1:1 **


pali 2012-06-08 20:01

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
Ok, so problem is that U-Boot cannot read file bootmenu.scr from MyDocs partition.

Try to run this u-boot command to show all files in MyDocs:
ext2ls mmc 1:1 /

ade 2012-06-08 20:13

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

Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - mmc 1:1 **

I would expect MyDocs to be read as fat32 btw...?

pali 2012-06-08 20:15

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
yes, sorry, it is 'fatls' command

ade 2012-06-08 20:26

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
Hmm, that's unexpected output:

Code:

./
../
291900  maemo_software_copyright.pdf
              user guides/
    391  jdjdsjdskjhdru.note.html

2 file(s), 3 dir(s)

maemo_software_copyright.pdf and User Guides/ can be found in Mydocs/.documents, can't find the html file.

pali 2012-06-08 20:30

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
ok, seems that your MyDocs is corrupted or is formated to some other FAT variant. linux kernel support all FAT variants, but U-Boot fat driver is very simple... did you formated your MyDocs?

ade 2012-06-08 20:33

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
Yeah, I am getting the same feeling, even though an extensive diskcheck says its okay. I am going to reformat MyDocs and try again!

Edit: Yes, reformatting MyDocs solved the issue, now I can choose booting other kernels.

Thanks for putting me on the right track Pali!

misiak 2012-06-09 19:31

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

Originally Posted by ade (Post 1219566)
As I said, I see the screen as in your first post of this thread. I can only succesfully start the "attached kernel" option. It brings me to the bootmenu, where I can choose maemo 5 nand, recovery console, backupmenu and power off.

I can report that I have the same error, but only when either usb cable or battery charger is connected (my battery charger is not original one, I must add). Then I cannot boot anyting but attached kernel, other options give me Maemo dots animation, then black screen, Nokia logo for a split second and phone goes off.

When no charger and no usb cable is attached, all options work (i tried omap1, kernel50 and booting nemo from microsd card, all worked well - but i cannot say whether nemo worked or not with charger plugged in, as I haven't tried that - but can try if anyone else is having this issue and you will need more info for debugging)

pcklee123 2012-06-17 01:46

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
I have MyDocs on /dev/mmcblk0p2 and /home on /dev/mmcblk0p1. Is there anyway I can use uboot with the bootmenu? Cause it looks for it on mmc1:1 which is ext3.

pali 2012-06-17 09:04

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
@pcklee123:
U-Boot bootmenu is configured for *default* N900. Why did you changed order in MBR? Order of partitions in MBR do not have to be same as physical order. So switch order of that two partitions in MBR table *back* and u-boot bootmenu will be working.

quailstorm 2012-06-19 20:14

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
Hello, I expanded the partition(maemo system) to 9gb(with gparted), and shrinked the Mydocs. I've done this with backupmenu. After that, U-boot went to original state, http://talk.maemo.org/showthread.php?t=81613 as seen there on the screenshot. Now I can't do anything with it. I couldn't add the powerkernel entry, and now i uninstalled it, but it's still there. What can I do? http://www.mediafire.com/?5o1hkuuwhn8hh1c have I to flash this? or there is a chance to recover U-boot?

pali 2012-06-19 20:24

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
@quailstorm: You need to have first eMMC partition (defined in MBR table) formated to FAT32. Size of partition is irrelevant. After that just run script u-boot-update-bootmenu which generate menu entries.

quailstorm 2012-06-19 20:31

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

Originally Posted by pali (Post 1224351)
@quailstorm: You need to have first eMMC partition (defined in MBR table) formated to FAT32. Size of partition is irrelevant. After that just run script u-boot-update-bootmenu which generate menu entries.

OK I'm checking it. I was sure it's fat32.

quailstorm 2012-06-19 20:45

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
I semi solved it with multiboot. Now I boot into multiboot from U-boot, and choose between kernels. I will continue investigating the issue with PanzerSajt. But he is sleeping now...

pali 2012-06-20 05:48

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
@quailstorm: See this thread. There were people which were also sure that their parititon was FAT32. But U-Boot did not read bootmenu file. Reason was maybe corrupted or bad format of FAT. Solution is to backup data, format partition (again) and copy data back. When formating use mkfs.vfat (this will create proper partition format).

guilledoc 2012-06-20 12:10

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04)
 
Sorry if thuis has been asked before but I wasnīt able to find anything aboutī.
Installed u-boot as said in first post then selected kernel-power option in u-boot menu but doesnīt flash it, it shut down. Also change it to be the default option and didnīt work.
The nokia kernel work fine. Iīve tried allready to reinstall kernell power but then u-boot doesnīt load only power kernel and backup menu
Any help?thanks


All times are GMT. The time now is 15:54.

vBulletin® Version 3.8.8