Subject: Re: NetBSD and BOOTP
To: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
From: Victor Sudakov <sudakov@sibptus.tomsk.ru>
List: port-sparc64
Date: 06/11/2003 10:39:45
Valeriy E. Ushakov wrote:
> 
> >>        subclass "allocation-class-2" 1:08:00:2b:a1:11:31 {
> >>          option root-path "samsara:/var/diskless/alphapc";
> >>          filename "/tftpboot/netbsd.alphapc-diskless";
> >>        }
> > 
> > Yes, option root-path is indeed option 17.
> > Unfortunately ofwboot.net does not parse the option string as you expect.
> 
> My reading of sys/lib/libsa/bootp.c is that 'rootip' is inite from
> option 16 (swap-server, doh!) if supplied. 

Thank you ever so much, it worked. 

> root path (options 17)
> should be just the pathname.

I have now

ip dhcp pool SUN2
   host 172.16.138.114 255.255.255.128
   hardware-address 0003.ba13.8c53
   next-server 172.16.138.120
   client-name Sun2
   option 17 ascii "/pxeroot"
   option 16 ip 172.16.138.120
!

and it works, see below.

I wish it were documented somewhere, not just in the source. The
oddest thing about it is that the INSTALL.txt for sparc64 does not
mention the BOOTP method at all, it only mentions the BOOTPARAM
method.  Perhaps the documentation needs updating.


============= cut here ===============================================


ok boot net
Res
LOM event: +1h51m30s host reset
etting ...

|
Netra T1 200 (UltraSPARC-IIe 500MHz), No Keyboard
OpenBoot 4.0, 512 MB memory installed, Serial #51612755.
Ethernet address 0:3:ba:13:8c:53, Host ID: 83138c53.



Executingilastecommand: boot net
Boot device: /pci@1f,0/pci@1,1/network@c,1  File and args:
14e00 >> NetBSD/sparc64 OpenFirmware Boot, Revision
>> (autobuild@cs20.apochromatic.org, Mon Apr  7 09:50:28 UTC 2003)
net_open: client addr: 172.16.138.114
net_open: subnet mask: 255.255.255.128
net_open: net gateway: 172.16.138.61
net_open: server addr: 172.16.138.120
net_open: server path: /pxeroot
Using BOOTP protocol: ip address: 172.16.138.114, hostname: Sun2, netmask: 255.255.255.128, gateway: 172.16.138.61
root addr=172.16.138.120 path=/pxeroot
open /pci@1f,0/pci@1,1/network@c,1/netbsd: No such file or directory
: trying netbsd.gz ...
============= cut here ===============================================

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN