<br><br><div class="gmail_quote">2010/7/21 Andy Green <span dir="ltr">&lt;<a href="mailto:andy@warmcat.com">andy@warmcat.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 07/21/10 14:23, Somebody in the thread at some point said:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
How can I achiev the behavior of the default debian system to show me a<br>
log in prompt? I know the basics about vinit system. Thanks for any help<br>
</blockquote>
<br></div>
If /bin/bash is working you&#39;re mostly there.<br>
<br>
You can run the default /sbin/init as &quot;init&quot; which runs the standard init sequence.  However, this is really inefficient for typical embedded device, it can be 30s or more before it&#39;s done on an otherwise fast system.<br>

<br>
I did a lot of work on the txtr device init scripts based on Fedora to finish boot into its GUI in ~7s from power on.<br>
<br>
In there, I run agetty directly like this (you will need to adjust the serial device to match your serial console device ) --&gt;<br>
<br>
agetty /dev/ttymxc0 115200 vt100-nav<br>
<br>
You can so this by making &quot;init&quot; a shell script, mount goodies like proc / sys / dev/pts and so on in there and then spawn agetty.<br>
<br>
It&#39;s enough to just have<br>
<br>
#!/bin/sh<br>
<br>
at the start (and chmod the script +x !) and the kernel can understand it&#39;s a shell script for init.  If you made that shell script as /sbin/myinit, you would need init=/sbin/myinit on the kernel commandline to get it working.<br>

<br>
Once you have your init &quot;script&quot; you can pile all the boot tasks in there until / unless you&#39;re ready to migrate them to systemd or whatever.<br><font color="#888888">
<br>
-Andy<br>
</font></blockquote></div><br><div><br></div><div>Some weeks ago I allready used the fedora rootfs in combination with the factory kernel / uboot, which did not use the init boot option. How did they achiev it to get a login prompt? What did they do, I am really curious and would like to recreate that behaviour</div>
<div><br></div><div>Regards</div><div><br></div><div>Bernhard</div>