maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   Edited a File--Device Won't Boot! Urgent Help Needed! (https://talk.maemo.org/showthread.php?t=63672)

AMLJ 2010-10-11 14:57

Edited a File--Device Won't Boot! Urgent Help Needed!
 
Hey, please help me... I wanted to enable Smart Reflex, so I edited /etc/pmconfig.

Now the device doesn't boot, and I'm sure it's because of that file... Is there a way to edit the file now? Or any other thing?

Please help!

AMLJ 2010-10-11 15:36

Re: Edited a File--Device Won't Boot! Urgent Help Needed!
 
I'm begging you guys!!! Someone help!!!!!!!!!!!!!!!!!!!!!!!!!! PLZZZZZZZZ

arora.rohan 2010-10-11 15:40

Re: Edited a File--Device Won't Boot! Urgent Help Needed!
 
You tried flashing it ?
if it doesnt boots then i guess flashing it.. or if you have a dual boot with android or something..

Try just flashing the kernel only first...

AMLJ 2010-10-11 15:43

Re: Edited a File--Device Won't Boot! Urgent Help Needed!
 
I'll lose all my data... Is there a way to for example start the device using another thing, like a live OS maybe... I dunno... Is there any other thing I can do? If I can just change those 1s to 0s, everything will be fine!

arora.rohan 2010-10-11 15:43

Re: Edited a File--Device Won't Boot! Urgent Help Needed!
 
no when you will flash the kernel only..you wont loose anything.. :)

Mentalist Traceur 2010-10-11 15:47

Re: Edited a File--Device Won't Boot! Urgent Help Needed!
 
Well, you'll loose your already installed apps if you reflash just the kernel. But you won't lose the majority of your configuration files or saved data for those apps, so when you reinstall them it'll be almost like it was.

Rather, I'm not sure if you can reflash just kernel files. As I understand it you either reflash rootfs (which has kernel, and some other system stuff), or rootfs and EMMC. I'm guessing the "reflash just kernel" mean the former.

arora.rohan 2010-10-11 15:51

Re: Edited a File--Device Won't Boot! Urgent Help Needed!
 
yea i meant rootfs :) typed ina hurry..just flash the rootfs first..if that doesnt helps..(but it should ! ) then you have no choice but to flash the emmc as well :( !

AMLJ 2010-10-11 16:11

Re: Edited a File--Device Won't Boot! Urgent Help Needed!
 
Can I somehow mount the device on my computer, and edit /etc/pmconfig??

AlMehdi 2010-10-11 16:23

Re: Edited a File--Device Won't Boot! Urgent Help Needed!
 
Acctually.. it is possible to just flash the kernel. That would save you the hazzle of reinstalling the apps and conf-files.

sudo flasher-3.5 -F <firmware-image> --flash-only=kernel -f -R

edit: Although i would not bet on that it will change your /etc/pmconfig. You probably need to flash your root system e.g. the Combined image.

AMLJ 2010-10-11 16:41

Re: Edited a File--Device Won't Boot! Urgent Help Needed!
 
Quote:

Originally Posted by AlMehdi (Post 838511)
Acctually.. it is possible to just flash the kernel. That would save you the hazzle of reinstalling the apps and conf-files.

sudo flasher-3.5 -F <firmware-image> --flash-only=kernel -f -R

edit: Although i would not bet on that it will change your /etc/pmconfig. You probably need to flash your root system e.g. the Combined image.

Isn't there any way to mount the device on my computer and edit the file?

Is there any kernel which supports SmartReflex, and won't reboot... So that I can boot and change the file?

Is there something like a live OS?

giannoug 2010-10-11 16:48

Re: Edited a File--Device Won't Boot! Urgent Help Needed!
 
Quote:

Originally Posted by AMLJ (Post 838530)
Isn't there any way to mount the device on my computer and edit the file?

Desolder the NAND, find a NAND reader and fix that file. In plain words, no.

Quote:

Originally Posted by AMLJ (Post 838530)
Is there any kernel which supports SmartReflex, and won't reboot... So that I can boot and change the file?

No.

Quote:

Originally Posted by AMLJ (Post 838530)
Is there something like a live OS?

Nope.

AMLJ 2010-10-11 17:02

Re: Edited a File--Device Won't Boot! Urgent Help Needed!
 
OK... Do you think reflashing the kernel would change this file? If yes, what file should I download and what should I do? I searched a lot, didn't get what I needed...

Also, if not, will reflashing rootfs help? If I do that, I'll lose all the apps... Right?

Can I somehow back up some data before I do that?

oxpo 2010-10-11 17:07

Re: Edited a File--Device Won't Boot! Urgent Help Needed!
 
Quote:

Originally Posted by AMLJ (Post 838546)

Can I somehow back up some data before I do that?

No,you could have made a backup, before you changed a systemfile, and that backup would have automaticly reinstalled your installed programs, but that was only before you couldn't boot your device.

At this point you just have to reinstall manually. See it as a good thing. You probably will not install as many programs as you have on it now.

Sorry that I can't help you.

/oxpo

AMLJ 2010-10-11 17:11

Re: Edited a File--Device Won't Boot! Urgent Help Needed!
 
The problem is the damn stupid poor connection I have!

arora.rohan 2010-10-11 17:24

Re: Edited a File--Device Won't Boot! Urgent Help Needed!
 
:) hey..just chill..your phone isnt going anywhere..it'll be as good as new..and you just learned a lesson :)
dont mess around with system stuff just because they sound good :) !

take care :)
all the best with your phone !

MohammadAG 2010-10-11 17:33

Re: Edited a File--Device Won't Boot! Urgent Help Needed!
 
Before reflashing, you could try the rescue initrd image that the MeeGo kernel provides, then you could possibly mount ubi:rootfs somewhere and edit the file.

http://mohammadag.xceleo.org/public/maemo/rescueinitrd/
Download both files then...
Code:

flasher-3.5 -k vmlinuz-2.6.33.3-11.2-n900 -n initrd.img-rescue-2.6.33.3-11.2-n900 -l -b"rootdelay=1 root=/dev/ram0"
To mount the ubifs image, you could
Code:

mkdir -p /mnt
mount -t ubifs ubi0:rootfs /mnt

Not sure if the kernel has an ubifs module compiled in though, I'll check the source.
You might need to modprobe ubi, the module's compiled in the kernel though.

kureyon 2010-10-11 18:14

Re: Edited a File--Device Won't Boot! Urgent Help Needed!
 
Install BackupMenu, install SSH server, setup USB networking. Next time you run into a problem you could go into BackupMenu and startup ssh server then plug N900 into computer via usb and ssh into N900 to try and sort out any problems. This has saved me loads of hassle.

sjgadsby 2010-10-11 18:38

Re: Edited a File--Device Won't Boot! Urgent Help Needed!
 
Isn't SmartReflex, or at least the VDD2 portion of it, broken in PR1.2 in any case?

AMLJ 2010-10-11 18:54

Re: Edited a File--Device Won't Boot! Urgent Help Needed!
 
Thanks for all the help guys... By the way... I don't know why I did this arora... I had learned this lesson long time ago, back when I was a GNU/Linux noob... And now, like a stupid guy, I repeated the same mistake again...

Anyway, Imma reflash it... Thanks guys.

AMLJ 2010-10-11 19:00

Re: Edited a File--Device Won't Boot! Urgent Help Needed!
 
OMG! OMFG! This is a f...in miracle! I didn't have to reflash rootfs! Just the kernel worked! WOOOOOOOOOOHOOOOOOOOOOOO! Thanks guys! Have a nice day!
I wish none of you run into such a problem in your life! :)

AMLJ 2010-10-11 19:18

Re: Edited a File--Device Won't Boot! Urgent Help Needed!
 
Thought I have to let others know some things...

First of all, the default kernel supports SmartReflex

Second, reflashing the kernel, will solve the problem, as SmartReflex works

Applesaws 2011-01-24 07:40

Re: Edited a File--Device Won't Boot! Urgent Help Needed!
 
Quote:

Originally Posted by MohammadAG (Post 838566)
To mount the ubifs image, you could
Code:

mkdir -p /mnt
mount -t ubifs ubi0:rootfs /mnt


How do you type the -, 0, and /? The Fn key doesn't seem to do anything in the rescue initrd.


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

vBulletin® Version 3.8.8