Subject: compiling a kernel with ip forward and pppoe
To: None <port-cobalt@NetBSD.ORG>
From: Andreas Fuchs <fox@tcnet.ch>
List: port-cobalt
Date: 01/10/2004 23:43:15
Hi

i try to compile a kernel with ipforward ipnat and pppoe, but i cant get the
kernel to boot.
what i did:

	cd /
	wget ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.1/source/sets/syssrc.tgz
	tar -xvzf syssrc.tgz
	cd /sys/arch/cobalt/
	wget
ftp://ftp.netbsd.org/pub/NetBSD/arch/cobalt/restore-cd/1.6.1/conf.tar.gz
	tar -xvzf conf.tar.gz
	cd conf
	cp GENERIC Qube2ipl

  edit Qube2ipl, i set the following options (to make the kernel smaller i
disable scsi support)
	#options        INCLUDE_CONFIG_FILE
	#options        KTRACE
	#options        DIAGNOSTIC
	#options        DDB
	#options        COMPAT_43

	options         GATEWAY
	options         IPSEC
	options         IPFILTER_LOG
	#options        SCSIVERBOSE
	#ahc*           at pci? dev ? function ?
	#scsibus*       at ahc?
	#sd*            at scsibus? target ? lun ?
	#st*            at scsibus? target ? lun ?
	pseudo-device   ipfilter
	pseudo-device   pppoe

  then run
	wget http://only.mawhrin.net/~cdi/netbsd/cobalt/hd44780.diff.gz
	gzip -d hd44780.diff.gz

	cd /sys
	patch -p1 < /sys/arch/cobalt/conf/hd44780.diff
	cd -

  and finally
	config Qube2ipl

	cd ../compile/Qube2ipl
	make depend
	make

Compiling is successfull
Then i tryed to install with:

	mount /dev/wd0e /stand
	cp /stand/boot/netbsd.gz /stand/boot/netbsd.gz.orig
	gzip -4 -c netbsd > /stand/boot/netbsd.gz
	cp netbsd /

Badly i cannot find a serial cable to connect to my Qube, so i have no idea
why it doesn't boot the new kernel, at least it seems that he picks the new
one.

Any ideas ?

regards

Andreas