Subject: Re: New list member
To: None <joerg.sigle@jsigle.com, abs@NetBSD.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-hp300
Date: 08/24/2007 21:54:11
abs@NetBSD.org wrote:

>  	You should be able to cross compile a more recent kernel on
>  	another box. That other box doesn't need to run NetBSD, though
>  	obviously more NetBSD is always good :)
 :
>  	One interesting test might be to boot a NetBSD-4 GENERIC and
>  	cut down kernels on it. I would expect GENERIC not to fit, but a
>  	cut down one should...

I've put a shrinked netbsd-4 kernel for hp318 (untested):
http://www.ceres.dti.ne.jp/~tsutsui/netbsd/netbsd-hp300-SMALL-20070824.gz

kernel config:
---
include 	"arch/hp300/conf/std.hp300"

maxusers	4

options 	HP330		# includes 318, 319

options 	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)

makeoptions	COPTS="-Os"

#options 	COMPAT_43	# compatibility with 4.3BSD interfaces
#options 	COMPAT_09	# compatibility with NetBSD 0.9
#options 	COMPAT_10	# compatibility with NetBSD 1.0
#options 	COMPAT_11	# compatibility with NetBSD 1.1
#options 	COMPAT_12	# compatibility with NetBSD 1.2
#options 	COMPAT_13	# compatibility with NetBSD 1.3
#options 	COMPAT_14	# compatibility with NetBSD 1.4
#options 	COMPAT_15	# compatibility with NetBSD 1.5
#options 	COMPAT_16	# compatibility with NetBSD 1.6
#options 	COMPAT_20	# compatibility with NetBSD 2.0
#options 	COMPAT_30	# NetBSD 3.0 compatibility.
#options 	TCP_COMPAT_42	# 4.2BSD TCP/IP bug compat. Not recommended.

#options 	COMPAT_HPUX	# HP-UX binary compatibility
#options 	COMPAT_AOUT_M68K	# NetBSD/m68k a.out binary compatibility
#options 	COMPAT_M68K4K	# NetBSD/m68k4k binary compatibility
options 	COMPAT_BSDPTY	# /dev/[pt]ty?? ptys.

# Filesystems
#file-system	CD9660		# CD-ROM ISO-9660 filesystem
file-system	FFS		# fast filesystem
#file-system	KERNFS		# kernel data-structure filesystem
file-system	NFS		# Network filesystem client
#file-system	NULLFS		# loopback file system
#file-system	PROCFS		# /proc filesystem

options 	NFS_BOOT_BOOTPARAM
options 	NFS_V2_ONLY
options 	FFS_NO_SNAPSHOT

options 	INET		# Internet protocols
#options 	INET6		# IPV6

options 	NVNODE=50
options 	NBUF=20
options 	BUFPAGES=20
options 	NMBCLUSTERS=64

config		netbsd root on ? type ?

mainbus0	at root			# root "bus"

intio0		at mainbus0		# internal i/o space
dio0		at mainbus0		# DIO/DIO-II bus

rtc*		at intio?		# real-time clock (not optional)
dma* 		at intio?		# DMA controller
hil*		at intio?		# Human Interface Loop
nhpib*		at intio?		# slow internal HP-IB

topcat*		at intio?		# Topcat/catseye framebuffers
grf*		at topcat?

ite*		at grf?			# Internal Terminal Emulator

com0		at dio0 scode 9		# DCA serial interfaces
com*		at dio? scode ?

le*		at dio? scode ?		# LANCE ethernet interfaces

nhpib0		at dio? scode 7		# slow internal HP-IB
nhpib*		at dio? scode ?

fhpib*		at dio? scode ?		# `fast' HP-IB

hpibbus0	at nhpib0
hpibbus*	at nhpib?
hpibbus*	at fhpib?

rd*		at hpibbus? slave ? punit ?	# HP-IB disks
#ct*		at hpibbus? slave ? punit ?	# HP-IB cartridge tapes
#mt*		at hpibbus? slave ? punit ?	# HP-IB 9-track tape

spc*		at dio? scode ?			# HP 98265A SCSI
scsibus*	at spc?

sd*		at scsibus? target ? lun ?	# SCSI disks
cd*		at scsibus? target ? lun ?	# SCSI CD-ROMs
#st*		at scsibus? target ? lun ?	# SCSI tapes

pseudo-device	bpfilter		# Berkeley packet filter
pseudo-device	loop			# loopback network interface
pseudo-device	pty			# pseudo-terminals
options 	NO_DEV_PTM
pseudo-device	rnd			# /dev/random and in-kernel generator
pseudo-device	ksyms			# /dev/ksyms
---
(well, 4.0 kernel is much larger than 1.5...)

Note this kernel doesn't have any COMPAT options
so you have to prepare netbsd-4 (4.0_BETA2) userland
binaries on your server.
Snapshot binaries are available on the ftp:
ftp://ftp.netbsd.org/pub/NetBSD-daily/netbsd-4/


---
Izumi Tsutsui