Subject: RE: Unable to netboot G3 (blue and white) NetBSD 1.5.2
To: =?iso-8859-1?Q?Henrik_Lund_Kramsh=BFj?= <hlk@kramse.dk>
From: Matt Shirts <mshirts@redback.com>
List: port-macppc
Date: 12/20/2001 17:35:39
Update!

Not only had I used tcpdump, but I also captured the entire bootp sequence
with a Dolch network analyzer to see if there was a difference in the way a
rev A and a rev B were sending the bootp request. I didn't look at the sniff
very closely (I preferred the trial and error method in this case) and would
you believe that the problem with the non-booters was in the bootptab after
all? Here's an entry that doesn't work:

:ht=1:ha="00:05:E4:10:E9:7D":\

and the fix:

:ht=1:ha="0005E410E97D":\

I actually thought I had tried that earlier, but perhaps a kill -HUP bootpd
didn't do the trick. by omitting the colons in the ha entry, I am able to
netboot B & W G3 rev A and rev B, as well as my G4 that is also running Open
Firmware 3.1.1

My next trick is to take the custom 1.5.2 kernel I constructed and make the
G3 a stand alone install. Previous attempts to boot from the 1.5.2
netbsd.ram.gz did not detect the IDE HDD, and booting netbsd.GENERIC locks
up the USB keyboard at the login prompt. Any ideas on how to make a CDROM
with my custom kernel on it? When I tried to construct a iso9660 cd-rom, it
is readable from windows, mountable with mount_cd9660 /dev/cd0a /mntcdrom in
netBSD 1.5.2, and I can read the files with dir cd from Open Firmware
3.1.1... I get an invalid disklabel when I try to run boot
cd:0,\ofwboot.xcf. If anyone else has any insight on how to accomplish this,
I'd appreciate the help!

Thanks in advance and a very Happy Holidays to all!

Matt
-----Original Message-----
From: Henrik Lund Kramsh¿j [mailto:hlk@kramse.dk]
Sent: Thursday, December 20, 2001 2:54 PM
To: Matt Shirts
Cc: port-macppc@netbsd.org
Subject: Re: Unable to netboot G3 (blue and white) NetBSD 1.5.2


  Matt Shirts wrote:

>Hello-
>
>I have a couple of G3 (blue and white) macs that are giving me fits! A
>number of these macs (11 in all) boot just fine, the remaining two however
>are quite perplexing. The only difference between those that do and those
>that do not, appears to be the non-booters are Rev B. (Dual IDE drive
>carrier) versions running Open Firmware 3.1.1. Those that boot are G3 Rev
A.
>(Single IDE drive carrier) running Open Firmware 3.1.0.
>
>First issue:
>
>When I attempt to boot a Rev B. mac, The bootp server responds with the
>following:
>
>Dec 14 16:26:14 bootpd[24607]: recvd pkt from IP addr 0.0.0.0
>Dec 14 16:26:14 bootpd[24607]: bootptab mtime: Fri Dec 14 16:24:16 2001
>Dec 14 16:26:14 bootpd[24607]: request from Ethernet address
>00:50:E4:10:E9:7D
>Dec 14 16:26:14 bootpd[24607]: unknown client Ethernet address
>00:50:E4:10:E9:7D
>Dec 14 16:26:19 bootpd[24607]: recvd pkt from IP addr 0.0.0.0
>Dec 14 16:26:19 bootpd[24607]: bootptab mtime: Fri Dec 14 16:24:16 2001
>Dec 14 16:26:19 bootpd[24607]: request from Ethernet address
>00:50:E4:10:E9:7D
>Dec 14 16:26:19 bootpd[24607]: unknown client Ethernet address
>00:50:E4:10:E9:7D
>Dec 14 16:26:25 bootpd[24607]: recvd pkt from IP addr 0.0.0.0
>Dec 14 16:26:25 bootpd[24607]: bootptab mtime: Fri Dec 14 16:24:16 2001
>Dec 14 16:26:25 bootpd[24607]: request from Ethernet address
>00:50:E4:10:E9:7D
>Dec 14 16:26:25 bootpd[24607]: unknown client Ethernet address
>00:50:E4:10:E9:7D
>
>And here is a Rev A. mac...:
>
>tail -f /var/log/messages
>Dec 14 16:30:46 bootpd[24607]: bootptab mtime: Fri Dec 14 16:24:16 2001
>Dec 14 16:30:46 bootpd[24607]: request from Ethernet address
>00:05:02:5F:C8:93
>Dec 14 16:30:46 bootpd[24607]: found 10.13.49.79 (mac1)
>Dec 14 16:30:46 bootpd[24607]: bootfile="/netbsd-mac1"
>Dec 14 16:30:46 bootpd[24607]: vendor magic field is 99.130.83.99
>Dec 14 16:30:46 bootpd[24607]: request message length=548
>Dec 14 16:30:46 bootpd[24607]: extended reply, length=548, options=312
>Dec 14 16:30:46 bootpd[24607]: sending reply (with RFC1048 options)
>Dec 14 16:30:46 bootpd[24607]: setarp 10.13.49.79 - 00:05:02:5F:C8:93
>Dec 14 16:30:46 bootpd[24607]: arp -d 10.13.49.79; arp -s 10.13.49.79
>00:05:02:5F:C8:93 temp
>
>Here are my bootptab entries:
>
>mactest:\
>        :ht=1:ha="00:05:E4:10:E9:7D":\
>        :ip=10.13.49.75:\
>        :gw=10.13.49.254:\
>        :rp=/usr/tftpboot/mac:\
>        :sa=10.13.49.100:\
>        :sm=255.255.255.0:\
>        :td=/usr/tftpboot:\
>        :bf=netbsd-mac1:\
>        :vm=rfc1048:
>mac1:\
>        :ht=1:ha="00:05:02:5F:C8:93":\
>        :ip=10.13.49.79:\
>        :gw=10.13.49.254:\
>        :rp=/usr/tftpboot/mac/mac1:\
>        :sa=10.13.49.100:\
>        :sm=255.255.255.0:\
>        :td=/usr/tftpboot:\
>        #:bf=netbsd-mac-LATEST
>        :bf=netbsd-mac1:\
>
>I have specifically altered the :rp entry on mactest to prevent it from
>booting, should I get past the 'Server not responding, Can't open enet:0'
>error message when attempting to netboot. The bootp server is running
NetBSD
>1.4.3.
>
>Second issue:
>
>After obtaining a home-brewed kernel (designated BLUEG3NETBOOT), I was able
>to netboot a G3 Rev A. mac AND use my usb keyboard, a feat I could not
>accomplish with the netbsd.GENERIC included on the netbsd 1.5.2 macppc iso
>image. I believe I successfully ran sysinst to install 1.5.2 to the local
>ide HDD (which apparently isn't supported by netbsd.ram on the 1.5.2 iso),
>but I have not been able to figure out the magic boot command to boot the
>HDD from Open Firmware. Can anyone shed some light on this one?
>
>I appreciate everyone's time, patience, and any assistance you may have to
>offer. If you need any additional information, please don't hesitate to
>contact me and I'll be happy to provide any additional data. Thank you all
>so much!
>
>Warmest Holiday Wishes,
>
>Matt Shirts
>SQA Lab Guy
>Redback Networks, Inc.
>(408) 382-8414
>
Just to let you know that I netbooted my Blue and White OF 3.1.1 just
fine following the
howto's, readmes and other posts that you need to find :)

Using a tool such as tcpdump or Ethereal (www.ethereal.com - free) are
very nice for
seeing how far the packets go.

In fact since neither FreeBSD or OpenBSD will run this box it will be
Mac OS X and NetBSD
alone for now :)

Henrik Lund Kramshøj
hlk@kramse.dk