Subject: Re: NetBSD 1.5 i386, can't build netboot / netboot doesn't work
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: cpctc <cpctc@vt.edu>
List: netbsd-help
Date: 07/23/2001 18:57:34
----- Original Message -----
From: "Manuel Bouyer" <bouyer@antioche.lip6.fr>
Subject: Re: NetBSD 1.5 i386, can't build netboot / netboot doesn't work
> Did you edit Makefile to add the drivers appropriate for your adapters ?
> At last I don't see any driver for a PCI ne2000 clone.
Sorry, when I said "PCI", I meant to say "isapnp". I suppose it will never
work with the ne2000.
Here's some details for the wd8013 card that isn't working... the netbsd 1.5
install_small boot floppy detects it as:
we0 at isa0 port 0x280-0x29f iomem 0xd0000-0xd3fff irq 9
we0: WD8013EBT Ethernet (16-bit)
I think the relevent parts of the Makefile are:
USE_NETIF= wd80x3 #and uncomment at least one of the two following lines
CPPFLAGS+= -DSUPPORT_WD80X3
My whole Makefile follows:
-----
# $NetBSD: Makefile,v 1.20 1999/04/08 10:23:23 drochner Exp $
S= ${.CURDIR}/../../../../
BASE= netboot
PROG= ${BASE}.rom
MKMAN= no
NEWVERSWHAT= "Network Boot"
SRCS= main.c devopen.c conf.c dev_net.c exec.c
CLEANFILES+= ${ROMSTART} ${BASE}.bin ${BASE}.sym
#CPPFLAGS+= -DCOMPAT_OLDBOOT
#CPPFLAGS+= -DDEBUG
#CPPFLAGS+= -DNET_DEBUG
#CPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP
#CPPFLAGS+= -DSUPPORT_TFTP
CPPFLAGS+= -DSUPPORT_RARP -DSUPPORT_BOOTPARAM
#CPPFLAGS+= -DSUPPORT_NFS -DNFS_NOSYMLINK
#uncomment if there are problems with memory detection
#CPPFLAGS+= -DCONSERVATIVE_MEMDETECT
#CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop
CFLAGS+= -Wall
# XXX should go into library
.PATH: ${.CURDIR}/../libsa
SRCS+= nfs.c
CPPFLAGS+= -I${.CURDIR}/../libsa
#ROM_SIZE= 16384
ROM_SIZE= 32768
RELOC= 90000
CPPFLAGS+= -DBOOTROM -DRELOC=0x$(RELOC)
.PATH: ${.CURDIR}/../lib/netif
#USE_NETIF= 3c509
#USE_NETIF= 3c590 #handles 3c900 TPO / combo and 3c905 TX too
# uncomment next and one of the following to make a PCI expansion ROM for
3com
#CPPFLAGS+= -DPCIROM -DPCI_VID=0x10b7 -DPCI_CLASS=0x020000
#CPPFLAGS+= -DPCI_DID=0x5900 # 3c590
#CPPFLAGS+= -DPCI_DID=0x9000 # 3c900 TPO
#CPPFLAGS+= -DPCI_DID=0x9001 # 3c900 combo
#CPPFLAGS+= -DPCI_DID=0x9050 # 3c905 TX
##USE_NETIF= pcnet_pci
# uncomment the following to make a PCI expansion ROM for PCNET-PCI
##CPPFLAGS+= -DPCIROM -DPCI_VID=0x1022 -DPCI_DID=0x2000 -DPCI_CLASS=0x020000
#USE_NETIF= pcnet_isapnp #boot device passing to kernel broken
USE_NETIF= wd80x3 #and uncomment at least one of the two following lines
CPPFLAGS+= -DSUPPORT_WD80X3
#CPPFLAGS+= -DSUPPORT_SMC_ULTRA
#USE_NETIF= i82557
#CPPFLAGS+= -DPCIROM -DPCI_VID=0x8086 -DPCI_DID=0x1229 -DPCI_CLASS=0x020000
.include "../lib/netif/Makefile.inc"
SAMISCCPPFLAGS+= -DHEAP_START=0x10000 -DHEAP_LIMIT=0x40000
SAMISCCPPFLAGS+= -DNFS_NOSYMLINK -DUDP_NO_CKSUM
SAMISCMAKEFLAGS= SA_USE_CREAD=yes
#I386MISCCPPFLAGS+= -DDISK_DEBUG
#I386MISCCPPFLAGS+= -DSUPPORT_SERIAL -DDIRECT_SERIAL -DCOMCONS_KEYPRESS
I386MISCMAKEFLAGS= I386_INCLUDE_DISK=no I386_INCLUDE_BUS=yes
VERSIONFILE= ${.CURDIR}/version
.include "../Makefile.booters"
conf.o dev_net.o: Makefile
-----
----- Original Message -----
From: "Manuel Bouyer" <bouyer@antioche.lip6.fr>
To: "cpctc" <cpctc@vt.edu>
Cc: "NetBSD-help" <netbsd-help@netbsd.org>
Sent: Monday, July 23, 2001 3:52 PM
Subject: Re: NetBSD 1.5 i386, can't build netboot / netboot doesn't work
> On Mon, Jul 23, 2001 at 09:49:32AM -0400, cpctc wrote:
> > ...I assume that source tree came with the kernel sources, which in my
case are the standard 1.5 kernel sources.
> >
> > When I tried to make as described above, I got an error about not being
able to find main.o.
> >
> > If I instead do "make clean; make cleandir; make netboot.rom; make
netboot.com", the "make netboot.rom" complains about the rom
> > being more than 32K, but the make netboot.com succeeds.
> >
> > Is there a known problem with the Makefile for this netboot, or is the
document wrong, or am I wrong?
> >
> > Part 2:
> >
> > The netboot.com that is generated does not detect any of my network
cards; two different WD8013/WD8213C (SMC) variants aren't
> > detected, as well as a PCI ne2000 clone. Both say "EtherInit failed".
>
> Did you edit Makefile to add the drivers appropriate for your adapters ?
> At last I don't see any driver for a PCI ne2000 clone.
>
> --
> Manuel Bouyer <bouyer@antioche.eu.org>
> --
>