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)

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


All times are GMT. The time now is 22:01.

vBulletin® Version 3.8.8