Recovery Console Mode
Update: New version 0.2 is in Extras, it has fixed Fn keys
In new version of kernel-power is framebuffer support as external kernel modules. A lot of posts was in kernel-power thread how to use it. So this can be used for Recovery Console Mode. It is entry for bootmenu which start classic console mode on Nokia N900 with working HW keyboard. It starts linux console before Maemo is booted, so it can be used for fixing broken Maemo. It depends on bootmenu 0.10.0 (or higher) and kernel-power v47 (or higher) from: http://talk.maemo.org/showthread.php?t=71879 or other kernel which has compiled framebuffer modules Installation: Install package recovery-boot from Maemo Extras or from Maemo Download page Source code: https://code.launchpad.net/~pali/+ju..._recovery-boot |
Re: Recovery Console Mode
It sounds beautiful :') I can't remember the number of times I've been dieing for a recovery console.
Relating to the framebuffer... would it be possible to get the scrolling booting text instead of the nokia logos and dots splash? |
Re: Recovery Console Mode
I can look at this in future. It sounds nice... but now I do not have time... (and this is thread for console mode)
|
Re: Recovery Console Mode
Quote:
|
Re: Recovery Console Mode
I built and installed it.
@pali; I'm using a patched version of multiboot that you help with from the BackupMenu issue and it seems to simply load the system as usual failing to load the framebuffer module as well. Steps to debug? |
Re: Recovery Console Mode
Quote:
Also, I must say, while the bootmenu.sh way is still not fully within my aesthetic (I like the console running on all boots, keyboard in too; though I'll be honest, I can see why most people would want it optionally activated only on keyboard open, and I myself am unsure if I'm ultimately going to settle on the bootmenu.sh or preinit approach), knowing that I can safely experiment with code in bootmenu.sh is wonderful - makes it so much easier to figure out how to give myself a command-line at early boot while knowing that my N900 won't need to be reflashed if I mess up, as I can just boot normally with keyboard out. Definitely safer than editing /sbin/preinit. |
Re: Recovery Console Mode
Quote:
|
Re: Recovery Console Mode
I've spent the last few days slowly testing how to get recovery console as an independent bootmenu.sh, for those who use neither bootmenu nor multiboot. However, mainly, I think that whenever that's done there's going to be useful info on the matter in whatever I figure out (or fail to figure out), for running it with multiboot.
For one, bootmenu package includes a binary for evkey that is slightly different (I can only tell that it's a tiny bit smaller file-size-wise), and it comes with a "watchdogs" binary (which can at least in part explain why the code by pali won't work with multiboot). In the bootmenu.sh script of bootmenu, there seems to be a small chunk that loads the watchdog modules, does something with some files in the ... know what, here's the chunk of code I'm trying to explain, you're knowledgeable enough that my half-understanding explanation will just be less clear: Code:
# Watchdogs I haven't had time to look at the multiboot script, or that packages contents, to see what else that has for the same task, but my uneducated guess is that this somehow keeps the watchdogs nice and happy, instead of thinking something is wrong and a shutdown is needed. I conclude this because just putting pali's script as my /bootmenu.sh (modified to load the right modules at the beginning of said script), and placing all the called for binaries into place, gets me a shell just fine, however, the device shuts down after a certain amount of time no matter what you do, presumably because somewhere a watchdog/something-similar decided that something was going wrong. I get effectively the same result (working shell, device shuts itself down after a few minutes) with just Code:
modprobe fbcon I'm guessing multiboot and bootmenu somehow get past that problem. Anyway, I suspect that whatever knowledge is needed to ultimately figure out how to get to working, non-shutting-down shell itself without the support of bootmenu, could be then used to understand how to adapt it to multiboot. |
Re: Recovery Console Mode
Quote:
|
Re: Recovery Console Mode
1 Attachment(s)
Cool, so my suspicion was on the right track: the shutdown is caused by the watchdogs and the chunk of code in question keeps them alive.
Thank you. Will continue to fiddle. Success; thank you pali. Attached is bootmenu.txt, which when copied to /bootmenu.sh allows you to get a command line as normal, no reboot, etc. I think I left out the "clear" line from pali's version - mainly because I like seeing the output of the console beforehand. (I suspect that some of the code is just uneccessary, and will probably edit the script down to strip off extra stuff. Eventually I'll figure out a way to edit preinit for those who are certain they want the console and shell regardless of whether they boot with keyboard in or out. But for now, this does the job of being a shell right at beginning of boot. Attachment 19875 |
All times are GMT. The time now is 07:21. |
vBulletin® Version 3.8.8