http://srvcns.it.jcu.edu.au/~phillip/Homepage/Sony-PCG-N505VE

Jan 19


SONY PCG-N505VE and FreeBSD-4.4-RELEASE (September 2001)

This file contains setup information for the SONY PCG-N505VE laptop:

– BIOS settings
– File /boot/loader.conf
– File /etc/usbd.conf
– File /etc/rc.conf
– Kernel Configuration
– Bootup dmesg

Note: Sony web page is http://www.ita.sel.sony.com/support/pc/pcgn505ve

===============================================================================

BIOS settings (depress F2 during startup)
*************

ADVANCED–>
Primary IDE Adapter [6495MB]
Secondary IDE Adapter [None]
IrDA–>
Configuration [Enabled]
Mode [FIR]
Base IO Address [3E8]
Interrupt [11]
DMA channel [DMA 0]
Serial Port–>
Configuration [Enabled]
Base IO Address [3F8]
Interrupt [4]
Parallel Port–>
Configuration [Enabled]
Mode [Bi-directional]
Base IO Address [378]
Interrupt [7]

Plug”

# Firmware download for Entrega Serial DB25 adapter.
#
device “Entrega Serial with UART”
product 0×8001
vendor 0×1645
release 0×0101
attach “if ! kldstat -n usio > /dev/null 2>&1 ; then kldload usio; fi”
attach “/usr/sbin/ezdownload -v -f /usr/share/usb/firmware/1645.8001.0101 /dev/${DEVNAME}”

# The entry below starts and stops dhclient when an ethernet device is inserted
# Caveat: It does not support multiple interfaces (but neither does pccardd,
# it shouldn’t be too big a deal :-)
#
# -pm- added 10Mbps setup, added detach down cmd
#
device “USB ethernet”
devname “[ack]ue[0-9]+”
attach “ifconfig ${DEVNAME} media 10baseT/UTP ; dhclient ${DEVNAME}”
detach “ifconfig ${DEVNAME} down ; killall dhclient”

# The entry below starts moused when a mouse is plugged in. Moused
# stops automatically (actually it bombs :) when the device disappears.
#
# -pm- added 5-button setup
#
device “Mouse”
devname “ums[0-9]+”
attach “/usr/sbin/moused -p /dev/${DEVNAME} -I /var/run/moused.${DEVNAME}.pid -z 4″

# The fallthrough entry: Nothing is specified, nothing is done. And it isn’t
# necessary at all :-) . Just for pretty printing in debugging mode.
#
device “USB device”

===============================================================================

File /etc/rc.conf
*****************

#
# This file now contains just the overrides from /etc/defaults/rc.conf
# also add this switch to the USB mouse command in /etc/usbd.conf
# ep0 is now handled by dhclient at insert time
# please make all changes to this file.
#

apm_enable=”YES” # Set to YES to enable APM BIOS functions (or NO).
apmd_enable=”YES” # Run apmd to handle APM event from userland.
apmd_flags=”" # Flags to apmd (if enabled).
check_quotas=”NO”
hostname=”alberti.net.at.home”
inetd_enable=”YES”
linux_enable=”YES”
lpd_enable=”YES”
moused_enable=”YES”
moused_port=”/dev/psm0″
nfs_client_enable=”YES” # This host is an NFS client (or NO).
pccard_enable=”YES”
pccard_mem=”DEFAULT”
pccardd_flags=”-i 10″
portmap_enable=”YES”
saver=”logo”
sendmail_enable=”YES”
sshd_enable=”YES”
svr4_enable=”NO”
usbd_enable=”YES” # Run the usbd daemon.
usbd_flags=”" # Flags to usbd (if enabled).

===============================================================================

Kernel Configuration
********************

# Phillip’s laptop kernel for FreeBSD 4, based on
#
# 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.34 2001/08/12 13:13:46 joerg Exp $

machine i386
#cpu I386_CPU
#cpu I486_CPU
#cpu I586_CPU
cpu I686_CPU

ident alberti

maxusers 32

### OPTIONS ###

#makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols
#options MATH_EMULATE #Support for x87 emulation

# Protocol families:
# Only the INET (Internet) family is officially supported in FreeBSD.
options INET #InterNETworking
options INET6 #IPv6 communications protocols

# FILESYSTEM OPTIONS
#
# Only the root, /usr, and /tmp filesystems need be statically
# compiled; everything else will be automatically loaded at mount
# time. (Exception: the UFS family—FFS, and MFS — cannot
# currently be demand-loaded.) Some people still prefer to statically
# compile other filesystems as well.
#
# One of these is mandatory:
options FFS #Berkeley Fast Filesystem
options MFS #Memory File System
options NFS #Network File System
#
# The rest are optional:
options FFS_ROOT #FFS usable as root device [keep this!]
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 NTFS #NT File System

options SOFTUPDATES #Enable FFS soft updates support

# Implement system calls compatible with 4.3BSD and older versions of
# FreeBSD. You probably do NOT want to remove this as much current code
# still relies on the 4.3 emulation.
#
options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!]

options SCSI_DELAY=5000 #Delay (in ms) before probing SCSI

# Allow ordinary users to take the console – this is useful for X.
options UCONSOLE
#
options USERCONFIG #boot -c editor
#options INTRO_USERCONFIG #imply -c and show intro screen
options VISUAL_USERCONFIG #visual boot -c editor

# These three options provide support for System V Interface
# Definition-style interprocess communication, in the form of shared
# memory, semaphores, and message queues, respectively.
#
options SYSVSHM #SYSV-style shared memory
options SYSVMSG #SYSV-style message queues
options SYSVSEM #SYSV-style semaphores

# POSIX P1003.1B
#
# Real time extensions added in the 1993 Posix
# P1003_1B: Infrastructure
# _KPOSIX_PRIORITY_SCHEDULING: Build in _POSIX_PRIORITY_SCHEDULING
# _KPOSIX_VERSION: Version kernel is built for
options P1003_1B #Posix P1003_1B real-time extentions
options _KPOSIX_PRIORITY_SCHEDULING

# Allow user-mode programs to manipulate their local descriptor tables.
# This option is required for the WINE Windows(tm) emulator, and is
# not used by anything else (that we know of).
#
options USER_LDT #allow user-level control of i386 ldt

# KTRACE enables the system-call tracing facility ktrace(2).
#
options KTRACE #kernel tracing

# PERFMON causes the driver for Pentium/Pentium Pro performance counters
# to be compiled. See perfmon(4) for more information.
#
#options PERFMON

###########################################################################
# Internet family options:
#

# ICMP_BANDLIM enables icmp error response bandwidth limiting. You
# typically want this option as it will help protect the machine from
# D.O.S. packet attacks.
#
options ICMP_BANDLIM

###########################################################################
# HARDWARE DEVICE CONFIGURATION

# ISA and EISA devices:
# EISA support is available for some device, so they can be auto-probed.
# MicroChannel (MCA) support is available for some devices.

#
# Mandatory ISA devices: isa, npx
#
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 ata0 at isa? port IO_WD1 irq 14
#device ata1 at isa? port IO_WD2 irq 15
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 ahc # AHA2940 and onboard AIC7xxx devices
device aic0 at isa?

# 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)

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

# Options for psm:
options PSM_HOOKRESUME #hook the system resume event, useful
#for some laptops
options PSM_RESETAFTERSUSPEND #reset the device at the resume event

# The video card driver.
#
device vga0 at isa?
#
# splash screen/screen saver
pseudo-device splash
#
# To include support for VESA video modes
options VESA

# syscons is the default console driver, resembling an SCO console
device sc0 at isa? flags 0×100

# Floating point support – do not disable.
device npx0 at nexus? port IO_NPX irq 13

# Power management support (see LINT for more options)
#device apm0 at nexus? disable flags 0×20 # Advanced Power Management
device apm0 at nexus? flags 0×20 # Advanced Power Management

# 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
#
#device pcic0 at isa? irq 3
#device pcic1 at isa?
options PCIC_RESUME_RESET # reset after resume

# Serial (COM) ports
device sio0 at isa? port IO_COM1 irq 4
#
#device sio1 at isa? port IO_COM2 irq 5
#device sio2 at isa? disable port IO_COM3 irq ?
#device sio3 at isa? disable port IO_COM4 irq ?
#
#device sio0 at isa? port IO_COM1 flags 0×10 irq 4
#device sio1 at isa? port IO_COM2 irq 3
#device sio2 at isa? disable port IO_COM3 irq 5
#device sio3 at isa? disable port IO_COM4 irq 9

# Parallel-Port Bus
#
# Parallel port bus support is provided by the `ppbus’ device.
# Multiple devices may be attached to the parallel port, devices
# are automatically probed and attached when found.
#
# Supported devices:
# vpo Iomega Zip Drive
# Requires SCSI disk support (‘scbus’ and ‘da’), best
# performance is achieved with ports in EPP 1.9 mode.
# lpt Parallel Printer
# plip Parallel network interface
# ppi General-purpose I/O (“Geek Port”) + IEEE1284 I/O
# pps Pulse per second Timing Interface
# lpbb Philips official parallel port I2C bit-banging interface
#
# Supported interfaces:
# ppc ISA-bus parallel port interfaces.
#
device ppc0 at isa? irq 7
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

device pps
#device lpbb
#device pcfclock

# Ethernet NICs.
#
device miibus # MII bus support
# PCI Ethernet NICs that use the common MII bus controller code.
device rl # RealTek 8129/8139

# ISA Ethernet NICs.
device ed
# 3C589D pcmcia ethernet card driver
device ep

# 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

# requires PCCARD (PCMCIA) support to be activated
device xe0 at isa?

###########################################################################
# Network interfaces:

# Pseudo devices – the number indicates how many units to allocated.
pseudo-device loop # Network loopback
pseudo-device ether # Ethernet support
pseudo-device sl 1 # Kernel SLIP
pseudo-device ppp 1 # Kernel PPP
pseudo-device tun # Packet tunnel.

# for IPv6
pseudo-device gif # IPv6 and IPv4 tunneling
pseudo-device faith 1 # IPv6-to-IPv4 relaying (translation)

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

###########################################################################

# Audio

# For PnP/PCI sound cards
device pcm

# The bridge drivers for sound cards. These can be seperately configured
# for providing services to the likes of new-midi (not in the tree yet).
# When used with ‘device pcm’ they also provide pcm sound services.
#
device sbc

###########################################################################
#
# SMB bus
#
# System Management Bus support provided by the ‘smbus’ device.
#
# Supported devices:
# smb standard io
#
# Supported interfaces:
# iicsmb I2C to SMB bridge with any iicbus interface
# bktr brooktree848 I2C hardware interface
# intpm Intel PIIX4 Power Management Unit
# alpm Acer Aladdin-IV/V/Pro2 Power Management Unit
#
device smbus # Bus support, required for smb below.
device intpm
device alpm

device smb

#
# I2C Bus
#
# Philips i2c bus support is provided by the `iicbus’ device.
#
# Supported devices:
# ic i2c network interface
# iic i2c standard io
# iicsmb i2c to smb bridge. Allow i2c i/o with smb commands.
#
# Supported interfaces:
# pcf Philips PCF8584 ISA-bus controller
# bktr brooktree848 I2C software interface
#
# Other:
# iicbb generic I2C bit-banging code (needed by lpbb, bktr)
#

#device iicbus # Bus support, required for ic/iic/iicsmb below.
#device iicbb
#
#device ic
#device iic
#device iicsmb # smb over i2c bridge
#
#device pcf0 at isa? port 0×320 irq 5

###########################################################################

# MISCELLANEOUS DEVICES AND OPTIONS

# The `pty’ device usually turns out to be “effectively mandatory”,
# as it is required for `telnetd’, `rlogind’, `screen’, `emacs’, and
# `xterm’, among others.

pseudo-device pty #Pseudo ttys (telnet etc)
pseudo-device speaker #Play IBM BASIC-style noises out your speaker
pseudo-device gzip #Exec gzipped a.out’s
pseudo-device vn #Vnode driver (turns a file into a device)

#pseudo-device md # Memory “disks”

###########################################################################

# 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 ums # Mouse
device uscanner # Scanners
# USB Ethernet, requires mii
device aue # ADMtek USB ethernet
device cue # CATC USB ethernet
device kue # Kawasaki LSI USB ethernet

###########################################################################

===============================================================================

Bootup 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.4-RELEASE #0: Sun Oct 7 18:18:45 EST 2001
rootp@alberti.net.at.home:/home/src/sys/compile/alberti
Timecounter “i8254″ frequency 1193182 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (331.58-MHz 686-class CPU)
Origin = “GenuineIntel” Id = 0x66a Stepping = 10
Features=0x183f9ff
real memory = 67043328 (65472K bytes)
avail memory = 61210624 (59776K bytes)
Preloaded elf kernel “kernel” at 0xc03ff000.
VESA: v2.0, 2496k memory, flags:0×0, mode table:0xc0383162 (1000022)
VESA: MagicMedia 256AV 48K
Pentium Pro MTRR support enabled
Using $PIR table, 6 entries at 0xc00fdf60
apm0: on motherboard
apm: found APM BIOS v1.2, connected at v1.2
npx0: on motherboard
npx0: INT 16 interface
pcib0: on motherboard
pci0: on pcib0
isab0: at device 7.0 on pci0
isa0: on isab0
atapci0: port 0xfc90-0xfc9f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
uhci0: port 0xfca0-0xfcbf irq 9 at device 7.2 on pci0
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
intpm0: port 0×1040-0x104f irq 9 at device 7.3 on pci0
intpm0: I/O mapped 1040
intpm0: intr IRQ 9 enabled revision 0
smbus0: on intsmb0
smb0: on smbus0
intpm0: PM I/O mapped 8000
pci0: (vendor=0x104d, dev=0×8039) at 8.0 irq 9
pcm0: port 0xfc8c-0xfc8f,0xfcc0-0xfcff mem 0xfedf8000-0xfedfffff irq 9 at device 9.0 on pci0
pci0: at 10.0 irq 3
pci0: (vendor=0x127a, dev=0×2005) at 11.0 irq 3
pcic0: at device 12.0 on pci0
pcic0: PCI Memory allocated: 0×44000000
pcic0: Polling mode
pccard0: on pcic0
orm0: at iomem 0xc0000-0xcbfff,0xdc000-0xdffff on isa0
fdc0: direction bit not set
fdc0: cmd 3 failed at out byte 1 of 3
atkbdc0: at port 0×60,0×64 on isa0
atkbd0: flags 0×1 irq 1 on atkbdc0
psm0: irq 12 on atkbdc0
psm0: model GlidePoint, device ID 0
vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: at flags 0×100 on isa0
sc0: VGA
sio0 at port 0x3f8-0x3ff irq 4 on isa0
sio0: type 16550A
ppc0: at port 0×378-0x37f irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
plip0: on ppbus0
lpt0: on ppbus0
lpt0: Interrupt-driven port
ppi0: on ppbus0
pps0: on ppbus0
ad0: 6194MB [13424/15/63] at ata0-master UDMA33
Mounting root from ufs:/dev/ad0s4a
pccard: card inserted, slot 0
cd9660: RockRidge Extension

sio2 at port 0x2e8-0x2ef irq 10 slot 0 on pccard0
sio2: type 16550A

uhub1: Philips Semiconductors hub, class 9/0, rev 1.10/1.10, addr 2
uhub1: 4 ports with 4 removable, self powered
uhub1: port 1 power on failed, IOERROR
aue0: SMC, Inc EZ USB/Ethernet Converter, rev 1.10/1.01, addr 3
aue0: Ethernet address: 00:e0:29:93:85:f0
miibus0: on aue0
acphy0: on miibus0
acphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ums0: Logitech USB Mouse, rev 1.10/6.10, addr 4, iclass 3/1
ums0: 3 buttons and Z dir.

Note: 1. device sio2 was a psion 56K “gold card” modem that was inserted
prior to the power up.
2. uhub1 is a Belkin 4-way USB hub.
3. aue0 is an SMC EZ Connect USB Fast Ethernet Adaptor 2202USB/ETH.
4. ums0 is a Logitech 3 button optical rodent where the middle button
is a roller that provides button4 and button5 in X-windows
(Logitech M/N: M-BD58).

===============================================================================