maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   U-boot is now in extras-devel (https://talk.maemo.org/showthread.php?t=64921)

e-yes 2010-11-07 21:43

Re: U-boot is now in extras-devel
 
Quote:

Originally Posted by Mentalist Traceur (Post 865592)
e-yes: Sorry I didn't reply to your previous inquiry, but it's way out of my league. What you just posted (your uboot hack) sounds pretty neat, but doesn't this mean it essentially limits it to two options? Either it auto boots the bundled kernel, or you press any key, and it boots the second one? Sounds like this way there's no opportunity to type in a command to boot a third kernel, if you have one. If I'm wrong by all means correct me, because it's possible I didn't understand what you meant.

No, if keyboard slide is open, u-boot shows "3 2 1 0" countdown and if you press a key, you'll enter 'shell mode' (in u-boot). if you skip shell (with slide open), n900 will boot Meego (or whatever using boot.scr).

Why this patch is important (in my opinion): MeeGo drains battery very fast, so if maemo or nitdroid suddenly reboots and SD card is inserted, MeeGo will be booted.
Patch solves problem. And decreases 'default' OS startup time.

lunat 2010-11-07 22:34

Re: U-boot is now in extras-devel
 
nice idea.

one thought:
i don't know i am very relaxed with such things for i patch up my things that they suit my needs. in general uboot as is is fine and nice for dev and extras_devel is exactly the place where it belongs. i don't know if you want it to stay there or want to have it working for productive. if it is the latter, its rather to fix the problems.than to workaround
that is:
- rebase it to a more recent git
- apply the pending important patches from git(don't like that but in case of severe bugs...)
- see how to make watchdogsupport work,
- solve the mmc thing matan mentions
- create a menu(or adapt one) with some shortcuts.
- maybe have a look at the serial console with the maemo kernel issue ali mentions.

that way you get it somewhere towards a version that can be used for productive.


Quote:

Originally Posted by e-yes (Post 866340)
No, if keyboard slide is open, u-boot shows "3 2 1 0" countdown and if you press a key, you'll enter 'shell mode' (in u-boot). if you skip shell (with slide open), n900 will boot Meego (or whatever using boot.scr).

Why this patch is important (in my opinion): MeeGo drains battery very fast, so if maemo or nitdroid suddenly reboots and SD card is inserted, MeeGo will be booted.
Patch solves problem. And decreases 'default' OS startup time.


lunat 2010-11-08 03:11

Re: U-boot is now in extras-devel
 
Quote:

Originally Posted by Matan (Post 865884)
mmc2 is even more problematic. It appears to work once after maemo, but If I boot from u-boot (by the command reset, or letting the watchdog boot), it won't recognize it again.

i saw this behaviour a lot of times. but it only happened if i did something "bad" that is the thing crashed somehow.

i can't see any problem rebooting other distros. i rsync a new kernel and it reboots just fine in the new kernel. and i do that a lot at the mom.
if i messed something up on the other hand and i have to take out the battery or such ... it is a whole other story. then weired things happen. it can't find the mmc and also maemo can't boot in this case sometimes...

another typical scenary is if i forgot about the battery and it shuts off.. after that(battery charged again...) it doesn't detect the mmc .. but this are all "unusual" cases ...

Ele-Mental 2010-11-08 12:45

Re: U-boot is now in extras-devel
 
U-Boot is still giving me start up problems.

Devrim 2010-11-14 11:17

Re: U-boot is now in extras-devel
 
So tell me guys how do I remove this pos U-boot

When I do apt-get install –reinstall kernel-flasher

I get

E: Command line option 'r' [from -reinstall] is not known.


I want it gone :<

DrWilken 2010-11-14 11:23

Re: U-boot is now in extras-devel
 
Quote:

Originally Posted by Devrim (Post 873012)
So tell me guys how do I remove this pos U-boot

When I do apt-get install –reinstall kernel-flasher

I get

E: Command line option 'r' [from -reinstall] is not known.


I want it gone :<

It's:
Code:

apt-get install --reinstall kernel-flasher
That's 2 x - before reinstall... ;)

lunat 2010-11-14 11:24

Re: U-boot is now in extras-devel
 
Quote:

Originally Posted by Devrim (Post 873012)
So tell me guys how do I remove this pos U-boot

When I do apt-get install –reinstall kernel-flasher

I get

E: Command line option 'r' [from -reinstall] is not known.


I want it gone :<

with double dash --reinstall

Devrim 2010-11-14 11:26

Re: U-boot is now in extras-devel
 
Code:

Nokia-N900:~# apt-get install --reinstall kernel-flasher
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 3 not upgraded.
Need to get 0B/157kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 55183 files and directories currently installed.)
Preparing to replace kernel-flasher 2.6.28-20103103+0m5 (using .../kernel-flasher_2.6.28-20103103+0m5_armel.deb) ...
Unpacking replacement kernel-flasher ...
Setting up kernel-flasher (2.6.28-20103103+0m5) ...

I'm still getting U-boot

lunat 2010-11-14 11:55

Re: U-boot is now in extras-devel
 
Quote:

Originally Posted by Devrim (Post 873023)
Code:

Nokia-N900:~# apt-get install --reinstall kernel-flasher
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 3 not upgraded.
Need to get 0B/157kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 55183 files and directories currently installed.)
Preparing to replace kernel-flasher 2.6.28-20103103+0m5 (using .../kernel-flasher_2.6.28-20103103+0m5_armel.deb) ...
Unpacking replacement kernel-flasher ...
Setting up kernel-flasher (2.6.28-20103103+0m5) ...

I'm still getting U-boot

say: install everything that belongs to that kernel(irrc that are three packages). put a copy of the kernel to your pc(so you have it in case something goes wrong). also deinstall uboot.
and if uboot is still there after that use force and flash the kernel you saved on your harddrive(must be the one you prev. installed via apt). and you are good.
(note that i said flash KERNEL not firmware and not emmc. that is: flasher -f -k kernel)

also note the order first use the most high level means of doing it and only if they are buggy and fail use brute force to achieve where that failed.

Devrim 2010-11-14 13:41

Re: U-boot is now in extras-devel
 
Quote:

Originally Posted by lunat (Post 873047)
say: install everything that belongs to that kernel(irrc that are three packages). put a copy of the kernel to your pc(so you have it in case something goes wrong). also deinstall uboot.
and if uboot is still there after that use force and flash the kernel you saved on your harddrive(must be the one you prev. installed via apt). and you are good.
(note that i said flash KERNEL not firmware and not emmc. that is: flasher -f -k kernel)

also note the order first use the most high level means of doing it and only if they are buggy and fail use brute force to achieve where that failed.



But I want multiboot back.

When I boot my N900 I first get U-boot
I do: run noloboot
Then I get multiboot and boot Power Kernel v45

How do I get rid of U-boot? :<


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

vBulletin® Version 3.8.8