Date: Thu, 8 Mar 2001 22:37:05 -0800 From: Gregory Neil Shapiro <gshapiro@freebsd.org> To: freebsd-hardware@freebsd.org Cc: freebsd-stable@freebsd.org Subject: Odd quirk with APM support Message-ID: <15016.31249.709965.867202@horsey.gshapiro.net>
next in thread | raw e-mail | index | archive | help
I am running the 4.3-BETA (though the same were true for 4.2-STABLE) with a
new Intel 815E EAL motherboard and trying to get APM functioning with
interesting results. The machine will freeze up early in the boot sequence
on normal boots (look for the (freeze) below to see where). However, if I
use 'boot -c' and 'ls' followed by 'quit' inside the config utility, it
boots normally (and APM works fine). Why would using 'boot -c' make a
difference for APM?
Below are the results of a 'boot -cv' with the '(freeze if no -c given)'
added where it freezes if '-c' isn't given on the boot command. This
kernel is also compiled with -DAPM_DEBUG.
FreeBSD 4.3-BETA #7: Thu Mar 8 22:09:22 PST 2001
root@sparkplug.gshapiro.net:/usr/obj/usr/src/sys/SPARKPLUG
Calibrating clock(s) ... TSC clock: 863838688 Hz, i8254 clock: 1193148 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
Timecounter "i8254" frequency 1193182 Hz
CLK_USE_TSC_CALIBRATION not specified - using old calibration method
CPU: Pentium III/Pentium III Xeon/Celeron (863.87-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x686 Stepping = 6
Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PA
T,PSE36,MMX,FXSR,SSE>
real memory = 267124736 (260864K bytes)
Physical memory chunk(s):
0x00001000 - 0x0009efff, 647168 bytes (158 pages)
0x003db000 - 0x0feb7fff, 263049216 bytes (64221 pages)
avail memory = 256274432 (250268K bytes)
bios32: Found BIOS32 Service Directory header at 0xc00fda60
bios32: Entry = 0xfda74 (c00fda74) Rev = 0 Len = 1
pcibios: PCI BIOS entry at 0xda95
pnpbios: Found PnP BIOS data at 0xc00f29e0
pnpbios: Entry = f0000:229a Rev = 1.0
Other BIOS signatures found:
ACPI: 000ff980
Preloaded elf kernel "kernel" at 0xc03b5000.
Pentium Pro MTRR support enabled
pci_open(1): mode 1 addr port (0x0cf8) is 0x80000058
pci_open(1a): mode1res=0x80000000 (0x80000000)
pci_cfgcheck: device 0 [class=060000] [hdr=00] is there (id=11308086)
(freeze if not -c given)
apm0: <APM BIOS> on motherboard
apm: APM BIOS version 0102
apm: Code16 0xc00f0000, Data 0xc0000400
apm: Code entry 0x0000ef50, Idling CPU disabled, Management disabled
apm: CS_limit=0xffff, DS_limit=0xffff
apm: Engaged control enabled
apm: found APM BIOS v1.2, connected at v1.2
apm: Slow Idling CPU disabled
Add hook "default suspend"
Add hook "default resume"
And the kernel configuration file:
# Preamble
machine i386 # Architecture (do not change)
cpu I686_CPU # Pentium Pro, Pentium II
ident SPARKPLUG # Identification
maxusers 64 # Sets kernel table sizes
makeoptions CONF_CFLAGS=-DAPM_DEBUG # Extra CFLAGS for building
# Kernel options
options CD9660 # ISO 9660 filesystem
options COMPAT_43 # Compatible with BSD 4.3 [KEEP THIS!]
options DDB # Enable the kernel debugger
options FFS # Berkeley Fast Filesystem
options FFS_ROOT # Use FFS for root partition
options ICMP_BANDLIM # Enable ICMP bandwidth limiting
options INCLUDE_CONFIG_FILE # Include this file in kernel
options INET # InterNETworking
options INET6 # IPv6 communications protocols
options IPDIVERT # Divert IP sockets (ifpw divert)
options IPFILTER # Kernel ipfilter support
options IPFILTER_LOG # ipfilter logging
options IPFIREWALL # IP firewall
options IPFIREWALL_FORWARD # Transparent proxy support
options IPFIREWALL_VERBOSE # Print info about dropped packets
options IPSEC # IP security
options IPSEC_ESP # IP security (crypto; define w/ IPSEC)
options IPSEC_DEBUG # Debug for IP security
options IPSTEALTH # Support for stealth forwarding
options IPV6FIREWALL # Firewall for IPv6
options IPV6FIREWALL_VERBOSE # Print info about dropped packets
options KBD_INSTALL_CDEV # Install a CDEV entry in /dev
options KTRACE # Kernel tracing
options NETATALK # AppleTalk
options P1003_1B # P1003_1B: Infrastructure
options PERFMON # Pentium/Pentium Pro perf counters
options PROCFS # Process filesystem
options QUOTA # Enable disk quotas
options SCSI_DELAY=8000 # Be pessimistic about Joe SCSI device
options SOFTUPDATES # Kirk's Soft Updates
options SYSVMSG # System V message queues
options SYSVSEM # System V semaphores
options SYSVSHM # System V shared memory
options TCP_DROP_SYNFIN # Drop TCP packets with SYN+FIN
options TCP_RESTRICT_RST # Restrict emission of TCP RST
options UCONSOLE # Allow users to grab the console
options USERCONFIG # boot -c editor
options VISUAL_USERCONFIG # Visual boot -c editor
options _KPOSIX_PRIORITY_SCHEDULING # Add _POSIX_PRIORITY_SCHEDULING
options _KPOSIX_VERSION=199309L # Version kernel is built for
# Buses
device isa # ISA bus
device pci # PCI bus
# Floppy
device fdc0 at isa? port IO_FD1 irq 6 drq 2
device fd0 at fdc0 drive 0
# IDE
device ata
device atadisk # ATA disk drives
device atapicd # ATAPI CDROM drives
# SCSI peripherals
device scbus # SCSI bus (required)
device da # Direct Access (disks)
device pass # Passthrough device (direct SCSI access)
# AT keyboard
device atkbdc0 at isa? port IO_KBD
device atkbd0 at atkbdc? irq 1 flags 0x1
# PS/2 mouse
device psm0 at atkbdc? irq 12
# VGA port
device vga0 at isa?
# syscons is the default console driver, resembling an SCO console
device sc0 at isa?
# Numeric Processing eXtension (mandatory, don't remove)
device npx0 at nexus? port IO_NPX irq 13
# Advanced power management
device apm0 at nexus? flags 0x20
# Serial ports
device sio0 at isa? port IO_COM1 flags 0x10 irq 4
device sio1 at isa? port IO_COM2 irq 3
# Parallel port
device ppc0 at isa? irq 7
device ppbus # Parallel port bus (required)
device lpt # Printer
device ppi # Parallel port interface device
# SMB bus
device smbus
device smb
# Ethernet
device fxp # Intel EtherExpress Pro/100B
# Sound (Luigi)
device pcm
# PC Speaker
device pca0 at isa? port IO_TIMER1
# USB support
device uhci # UHCI PCI->USB interface
device ohci # OHCI PCI->USB interface
device usb # USB Bus (required)
device ugen # Generic
device uhid # "Human Interface Devices"
device ukbd # Keyboard
device ulpt # Printer
device umass # Disks/Mass storage - Requires scbus and da
device umodem # USB modem support
device ums # Mouse
device uscanner # USB scanners
# Pseudo devices
pseudo-device bpf # Berkeley Packet Filter (BPF)
pseudo-device ether # Generic Ethernet
pseudo-device faith 1 # IPv6-to-IPv4 relaying (translation)
pseudo-device gif 4 # IPv6 and IPv4 tunneling
pseudo-device gzip # Exec gzipped a.out's
pseudo-device loop # Network loopback device
pseudo-device pty # Pseudo ttys
pseudo-device snp 3 # Snoop device - to look at pty/vty/etc..
pseudo-device speaker # Play IBM BASIC-style noises out your speaker
pseudo-device splash # Splash screen at start up!
pseudo-device tun # Tunnel driver (ppp(8), nos-tun(8))
pseudo-device vn # Vnode driver (turns a file into a device)
Finally, for completeness sake, the only items in /etc/make.conf of any
consequence (non-userland flags):
BOOT_COMCONSOLE_SPEED= 57600
MODULES_WITH_WORLD= yes
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hardware" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15016.31249.709965.867202>
