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)

pali 2012-10-13 16:55

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
 
There is new image of 2012.10-rc3 version with disabled onenand support (which caused non bootable kernels on non 2101 hw revs).

Now only fiasco image, but I preparing deb packages + source code. Last 3 days I spent time on u-boot, so be patient.

15jamie20 2012-10-13 23:34

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

Originally Posted by pali (Post 1280112)
There is new image of 2012.10-rc3 version with disabled onenand support (which caused non bootable kernels on non 2101 hw revs).

http://atrey.karlin.mff.cuni.cz/~pal...8-omap1.fiasco

Now only fiasco image, but I preparing deb packages + source code. Last 3 days I spent time on u-boot, so be patient.

Just confirming that this works perfectly for me when 4-2 didn't. Thanks!

Nobless 2012-10-14 08:07

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
 
Nice work! I already was missing your updates for U-boot, and here it is! :) Also suggestion to add into script to check if backupmenu is installed and if it is installed, then skip backupmenu.item file, its really anoying everytime when updating .item files to move backupmenu.item :) That feuture would be very nice!

pali 2012-10-14 10:21

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
 
You do not have to move backupmenu.item file. u-boot-update-bootmenu is ignoring all images without kernel or initfs or script

pali 2012-10-14 10:23

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
 
Please test new package fiasco-image-update-ask which asking before flashing other version of kernel into nand.

http://talk.maemo.org/showthread.php...67#post1279967

I want that new version of uboot will depends on this package and everything will be in extras-devel.

So test that package!

Nobless 2012-10-14 15:16

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

Originally Posted by pali (Post 1280353)
You do not have to move backupmenu.item file. u-boot-update-bootmenu is ignoring all images without kernel or initfs or script

Oh i always moved backupmenu.item out of folder then executing u-boot-update-bootmenu, and finally i moved back because i get errors about there is no kernel image or something so now i'm know that everything was alright :) Thanks for info!

Also can you comment about this

EDIT: Tried your posted U-boot rc3-1 fiasco image worked perfectly, just like a charm :)

plourde 2012-10-15 20:38

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
 
could someone please help me out here, i have been trying to get uboot here to boot up maemo for a while now with not sucess, i get it to boot ubuntu 12.10 by just typing boot, or run sdboot i believe but maemo on emmc will not boot and i have partitioned the internal to have NITDroid as well and i cant get either to boot, some help would be great thanks so much

Nobless 2012-10-15 21:30

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
 
Provide more info which exactly kernel you trying to boot also
Quote:

Originally Posted by misiak (Post 1280586)
could you provide:
1. contents of /etc/bootmenu.d/ power kernel config file
2. output of "ls /boot"
3. output of "ls /lib/modules"
It would help a lot to identify some possible problems ;)


pali 2012-10-17 20:29

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
 
New version of u-boot is in first post (with updated deb packages).

ade 2012-10-17 21:18

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
 
Lights on green over here :)

Images in /opt/boot are found (I no longer need symlinks to get some bigger images away from rootfs) and everything works fine after installation and a reboot.

Nobless 2012-10-18 17:12

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
is this will be uploaded to repository :) ?

pali 2012-10-18 17:37

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
yes, after testing. I need to know that it does not break anything else and working fine.

ashyu 2012-10-25 22:16

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
I've been trying to boot Nitdroid via u-boot, but am experiencing the same "Starting kernel..." issue, followed by a reboot, that some people here have had earlier on and can't figure out what might be going on - there aren't any messages giving a clue as to what the error might be...

I was wondering if anyone might have any thoughts?

What I've done so far:
  • Installed u-boot and it's working great, booting power-kernel 51 for me.
  • Downloaded Nitdroid and the 2.3.7 update and unpacked it to /home (which is /dev/mmcblk0p2, ext3)
  • Downloaded the Nitdroid kernel nitdroid-kernel-2.6.28-07_7-rc7_armel, unpacked and converted to uImage using:
    Code:

    mkimage -A arm -O linux -T kernel -C none -a 80008000 -e 80008000 -n vmlinuz-2.6.28.NIT.07 -d vmlinuz-2.6.28.NIT.07 uImage
  • Copied the resulting uImage file to /home
  • Copied the modules directory from the kernel package to the nitdroid directories; made sure that the new modules directory was symlinked to "current"
  • Created this boot item file:
    Code:

    ITEM_NAME="NITDroid UMay12 2.3.7"
    ITEM_KERNEL="uImage"
    ITEM_DEVICE="${INT_CARD}p2"
    ITEM_FSTYPE="ext3"
    ITEM_CMDLINE="snd-soc-rx51.hp_lim=42 snd-soc-tlv320aic3x.hp_dac_lim=6 console=tty1 root=/dev/mmcblk0p2 rw rootwait init=/init panic=20 debug"
    ITEM_OMAPATAG="1"

  • Ran u-boot-update-bootmenu
  • Reboot and select the new Nitdroid entry from the list
  • Shows "Starting kernel..."
  • Phone reboots or shutdowns

I've also tried copying a modified init.nokia.rc and init_subsys that were posted in the Nitdroid forum, but these don't seem to have any effect for me.

I've checked over my steps multiple times, but it seems that I'm still missing something?

Did I do the uImage creation incorrectly?

Any thoughts appreciated, thanks!

Awesome work by the way, pali!

reinob 2012-11-06 13:44

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

Originally Posted by reinob (Post 1248674)
Oops, forgot to write about it. At the moment I'm not 100% sure but I think what I tried was:

setenv mmckernfile bootimg.../zImage..
run trymmckernboot

But I just saw U-boot saying "Starting..." and it stopped there.
I suppose that the kernel actually booted (until trying to mount root) but without any console=tty0 command line the poor guy didn't print any messages on the screen. But obviously I cannot tell for sure.

I don't even know if I set the atagaddr or not. The phone is now in a drawer at home and I'm at work. I'll bring it to work tomorrow and try it here..

OMG OMG OMFG!

For those who remember my "bricked" N900. I just tried again the same procedure as before, but this time doing setenv setup_omap_atag 1, and this time the kernel loaded, and it loaded my /bin/sh (which I set as init).

Now that the hardest part has been solved, I still need to "unbrick" it. For that I somehow need to do "chmod +x /sbin/getbootstate" before the watchdog kicks in (which is plenty of time anyway).

NOW. How the f*ck can I type numbers and special characters such as +/ etc.

I know there's a keyboard map somewhere (recovery console uses it, U-boot has it built-in), but given the time constraint (watchdog) it would be nice if I could do that just after landing on /bin/sh.

Hmm.. I'll try using init="/bin/chmod +x /sbin/getbootstate" and hope for the best..

Add.: apparently linux doesn't like double quotes in the bootargs? anyway, there *must* be a way to type a number, a plus and a slash on this (only today: crappy) hardware keyboard!

pali 2012-11-06 14:19

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
you need to load correct keyboard lyaout. without that it is impossible to type Fn blue keys.

reinob 2012-11-06 14:27

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
any hints on how I might achieve that?

I just tried again, and attempted to run /usr/sbin/watchdogs (cd usr, cd sbin, watchdogs) -- thank god busybox seems to either have a default PATH or implicitly uses ".").

However watchdogs program died with a segmentation fault (as if the whole situation wasn't complicated enough..)

For obvious reasons, I'm not able to run something like:
/usr/sbin/loadkmap < /etc/nokia-n900.kmap

Wait, I could do:
Code:

cd usr
cd sbin
cp loadkmap ..
cd ..
cp loadkmap ..
cd ..
cd etc
cp nokia[[NO-GO]]

Nope, no go. I cannot even type the damn "-"

This cannot be true! There has to be a way of f*cking changing the executable flag of a program!

@pali, when you say "impossible" do you really mean it?

reinob 2012-11-06 14:34

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

Originally Posted by pali (Post 1291035)
you need to load correct keyboard lyaout. without that it is impossible to type Fn blue keys.

Do you happen to know if there's a built-in way of getting the ESCape key?

I was thinking that *vi* could save the day here.
Code:

cd sbin
vi preinit
[ use arrow keys, they should work ]
turn STATE=`getbootstate`
into  STATE=USER
[somehow press ESC]
:wq (the ":" is also there, so it should work)

I'll read up on vi and see if there's a way to edit something useful (a single character would be fine, when rd_mode is checked before rebooting on malfunction).

Needless to say: any suggestions from anyone are welcome!

freemangordon 2012-11-06 14:46

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
if you have access to fs, just create an executable file in /bin (for example) with necessary commands

or on uSD, it should not matter


EDIT:

try ctrl-f for ESC

pali 2012-11-06 14:53

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
you can use TAB for autocompletion :-) If I remmber correctly TAB is CTRL+I

reinob 2012-11-06 17:51

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Thanks pali and freemangordon,

Now I have a few ways of (attempting) this. I *think* I made a copy of original getbootstate (i.e. with the correct file permissions), so in the end I might just pull this off with

cd sbin
cp getbootstate.nokia getbootstate

Tomorrow I'll let you guys know.

reinob 2012-11-07 07:21

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
UNBRICKED !!!!!

In /sbin I had a copy of the original getbootstate (getbootstate.nokia) *with* the correct file permissions (executable bit).

So after booting to /bin/sh I first did
Code:

cd sbin
cp getbootstate.nokia getbootstate
sync
sync
.. (until watchdog kicked in)

That didn't work, until I realized that cp doesn't replace the file permissions of the destination. Oh well.

So I did the same using mv. The N900 booted perfectly. Seems that even the microUSB port is now a bit more relaxed, because it *seems* to be charging (using Pali's in-kernel module).

I'll ssh into it right now and copy stuff from it (it is so heavily modded that I need to somehow make a copy to document what I've done..)

(if anybody needs some context as to why I'm writing this: start here: http://talk.maemo.org/showpost.php?p...&postcount=437).

Cheers and thanks again especially to Fabry (who gave me the suggestion to type commands directly in the u-boot console), Hurrian, Misiak, Pali and freemangordon.

I'll proceed now to design a backup system with U-boot and various kernels (with *short* names!) and script files in the VFAT partition.

reinob 2012-11-13 12:34

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

Originally Posted by pali (Post 1150740)
Update: New version 2012.10-rc3-1
Changes:
* reuse bootreason, bootmode, hwrev, nolo ver in omap atag table
* added env setup_boot_reason_atag and setup_boot_mode_atag (for forcing in omap atag table)

Can you explain a bit more what setup_boot_reason_atag and setup_boot_mode_atag do?

I just wrote on the getbootstate/preinit thread asking you do allow bypassing bootreason and bootmode by using a kernel command line parameter, but just saw this in u-boot, which may (or not) be exactly what I wanted.

Can I do, e.g.
Code:

setenv setup_boot_reason_atag pwr_key
and this will be available in /proc/bootreason so it will be picked up by getbootstate?

If so, my request in the other thread is perhaps not necessary anymore, except for the bypassing of getbootstate by I could take care of that one (maybe I'll make an interactive version of getbootstate, so the user can choose while booting :)

pali 2012-11-13 13:13

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Run
Code:

setenv setup_boot_reason_atag pwr_key
from uboot console and then boot maemo (from bootmenu or by command). It will write to omap boot table bootreason pwr_key which appear in linux kernel in /proc/bootreason. Same is for env setup_boot_mode_atag. Values are normal and update (there is also test and local, but useless). Normal is normal boot mode and update is boot mode for flashing eMMC.

ApexBeat 2012-11-19 13:09

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Hello there. I am unable to install Pali's uboot. I tried dpkg -i command but it wont work. It gives the following error.

dpkg: error precessing 1armel.deb (--install): cannot access archive: No such file or directory

Errors were encountered while processing: 1.armel.deb

I changed the name of the package to 1armel.deb to make it easier to write in command line. All the 3 files in are in ,documents as well as the N900 Internal Memory. What I am doing wrong? Thanks.

reinob 2012-11-19 14:49

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

Originally Posted by ApexBeat (Post 1295890)
Hello there. I am unable to install Pali's uboot. I tried dpkg -i command but it wont work. It gives the following error.

dpkg: error precessing 1armel.deb (--install): cannot access archive: No such file or directory

Errors were encountered while processing: 1.armel.deb

I changed the name of the package to 1armel.deb to make it easier to write in command line. All the 3 files in are in ,documents as well as the N900 Internal Memory. What I am doing wrong? Thanks.

I guess you're just not typing the name of the file(s) correctly. Try to use TAB auto-completion so that you get the file names right!

peterleinchen 2012-11-20 11:39

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
I think it is more a directory thing.
First you need root rights ( so sudo gainroot or root) is required in advance) But it looks like you did.
So depending on above command, you are located in /home/user or /root. Your deb file is inside /home/user/MyDocs (or maybe /home/user/MyDocs/.documents).
What you need is change to that directory (cd /home/user/MyDocs) or give full path (dpkg -i /home/user/MyDocs/1armel.deb).
AND autocompletion is always recommended.

ApexBeat 2012-11-24 20:17

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Thanks peterleinchen. Using the full path for installation did the trick. Rebooted, everything is working fine.

pali 2012-12-13 16:25

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Finally maemo autobuilder working again, so I pushed uboot to extras-devel. See first post and vote for packages!

misiak 2012-12-13 17:13

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

Originally Posted by pali (Post 1304208)
Finally maemo autobuilder working again, so I pushed uboot to extras-devel. See first post and vote for packages!

http://maemo.org/packages/package_in...2012.10-rc3-1/ and http://maemo.org/packages/package_in...2012.10-rc3-1/ - your votes are counted twice, pali, how did you do that? :D

pali 2012-12-13 17:21

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
misiak, there is race condition in maemo package interface...
As DocScrutinizer already said, web developers do not know what is reentrant programming...

pierrem 2012-12-14 08:06

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
@Pali: I already have 2012.10-rc3-1 installed, but HAM wants me to upgrade to the same version. It seems that the new package does not have the same size than the one installed from the OP.
Does the difference comes from maemo autobuilder, or is there some changes since the package you posted in the OP ?

pali 2012-12-14 10:46

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
yes, version from autobuilder is compiled by autobuilder and my deb packae was compiled by madde on my pc month ago.

Netweaver 2012-12-14 12:16

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
small security question:

From version 2012.04-2 to the 2012.10-rc3-1 version, is the config file still valid ? Or do I have to modify entries in there to keep all working ?

Thanks.

pali 2012-12-14 14:19

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
2012.10 version has compatibily for all old menu item files. Script u-boot-update-bootmenu will show information about old entires (but still understand them). The only thing for updating is key ITEM_OMAPATAG

int_ua 2012-12-14 15:18

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

Originally Posted by pali (Post 1304208)
Finally maemo autobuilder working again, so I pushed uboot to extras-devel. See first post and vote for packages!

I've installed it with FAM and it didn't replace old U-Boot. It did delete uboot-pr13 package but on reboot I see the old U-Boot. Installing KP and rebooting again... No, still the old one. And u-boot-flasher is marked as installed.

Netweaver 2012-12-14 17:06

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
my upgrade went fine, also via FAM. I started from the the Pali U-Boot 2012.04-2. And with open keyboard I see the new one is active.

All fine here, thanks for the new release.

int_ua 2012-12-14 18:34

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

Originally Posted by Netweaver (Post 1304558)
my upgrade went fine, also via FAM. I started from the the Pali U-Boot 2012.04-2. And with open keyboard I see the new one is active.

All fine here, thanks for the new release.

Did you have uboot-pr13 before?

don_falcone 2012-12-17 08:33

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
In case i did miss it: why exactly are kernels stored in '/boot' as well as /'home/user/MyDocs/bootmenu.img.d'?

pali 2012-12-17 09:13

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
@int_ua: You should uninstall any old uboot version before installing this new (see first post)! Otherwise it will not work.

@don_falcone: in /boot/ are stored bootable zImages and in MyDocs are stored uImages (zImages converted to special uboot format). Also, uboot cannot read rootfs ubifs nand where is also stored /boot/ subfolder and DEB packages shouldnt (or cant) install files to MyDocs.

int_ua 2012-12-18 07:09

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

Originally Posted by pali (Post 1305304)
@int_ua: You should uninstall any old uboot version before installing this new (see first post)! Otherwise it will not work.

It was uninstalled automatically, just the new one wasn't flashed despite package being marked as installed. I've used apt-get --reinstall and it worked :)


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

vBulletin® Version 3.8.8