linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* console parameter ignored
  2004-04-29 15:20     ` Glynn Clements
@ 2004-04-29 16:26       ` A. R. Vener
  2004-04-30  6:34         ` terry white
  0 siblings, 1 reply; 6+ messages in thread
From: A. R. Vener @ 2004-04-29 16:26 UTC (permalink / raw)
  To: linux-admin


Hi all,
I am trying to boot a linux box using kernel v 2.4.13
to use the serial !0 device as its console.

My grub config file contains the correct arguments and the S0 device works
fine for the grub boot loader and  for serial login
in run level 3, but the kernel insists on using the keyboard and
monitor as its console during boot and initialization.


I'm including the relevant output from  my dmesg 
and scratching my head. Can anyone tell me why the 
kernel is not using the ttyS0 serial port as its console?

Thanks,
Rudy Vener

dmesg output follows:
Linux version 2.4.13 (bishop@ol311d.drift.platypus.bc.ca) (gcc version 2.95.2 19991024 (release)) #19D SMP Sun Oct 13 22:55:19 PDT 2002
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000000f7f0000 (usable)
 BIOS-e820: 000000000f7f0000 - 000000000f7f3000 (ACPI NVS)
 BIOS-e820: 000000000f7f3000 - 000000000f800000 (ACPI data)
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
Scanning bios EBDA for MXT signature
Advanced speculative caching feature not present
On node 0 totalpages: 63472
zone(0): 4096 pages.
zone(1): 59376 pages.
zone(2): 0 pages.
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
Kernel command line: ro root=/dev/hda1 console=tty0 console=ttyS0,38400n8
Initializing CPU#0
Detected 851.941 MHz processor.
Console: colour dummy device 80x25
Calibrating delay loop... 1697.38 BogoMIPS
Memory: 247172k/253888k available (1059k kernel code, 6332k reserved, 264k data, 264k init, 0k highmem)
Dentry-cache hash table entries: 32768 (order: 6, 262144 bytes)
Inode-cache hash table entries: 16384 (order: 5, 131072 bytes)
Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
Buffer-cache hash table entries: 16384 (order: 4, 65536 bytes)
Page-cache hash table entries: 65536 (order: 6, 262144 bytes)
CPU: Before vendor init, caps: 0183fbff c1c7fbff 00000000, vendor = 2
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 64K (64 bytes/line)
CPU: After vendor init, caps: 0183fbff c1c7fbff 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: 0183fbff c1c7fbff 00000000 00000000
CPU:             Common caps: 0183fbff c1c7fbff 00000000 00000000
Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
CPU: Before vendor init, caps: 0183fbff c1c7fbff 00000000, vendor = 2
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 64K (64 bytes/line)
CPU: After vendor init, caps: 0183fbff c1c7fbff 00000000 00000000
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: 0183fbff c1c7fbff 00000000 00000000
CPU:             Common caps: 0183fbff c1c7fbff 00000000 00000000
CPU0: AMD Duron(tm) processor stepping 01
per-CPU timeslice cutoff: 182.84 usecs.
SMP motherboard not detected.
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 851.9146 MHz.
..... host bus clock speed is 200.4505 MHz.
cpu: 0, clocks: 2004505, slice: 1002252
CPU0<T0:2004496,T1:1002240,D:4,S:1002252,C:2004505>
Waiting on wait_init_idle (map = 0x0)
All processors have done init_idle
PCI: PCI BIOS revision 2.10 entry at 0xfb3f0, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Using IRQ router SIS [1039/0008] at 00:01.0
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
mxt_scan_bios: enter
Starting kswapd v1.8
VFS: Diskquotas version dquot_6.5.0 initialized
vesafb: framebuffer at 0xa0000, mapped to 0xc00a0000, size 128k
vesafb: mode is 640x480x4, linelength=80, pages=17862
vesafb: scrolling: redraw
Console: switching to colour frame buffer device 80x30
fb0: VESA VGA frame buffer device
pty: 1024 Unix98 ptys configured
block: queued sectors max/low 163960kB/54653kB, 512 slots per queue
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
SIS5513: IDE controller on PCI bus 00 dev 01
SIS5513: chipset revision 208
SIS5513: not 100% native mode: will probe irqs later
SiS730
    ide0: BM-DMA at 0x4000-0x4007, BIOS settings: hda:DMA, hdb:DMA
    ide1: BM-DMA at 0x4008-0x400f, BIOS settings: hdc:pio, hdd:pio
hda: Maxtor 2B020H1, ATA DISK drive
hdb: LTN526D, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: 40020624 sectors (20491 MB) w/2048KiB Cache, CHS=2491/255/63, UDMA(100)
Partition check:
 hda: hda1 hda2
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
Cronyx Ltd, Synchronous PPP and CISCO HDLC (c) 1994
Linux port (c) 1998 Building Number Three Ltd & Jan "Yenya" Kasprzak.
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
IEEE 802.2 LLC for Linux 2.1 (c) 1996 Tim Alpaerts
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 16384)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: AppleTalk 0.18a for Linux NET4.0
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 264k freed
mice: PS/2 mouse device common for all mice
ide-floppy driver 0.97.sv
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
  Vendor: LITEON    Model: CD-ROM LTN526D    Rev: YSR7
  Type:   CD-ROM                             ANSI SCSI revision: 02
8139too Fast Ethernet driver 0.9.20
PCI: Found IRQ 11 for device 00:0d.0
PCI: Sharing IRQ 11 with 00:01.2
PCI: Sharing IRQ 11 with 00:01.3
eth0: RealTek RTL8139 Fast Ethernet at 0xd0038000, 00:07:95:4e:43:b0, IRQ 11
eth0:  Identified 8139 chip type 'RTL-8139C'
Trident 4DWave/SiS 7018/ALi 5451,Tvia CyberPro 5050 PCI Audio, version 0.14.9d, 23:29:39 Oct 13 2002
PCI: Found IRQ 12 for device 00:01.4
trident: SiS 7018 PCI Audio found at IO 0xe000, IRQ 12
ac97_codec: AC97 Audio codec, id: 0x414c:0x4710 (ALC200/200P)
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: Found IRQ 11 for device 00:01.2
PCI: Sharing IRQ 11 with 00:01.3
PCI: Sharing IRQ 11 with 00:0d.0
usb-ohci.c: USB OHCI at membase 0xd0059000, IRQ 11
usb-ohci.c: usb-00:01.2, Silicon Integrated Systems [SiS] 7001
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 3 ports detected
PCI: Found IRQ 11 for device 00:01.3
PCI: Sharing IRQ 11 with 00:01.2
PCI: Sharing IRQ 11 with 00:0d.0
usb-ohci.c: USB OHCI at membase 0xd005b000, IRQ 11
usb-ohci.c: usb-00:01.3, Silicon Integrated Systems [SiS] 7001 (#2)
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 3 ports detected
8139cp 10/100 PCI Ethernet driver v0.0.5 (Oct 19, 2001)
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 196M
agpgart: Detected SiS 730 chipset
agpgart: AGP aperture is 64M @ 0xd8000000
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]
parport0: irq 7 detected
parport0: cpp_daisy: aa5500ff(38)
parport0: assign_addrs: aa5500ff(38)
parport0: cpp_daisy: aa5500ff(38)
parport0: assign_addrs: aa5500ff(38)
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI ISAPNP enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
NET4: Linux IPX 0.47 for NET4.0
IPX Portions Copyright (c) 1995 Caldera, Inc.
IPX Portions Copyright (c) 2000, 2001 Conectiva, Inc.
eth0: Setting 100mbps full-duplex based on auto-negotiated partner ability 45e1.
eth0: Setting 100mbps full-duplex based on auto-negotiated partner ability 45e1.
spurious 8259A interrupt: IRQ7.
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 52x/52x cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
lp0: using parport0 (polling).
lp0: console ready

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: console parameter ignored
  2004-04-29 16:26       ` console parameter ignored A. R. Vener
@ 2004-04-30  6:34         ` terry white
  2004-05-03 20:51           ` Bill Carlson
  0 siblings, 1 reply; 6+ messages in thread
From: terry white @ 2004-04-30  6:34 UTC (permalink / raw)
  To: linux-admin

... ciao:

on "4-29-2004" "A. R. Vener" writ:"


: to use the serial !0 device as its console.

    i'd start by looking here:

	"/dev/hda1 console=tty0 console=ttyS0,38400n8"

    instead of 'console=tty0', let me suggest "/dev/ttyS0" , or something
like it.


: My grub config

   "I Know Nodthing" ...


-- 
... i'm a man, but i can change,
    if i have to , i guess ...


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: console parameter ignored
  2004-04-30  6:34         ` terry white
@ 2004-05-03 20:51           ` Bill Carlson
  2004-05-03 21:30             ` A. R. Vener
  0 siblings, 1 reply; 6+ messages in thread
From: Bill Carlson @ 2004-05-03 20:51 UTC (permalink / raw)
  To: linux-admin

On Thu, 29 Apr 2004, terry white wrote:

> ... ciao:
> 
> on "4-29-2004" "A. R. Vener" writ:"
> 
> 
> : to use the serial !0 device as its console.
> 
>     i'd start by looking here:
> 
> 	"/dev/hda1 console=tty0 console=ttyS0,38400n8"
> 
>     instead of 'console=tty0', let me suggest "/dev/ttyS0" , or something
> like it.

No, look at serial-console.txt in the kernel Documentation, the above 
syntax is correct for the kernel.

Rudy, you'll need to tell grub to support serial; I prefer lilo and one 
has to tell lilo specifically to support serial as well as add the kernel 
parameters. You'll have to figure out what to tell grub.

Also, double check your kernel parameters are being read correctly by 
checking /proc/cmdline.

Bill Carlson
-- 
Systems Administrator    wcarlson@vh.org      | Anything is possible,
Virtual Hospital      http://www.vh.org/      | given time and money.
University of Iowa Hospitals and Clinics      |       
Opinions are mine, not my employer's.         | 




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: console parameter ignored
  2004-05-03 20:51           ` Bill Carlson
@ 2004-05-03 21:30             ` A. R. Vener
  2004-05-03 23:02               ` Milan P. Stanic
  0 siblings, 1 reply; 6+ messages in thread
From: A. R. Vener @ 2004-05-03 21:30 UTC (permalink / raw)
  To: linux-admin

Grub supports the serial console just fine. I can use it during the GRUB boot 
process to select   the linux image and command line options I want.

The problem happens when the kernel takes over and begins  printing 
messages to the console or waiting for input from the console in case of fsck 
failure.  

The /proc/cmdline file shows:
ro root=/dev/hda1 console=tty0 console=ttyS0,38400n8

So apparently the kernel is reading the command line arguments correctly.

For some reason, the kernel is  not using  ttyS0 for its console.  The kernel 
boot messages go to the video screen and  input is read from the keyboard.

Once the boot process reaches run level 3 however,  the getty process on ttyS0 
works and I can login, assuming all goes well.

Since GRUB and getty  both work with the ttyS0 serial port, there
is obviously nothing wrong with it per se. So I am left with the 
conclusion that for some reason the kernel is refusing to use the ttyS0 port 
as its console.

On Mon, May 03, 2004 at 03:51:52PM -0500, Bill Carlson wrote:
> No, look at serial-console.txt in the kernel Documentation, the above 
> syntax is correct for the kernel.
> 
> Rudy, you'll need to tell grub to support serial; I prefer lilo and one 
> has to tell lilo specifically to support serial as well as add the kernel 
> parameters. You'll have to figure out what to tell grub.
> 
> Also, double check your kernel parameters are being read correctly by 
> checking /proc/cmdline.
> 
> Bill Carlson

Rudy Vener

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: console parameter ignored
  2004-05-03 21:30             ` A. R. Vener
@ 2004-05-03 23:02               ` Milan P. Stanic
  0 siblings, 0 replies; 6+ messages in thread
From: Milan P. Stanic @ 2004-05-03 23:02 UTC (permalink / raw)
  To: linux-admin

On Mon, May 03, 2004 at 05:30:49PM -0400, A. R. Vener wrote:
> For some reason, the kernel is  not using  ttyS0 for its console.  The kernel 
> boot messages go to the video screen and  input is read from the keyboard.

Does it have compiled in support for serial console?
 
> Once the boot process reaches run level 3 however,  the getty process on ttyS0 
> works and I can login, assuming all goes well.

That convince me that the your kernel image doesn't have support for
serial console, but I can be wrong.
 
> Since GRUB and getty  both work with the ttyS0 serial port, there
> is obviously nothing wrong with it per se. So I am left with the 
> conclusion that for some reason the kernel is refusing to use the ttyS0 port 
> as its console.

Se above.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: console parameter ignored
@ 2004-05-04  2:52 Jim C. Brown
  0 siblings, 0 replies; 6+ messages in thread
From: Jim C. Brown @ 2004-05-04  2:52 UTC (permalink / raw)
  To: salt; +Cc: linux-admin

On Mon, May 03, 2004 at 05:30:49PM -0400, A. R. Vener wrote:
<snip>
> Since GRUB and getty  both work with the ttyS0 serial port, there
> is obviously nothing wrong with it per se. So I am left with the 
> conclusion that for some reason the kernel is refusing to use the ttyS0 port 
> as its console.
<snip>

Are you sure that you compiled that support into your kernel? If you don't
have support for using the serial port as the system console option set,
then the kernel can not use it wheb booting and will have to use the
video/keyboard instead.

-- 
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-05-04  2:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-04  2:52 console parameter ignored Jim C. Brown
  -- strict thread matches above, loose matches on Subject: below --
2004-04-28 15:31 Kernel panic: VFS: unable to mount fs on 09:00 Ralica Kirilova
2004-04-28 18:37 ` Kevin J. Cummings
2004-04-29  7:24   ` Ralica Kirilova
2004-04-29 15:20     ` Glynn Clements
2004-04-29 16:26       ` console parameter ignored A. R. Vener
2004-04-30  6:34         ` terry white
2004-05-03 20:51           ` Bill Carlson
2004-05-03 21:30             ` A. R. Vener
2004-05-03 23:02               ` Milan P. Stanic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).