All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dong Liu <dliu@npiww.com>
To: "William J. Earl" <wje@fir.engr.sgi.com>
Cc: ralf@uni-koblenz.de, linux@cthulhu.engr.sgi.com
Subject: Re: serial console
Date: Thu, 2 Apr 1998 18:53:46 -0500	[thread overview]
Message-ID: <199804022353.SAA15219@pluto.npiww.com> (raw)
In-Reply-To: <199804022316.PAA01989@fir.engr.sgi.com>

William J. Earl writes:
 > ralf@uni-koblenz.de writes:
 >  > On Thu, Apr 02, 1998 at 03:06:21PM -0500, Dong Liu wrote:
 >  > 
 >  > > Ok, I got a serial cable , connect it, type "nvram console d", now I
 >  > > can boot irix from a serial terminal, but for linux, the message
 >  > > didn't come out, maybe all the serial parameters are not set right.
 >  > 
 >  > Linux doesn't accept the value ``dd'' for the console variable.  If you
 >  > try, Linux should complain about the setting and enter the interactive
 >  > firmware mode again.  Could you try setting console to either d1 or d2
 >  > according to the serial line you're using?
 > 
 >      For reduced user confusion, accepting "console=d" as an alias
 > for "console=d1" might reduce user confusion.
 > 

Yes, but from arch/mips/sgi/setup.c

	ctype = prom_getenv("console");
	serial_console = 0;
	if(*ctype == 'd') {
		if(*(ctype+1)=='2')
			serial_console = 1;
		else
			serial_console = 2;
		if(!serial_console) {
			prom_printf("Weird console env setting %s\n", ctype);
			prom_printf("Press a key to reboot.\n");
			prom_getchar();
			prom_imode();
		}
	}

It got it the wrong serial_console, "d2" means serial port 1, "d"
means serial port 2.

Any way, I think I found out why serial port doesn't work, con_init()
call rs_cons_hook() before rs_init got called. 

But now I got another problem, I got the patch from
ftp://zero.aec.at/pub/sgi-linux, using the same .config file from the
same ftp site, I got

Exception: <vector=UTLB Miss>
Status register: 0x30044803<CU1,CU0,CH,IM7,IM4,IPL=???,MODE=KERNEL,EXL,IE>
Cause register: 0x8008<CE=0,IP8,EXC=RMISS>
Exception PC: 0x880ec7f0, Exception RA: 0x880f0294
exception, bad address: 0x0
Local I/O interrupt register 1: 0x80 <VR/GIO2>
  Saved user regs in hex (&gpda 0xa8740e08, &_regs 0xa8741008):
  arg: 0 8bfffcae 8bfffc24 88107498
  tmp: e 8813e5bc a 8811216c 100000 88100000 0 48
  sve: 88121228 2 8813e570 4 4 1 88121220 9fc47a40
  t8 48 t9 bfbd9833 at 4f v0 1 v1 88107498 k1 bad11bad
  gp 8bf70000 fp 9fc47bac sp 8bfff840 ra 880f0294

PANIC: Unexpected exception

[Press reset or ENTER to restart.]

So I can't compile the kernel my self:=(.

Dong

  reply	other threads:[~1998-04-02 23:40 UTC|newest]

Thread overview: 71+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-02 17:31 kernel panic Ulf Carlsson
1998-04-02 17:29 ` ralf
1998-04-02 18:55 ` Dong Liu
1998-04-02 18:47   ` ralf
1998-04-02 19:22     ` Dong Liu
1998-04-02 20:37       ` ralf
1998-04-02 21:10         ` Dong Liu
1998-04-02 20:06     ` serial console Dong Liu
1998-04-02 21:35       ` ralf
1998-04-02 23:16         ` William J. Earl
1998-04-02 23:53           ` Dong Liu [this message]
1998-04-03  0:47             ` ralf
1998-04-04 20:27         ` Oliver Frommel
  -- strict thread matches above, loose matches on Subject: below --
2000-02-11 17:08 Pat O'Rourke
2000-02-11 21:04 ` Matthew Jacob
2000-02-11 21:21 ` Pat O'Rourke
2000-12-05 12:04 Serial Console Steve Hill
2000-12-05 12:11 ` Miquel van Smoorenburg
2000-12-05 14:44 ` Paul Jakma
2000-12-05 14:58   ` Steve Hill
2000-12-05 15:07     ` Chad Schwartz
2000-12-05 15:14     ` Paul Jakma
2000-12-05 15:28       ` Steve Hill
2000-12-05 15:38         ` Chad Schwartz
2000-12-05 16:25       ` Rogier Wolff
2000-12-05 17:00         ` Miquel van Smoorenburg
2000-12-06 13:09 ` Vitaly Luban
2000-12-05 15:20 Jon Burgess
2000-12-05 16:03 ` Chad Schwartz
2000-12-05 18:09 Jon Burgess
     [not found] <200208191108120240.0D409F0A@192.168.128.16>
2002-08-19  9:10 ` Carlos Velasco
2002-08-19  9:18   ` Russell King
2002-08-19  9:10 ` Carlos Velasco
2002-08-19 13:17   ` Stuart MacDonald
2003-01-16 21:06 Aman
2003-03-04 14:53 Aman
2003-03-04 15:40 ` Mark Hatle
2003-03-04 17:06   ` Ibon Gotxi Garcia
2003-03-04 19:09     ` Dave Wolfe
     [not found] <3174569B9743D511922F00A0C943142309F80D9F@TYANWEB>
     [not found] ` <20050516205731.GA5914@waste.org>
2005-05-16 23:15   ` serial console Matt Mackall
2005-05-16 23:37     ` Andrew Morton
2005-05-16 23:47       ` Matt Mackall
2005-05-17  1:24         ` Coywolf Qi Hunt
2005-05-17  2:26           ` Matt Mackall
2005-05-17  2:40             ` Coywolf Qi Hunt
2005-05-17  2:19     ` Rob Landley
2005-07-30  1:06 Serial console Daniel Ann
2005-07-30  1:19 ` Josh Boyer
2005-07-30  1:36   ` Daniel Ann
2005-07-30  5:46     ` Daniel Ann
2005-07-30  1:27 ` Ricardo Scop
2005-07-30  1:34   ` Daniel Ann
2005-07-30 10:37 ` Anton Wöllert
2005-08-01  1:27   ` Daniel Ann
2005-08-02  3:38     ` JohnsonCheng
2005-08-02 13:39       ` Kumar Gala
2005-08-03  0:16         ` Daniel Ann
2005-10-04  6:54 serial console KokHow Teh
2005-10-04 15:11 ` David Jander
2005-10-04 15:16   ` Vitaly Bordug
2005-10-05  9:16     ` David Jander
2005-10-05  2:32 KokHow Teh
2005-10-05  2:36 KokHow Teh
2005-10-05 12:23 ` Vitaly Bordug
2006-05-21 16:00 Raymond Burns
2006-05-22  2:57 ` David S. Miller
2006-05-22  6:09 ` Raymond Burns
2009-07-08  9:53 sylarrrrrrr
2009-07-08 19:13 ` Pavel Roskin
2009-12-30 15:52 Riccardo Veraldi
2009-12-30 16:28 ` Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199804022353.SAA15219@pluto.npiww.com \
    --to=dliu@npiww.com \
    --cc=linux@cthulhu.engr.sgi.com \
    --cc=ralf@uni-koblenz.de \
    --cc=wje@fir.engr.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.