Subject: Re: problem with netboot
To: Niels Bergsma [Het Vestzaktheater Enschede] <n.bergsma@hetvestzaktheater.nl>
From: Bill Studenmund <wrstuden@netbsd.org>
List: port-macppc
Date: 11/25/2003 11:58:39
--4ZLFUWh1odzi/v6L
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Nov 22, 2003 at 11:09:50PM -0000, Niels Bergsma [Het Vestzaktheater=
 Enschede] wrote:
> Hi all!,
>=20
> I seem to have a problem with booting NetBSD v1.6.1 MacPPC over the net...
> I'm trying to set my old Apple powermac 8500 to boot from network.
>=20
> Some info about my mac and what I did so far...
>=20
> It has Open Firmware v1.0.5
> I set up to real-base to F00000
> I seems not have a problem with /dev/chaos (I connected a VGA display and
> it had no problem displaying openfirmware)
> The MAC is connected to an x86 FreeBSD 5.1 server that also is used to
> boot diskless sparc station's 5 with NetBSD (so... tftpd and nfs are setup
> correctly)
> my /etc/bootptab is looking like this:
> --------
> mac.blackrozes:\
> 	:ht=3Dether:\
> 	:ha=3D000502241400:\
> 	:sm=3D255.255.255.0:\
> 	:lg=3D192.168.0.1:\
> 	:ip=3D192.168.0.108:\
> 	:hn:\
> 	:bf=3Dnetbsd.gz:\
> 	:bs=3Dauto:\
> 	:rp=3D/mac/:\
> 	:vm=3Dauto:
> 	:vm=3Drfc1048:
> ----------
> futher: I made a directory /mac, copied netbsd.macppc to it...
> I copied owfboot.xcf to /tftpboot
> Changed bf entry to bf=3D/mac/netbsd.gz
> Add an arp entry... (arp -s ipaddress hwaddressmac)
>=20
> ***The problem***
>=20
> When I open the Open Firmware and type: boot enet:, ofwboot.xcf the
> bootloader loads and tries to catch a kernel, without any luck. It
> complains it can't open an kernel: unknown error 13 ?!?

#define EACCES          13              /* Permission denied */

> Is this a bug maybe are do I seem to forget something?

You didn't mention setting up an NFS server exporting /mac to the mac. =20
ofwboot.xcf will try to nfs-mount the root file system, and read netbsd.gz
over that. EACCES sounds like there was an error getting the netbsd.gz
file over nfs, so that could well be it.

Oh. Did you literally type, "boot enet:, ofwboot.xcf" ?? The spaces are=20
important. The first space-delimited word after boot is how to boot=20
("enet:,"). The next space-delimited word is what ofwboot will boot. So if=
=20
you really typed what you had above, ofwboot is trying to boot a kernel=20
named "ofwboot.xcf" off of the nfs mount. Which won't work.

Take care,

Bill

--4ZLFUWh1odzi/v6L
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQE/w7RuWz+3JHUci9cRAhTSAKCV/0uFAPqifVcksH72abqTa1JWGQCfV4eN
oLTnL//dzWW7uL0ykUWQ3ZM=
=5ZEF
-----END PGP SIGNATURE-----

--4ZLFUWh1odzi/v6L--