![]() |
"init 1" mode on n900
Hi Guys,
I little bit played with file "/etc/event.d/rcS-late". Now my phone cannot be loaded. I exactly know which line with error, I exactly know how to fix error but I don't know how to modify this file. Can anybody give advice how can i do it? Now when phone start to boot it is hang up and didn't boot completely. I would like to enter in analog of linux "init 1" mode but don't know how to do it. |
Re: "init 1" mode on n900
It's been a long while since I was using Linux daily, but I remember that runlevel switching to singleuser mode was at boot time from LILO (usually to fix something). I don't know what bootloader Maemo uses but it's probably similar unless things have drastically changed.
Does the phone start at all or can you not reboot it? If you changed the runlevel in a running kernel, it's likely dropped you out of runlevel 3, which is what I think is normal multiuser mode, so no X, etc., . I've just done a Google search and came up with this: the phone will not boot without Nokia servicing if the /var/lib/dsme/boot_count reaches 50. This is a record of the number of times the phone has rebooted itself e.g., due to a crash and not with the user starting the reboot. Might be something there with your problem? This is what my phone says it contains. What did you change? ~ $ cat /etc/event.d/rcS-late Code:
description "late rcS actions" |
Re: "init 1" mode on n900
Quote:
Quote:
Anyway having mode for make system changes in "init 1" mode (before mounting all volumes and starting most programs) will be very helpful. |
Re: "init 1" mode on n900
I had corrupted files in /home/user for fixing this I added line
"fsck -a /home" after line "rm -f $tmp_fstab" and reboot |
Re: "init 1" mode on n900
You should be able to use flasher to pass a custom init="sed 'whateverline' file" to get it back.
|
Re: "init 1" mode on n900
Quote:
What init arg would you need to start networking without GUI? |
Re: "init 1" mode on n900
Most likely you could. but I think you would need to have a separate init process for it all. Sounds like an interesting project. A simple shell script that would try to establish basic networking and access and that could be replaced quickly if needed.
|
Re: "init 1" mode on n900
Quote:
except serial console I see only one option in current state - compile custom kernel with mmc driver enabled, extract rootfs from firmware image to microsd card and boot such kernel with root set to mmc. then you can start xterm in clean system and fix stuff or I think it is possible to prepare initrd image with basic stuff (dropbear over usb networking or even basic shell over usb serial gadget) and load and boot it via flasher also before doing dangerous stuff you could have bootmenu installed and cloned your system to microsd card and either do such experiments there or at least boot from it in case you break system in internal flash. Hmm, I guess it is time to try that initrd idea :-) |
All times are GMT. The time now is 14:24. |
vBulletin® Version 3.8.8