Re: [Ppcboot-users] Serail console conflict from ppcboot to linux
Gagneraud Christian <cgagneraud <at> anfora.fr>
2002-03-01 10:46:03 GMT
On Thu, 28 Feb 2002 21:33:21 +0100
Wolfgang Denk <wd <at> denx.de> wrote:
> In message <20020228162001.2f66e817.cgagneraud <at> anfora.fr> you wrote:
> >
> > I have a mpc8260ads board and ppcboot work fine.
> > I use HardHat linux 2.4.18-rc3.
>
> Is there really a HHL kernel version 2.4.18-rc3 out there? Where?
yes I use rsync -rv source.mvista.com::linuxppc_2_4_devel .
>
>
> > Linux boot corectly (tftp+nfsroot) only if i put console=ttyS1,...
> > this way i dont see kernel messages but i have the prompt.
> > if i use ttyS0 then i dont have the login prompt and kernel stop in seria> l driver.
>
> You must make sure that your kernel configuration for the serial
> console port matches that of PPCBoot; so if you use SCC1 for console
> in PPCBoot, you must make sure that the following #define's are set
> and CORRECT in "arch/ppc/8260_io/uart.c" when building the Linux
> kernel: CONFIG_SCC_CONSOLE, CONFIG_SERIAL_CONSOLE_PORT
Ok, from my autoconf.h:
/*
* Platform support
*/
#define CONFIG_PPC 1
#define CONFIG_PPC32 1
#define CONFIG_6xx 1
#undef CONFIG_4xx
#undef CONFIG_POWER3
#undef CONFIG_8xx
#undef CONFIG_PPC_ISERIES
#define CONFIG_8260 1
#define CONFIG_PPC_STD_MMU 1
#define CONFIG_SERIAL_CONSOLE 1
#define CONFIG_EST8260 1
#undef CONFIG_SBS8260
#undef CONFIG_RPX6
#undef CONFIG_TQM8260
#undef CONFIG_WILLOW
#undef CONFIG_SMP
#define CONFIG_EMBEDDEDBOOT 1
...
/*
* Macintosh device drivers
*/
/*
* Character devices
*/
#undef CONFIG_VT
#undef CONFIG_SERIAL
#undef CONFIG_SERIAL_EXTENDED
#undef CONFIG_SERIAL_NONSTANDARD
#define CONFIG_UNIX98_PTYS 1
#define CONFIG_UNIX98_PTY_COUNT (256)
...
/*
* MPC8260 Communication Options
*/
#define CONFIG_SCC_CONSOLE 1
#undef CONFIG_SCC_ENET
#define CONFIG_FEC_ENET 1
#undef CONFIG_FCC1_ENET
#define CONFIG_FCC2_ENET 1
#undef CONFIG_FCC3_ENET
#undef CONFIG_USE_MDIO
and my uart.c:
...
#ifdef CONFIG_SERIAL_CONSOLE
#include <linux/console.h>
/* SCC Console configuration. Not quite finished. The SCC_CONSOLE
* should be the number of the SCC to use, but only SCC1 will
* work at this time.
*/
#ifdef CONFIG_SCC_CONSOLE
#define SCC_CONSOLE 1
#endif
/* this defines the index into rs_table for the port to use
*/
#ifndef CONFIG_SERIAL_CONSOLE_PORT
#define CONFIG_SERIAL_CONSOLE_PORT 0
#endif
#endif
...
#ifndef SCC_CONSOLE
...
#else /* SCC_CONSOLE */
#define SCC_NUM_BASE 0 /* SCC base tty "number" */
#define SCC_IDX_BASE 0 /* table index */
static struct serial_state rs_table[] = {
/* UART CLK PORT IRQ FLAGS NUM */
{ 0, 0, PROFF_SCC1, SIU_INT_SCC1, 0, SCC_NUM_BASE},
{ 0, 0, PROFF_SCC2, SIU_INT_SCC2, 0, SCC_NUM_BASE + 1},
};
#endif /* SCC_CONSOLE */
...
So I have CONFIG_SERIAL_CONSOLE=1, SCC_CONSOLE=1, CONFIG_SERIAL_CONSOLE_PORT=0
With this I normally have SCC1 as ttyS0 (rs_table[0]) and SCC2 as ttyS1 (rs_table[0]).
and with
T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100
T1:23:respawn:/sbin/getty -L ttyS1 115200 vt100
in my /etc/initab it would work but...
I think i have to resolv the Ppar,Psor,Pdir configuration.
I'm new in embedded linux and in PowerPC and i'm a young engineer (mostly hardware)!.
>
> > I have to printk some messages because i havent debugger.
>
> Get one. Life will be easier.
Yes, will be soon...
thanks.
Christian
>
> Wolfgang Denk
>
> --
> Software Engineering: Embedded and Realtime Systems, Embedded Linux
> Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd <at> denx.de
> Where people stand is not as important as which way they face.
> - Terry Pratchett & Stephen Briggs, _The Discworld Companion_
>
> _______________________________________________
> Ppcboot-users mailing list
> Ppcboot-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ppcboot-users
>
--
--
/**********************************************
* Christian Gagneraud
***********************************************
* cgagneraud <at> anfora.fr
***********************************************
* ANFORA
* bat Actys, Voie3
* 31313 Labège Innopole
* FRANCE
***********************************************/