How to get console output?

Björn König bkoenig at alpha-tierchen.de
Mon Jun 4 17:31:13 UTC 2007


Hello once again,

I'm sitting here for hours and still reading source code, but I can't get
the kernel to talk. Actually the kernel starts initialising, probing
devices and so on. I wrote my own "puts" methods to get some output on the
debug console, but I want it the proper way.

As far as I understood it correctly the function "cninit()" in
sys/arm/at91/kb920x_machdep.c should initialise a console. The code in
kern/tty_cons.c iterates with two devices without success:

 * uart_consdev which is "dead" (cn_pri == CN_DEAD)
 * cons_consdev that has no probe function (cn_probe == NULL)

Now I'm looking for the piece of code where I can hint the kernel to use
the debug unit as output device. The files src/arm/at91/uart_* implement a
driver module for uart(4) and I want the kernel to use this code somehow.

Does anybody has a hint for me? :)

Björn




More information about the freebsd-arm mailing list