Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 1996 10:06:52 -0700
From:      Scott Halbert <scott@thuntek.net>
To:        hackers@freebsd.org
Subject:   NE2000 Boot ROMs
Message-ID:  <2.2.32.19960131170652.0114d7a0@thuntek.net>

next in thread | raw e-mail | index | archive | help

What's the deal with setting up a NE2000 for a FreeBSD netboot
PROM?  Is there some special options that need to be set in
the Makefile or wierd jumpers to set on the card?

I've gotten this to work fine on a 3C509.  I've burned several
proms of different sizes.  The rom code is about 13k so it won't
fit on a 8k prom.  My last attempts were to a 27c256 32k prom.
I set the ROMSIZE in the makefile to 32768.  

Most of my NE2000 cards are configured with a floppy--no jumpers.  
Some cards permit the romsizem to be set, some do not.  I have tried 
it with different rom base addresses.  Mostly D000.  The IO base
in the makefile matches what is set for the card.

It never seems to run the code in the prom at all.  It just asks
me for a boot floppy as if it never saw the prom.

Here is the beginning of the makefile for ns8390.rom:

PROG=	nb8390.com nb3c509.com nb8390.rom nb3c509.rom
# Order is very important on the SRCS line for this prog
SRCS=	start2.S main.c misc.c bootmenu.c rpc.c

BINDIR=		/usr/mdec
BINMODE=	555
CFLAGS=		-O2 -DNFS -DROMSIZE=${ROMSIZE} -DRELOC=${RELOCADDR}
NS8390=	 -DINCLUDE_NE -DNE_BASE=0x280
CLEANFILES+=	netboot.com
CLEANFILES+=	makerom start2.ro 3c509.o ns8390.o
LDFLAGS+=	-N -T ${RELOCADDR} -e _start -nostdlib
NOSHARED=	YES
NOMAN=
STRIP=

ROMSIZE=32768
RELOCADDR=0x90000

Thanks...

---Scott Halbert
Thunder Network Technologies




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2.2.32.19960131170652.0114d7a0>