Problems with output to console

Steven Scholz steven.scholz at
Mon Dec 12 08:27:29 UTC 2005


>>On one board I see the output. This one has /dev/ttySMX0 (204,41) as
>>serial console. On the other board I do _not_ see the output. This has
>>/dev/ttyS0 (4,64) as serial console.
>>When I start foobar directly in inittab it works on both.
>>When I create a link "ln -s /dev/ttySMX0 /dev/ttyS0" on the first board,
>>then I cant see the output there anymore.
>>Could someone please explain to me what's going on here.
> Read init/init.c (which is, alas, a mess o' suckage).
> static char console[CONSOLE_BUFF_SIZE] = _PATH_CONSOLE;
> (That's from some header file).
> static void console_init(void)
> {
> ...
>     if ((s = getenv("CONSOLE")) != NULL || (s = getenv("console")) != NULL) {
>         safe_strncpy(console, s, sizeof(console));
> And the read on for the full horror of serial console detection and tty and 
> such...  It gets ugly quickly...
> I rewrote all this once.  Need to do it again in 2.2...

Could you give me a little hint why I dont get any output when creating
the link /dev/ttyS0 -> /dev/ttySMX0?

How could I hack init/init.c so it works on the board where the serial
console is actually ttyS0?

Thanks a million!


More information about the busybox mailing list