From owner-freebsd-hackers Mon Jan 6 16:26:59 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id QAA15137 for hackers-outgoing; Mon, 6 Jan 1997 16:26:59 -0800 (PST) Received: from inf.enst.fr (j2FxukWKEoviVLMwf7mMpQD0SP4wxpZn@inf.enst.fr [137.194.2.81]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id QAA15132 for ; Mon, 6 Jan 1997 16:26:56 -0800 (PST) Received: from nikopol.enst.fr (nikopol.enst.fr [137.194.168.105]) by inf.enst.fr (8.8.3/8.8.4) with ESMTP id BAA10666; Tue, 7 Jan 1997 01:26:49 +0100 (MET) Received: (from fenyo@localhost) by nikopol.enst.fr (8.8.3/8.8.2) id BAA07153; Tue, 7 Jan 1997 01:26:44 +0100 (MET) To: Cc: "Hackers" X-WWW: http://home.eowyn.fr.eu.org/~fenyo/documents/axel.html X-PGP-Key: finger alex@eowyn.fr.eu.org X-NIC-Handle: AF713 X-Whois: whois -h whois.internic.net fenyo X-Pager: 06-04-30-75-94 (for emergency only) Organization: Ecole Nationale Superieure des Telecommunications de Paris Subject: Re: ed0 boot [p]roms References: <199701061943.TAA84776@smtp-gw01.ny.us.ibm.net> From: fenyo@inf.enst.fr (Alex Fenyo (eowyn)) Date: 07 Jan 1997 01:26:42 +0100 In-Reply-To: "Steve Sims"'s message of Mon, 6 Jan 1997 14:40:42 -0500 Message-ID: Lines: 34 X-Mailer: Red Gnus v0.50/XEmacs 19.14 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk "Steve Sims" writes: > Who's the resident expert on boot ROMs for ed devices? I'm thinking about > building a diskless / floppy-less machine and have no earthly idea how to > proceed. > ... Using an ed ethernet device, I encountered a little problem with the options offered by the Makefile to build the rom. The Makefile says : # NS8390 Options: # -DINCLUDE_WD - Include Western Digital/SMC support # -DINCLUDE_NE - Include NE1000/NE2000 support # -DINCLUDE_3COM - Include 3c503 support I think it should say that it's not a good idea to use them all at the same time, to generate a rom with the three devices support. Suppose you compile with those three options, and you are using a NE1000/NE2000 card. Then, the problem is that eth_probe() (in ns8390.c) will first try to see if there is a WD compatible card; it's not this kind of card, so it continues, trying to see if there is a 3Com card. Again, it's not this kind of card, but instead of trying to continue with the next card type (NE1000/NE2000, the good one), the portion of code included when using -DINCLUDE_3COM executes a 'return 0', saying no ethernet card was found, and finally, the boot process fails. The problem appears only when using a NE1000/NE2000 card and having made the rom with the -DINCLUDE_3COM option. Alexandre Fenyo ps: modifying ns8390.c to do the right things doesn't seem to be very complicated.