From owner-freebsd-hackers Tue Jul 23 08:59:17 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA22347 for hackers-outgoing; Tue, 23 Jul 1996 08:59:17 -0700 (PDT) Received: from tdc.on.ca (tdc.on.ca [204.92.242.39]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id IAA22342 for ; Tue, 23 Jul 1996 08:59:15 -0700 (PDT) Received: (from martin@localhost) by tdc.on.ca (8.7.5/8.6.6) id LAA28863; Tue, 23 Jul 1996 11:54:16 -0400 (EDT) From: Martin Renters Message-Id: <199607231554.LAA28863@tdc.on.ca> Subject: Re: lp booting: first cut To: phk@critter.tfs.com (Poul-Henning Kamp) Date: Tue, 23 Jul 1996 11:54:16 -0400 (EDT) Cc: dk+@ua.net, freebsd-hackers@freebsd.org In-Reply-To: <3892.838134990@critter.tfs.com> from "Poul-Henning Kamp" at Jul 23, 96 05:16:30 pm X-Mailer: ELM [version 2.4 PL24 ME8a] Content-Type: text Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > There is some utterly disgusting code that tries to find a ed%d interface > to use in the kernel. That would be a problem. You need to explain > to it that it's a lp0 interface instead in this case. The right medium > for this explanation is the struct nfs_diskless (?) and since you change > that you need to change the version# of it, and then locore.s to copy > the right number of bytes. (Yes, I hate it too) I don't think you need to change the nfs_diskless structure. It already contains the interface to use (it gets filled in by the netboot code in main.c). Just make sure that your lpt.c initializes 'eth_driver' to "lp0" and it should do the right thing. It works with the 3C509 which doesn't use the ed0 driver. Martin