Hi Greg,

On Fri, Nov 30, 2007 at 01:35:31AM +0100, Wolfgang Wegner wrote:
> 
> > The console device can be defined on the kernel command line,
> > with something line "console=ttyS2". Of course hacking the
> > driver will also work :-)

setting the console via the command line now works as it should -
probably it was just incidentally that the _copy_romfs problem
prohibited my kernel to start at the same time I did not have the
old hack in place.

I still wonder why the first log messages are not there, but I as I now
know I have to look for CON_PRINTBUFFER, maybe I can figure this out, too.

> But still at least for the console stuff, I remember there were 2 or 3
> base address assignments missing for ports >= ttyS2 in the driver.
> 
> My tree is quite messy at the moment, so I can not provide a proper patch
> for the latter, but tomorrow I could look for these lines and post them
> here.

The things are in mcfrs_init_console:

        uartp = (volatile unsigned char *) (MCF_MBAR +
#if defined(CONFIG_M532x)
                ((mcfrs_console_port==2) ? MCFUART_BASE3 :
                ((mcfrs_console_port) ? MCFUART_BASE2 : MCFUART_BASE1)));
#else
                (mcfrs_console_port ? MCFUART_BASE2 : MCFUART_BASE1));
#endif  

and mcfrs_put_char:

        uartp = (volatile unsigned char *) (MCF_MBAR +
#if defined(CONFIG_M532x)
                                ((mcfrs_console_port==2) ? MCFUART_BASE3 :
                                ((mcfrs_console_port) ? MCFUART_BASE2 : 
MCFUART_BASE1)));
#else
                                (mcfrs_console_port ? MCFUART_BASE2 : 
MCFUART_BASE1));
#endif  

I do not have the original code here at the moment, I hope uartp is there
already. Even with my "patch", the fourth serial port is still not considered,
while the rest of mcfrs_serial has support for it.

It was a quite bad idea not to use ttyS0 for the console port anyways -
ttyS0 is simply "the standard" and everything else gives you many pitfalls.

Best regards,
Wolfgang

_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to