From owner-freebsd-current Wed Nov 24 11:47:42 1999 Delivered-To: freebsd-current@freebsd.org Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (Postfix) with ESMTP id A4F5C154CA for ; Wed, 24 Nov 1999 11:47:37 -0800 (PST) (envelope-from ambrisko@whistle.com) Received: from whistle.com (crab.whistle.com [207.76.205.112]) by alpo.whistle.com (8.9.1a/8.9.1) with ESMTP id LAA47384; Wed, 24 Nov 1999 11:47:36 -0800 (PST) Received: (from ambrisko@localhost) by whistle.com (8.9.1/8.9.1) id LAA86837; Wed, 24 Nov 1999 11:46:44 -0800 (PST) (envelope-from ambrisko) From: Doug Ambrisko Message-Id: <199911241946.LAA86837@whistle.com> Subject: Re: - current diskless is it possible ? In-Reply-To: <19991124201819.A28490@pegasus.freibergnet.de> from Holm Tiffe at "Nov 24, 99 08:18:19 pm" To: holm@freibergnet.de Date: Wed, 24 Nov 1999 11:46:44 -0800 (PST) Cc: freebsd-current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL29 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Holm Tiffe writes: | Is an NFS root supported in -current ? | How is the syntax to set the rootdevice ? | How about /boot/loader and friends <-> and etherboot ? | (the port is outdated, it references etherboot-2.4.5.tar.gz | and no one has this old file anymore, current is 2.4.10) Yes it is possible, but you need to patch sys/i386/i386/autoconf.c. included in this message. I've only tested in the case of netbooting so I could broken normal booting. Then use Etherboot. I also included it an uuencoded update to the etherboot port for etherboot-2.4.10 which can boot a FreeBSD ELF kenel. This all works as of -current (yesterday). Sorry it takes so long for the port to get updated and the Linux guys keep working on Etherboot (which BTW they has code to boot FreeBSD now and they test it). Then I have to wait for someone to read the pr's that I send in. They when someone finally looks at it. It is already obsolete. Same thing with my sdcc port that needs updating. I expect Mike will kill me for this, but it works and I don't have a PXE rom in this machine. I prefer a netboot panic rather then panic'ing my laptop when testing things. Doug A. Index: sys/i386/i386/autoconf.c =================================================================== RCS file: /cvs/freebsd/src/sys/i386/i386/autoconf.c,v retrieving revision 1.143 diff -c -r1.143 autoconf.c *** autoconf.c 1999/11/02 19:38:27 1.143 --- autoconf.c 1999/11/24 18:39:47 *************** *** 48,53 **** --- 48,54 ---- #include "opt_bootp.h" #include "opt_ffs.h" #include "opt_cd9660.h" + #include "opt_nfs.h" #include "opt_nfsroot.h" #include "opt_bus.h" #include "opt_rootdevname.h" *************** *** 213,224 **** --- 214,231 ---- cold = 0; } + #ifdef BOOTP + extern void bootpc_init(); + #endif /* * Do legacy root filesystem discovery. */ void cpu_rootconf() { + #ifdef BOOTP + bootpc_init(); + #endif #if defined(NFS) && defined(NFS_ROOT) #if !defined(BOOTP_NFSROOT) if (nfs_diskless_valid) *************** *** 226,232 **** rootdevnames[0] = "nfs:"; #endif #if defined(FFS) && defined(FFS_ROOT) ! setroot(); #endif } SYSINIT(cpu_rootconf, SI_SUB_ROOT_CONF, SI_ORDER_FIRST, cpu_rootconf, NULL) --- 233,240 ---- rootdevnames[0] = "nfs:"; #endif #if defined(FFS) && defined(FFS_ROOT) ! if (!rootdevnames[0]) ! setroot(); #endif } SYSINIT(cpu_rootconf, SI_SUB_ROOT_CONF, SI_ORDER_FIRST, cpu_rootconf, NULL) begin 664 etherboot.tgz M'XL(`!G].C@"`^U<:7/:3!+V5_0K>AW7QCG0?0`;4B$@>UD;<`%.]D.J>(48 M@0HA:768>%/Y[]LS`HP=9_VFUH%L/$]L(XE6S]'SS'2/6B'9C"3C*,JD@Y\& MT&7+,N``0)55DWXBY-7GZ@0L63$-R]0T%4!1%=DX`.-@!\C3S$D`#IS%./'3 M>?0]N>6,D.#@MP/9V+_Y82#MU_ZR9FJF;%+[&YK,[;][^_?QX/'+4&39-/7_ M8G]-H_:7=471=(O:7].I_65N_Y^.6IR2Y(HDM77[W[E7:4W"/\(!Q^^/._PG M<93Z691<[Y3_NG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