Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jul 2001 23:41:15 -0400
From:      Brian Szymanski <brian.szymanski@cornell.edu>
To:        freebsd-questions@freebsd.org
Subject:   Re: custom kernel boots but has no terminal interaction
Message-ID:  <5.1.0.14.0.20010723233956.00b150a0@localhost>
In-Reply-To: <01072320501000.18414@omsk.mushinsky.net>
References:  <5.1.0.14.0.20010723173659.00b13ec0@localhost> <5.1.0.14.0.20010723173659.00b13ec0@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
At 08:50 PM 7/23/01 -0400, you wrote:
>Can you send boot messages and the output of
>ps -auxww
>?
>Perhaps the kernel thinks you are using a serial console or something.... It
>probably does not associate your monitor with the default console.

babel:~/tmp$ dmesg
Copyright (c) 1992-2001 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 4.3-RELEASE #0: Mon Jul 23 18:47:42 EDT 2001
     root@babel.wuhjuhbuh.2y.net:/usr/src/sys/compile/BABEL
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium/P54C (99.47-MHz 586-class CPU)
   Origin = "GenuineIntel"  Id = 0x526  Stepping = 6
   Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
real memory  = 67108864 (65536K bytes)
avail memory = 62025728 (60572K bytes)
Preloaded elf kernel "kernel.exp" at 0xc034f000.
Intel Pentium detected, installing workaround for F00F bug
md0: Malloc disk
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
atapci0: <Generic PCI ATA controller> port 0x6000-0x600f at device 1.0 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <SiS model 0204 VGA-compatible display device> at 8.0
dc0: <82c169 PNIC 10/100BaseTX> port 0x6200-0x62ff mem 
0xf0410000-0xf04100ff irq 11 at device 10.0 on pci0
dc0: Ethernet address: 00:a0:cc:23:c8:88
miibus0: <MII bus> on dc0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isa0: <ISA bus> on motherboard
fdc0: <NEC 765 or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
IP Filter: v3.4.16 initialized.  Default = pass all, Logging = enabled
ad0: 29311MB <Maxtor 53073U6> [59554/16/63] at ata0-master WDMA2
acd0: CDROM <685A> at ata1-master using PIO3
Mounting root from ufs:/dev/ad0s1a
IP Filter: already initialized

babel:~/tmp$ ps auxww
USER     PID %CPU %MEM   VSZ  RSS  TT  STAT STARTED      TIME COMMAND
root     306 10.5  3.6  2356 2232  ??  I    11:25PM   0:09.70 
/usr/local/lib/sfs-0.5/sfsrwcd
root     253  1.6  2.7  2488 1684  ??  Is   11:25PM   0:03.08 /usr/sbin/sshd
root     352  1.1  3.4  2580 2072  ??  S    11:25PM   0:00.89 sshd: 
ski@ttyp0 (sshd)
root       3  0.0  0.0     0    0  ??  DL    7:24PM   0:00.00  (vmdaemon)
root       4  0.0  0.0     0    0  ??  DL    7:24PM   0:00.00  (bufdaemon)
root       5  0.0  0.0     0    0  ??  DL    7:24PM   0:00.02  (syncer)
root      28  0.0  0.2   208   92  ??  Is    7:24PM   0:00.00 adjkerntz -i
root     138  0.0  1.2   908  740  ??  Ss   11:24PM   0:00.01 /sbin/ipmon -Ds
root     220  0.0  1.1   936  664  ??  Ss   11:25PM   0:00.38 syslogd -s
daemon   224  0.0  0.8   924  504  ??  Is   11:25PM   0:00.01 /usr/sbin/portmap
root     244  0.0  1.2  1040  752  ??  Is   11:25PM   0:00.05 inetd -w -W -l
root     246  0.0  1.2   968  732  ??  Is   11:25PM   0:00.04 /usr/sbin/cron
root     249  0.0  3.3  2484 2020  ??  Is   11:25PM   0:00.02 sendmail: 
accepting connections (sendmail)
root     282  0.0  1.0  1008  624  ??  I    11:25PM   0:00.06 
/usr/local/bin/bash /root/bin/StunnelStart
root     285  0.0  2.4  2308 1476  ??  Is   11:25PM   0:00.03 
/usr/local/sbin/sfssd
root     288  0.0  0.8   876  508  ??  I    11:25PM   0:00.02 
/usr/bin/logger -p daemon.notice -t
root     298  0.0  2.6  2128 1632  ??  I    11:25PM   0:00.17 stunnel -f -p 
/usr/local/etc/stunnel.pem -d imaps -r localhost:imap
root     299  0.0  3.5  3060 2176  ??  Is   11:25PM   0:00.28 
/usr/local/sbin/sfscd -l
root     301  0.0  0.8   876  508  ??  I    11:25PM   0:00.02 
/usr/bin/logger -p daemon.notice -t
root     308  0.0  2.8  2284 1716  ??  Is   11:25PM   0:00.10 nfsmounter /sfs
root     341  0.0  2.8  2048 1716  ??  Ss   11:25PM   0:00.22 
/usr/local/sbin/httpd
nobody   347  0.0  2.8  2072 1708  ??  I    11:25PM   0:00.01 
/usr/local/sbin/httpd
nobody   348  0.0  2.8  2072 1708  ??  I    11:25PM   0:00.01 
/usr/local/sbin/httpd
nobody   349  0.0  2.8  2072 1708  ??  I    11:25PM   0:00.01 
/usr/local/sbin/httpd
nobody   350  0.0  2.8  2072 1708  ??  I    11:25PM   0:00.01 
/usr/local/sbin/httpd
nobody   351  0.0  2.8  2072 1708  ??  I    11:25PM   0:00.01 
/usr/local/sbin/httpd
ski      353  0.0  1.5  1056  896  p0  Ss   11:25PM   0:00.16 -bash (bash)
ski      356  0.0  1.1   916  644  p0  R+   11:25PM   0:00.04 script probs
ski      357  0.0  1.5  1056  896  p1  Ss   11:25PM   0:00.06 
/usr/local/bin/bash -i
root       0  0.0  0.0     0    0  ??  DLs   7:24PM   0:00.00  (swapper)
ski      359  0.0  0.4   420  240  p1  R+   11:25PM   0:00.00 ps auxww
root       1  0.0  0.5   528  308  ??  ILs   7:24PM   0:00.02 /sbin/init --
root       2  0.0  0.0     0    0  ??  DL    7:24PM   0:00.00  (pagedaemon)

babel:~/tmp$ cat /root/BABEL
# GENERIC -- Generic kernel configuration file for FreeBSD/i386
#
# For more information on this file, please read the handbook section on
# Kernel Configuration Files:
#
#    http://www.FreeBSD.org/handbook/kernelconfig-config.html
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# device lines is also present in the ./LINT configuration file. If you are
# in doubt as to the purpose or necessity of a line, check first in LINT.
#
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.246.2.20 2000/10/31 23:16:07 
n_hibma Exp $

machine         i386
#cpu            I386_CPU
#cpu            I486_CPU
cpu             I586_CPU
#cpu            I686_CPU
ident           BABEL
maxusers        32

makeoptions     DEBUG=-g                #Build kernel with gdb(1) debug symbols

options         MATH_EMULATE            #Support for x87 emulation
options         INET                    #InterNETworking
options         INET6                   #IPv6 communications protocols
options         FFS                     #Berkeley Fast Filesystem
options         SOFTUPDATES             #Enable FFS soft updates support
#options        MFS                     #Memory Filesystem
options         MD_ROOT                 #MD is a potential root device
options         NFS                     #Network Filesystem
#options        NFS_ROOT                #NFS usable as root device, NFS 
required
options         MSDOSFS                 #MSDOS Filesystem
options         CD9660                  #ISO 9660 Filesystem
#options        CD9660_ROOT             #CD-ROM usable as root, CD9660 required
options         PROCFS                  #Process filesystem
options         COMPAT_43               #Compatible with BSD 4.3 [KEEP THIS!]
options         SCSI_DELAY=15000        #Delay (in ms) before probing SCSI
options         UCONSOLE                #Allow users to grab the console
#options        USERCONFIG              #boot -c editor
#options        VISUAL_USERCONFIG       #visual boot -c editor
options         KTRACE                  #ktrace(1) support
options         SYSVSHM                 #SYSV-style shared memory
options         SYSVMSG                 #SYSV-style message queues
options         SYSVSEM                 #SYSV-style semaphores
options         P1003_1B                #Posix P1003_1B real-time extensions
options         _KPOSIX_PRIORITY_SCHEDULING
options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
#allow ipf just for paranoia's sake
options         IPFILTER                #ipfilter support
options         IPFILTER_LOG            #ipfilter logging

# To make an SMP kernel, the next two are needed
#options        SMP                     # Symmetric MultiProcessor Kernel
#options        APIC_IO                 # Symmetric (APIC) I/O

device          isa
device          eisa
device          pci

# Floppy drives
device          fdc0    at isa? port IO_FD1 irq 6 drq 2
device          fd0     at fdc0 drive 0
device          fd1     at fdc0 drive 1

# ATA and ATAPI devices
device          ata
device          atadisk                 # ATA disk drives
device          atapicd                 # ATAPI CDROM drives
device          atapifd                 # ATAPI floppy drives
device          atapist                 # ATAPI tape drives
options         ATA_STATIC_ID           #Static device numbering

# SCSI Controllers
#device         ahb             # EISA AHA1742 family
#device         ahc             # AHA2940 and onboard AIC7xxx devices
#device         amd             # AMD 53C974 (Teckram DC-390(T))
#device         isp             # Qlogic family
#device         ncr             # NCR/Symbios Logic
#device         sym             # NCR/Symbios Logic (newer chipsets)
#options                SYM_SETUP_LP_PROBE_MAP=0x40
                                 # Allow ncr to attach legacy NCR devices when
                                 # both sym and ncr are configured

#device         adv0    at isa?
#device         adw
#device         bt0     at isa?
#device         aha0    at isa?
#device         aic0    at isa?

#device         ncv             # NCR 53C500
#device         nsp             # Workbit Ninja SCSI-3
#device         stg             # TMC 18C30/18C50

# SCSI peripherals
device          scbus           # SCSI bus (required)
#device         da              # Direct Access (disks)
#device         sa              # Sequential Access (tape etc)
device          cd              # CD
device          pass            # Passthrough device (direct SCSI access)

# RAID controllers interfaced to the SCSI subsystem
#device         asr             # DPT SmartRAID V, VI and Adaptec SCSI RAID
#device         dpt             # DPT Smartcache - See LINT for options!
#device         mly             # Mylex AcceleRAID/eXtremeRAID

# RAID controllers
#device         ida             # Compaq Smart RAID
#device         amr             # AMI MegaRAID
#device         mlx             # Mylex DAC960 family
#device         twe             # 3ware Escalade

# atkbdc0 controls both the keyboard and the PS/2 mouse
device          atkbdc0 at isa? port IO_KBD
device          atkbd0  at atkbdc? irq 1 flags 0x1
device          psm0    at atkbdc? irq 12

device          vga0    at isa? # VGA screen

# splash screen/screen saver
device          splash

# syscons is the default console driver, resembling an SCO console
device          sc      1

# Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver
#device         vt0     at isa?
#options        XSERVER                 # support for X server on a vt console
#options        FAT_CURSOR              # start with block cursor
# If you have a ThinkPAD, uncomment this along with the rest of the PCVT lines
#options        PCVT_SCANSET=2          # IBM keyboards are non-std

# Floating point support - do not disable.
device          npx

# Power management support (see NOTES for more options)
device          apm
## Add suspend/resume support for the i8254.
#device         pmtimer

# PCCARD (PCMCIA) support
#device         card
#device         pcic0   at isa? irq 0 port 0x3e0 iomem 0xd0000
#device         pcic1   at isa? irq 0 port 0x3e2 iomem 0xd4000 disable

# 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
#device         vpo             # Requires scbus and da


# PCI Ethernet NICs.
device          de              # DEC/Intel DC21x4x (``Tulip'')
#device         fxp             # Intel EtherExpress PRO/100B (82557, 82558)
#device         tx              # SMC 9432TX (83c170 ``EPIC'')
device          vx              # 3Com 3c590, 3c595 (``Vortex'')
#device         wx              # Intel Gigabit Ethernet Card (``Wiseman'')

# 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          dc              # DEC/Intel 21143 and various workalikes
#device         pcn             # AMD Am79C79x PCI 10/100 NICs
#device         rl              # RealTek 8129/8139
#device         sf              # Adaptec AIC-6915 (``Starfire'')
#device         sis             # Silicon Integrated Systems SiS 900/SiS 7016
#device         ste             # Sundance ST201 (D-Link DFE-550TX)
#device         tl              # Texas Instruments ThunderLAN
#device         vr              # VIA Rhine, Rhine II
#device         wb              # Winbond W89C840F
device          xl              # 3Com 3c90x (``Boomerang'', ``Cyclone'')

# ISA Ethernet NICs.
#device         ed0     at isa? port 0x280 irq 10 iomem 0xd8000
#device         ex
#device         ep
#device         fe0     at isa? port 0x300
# WaveLAN/IEEE 802.11 wireless NICs. Note: the WaveLAN/IEEE really
# exists only as a PCMCIA device, so there is no ISA attatement needed
# and resources will always be dynamically assigned by the pccard code.
#device         wi
# Aironet 4500/4800 802.11 wireless NICs. Note: the declaration below will
# work for PCMCIA and PCI cards, as well as ISA cards set to ISA PnP
# mode (the factory default). If you set the switches on your ISA
# card for a manually chosen I/O address and IRQ, you must specify
# those paremeters here.
#device         an
# Xircom Ethernet
#device         xe
# The probe order of these is presently determined by i386/isa/isa_compat.c.
#device         ie0     at isa? port 0x300 irq 10 iomem 0xd0000
#device         le0     at isa? port 0x300 irq 5 iomem 0xd0000
#device         lnc0    at isa? port 0x280 irq 10 drq 0
#device         cs0     at isa? port 0x300
#device         sn0     at isa? port 0x300 irq 10

# Pseudo devices - the number indicates how many units to allocate.
#device         random          # Entropy device
device          loop            # Network loopback
device          ether           # Ethernet support
#device         sl              # Kernel SLIP
#device         ppp     1       # Kernel PPP
device          tun             # Packet tunnel.
device          pty             # Pseudo-ttys (telnet etc)
device          md              # Memory "disks"
device          gif             # IPv6 and IPv4 tunneling
device          faith   1       # IPv6-to-IPv4 relaying (translation)

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
device          bpf             # Berkeley packet filter

# USB support
device          uhci            # UHCI PCI->USB interface
device          ohci            # OHCI PCI->USB interface
device          usb             # USB Bus (required)
#device         udbp            # USB Double Bulk Pipe devices
#device         ugen            # Generic
#device         uhid            # "Human Interface Devices"
#device         ukbd            # Keyboard
#device         ulpt            # Printer
#device         umass           # Disks/Mass storage - Requires scbus and da
#device         ums             # Mouse
#device         urio            # Diamond Rio 500 MP3 player
#device         uscanner        # Scanners
# USB Ethernet, requires mii
#device         aue             # ADMtek USB ethernet
#device         cue             # CATC USB ethernet
#device         kue             # Kawasaki LSI USB ethernet


>On Monday 23 July 2001 17:41, you wrote:
> > Hi,
> >
> > Please CC me in any response.
> >
> > I just recompiled my kernel on a pentium 100-64MB box that's been running
> > stably for 2 years now using 4.3 (tried it with 5.0, but encountered the
> > same error and decided to reinstall 4.3). When I boot my kernel, nothing is
> > output on the terminal after:
> >
> > Booting kernel...
> > -
> >
> > I can ssh into the box, etc. But sometimes I like to actually sit down in
> > front of the box and do things on it (ie, hork with the network config).
> > Any ideas what went wrong?
> >
> > Thanks for your time,
> > Brian Szymanski
> > bks10@cornell.edu
> >
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.0.20010723233956.00b150a0>