From owner-freebsd-sparc Mon Dec 2 13:51:41 2002 Delivered-To: freebsd-sparc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E735837B401 for ; Mon, 2 Dec 2002 13:51:38 -0800 (PST) Received: from mail.kpnqwest.ch (mail.eunet.ch [146.228.10.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76C1243ECF for ; Mon, 2 Dec 2002 13:51:37 -0800 (PST) (envelope-from mw@kpnqwest.ch) Received: (from mw@localhost) by mail.kpnqwest.ch (8.9.3/1.34) id WAA86673 for freebsd-sparc@FreeBSD.ORG; Mon, 2 Dec 2002 22:51:36 +0100 (CET) env-from (mw@kpnqwest.ch) Message-Id: <200212022151.WAA86673@mail.kpnqwest.ch> Subject: Re: netbooting freebsd-sparc64 howto To: freebsd-sparc@FreeBSD.ORG Date: Mon, 2 Dec 2002 22:51:36 +0100 (CET) From: Markus Wild X-NCC-RegID: ch.vianetworks X-Mailer: ELM [version 2.4ME+ PL99b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > You still need tftp for boot net:dhcp. bootp just provides a filename > and machine to download from, it doesn't actually transfer files. The > firmware uses tftp to grab a particular file from the specified machine. On the matter of bootp and the various BOOTP kernel options: what is the rationale behind the sparc64 port _not_ using a cpu_rootconf() function (such as for example in the i386 port) to avoid refetching the network parameters that the firmware loader already retrieved and passed on to the kernel, at least as an option? With the following small patch, you just need NFSCLIENT and NFS_ROOT as kernel option, and none of the BOOTP* to netboot (works fine at least for me here, perhaps I've missed something?). Cheers, Markus RCS file: /home/ncvs/src/sys/sparc64/sparc64/autoconf.c,v retrieving revision 1.10 diff -c -r1.10 autoconf.c *** autoconf.c 18 Nov 2002 03:28:23 -0000 1.10 --- autoconf.c 2 Dec 2002 21:48:59 -0000 *************** *** 27,38 **** --- 27,55 ---- */ #include "opt_isa.h" + #include "opt_bootp.h" + #include "opt_nfs.h" + #include "opt_nfsroot.h" #include #include #include #include #include + #include + #include + + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include #ifdef DEV_ISA #include *************** *** 57,59 **** --- 74,95 ---- #endif cold = 0; } + + /* + * Do legacy root filesystem discovery. + */ + void + cpu_rootconf() + { + #ifdef BOOTP + bootpc_init(); + #endif + #if defined(NFSCLIENT) && defined(NFS_ROOT) + #if !defined(BOOTP_NFSROOT) + nfs_setup_diskless(); + if (nfs_diskless_valid) + #endif + rootdevnames[0] = "nfs:"; + #endif + } + SYSINIT(cpu_rootconf, SI_SUB_ROOT_CONF, SI_ORDER_FIRST, cpu_rootconf, NULL) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message