Getting a nice penguin during boot (in qemu)
Recompile kernel with following enabled in menuconfig:
Device Drivers -> Graphics support -> Framebuffer devices, and bellow will appear Bootup Logo - so, select it and recompile.
Init is the first program that runs, so it might be that no programs are
working on your new system because of a problem with your cross-compiler,
kernel, console settings, shared libraries, root filesystem... To rule all
that out, first build a statically linked version of the following "hello
world" program with your cross compiler toolchain:
#include <stdio.h>
int main(int argc, char *argv)
{
printf("Hello world!\n");
sleep(999999999);
}
Now try to boot your device with an "init=" argument pointing to your
hello world program. Did you see the hello world message? Until you
do, don't bother messing with busybox init.
Once you've got it working statically linked, try getting it to work
dynamically linked. Then read the FAQ entry How
do I build a BusyBox-based system?, and the
documentation for BusyBox
init.
The Linux kernel is
configured to select the console by passing it the
console parameter. The
console parameter can be given repeatedly, but
the parameter can only be given once for each console technology.
So console=tty0 console=lp0 console=ttyS0 is
acceptable but console=ttyS0 console=ttyS1 will
not work.
When multiple consoles are listed output is sent to all
consoles and input is taken from the last listed console. The last
console is the one Linux uses as the /dev/console device.
The syntax of the console parameter is
given in Figure 5-1.
Figure 5-1. Kernel console syntax, in EBNF
console=ttyS
console=tty
console=lp
console=ttyUSB[
<link href="http://drasko.draskovic.googlepages.com/SyntaxHighlighter.css" type="text/css" rel="stylesheet" />Do not forget to change lines like http://drasko.draskovic.googlepages.com/shCore.js
<script language="javascript" src="http://drasko.draskovic.googlepages.com/shCore.js"></script>
<script language="javascript" src="http://drasko.draskovic.googlepages.com/shBrushCpp.js"></script>
<script language="javascript" src="http://drasko.draskovic.googlepages.com/shBrushPhp.js"></script>
<script language="javascript" src="http://drasko.draskovic.googlepages.com/shBrushPython.js"></script>
<script language="javascript" src="http://drasko.draskovic.googlepages.com/shBrushVb.js"></script>
<script language="javascript" src="http://drasko.draskovic.googlepages.com/shBrushJava.js"></script>
<script language="javascript" src="http://drasko.draskovic.googlepages.com/shBrushCSharp.js"></script>
<script language="javascript" src="http://drasko.draskovic.googlepages.com/shBrushRuby.js"></script>
<script language="javascript" src="http://drasko.draskovic.googlepages.com/shBrushXml.js"></script>
<script language="javascript" src="http://drasko.draskovic.googlepages.com/shBrushCss.js"></script>
<script language="javascript" src="http://drasko.draskovic.googlepages.com/shBrushJScript.js"></script>
<script language="javascript" src="http://drasko.draskovic.googlepages.com/shBrushSql.js"></script><p></p>p>
Good. Now you are ready to use it - just embrace your code with <pre> xml tags, like here:
<script language='javascript'> dp.SyntaxHighlighter.ClipboardSwf = 'http://drasko.draskovic.googlepages.com/clipboard.swf';
dp.SyntaxHighlighter.BloggerMode();
dp.SyntaxHighlighter.HighlightAll('code');
</script>
<pre name="code" class="java">
...some code in here...
</pre>