From owner-freebsd-i386@FreeBSD.ORG Mon Sep 25 21:18:31 2006 Return-Path: X-Original-To: freebsd-i386@freebsd.org Delivered-To: freebsd-i386@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F7DF16A412; Mon, 25 Sep 2006 21:18:31 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB95743D62; Mon, 25 Sep 2006 21:18:29 +0000 (GMT) (envelope-from mexas@bristol.ac.uk) Received: from seis.bris.ac.uk ([137.222.10.93]) by dirg.bris.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1GRxqK-0003Du-1X; Mon, 25 Sep 2006 22:18:28 +0100 Received: from mech-aslap33.men.bris.ac.uk ([137.222.184.33]) by seis.bris.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1GRxoQ-0005e7-Hi; Mon, 25 Sep 2006 22:16:34 +0100 Received: from mech-aslap33.men.bris.ac.uk (localhost.men.bris.ac.uk [127.0.0.1]) by mech-aslap33.men.bris.ac.uk (8.13.4/8.13.4) with ESMTP id k8PLE4sX005158; Mon, 25 Sep 2006 22:14:04 +0100 (BST) (envelope-from mexas@bristol.ac.uk) Received: (from shterenl@localhost) by mech-aslap33.men.bris.ac.uk (8.13.4/8.13.4/Submit) id k8PLE42w005157; Mon, 25 Sep 2006 22:14:04 +0100 (BST) (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-aslap33.men.bris.ac.uk: shterenl set sender to mexas@bristol.ac.uk using -f Date: Mon, 25 Sep 2006 22:14:04 +0100 From: Anton Shterenlikht To: Remko Lodder Message-ID: <20060925211404.GA5109@mech-aslap33.men.bris.ac.uk> References: <200609130050.k8D0oQd0093872@freefall.freebsd.org> <4509898C.1090408@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4509898C.1090408@FreeBSD.org> User-Agent: Mutt/1.4.2.1i X-Spam-Score: -0.6 X-Spam-Level: / Cc: freebsd-i386@freebsd.org Subject: Re: i386/75887 : [pcvt] with vt0.disabled=0 and PCVT in kernel video/keyboard is lost when kernel loads X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Sep 2006 21:18:31 -0000 On Thu, Sep 14, 2006 at 06:55:40PM +0200, Remko Lodder wrote: > Anton Shterenlikht wrote: > >The following reply was made to PR i386/75887; it has been noted by GNATS. > > > > I think I hit the same problem in 6.0. > > I can send the full details if anybody is interested. > > Hello, by all means, please do, it might help us debugging > what is going on... > Below are the details. Let me know if anything else is missing. If I want to try to solve the problem myself where do I start? thanks anton Release: FreeBSD 6.0-RELEASE i386 Machine: Compaq Armada 1700 laptop Kernel: Thu Sep 14 10:40:41 BST 2006 /usr/src/sys/i386/compile/SC Please note that SC is the working kernel with sc console device. VT is the problem kernel with pcvt console device. /var/run/dmesg.boot Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.0-RELEASE #1: Thu Sep 14 10:40:41 BST 2006 shterenl@mech-aslap33.men.bris.ac.uk:/usr/src/sys/i386/compile/SC Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Pentium II/Pentium II Xeon/Celeron (233.34-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x652 Stepping = 2 Features=0x183f9ff real memory = 167772160 (160 MB) avail memory = 158879744 (151 MB) npx0: [FAST] npx0: on motherboard npx0: INT 16 interface cpu0 on motherboard pcib0: pcibus 0 on motherboard pci0: on pcib0 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1020-0x102f at device 7.1 on pci0 ata0: on atapci0 ata1: on atapci0 uhci0: port 0x1000-0x101f irq 11 at device 7.2 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pci0: at device 7.3 (no driver attached) pci0: at device 8.0 (no driver attached) cbb0: mem 0x7fffe000-0x7fffefff irq 11 at device 17.0 on pci0 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 cbb1: mem 0x7ffff000-0x7fffffff irq 11 at device 17.1 on pci0 cardbus1: on cbb1 pccard1: <16-bit PCCard bus> on cbb1 pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcafff on isa0 fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Generic PS/2 mouse, device ID 0 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (irq) unknown: can't assign resources (memory) Timecounter "TSC" frequency 233343079 Hz quality 800 Timecounters tick every 1.000 msec rl0: port 0x1100-0x11ff mem 0x88000000-0x880001ff irq 11 at device 0.0 on cardbus1 miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:02:44:7b:52:b8 ad0: 3102MB at ata0-master UDMA33 acd0: CDROM at ata0-slave PIO4 Trying to mount root from ufs:/dev/ad0s1a Description: I built a custom kernel with pcvt (vt) console driver enabled. I removed sc driver from the kernel configuration file. When I try to boot with this new kernel the machine freezes just after the kernel starts to load. How-To-Repeat: The kernel configuration file: /usr/src/sys/i386/conf/VT # vt video driver machine i386 cpu I686_CPU ident VT # To statically compile in device wiring instead of /boot/device.hints hints "VT.hints" # Default places to look for devices. makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols #options SCHED_ULE # ULE scheduler options SCHED_4BSD # 4BSD scheduler options PREEMPTION # Enable kernel thread preemption options INET # InterNETworking options INET6 # IPv6 communications protocols options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options MD_ROOT # MD is a potential root device options MSDOSFS # MSDOS Filesystem options CD9660 # ISO 9660 Filesystem options PROCFS # Process filesystem (requires PSEUDOFS) options PSEUDOFS # Pseudo-filesystem framework options GEOM_GPT # GUID Partition Tables. options COMPAT_43 # Compatible with BSD 4.3 [KEEP THIS!] options COMPAT_FREEBSD4 # Compatible with FreeBSD4 options COMPAT_FREEBSD5 # Compatible with FreeBSD5 options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI options KTRACE # ktrace(1) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions options KBD_INSTALL_CDEV # install a CDEV entry in /dev options AHC_REG_PRETTY_PRINT # Print register bitfields in debug # output. Adds ~128k to driver. options AHD_REG_PRETTY_PRINT # Print register bitfields in debug # output. Adds ~215k to driver. options ADAPTIVE_GIANT # Giant mutex is adaptive. device apic # I/O APIC # Bus support. device pci # Floppy drives device fdc # ATA and ATAPI devices device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives device atapifd # ATAPI floppy drives options ATA_STATIC_ID # Static device numbering # SCSI peripherals device scbus # SCSI bus (required for SCSI) device da # Direct Access (disks) # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc # AT keyboard controller device atkbd # AT keyboard device psm # PS/2 mouse device vga # VGA video card driver # syscons is the default console driver, resembling an SCO console #device sc # Enable this for the pcvt (VT220 compatible) console driver device vt options XSERVER # support for X server on a vt console options FAT_CURSOR # start with block cursor # Add suspend/resume support for the i8254. device pmtimer # PCCARD (PCMCIA) support # PCMCIA and cardbus bridge support device cbb # cardbus (yenta) bridge device pccard # PC Card (16-bit) bus device cardbus # CardBus (32-bit) bus # Serial (COM) ports device sio # 8250, 16[45]50 based serial ports # Parallel port device ppc device ppbus # Parallel port bus (required) device lpt # Printer device plip # TCP/IP over parallel device ppi # Parallel port interface device # PCI Ethernet NICs that use the common MII bus controller code. # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs! device miibus # MII bus support device rl # RealTek 8129/8139 # Pseudo devices. device loop # Network loopback device random # Entropy device device ether # Ethernet support device sl # Kernel SLIP device ppp # Kernel PPP device tun # Packet tunnel. device pty # Pseudo-ttys (telnet etc) device md # Memory "disks" device gif # IPv6 and IPv4 tunneling device faith # IPv6-to-IPv4 relaying (translation) # The `bpf' device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! # Note that 'bpf' is required for DHCP. device bpf # Berkeley packet filter # USB support device uhci # UHCI PCI->USB interface device ohci # OHCI PCI->USB interface device ehci # EHCI PCI->USB interface (USB 2.0) device usb # USB Bus (required) device ugen # Generic device umass # Disks/Mass storage - Requires scbus and da /usr/src/sys/i386/conf/VT.hints # hints to build statically into VT kernel. The only important bit is that # sc is disabled hint.acpi.0.disabled="1" hint.fdc.0.at="isa" hint.fdc.0.port="0x3F0" hint.fdc.0.irq="6" hint.fdc.0.drq="2" hint.fd.0.at="fdc0" hint.fd.0.drive="0" hint.fd.1.at="fdc0" hint.fd.1.drive="1" hint.ata.0.at="isa" hint.ata.0.port="0x1F0" hint.ata.0.irq="14" hint.ata.1.at="isa" hint.ata.1.port="0x170" hint.ata.1.irq="15" hint.atkbdc.0.at="isa" hint.atkbdc.0.port="0x060" hint.atkbd.0.at="atkbdc" hint.atkbd.0.irq="1" hint.psm.0.at="atkbdc" hint.psm.0.irq="12" hint.vga.0.at="isa" # #hint.sc.0.at="isa" #hint.sc.0.flags="0x100" #hint.sc.0.disabled="1" hint.vt.0.at="isa" # hint.apm.0.disabled="1" hint.apm.0.flags="0x20" hint.sio.0.at="isa" hint.sio.0.port="0x3F8" hint.sio.0.flags="0x10" hint.sio.0.irq="4" hint.sio.1.at="isa" hint.sio.1.port="0x2F8" hint.sio.1.irq="3" hint.sio.2.at="isa" hint.sio.2.disabled="1" hint.sio.2.port="0x3E8" hint.sio.2.irq="5" hint.sio.3.at="isa" hint.sio.3.disabled="1" hint.sio.3.port="0x2E8" hint.sio.3.irq="9" hint.ppc.0.at="isa" hint.ppc.0.irq="7" # EOF VT.hints I did not build any modules: /etc/make.conf MODULES_OVERRIDE = I did not touch the default /etc/rc.d/pcvt I built and installed the kernel as advised in the user manual: #cd /usr/src/sys/i386/conf #/usr/sbin/config VT #cd ../compile/VT #make cleandepend #make depend #make #make install I had no warnings or errors in the process. Fix: don't know