Re: [uCsimm] Bootloader environment variables

From: Vladimir A. Gurevich (vgurevic@cisco.com)
Date: Tue Jan 18 2000 - 03:45:36 EST


Hello Claudio,

Claudio Duffini wrote:

> I wonder if should exist some method to avoid a ton of
> characters on the rs232 port when bootloader and uClinux starts.

I don't know what to do about the bootloader, but it should be
relatively simple to get rid of uClinux boot messages by
redefining printk() and recompiling the sources.

Specifically, in arch/m68knommu/platform/68EZ328/config.c
you can see the following piece of code:

#ifdef CONFIG_68328_SERIAL
  extern void console_print_68328(const char * b);
  register_console(console_print_68328);
#endif
 
console_print_68328() is defined in drivers/char/68328serial.c
and it outputs a string directly to dragonball's serial port.

If you replace this function with something else (in the
extreme case with a function which does nothing) you'll
be able to redirect all your printk messages.

To silence the rest you'll probably need to modify your /etc/rc
file so that it doesn't output anything on the console.

And you've probably removed getty from /etc/inittab already.

You could still get kernel messages by doing

    cat /proc/kmesg

Happy hacking,
Vladimir

-- 
+------------------+------------------------+--------------------------+
                   |      |          |      |
                   |     :|:        :|:     | phone         408-525-9707
Vladimir Gurevich  |    :|||:      :|||:    | fax           408-527-1713
Software Engineer  | .:|||||||:..:|||||||:. |
    NUBU/DIAL      |      CiscoSystems      | e-mail  vgurevic@cisco.com
                   |                        | location SJ-7-2 Cube D1-12
                   |  http://www.cisco.com  |
+------------------+------------------------+--------------------------+
This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/



This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:34 EST