Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Nov 1999 11:46:44 -0800 (PST)
From:      Doug Ambrisko <ambrisko@whistle.com>
To:        holm@freibergnet.de
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: - current diskless is it possible ?
Message-ID:  <199911241946.LAA86837@whistle.com>
In-Reply-To: <19991124201819.A28490@pegasus.freibergnet.de> from Holm Tiffe at "Nov 24, 99 08:18:19 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
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*'_[II:IS_NP!ENN0EA(S3B11'299*(<FDS;#@L\!3XK\=
M9HE/TAVO_XIBW/'_=$4S.?]WPO^.,R>>'Q!)$4VI$X4P(#&H%LAJ3=5JN@5*
MM5J5)*$E4:E4DMAQ[&3N[.9L/F5'G$[_Q_POS+OG^%\W#.;_JPJ/__=B_Y^Q
M"_`G[2];NJKIAD+M;VH:M_^^[/_8NP`_'O_KAJ;R]9_'_QQ[X?\C[P(\'/];
M=_AO6!:/_W^)^+\8%GPN>$K\?^Q=@(?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!=[)]$MPF8
MI`FJ4M/U]38!SRG^5?E?#(9'+N/A]1_Y;UJ:H2(L]OZGI?/U?R?HDHP]?%@_
MB7#$*,\D^_P$BJ0T'@8\)?ZS2?[1RW@P_T-E_)?I__YAZ$7^C\;YOQ,,9SY-
M_)T06#HIT"<`?N@$U^`ET>)F4@@G-!4A9$F#YW2/';PHF*<PI:F^P;5`PID3
MNF0"?I:"EX<LB=@)_.R:W>LZL3/V\13]2A&@G4'F9?'SE.DKYAD0J"`=B"DJ
M*82<((U@AM5R8$'"_$;-M2@((JW@7X&FJ19/3E$L(2S1,0,_!);T<3.ZBS12
MU&M/_`P.BR?9AX)/VX1>S\1/B$MC7O98=A&A)@^;EB=884'H1AE!.>PIOZ@,
M2\YPHR3)8Y;8ZJ=ICCU(NZ@--/LSCN(\<-A=A+7*#[U(2+,D=ZE2E&*9JED$
M013-`6N`M:+%BL(^^<_<MYWSG^W_(O\-2[5TTRKR__C^'P<'!P<'!P<'!P<'
B!P<'!P<'!P<'!P<'!P<'!P<'!P<'!\>#^`\X[=E0`'@```<'
`
end


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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