[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] howto disable the console_uart and debug_uart
Hi Frank,
Rädisch Frank wrote:
> We want use the ttyS0 (console_uart ), somewhere declared as STDOUT/STDIN,
> as ours own uart.
> I am trying to find out how i disable the console_uart and debug_uart. I
> guess i have to change the STDOUT/STDIN paramter in EDK and build a new
> libxil.a ?
> I did it but without any effects, therefore i take a look-around and found
> the defines STDIN/STDOUT in parameters.h,
> but nowhere is an include to parameters.h (except in a busybox app).
> Anyway, can anybody tell me what i should do, to change the behavior of the
> console_uart.
> The console_uart shouldn't longer working as STDOUT/STDIN but as an ordinary
> UART.
Do I understand correctly - that you want to prevent the output of
console messages (like the bootup sequence etc) to the serial port?
It's not pretty, but you can just comment out line 1800 of
linux-2.4.x/arch/microblaze/kernel/xmbserial.c
void xmbrs_console_init(void)
{
/* register_console(&xmbrs_console); */
printk(KERN_INFO "Console: xmbserial on UARTLite\n");
}
I just booted my board like this, it's silent until the shell login
prompt comes up - no kernel messages or anything like that.
Is that what you wanted?
I've had a look and it is easy to make this an option on the kernel
command line. Something like "console=connull" on the kernel cmd line,
to disable the kernel console output. If there's a more standard
linux-y way of doing it, someone let me know and I'll do that instead!
I searched quickly, didn't find anything obvious.
Regards,
John
PS The STDIN/STDOUT parameters in the MSS file are not currently used in
the uClinux kernel / auto-config.
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/