![]() |
A trick to boot N9 to (almost) single-user mode
Last night when I was tinkering with my device I thought about ways to get the thing into single-user mode, as I need to do stuff in the initializing phase. It is not quick to experiment on something when you have to repeatedly boot the box to see the effects. :mad:
As N9 lacks both hardware keyboard and serial port it would seem to be difficult to interact with the thing before OS & GUI loading, but fortunately I managed to do it. ( quite propably somebody else has done this before, but what the heck, it works for me :p ) So I decided to use the USB/IP device which requires just loading of one module to be usable, and I tweaked the sshd default parameters a bit, mounted devpts and launched sshd from preinit and it fires up nicely :cool: Why I call this "almost-single-user-mode", is because with this sshd goes daemon and it is possible to connect to the device repeatedly. Hence it is actually more useful than the traditional serial port single-user mode :) Here is the diff for sshd_config; Code:
~ # Code:
sshd_start() Code:
sshd_query() I did not write detailed step-by-step granny guide here on purpose, to make people who would like to try this THINK a bit instead just following orders blindly. This is to protect newbies from bicking their device (and furthermore, to protect me from their anger if somebody manages to do that) but all the required steps are here for anyone who understands the logic of boot chain. |
Re: A trick to boot N9 to (almost) single-user mode
Quote:
But great work, this is a much easier way which doesn't require dismantling of the device :) |
Re: A trick to boot N9 to (almost) single-user mode
Quote:
BTW; as I have not seen the schematics of N9; am I correct in assuming that the device does have pins inside for the keyboard interface, in same way as N950 does? If so, then it would be nice to try to connect a real physical keyboard to the device... Quote:
|
All times are GMT. The time now is 22:43. |
vBulletin® Version 3.8.8