Subject: Re: NetBSD on notebooks
To: Simon J. Gerraty <sjg@zen.void.oz.au>
From: Eric S. Hvozda <hvozda@netcom.com>
List: port-i386
Date: 06/09/1995 09:10:30
On Fri, 9 Jun 1995 01:19:43 +1000  "Simon J. Gerraty" wrote:
> 
> Now since notebooks are likely not to contain standard devices, I'd
> like to compile a kernel that has as many devices as one might expect
> to find in a notebook (any not just toshiba) so that I can compare
> *BSD friendliness.

As per your request:

SAGER NP7500
Intel DX4-100
20Mb RAM
515Mb disk
10.3 inch dual scan LCD color (I run 640x480x256 w/ XFree86-3.1.1 SVGA server)
1Mb VRAM
VLB video
All Cirrus Chipsets (PCMCIA, Video, etc)
2 PCMCIA slots
16450 UART (didn't have the 550's available :-()

dmesg says:

NetBSD 1.0 (HELIOS_PCMCIA) #1: Thu Jun  8 20:41:08 PDT 1995
    hvozda@helios:/usr/src/sys/arch/i386/compile/HELIOS_PCMCIA
CPU: i486DX (GenuineIntel 486-class CPU)
real mem  = 20578304
avail mem = 18186240
using 276 buffers containing 1130496 bytes of memory
pcic0 at isa0 port 0x3e0-0x3e1: Intel 82365sl Rev. 0 slots 0-1
pcmcia0 at isa0 iomem 0xd4000-0xd4fff
pcic0 slot 0: <D-Link DE-650 Ver 01.00>
ed0 at pcmcia0 port 0x300-0x31f irq 11: address 00:80:c8:8f:d5:6d, type DE-650 (16-bit)
pcic0 slot 1: <MEGAHERTZ XJ2288 V.34 PCMCIA MODEM>
pc0 at isa0 port 0x60-0x6f irq 1: color
com0 at isa0 port 0x3f8-0x3ff irq 4: ns82450 or ns16450, no fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns82450 or ns16450, no fifo
lpt0 at isa0 port 0x378-0x37f irq 7
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
wd0 at wdc0 drive 0: 515MB 1047 cyl, 16 head, 63 sec <DHAA-2540>
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
sb0 at isa0 port 0x240-0x24f irq 5 drq 1: dsp v2.1
npx0 at isa0 port 0xf0-0xff: using exception 16
biomask 4060 netmask 81a ttymask 1a

 Aperture driver for XFree86 version 1.2

Config HELIOS_PCMCIA says:

# architecture type and name of kernel; REQUIRED
machine		"i386"
ident		HELIOS

# different CPU types; you must have at least the correct one; REQUIRED
cpu		"I486_CPU"

# make the kernel a little faster; will break on some machines
options		DUMMY_NOPS

# temporary kluge while adding support for non-contiguous physical memory
options		MACHINE_NONCONTIG

# Kernel Load Module support
options		LKM

# time zone RTC is expected to be set in; REQUIRED
timezone	8

# estimated number of users
maxusers	32

# paging of processes, and caching vnodes and devices; REQUIRED
options		SWAPPAGER
options		VNODEPAGER,DEVPAGER

# system call tracing, a la ktrace(1)
options		KTRACE

# Sun's Network File System
options         NFSSERVER
options         NFSCLIENT

# FIFOs; RECOMMENDED
options		FIFO

# System V-like message queues
options	SYSVMSG

# System V-like semaphores
options	SYSVSEM

# System V-like memory sharing
options	SYSVSHM
options	SHMMAXPGS=1024		# 1024 pages is the default

# UFS
options		FFS

# quotas in UFS
options		QUOTA

# memory file system (shares memory and swap space)
options		MFS

# MS-DOS file system
options		MSDOSFS

# /dev/fd
options		FDESC

# secure setuid scripts
options		SETUIDSCRIPTS
options		FDSCRIPTS

# kernel file system
options		KERNFS

# proc file system
options		PROCFS

# various types of networks and protocols
options		INET

options		"COMPAT_43"
options		"TCP_COMPAT_42"

# pcmcia devices
options		PCMCIA_ED
options		PCMCIA_COM

config		netbsd	root on wd0a swap on wd0b dumps on wd0b

#include "std.i386"

#buses
controller	isa0

#pcmcia
device 		pcic0 at isa? port "0x03e0" flags 0
master		pcmciabus0 at isa? iomem 0xd4000 iosiz 4096
device		ed0	at pcmciabus0 port 0x300 net irq 11 vector edintr
device		com2	at pcmciabus0 port "IO_COM3" tty irq 9 vector comintr

#console
device		pc0	at isa? port "IO_KBD" irq 1

#serial ports
device		com0	at isa? port "IO_COM1" irq 4
device		com1	at isa? port "IO_COM2" irq 3

#parallel ports
device		lpt0	at isa? port "IO_LPT1" irq 7

#non-scsi disk controllers
controller	wdc0	at isa? port "IO_WD1" irq 14
disk		wd0	at wdc0 drive ?

#non-scsi floppy controllers
controller	fdc0	at isa? port "IO_FD1" irq 6 drq 2
disk		fd0	at fdc0 drive ?

#sound-blaster
device		sb0	at isa? port 0x240 irq 5 drq 1

#math co-processor
device		npx0	at isa? port "IO_NPX" irq 13

# psuedo-terminals; REQUIRED for remote logins and many other things
pseudo-device pty	64

# loopback; RECOMMENDED
pseudo-device loop

# ethernet; REQUIRED if using any ethernet device
pseudo-device ether #XXX

# point-to-point protocol
pseudo-device ppp

# used by kernel for logging messages; gateway to syslogd
pseudo-device log

# vn virtual filesystem device
pseudo-device vn 4

# speaker queue
pseudo-device speaker

# /dev/audio
pseudo-device audio

If you have additional questions yell :-)

My machine is NetBSD 1.0 based.  I also have installed Stefan Grefen's 
PCMCIA subsystem (announced a few days ago on the mailing lists).

I possess a DLink-650CT ethernet, Megahertz XJ2288 modem and a
QLogic Fast!SCSI-2 host adapter (speed is truely impressive,
and it cost less than others available [$180 US]).  I am currently
trying to get the modem and SCSI host adapter working under NetBSD,
they work great under MS-DOG/Wind0zE.

As far as disk consumption, I have only installed NetBSD binaries,
ksrc, XFree86-3.1.1 (full install, all servers, fonts, and apps).  I
have added vtwm, dig, perl, sudo, xlockmore, and xearth (not bad
for 250Mb of the disk I think :):

Script started on Fri Jun  9 10:01:19 1995
hvozda@helios.1> df
Filesystem                        1024-blocks     Used    Avail Capacity  Mounted on
/dev/wd0a                               11615     9328     1706    85%    /
/dev/wd0e                              189483   148044    31965    82%    /usr
/dev/wd0f                              102566    66474    36092    65%    /dos
mfs:16                                   3823        4     3627     0%    /tmp
kernfs                                      1        1        0   100%    /kern
fdesc                                       1        1        0   100%    /dev
procfs                                      4        4        0   100%    /proc
amd:73                                      0        0        0   100%    /mnt
nobel:/cdrom                            19825     9611     8232    54%    /mnt2
apache:/ops1/home                     1576636   731075   687898    52%    /ops1/home
navajo:/ops2/home                     5589518  4550507   480060    90%    /ops2/home
nobel:/home/hvozda/src.NetBSD-1.0      987302   678255   210317    76%    /usr/src
hvozda@helios.2> sudo fdisk /dev/rwd0d
******* Working on device /dev/rwd0d *******
parameters extracted from in-core disklabel are:
cylinders=1048 heads=16 sectors/track=63 (1008 blks/cyl)

 Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=1048 heads=16 sectors/track=63 (1008 blks/cyl)

Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 0 is:
sysid 6,(Primary 'big' DOS (> 32MB))
    start 63, size 205569 (100 Meg), flag 80
	beg: cyl 0/ sector 1/ head 1;
	end: cyl 203/ sector 63/ head 15
The data for partition 1 is:
sysid 165,(NetBSD)
    start 205632, size 511056 (249 Meg), flag 0
	beg: cyl 204/ sector 1/ head 0;
	end: cyl 710/ sector 63/ head 15
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
hvozda@helios.3> sudo disklabel !$
sudo disklabel /dev/rwd0d
# /dev/rwd0d:
type: ST506
disk: DHAA-2540
label: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 1048
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0		# milliseconds
track-to-track seek: 0	# milliseconds
drivedata: 0 

6 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  a:    25200   205632    4.2BSD      512  4096    16 	# (Cyl.  204 - 228)
  b:    82656   230832      swap                    	# (Cyl.  229 - 310)
  c:   511056   205632    unused        0     0       	# (Cyl.  204 - 710)
  d:  1056384        0    unused        0     0       	# (Cyl.    0 - 1047)
  e:   403200   313488    4.2BSD      512  4096    16 	# (Cyl.  311 - 710)
  f:   205569       63    MS-DOS                    	# (Cyl.    0*- 203*)
hvozda@helios.4> ^Dexit

Script done on Fri Jun  9 10:01:52 1995

Script done on Fri Jun  9 10:01:52 1995