maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   [HELP] multiboot command shell [s] usable to fix n900? (https://talk.maemo.org/showthread.php?t=74003)

shaddam 2011-06-14 22:09

[HELP] multiboot command shell [s] usable to fix n900?
 
so with out any luck trying to fix my n900 via flashing mainly due to my usb being well dead, i was wondering if there was any kinda of command i can use in the shell to well either reformat or move a .item file from an sd card to the multiboot folder? or even edit the .txt file?
really running out of options now

gav

epitaph 2011-06-14 22:35

Re: [HELP] multiboot command shell [s] usable to fix n900?
 
Quote:

Originally Posted by shaddam (Post 1029265)
so with out any luck trying to fix my n900 via flashing mainly due to my usb being well dead, i was wondering if there was any kinda of command i can use in the shell to well either reformat or move a .item file from an sd card to the multiboot folder? or even edit the .txt file?
really running out of options now

gav

Format: sfdisk and mkfs.filesystem.
Move: mv /dev/mmcblk1p1 /home/user
Edit: vi .txt file or install apt-get install nano and then nano .txt file

shaddam 2011-06-14 23:18

Re: [HELP] multiboot command shell [s] usable to fix n900?
 
Quote:

Originally Posted by epitaph (Post 1029275)
Format: sfdisk and mkfs.filesystem.
Move: mv /dev/mmcblk1p1 /home/user
Edit: vi .txt file or install apt-get install nano and then nano .txt file


hmm i see was wondering if i could just rewrite the .item bootfile via VI and save it in the same dir? that would work right?

gav

epitaph 2011-06-14 23:42

Re: [HELP] multiboot command shell [s] usable to fix n900?
 
Quote:

Originally Posted by shaddam (Post 1029290)
hmm i see was wondering if i could just rewrite the .item bootfile via VI and save it in the same dir? that would work right?

gav

Hi, I would prefer nano but vi works too. To save the file in vi press ":" without the quotes and press "w" to write and press "q" to quit vi. You can use cat .item file to verify your changes before reboot.

Mentalist Traceur 2011-06-14 23:48

Re: [HELP] multiboot command shell [s] usable to fix n900?
 
The problem, Epitaph, is that this guy's device isn't booting - he probably can't get internet connectivity through commandline, let alone go apt-get packages.

vi, however, is guaranteed to be available if you have shell/console access.

So yes, if you know what you're doing, you can use vi.

When you get into the file, you can press "i" to get into editing mode, and then you need to press Esc to get out of editing mode to type ":wq" and then press enter. Now, if you're actually using the command-line from multiboot, chances are, you're using Pali's version - if I remember correctly, he had the Esc key mapped to Shift+Ctrl or Fn+Ctrl or something like that.

epitaph 2011-06-15 00:00

Re: [HELP] multiboot command shell [s] usable to fix n900?
 
Quote:

Originally Posted by Mentalist Traceur (Post 1029308)
The problem, Epitaph, is that this guy's device isn't booting - he probably can't get internet connectivity through commandline, let alone go apt-get packages.

vi, however, is guaranteed to be available if you have shell/console access.

So yes, if you know what you're doing, you can use vi.

When you get into the file, you can press "i" to get into editing mode, and then you need to press Esc to get out of editing mode to type ":wq" and then press enter. Now, if you're actually using the command-line from multiboot, chances are, you're using Pali's version - if I remember correctly, he had the Esc key mapped to Shift+Ctrl or Fn+Ctrl or something like that.

Thanks for the clarification! I forgot about the editing mode and how to quit it. Another way would be to use touch and echo to create a new .item file. Or another way can be to write a bash script and use cat and END: cat > .item file <<END <cr> some text <cr> some text <cr>END. I didn't test the interactive terminal mode, though.

shaddam 2011-06-15 07:12

Re: [HELP] multiboot command shell [s] usable to fix n900?
 
damn i've got a fair amount to learn, nice to know that this might actually be possible though

gav

shaddam 2011-06-15 19:30

Re: [HELP] multiboot command shell [s] usable to fix n900?
 
so . . . how do you use punctuation, such as -'s and other things? That's the only thing blocking me from fixing my phone.

shaddam 2011-06-16 20:44

Re: [HELP] multiboot command shell [s] usable to fix n900?
 
anyone?, im quite close
all i need to do is cd to the mmc1 [sdcard] and mv the .fiasco file to internal/ect/boot/multiboot

just "1" doesnt seem to be mapped anywhere!, so i cant cd to the sd card so i cant move the file.

gav

Mentalist Traceur 2011-06-17 00:58

Re: [HELP] multiboot command shell [s] usable to fix n900?
 
Wait, what exactly are you using to get command-line access - is it the multiboot recovery shell, or something else?

If you're using what I think you're using, it blue arrow + q should work as 1 as normal.


All times are GMT. The time now is 18:35.

vBulletin® Version 3.8.8