| 1   2   | Next
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   [SOLVED, BUT DON'T SHUT THREAD FOR NOW] Boot loop after "apt-get upgrade" (https://talk.maemo.org/showthread.php?t=84006)

AndyYan 2012-05-01 13:29

[SOLVED, BUT DON'T SHUT THREAD FOR NOW] Boot loop after "apt-get upgrade"
 
Put it straight - I previously had CSSU Testing, Kernel-Power 50, Kernel-BFS 10 and NITDroid 12 @ kernel 06-final1 running harmoniously, but after my school shut down its schoolwide WiFi I hadn't updated my wares for 2 total months... Then today I decided to update using "apt-get update" and "apt-get upgrade"(which is same as usual) via notebook-shared WiFi (through cable) and hell, it works fine and everything was updated. I remembered seeing a lot items like osso-xxxx (CSSU related?) but no else. Then I pushed "reboot" via power menu and phone rebooted to usual Multiboot menu, but whatever kernel I chose, the NOKIA logo appears, blackens (all usual) AND after 2 or 3 secs random colour notif. LED light pops up and phone reboots. REBOOT LOOP?! (I'm sure I'm fully charged)
Now stuck in a WTF condition - phone bootable, Multiboot enterable, system almost enterable, NITDroid working as usual (strange)... any way to reverse previous changes? Any way to solve this loop apart from flashing?

[SOLVED with rescue OS]

psychologe 2012-05-01 13:34

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
me too,,我的也是,哥们,拔掉电池等30秒再试下!

sifo 2012-05-01 13:43

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
@Andy Yan
this happened with me too month ago and that is because of your /root directory is full i think the only way is reflashing and i hope not :D

AndyYan 2012-05-07 01:05

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by sifo (Post 1200058)
@Andy Yan
this happened with me too month ago and that is because of your /root directory is full i think the only way is reflashing and i hope not :D

Aww shucks... I don't wanna reflash anymore... cuz a reflash kills 2 whole days plus a GB of data flow... Any other way?

geneven 2012-05-07 01:10

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
http://talk.maemo.org/showthread.php?t=83939

See the above link. This caused a reboot loop for some people.

AndyYan 2012-05-07 07:38

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by geneven (Post 1202786)
http://talk.maemo.org/showthread.php?t=83939

See the above link. This caused a reboot loop for some people.

All right I see that post, but I don't know whether I'd updated that package that day (or ever installed that) AND even if I happen to know, there's no way to undo it in Android, right? I HAVE TO reflash, right?!

reinob 2012-05-07 09:03

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
@AndyYan,

You don't happen to have backupmenu or recovery console installed?

With either of them you'd be able to replace the broken lib (libxau6).

AndyYan 2012-05-07 15:13

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by reinob (Post 1202907)
@AndyYan,

You don't happen to have backupmenu or recovery console installed?

With either of them you'd be able to replace the broken lib (libxau6).

Don't even know what they are in the first place... So that means there's absolutely no solution?

ibrakalifa 2012-05-07 15:17

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
dont do apt-get upgrade when devel repository enabled, unless you know and sure what are you doing, just saying, :)

don_falcone 2012-05-07 15:35

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
http://maemo.org/packages/view/backupmenu/
http://maemo.org/packages/view/recovery-boot/

geneven 2012-05-07 15:40

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
You probably do need to reflash. Backupmenu would have got you back to normal in just a few minutes.

AndyYan 2012-05-08 01:02

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by geneven (Post 1203076)
You probably do need to reflash. Backupmenu would have got you back to normal in just a few minutes.

Okay... I'll be doing this later this week if no more solution found... Will be playing with my Milestone and soon-arrival, screen-broken Epic 4G...

AndyYan 2012-05-08 01:04

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by geneven (Post 1203076)
You probably do need to reflash. Backupmenu would have got you back to normal in just a few minutes.

One more thing. Will backupmenu back up ALL system's state into an image? So this takes lots of space and time? And I should do the backup every time before an "apt-get upgrade"?

geneven 2012-05-08 03:14

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Try Backumenu and see for yourself. It is fairly quick and not that space-consuming. Yes, it saves everything

AndyYan 2012-05-08 14:20

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by geneven (Post 1203309)
Try Backumenu and see for yourself. It is fairly quick and not that space-consuming. Yes, it saves everything

No, it's that I haven't installed that before everything went awol and now Maemo is unbootable, let alone any actions like deb installation... REAL QUESTION IS, CAN I FIX THE PROB UNDER ANDROID (NITDroid with root, can access /home and subdirs)?

stickymick 2012-05-08 14:36

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Got the self same thing a couple months back. Had to do a reflash, couldn't reflash normally by doing EMMC first then O/S because the N900 kept losing the connection, so ended up going O/S first; EMMC next and then the O/S again.

Haven't bothered with any custom kernels since.

stlpaul 2012-05-08 14:45

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by AndyYan (Post 1203540)
No, it's that I haven't installed that before everything went awol and now Maemo is unbootable, let alone any actions like deb installation... REAL QUESTION IS, CAN I FIX THE PROB UNDER ANDROID (NITDroid with root, can access /home and subdirs)?

If you can access /usr/lib directory of Maemo then you should be able to replace the two files with the older version:

/usr/lib/libXau.so.6
/usr/lib/libXau.so.6.0.0

Old version of package can be downloaded at http://repository.maemo.org/pool/mae...o1.1_armel.deb and you can extract the files listed from it. Good luck!

mattkawa 2012-05-08 15:15

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by AndyYan (Post 1203540)
No, it's that I haven't installed that before everything went awol and now Maemo is unbootable, let alone any actions like deb installation... REAL QUESTION IS, CAN I FIX THE PROB UNDER ANDROID (NITDroid with root, can access /home and subdirs)?

You could try the suggestion in this post (http://talk.maemo.org/showpost.php?p...&postcount=231) to boot back into Maemo to replace the offending file with the correct/original one.

I hope you get it sorted without the associated trouble of a reflash.

AndyYan 2012-05-09 01:18

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by mattkawa (Post 1203566)
You could try the suggestion in this post (http://talk.maemo.org/showpost.php?p...&postcount=231) to boot back into Maemo to replace the offending file with the correct/original one.

I hope you get it sorted without the associated trouble of a reflash.

Wow, so it seems R&D and lifeguard does what it should... Great idea, will be trying it tonight!

reinob 2012-05-09 08:54

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
@AndyYan,

Just a theory: if you enable R&D mode and disable LG resers then the next time you boot the X server will most likely die (because of the bad libxau lib) and hopefully the phone will not reboot.

The problem is that you won't have a shell, or even a visible framebuffer, meaning you won't be able to even blindly type in the necessary commands to restore the working lib.

Try it anyway, and PLEASE report whatever result you get.

As an alternative, you might want to try putting the "Rescue OS" on a microSD card and boot from it using the flasher.
Link: http://talk.maemo.org/showthread.php?t=75369

AndyYan 2012-05-09 09:49

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by reinob (Post 1203889)
@AndyYan,

Just a theory: if you enable R&D mode and disable LG resers then the next time you boot the X server will most likely die (because of the bad libxau lib) and hopefully the phone will not reboot.

The problem is that you won't have a shell, or even a visible framebuffer, meaning you won't be able to even blindly type in the necessary commands to restore the working lib.

Try it anyway, and PLEASE report whatever result you get.

As an alternative, you might want to try putting the "Rescue OS" on a microSD card and boot from it using the flasher.
Link: http://talk.maemo.org/showthread.php?t=75369

Tried both method.
The "Disable R&D + Lifeguard" gives no user interface, and I'm no blind operator. Anyway to enable UI or at least WiFi+SSH is welcomed!
Meanwhile I booted into RescueOS and WTF, there's no /home... USB Mass Storage is RAW format on Windows... AND no /usr/lib which means I can't replace the wrong lib even if I have the correct file!!
Any suggestions?

UPDATE: Mounting maemo rootfs in rescueOS gives me access to /usr/lib BUT NOT /home (ls returned empty results) so I'm still not able to put files (NITDroid can only access /home)...

anthonie 2012-05-09 10:11

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
This advice may be worthless, but donīt you have ssh installed on the N900, so you could use putty in combination with BackupMenu?

That should give you access to the whole device.

AndyYan 2012-05-09 10:19

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by anthonie (Post 1203926)
This advice may be worthless, but donīt you have ssh installed on the N900, so you could use putty in combination with BackupMenu?

That should give you access to the whole device.

See, I haven"t got backupmenu installed previously. Or I shoulda solved this in no time...

AndyYan 2012-05-09 10:22

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
UPDATE 2: Tried blind typing under R&D + LG-off, but with no UI present, it seems that I can't get over the "Disable offline mode" dialog (I use offline mode very often) because I imitated presses on the "yes" button and waited AND Ctrl-Shift-X and "root" and "reboot" and nothing happens...

reinob 2012-05-09 11:45

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Using Rescue OS:

Quote:

USB Mass-Storage mode
--------------------
/rescueOS/mass-storage-enable.sh
Makes /dev/mmcblk1p1 and /dev/mmcblk1p2 available for the mass-storage
mode. These are the EMMC home partition and MyDocs in maemo.

/rescueOS/mass-storage-disable.sh: Deactivates mass-storage mode.
With this you can mount /home from USB. You *do* know that /home is an ext3 partition do you? (hint: use Linux).

Anyway, try putting the original libxau6 somewhere in your SD card, mount rootfs (you said you now know how to do that), and then overwrite the file (I think it's in /usr/lib).

Good luck. and read the documentation!

AndyYan 2012-05-09 14:24

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by reinob (Post 1203966)
Using Rescue OS:



With this you can mount /home from USB. You *do* know that /home is an ext3 partition do you? (hint: use Linux).

Anyway, try putting the original libxau6 somewhere in your SD card, mount rootfs (you said you now know how to do that), and then overwrite the file (I think it's in /usr/lib).

Good luck. and read the documentation!

"Hint: use Linux" - You know I'm no Linux boy and I'm not gonna grab a Linux machine for this (I don't have one either)...
Put libxau6 in SD? The external? But isn't it that mount-maemo-root.sh only mounts a part of /(root dir)? Correct me if I'm wrong, I'm n00b on Linux...
If that script does mount the external SD then point out the path for me... Thx :P

zlatokosi 2012-05-09 14:37

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by AndyYan (Post 1204090)
"Hint: use Linux" - You know I'm no Linux boy and I'm not gonna grab a Linux machine for this (I don't have one either)...
Put libxau6 in SD? The external? But isn't it that mount-maemo-root.sh only mounts a part of /(root dir)? Correct me if I'm wrong, I'm n00b on Linux...
If that script does mount the external SD then point out the path for me... Thx :P

No need to be a Linux boy, just google LiveCD, burn onto a CD, and boot from there. Shouldn't take more than ten minutes.

AndyYan 2012-05-10 00:59

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by zlatokosi (Post 1204100)
No need to be a Linux boy, just google LiveCD, burn onto a CD, and boot from there. Shouldn't take more than ten minutes.

Ain't no better if my notebook PC can read discs... BUT really my PC doesn't even have a disc drive!! WTF am I gonna do...

sifo 2012-05-10 01:47

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
go to any internet center and flash it using thier PC's

reinob 2012-05-10 06:55

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by AndyYan (Post 1204090)
"Hint: use Linux" - You know I'm no Linux boy and I'm not gonna grab a Linux machine for this (I don't have one either)...
Put libxau6 in SD? The external? But isn't it that mount-maemo-root.sh only mounts a part of /(root dir)? Correct me if I'm wrong, I'm n00b on Linux...
If that script does mount the external SD then point out the path for me... Thx :P

I don't know or care if you're a "Linux boy" or not. Fact is /home is an ext3 partition so if you want to be able to mount it you either use Linux or find some driver/"app" that lets you do that on whatever OS you're using.

libxau6 should in the end go in /usr/lib, that's your rootfs partition. Since you're booting from an SD card and before that you cannot possibly access the internal memory of the N900, the most logical place to put the new libxau6 is somewhere on that card, and THEN once you've booted, copy it from the SD card to the /usr/lib directory of your N900 root partition (obviously, after you've mounted it).

Other than I have no other suggestion. You either do it or not. If you're not willing to do that ("no linux boy") then your only option is to do a complete reflash.. but beware, flashing may work better under Linux than Windows.

AndyYan 2012-05-10 07:04

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by reinob (Post 1204543)
I don't know or care if you're a "Linux boy" or not. Fact is /home is an ext3 partition so if you want to be able to mount it you either use Linux or find some driver/"app" that lets you do that on whatever OS you're using.

libxau6 should in the end go in /usr/lib, that's your rootfs partition. Since you're booting from an SD card and before that you cannot possibly access the internal memory of the N900, the most logical place to put the new libxau6 is somewhere on that card, and THEN once you've booted, copy it from the SD card to the /usr/lib directory of your N900 root partition (obviously, after you've mounted it).

Other than I have no other suggestion. You either do it or not. If you're not willing to do that ("no linux boy") then your only option is to do a complete reflash.. but beware, flashing may work better under Linux than Windows.

Wait a minute. Why do you say rescueOS boots from external SD? For now I only know that I can use kernel and boot files stored on a Win PC along with flasher-3.5 to boot into command line... Even the rescueOS post AND documentation don't offer any booting method... Point out the right way for me to boot from SD pls

reinob 2012-05-10 08:00

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
@AndyYan,

I thought you were booting the RescueOS from an SD card (using U-boot). Didn't realize it's not even documented. Sorry for that.

OK. In this case I guess your best bet is to, once you've booted RescueOS, enable USB mass-storage mode and then from your PC copy the new lib to the MyDocs partition (because you use Windows).

Then mount the rootfs and copy the lib from MyDocs to /usr/lib and then make sure it has the same permissions as the existing libXau6.

AndyYan 2012-05-10 13:52

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by reinob (Post 1204567)
@AndyYan,

I thought you were booting the RescueOS from an SD card (using U-boot). Didn't realize it's not even documented. Sorry for that.

OK. In this case I guess your best bet is to, once you've booted RescueOS, enable USB mass-storage mode and then from your PC copy the new lib to the MyDocs partition (because you use Windows).

Then mount the rootfs and copy the lib from MyDocs to /usr/lib and then make sure it has the same permissions as the existing libXau6.

Nice try dude, all of the methods was expected to work and I tried them yesterday already... But sorry facts:
1. As mentioned, USB mass storage appeared as "RAW" format in Windows, guess it's Linux format. I can put files under any folder under /home though with Android.
2. Mounting the rootfs gave empty /home. Mounting mmcblk1p1 gave almost empty /home. Mounting mmcblk1p2(which is said to mount /home correctly) reported errors.
3. Any way to acquire and mod permissions? I thought I've seen a command for that (Is that chmod?)

And thx very much for your patience and lasting help!

AndyYan 2012-05-11 01:35

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Anyone can tell me how to mount mmcblk1p2 correctly in rescueOS? Thx

zimon 2012-05-11 02:44

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by AndyYan (Post 1204463)
Ain't no better if my notebook PC can read discs... BUT really my PC doesn't even have a disc drive!! WTF am I gonna do...

If you have a USB-stick (~600 MB), you can make a bootable one:

ISO-file from here:
http://spins.fedoraproject.org/lxde/

Installation instructions from here:
http://docs.fedoraproject.org/en-US/...USB_Media.html

reinob 2012-05-11 07:24

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by AndyYan (Post 1204757)
1. As mentioned, USB mass storage appeared as "RAW" format in Windows, guess it's Linux format. I can put files under any folder under /home though with Android.

According to the documentation using /rescueOS/mass-storage-enable.sh
should export both the /home (mmcblk0p2 on Maemo) and MyDocs (mmcblk0p1 on Maemo).

The /home partition is ext3, so WIndows won't recognize it. The MyDocs partition is VFAT so Windows *should* recognize it. When you do this, do you only see ONE single partition being exported as USB mass storage?

Quote:

2. Mounting the rootfs gave empty /home. Mounting mmcblk1p1 gave almost empty /home. Mounting mmcblk1p2(which is said to mount /home correctly) reported errors.
/home has its own partition, so within the rootfs partition /home is just an empty folder. The actual /home partition is then mounted "on top" of this empty folder.

About the "reported errors": you might want to post them here. It may help :)

Quote:

3. Any way to acquire and mod permissions? I thought I've seen a command for that (Is that chmod?)
/usr/lib/libXau.so.6.0.0 has (at least on my N900) 0644 permissions and is owned by root, group root.

Meaning, once you manage to copy the file (somehow) onto the /usr/lib folder of the N900 root filesystem, you would need to:

Code:

# cd /mount-point/usr/lib
# chmod 0644 libXau.so.6.0.0
# chown root:root libXau.so.6.0.0

in case the libXau.so.6 symbolic link is not there, you do:
Code:

# cd /mount-point/usr/lib
# ln -s libXau.so.6.0.0 libXau.so.6


AndyYan 2012-05-12 10:05

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by reinob (Post 1205074)
According to the documentation using /rescueOS/mass-storage-enable.sh
should export both the /home (mmcblk0p2 on Maemo) and MyDocs (mmcblk0p1 on Maemo).

The /home partition is ext3, so WIndows won't recognize it. The MyDocs partition is VFAT so Windows *should* recognize it. When you do this, do you only see ONE single partition being exported as USB mass storage?



/home has its own partition, so within the rootfs partition /home is just an empty folder. The actual /home partition is then mounted "on top" of this empty folder.

About the "reported errors": you might want to post them here. It may help :)



/usr/lib/libXau.so.6.0.0 has (at least on my N900) 0644 permissions and is owned by root, group root.

Meaning, once you manage to copy the file (somehow) onto the /usr/lib folder of the N900 root filesystem, you would need to:

Code:

# cd /mount-point/usr/lib
# chmod 0644 libXau.so.6.0.0
# chown root:root libXau.so.6.0.0

in case the libXau.so.6 symbolic link is not there, you do:
Code:

# cd /mount-point/usr/lib
# ln -s libXau.so.6.0.0 libXau.so.6


Only one drive appeared in Windows and it's RAW. Dunno why.
You mean mounting mmcblk1p1 on top of /home? I previously mounted it on /mnt/free1... Any difference?
About the errors, yes I'm touching the PC later and will steal into rescueOS for another try and give out the error :-)
And thanks for your codes!

AndyYan 2012-05-12 10:09

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by zimon (Post 1205026)
If you have a USB-stick (~600 MB), you can make a bootable one:

ISO-file from here:
http://spins.fedoraproject.org/lxde/

Installation instructions from here:
http://docs.fedoraproject.org/en-US/...USB_Media.html

Booting from USB stick? Sounds cool, and it's a Fedora too... (I'll punch my Ubuntu classmate in his stomach FXXK YEAH)
Ok so this is a backup plan in case rescueOS won't work in the end... Thx

AndyYan 2012-05-13 10:31

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by reinob (Post 1205074)
...

WHAT THE HELL!!! It worked!
Code:

# mount /dev/mmcblk1p2 /mnt/maemo/home
And typed chmod & chown commands... WOOT! "Exit offline mode?" The system booted up steadily! Home sweet hildon-home!!!
Thank you Reinob for your PERFECT patience and knowledge of Linux!!

...Question is, when I typed "chown root:root libXau.so.6.0.0" it said "unknown user group root:root"... Doesn't bother booting but what's wrong?

zimon 2012-05-13 14:25

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by AndyYan (Post 1205991)
...Question is, when I typed "chown root:root libXau.so.6.0.0" it said "unknown user group root:root"... Doesn't bother booting but what's wrong?

root.root, not root:root


| 1   2   | Next
All times are GMT. The time now is 18:40.

vBulletin® Version 3.8.8