Subject: booting from NetBSD/i386
To: None <port-sun3@netbsd.org>
From: Michael C. Richardson <mcr@sandelman.ottawa.on.ca>
List: tech-net
Date: 11/04/1999 19:47:18
  As far as I can tell, the 1.4 rpc.bootparamd will not boot a sun3
with the 1.4 sun3 netboot. The problem seems to be that the sun3 netboot
wants the parameter "gateway", but the 1.4 rpc.bootparmd doesn't let me
put that parameter in as it expects a file name.

istari-[/usr/src/usr.sbin/rpc.bootparamd] mcr 432 %ident *.c
bootparam_prot_svc.c:
     $NetBSD: bootparam_prot.x,v 1.4 1997/10/09 14:21:19 lukem Exp $

bootparamd.c:
     $NetBSD: bootparamd.c,v 1.18 1999/03/24 22:01:38 nathanw Exp $
     $NetBSD: bootparamd.c,v 1.18 1999/03/24 22:01:38 nathanw Exp $

  I think that the patch should be 

	} else if (err == ENOENT &&
		   (!strcmp(getfile->file_id, "dump") ||
		    !strcmp(getfile->file_id, "gateway"))) {
		/* Special for dump, answer with null strings. */
		res.server_name[0] = '\0';
		res.server_path[0] = '\0';
		memset(&res.server_address.bp_address_u.ip_addr, 0, 4);

  in bootparamproc_getfile_1_svc.
  A workaround, I just realized, is to put a ":" at the end of the gateway
name. I also think that the netboot shouldn't require that you specify
a gateway.

  This isn't in bootparams(5). I will edit it if that is the real solution.

   :!mcr!:            |  Cow#1: Are you worried about getting Mad Cow Disease?
   Michael Richardson |  Cow#2: No. I'm a duck.
 Home: mcr@sandelman.ottawa.on.ca. PGP key available.