Subject: Re: NetBSD/macppc boot: Invalid memory access
To: None <port-macppc@NetBSD.org>
From: Antoine Reilles <Antoine.Reilles@loria.fr>
List: port-macppc
Date: 03/25/2006 23:52:44
--z6Eq5LdranGa6ru8
Content-Type: multipart/mixed; boundary="9amGYk9869ThD9tj"
Content-Disposition: inline


--9amGYk9869ThD9tj
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

On Sat, Mar 25, 2006 at 11:34:12PM +0100, Liu Pei wrote:
> I am really interested in using NetBSD on my macintosh powerbook but
> unfortunately, I did not succeed in booting NetBSD's kernel on the
> install CD-ROM.
>=20
> Here are the steps I followed (since I've read the install guide and
> macppc port install notes several times as mentioned :) )
>=20
> - I downloaded the macppccd-3.0.iso with wget from ftp.NetBSD.org
> (several times)
> - I burnt it with: 'cdrecord -v dev=3D/dev/cdrw speed=3D4 -data -eject
> macppccd-3.0.iso' (several times)
> - I booted from OpenFirmware 3 : 'boot cd:,ofwboot.xcf netbsd.macppc'
>=20
> and I had this output :
> "
> ...
> NetBSD/macppc OpenFirmware Boot revision 1.10
> build@b2.netbsd.org Mon Dec 19 01:03:51 UTC 2005
> 4471564+105540=3D0x45da2c
> start=3D0x100000
>=20
> Invalid memory access at SRR0:db6db6db8 SSR1:40003030
> "
I have had the same problem on a Powerbook 6,8 (12'')
It seems that the problem does not appear with older powerbooks

> Did I miss something ?
Back in february, i tested some patches to get it booting
http://mail-index.netbsd.org/port-macppc/2006/02/10/0000.html

since then, i have a few "nop" in=20
sys/arch/powerpc/oea/ofw_subr.S
(see attached patch)
and since then, all my kernels booted fine
However, i still have no clue why it is working...

Cheers,
antoine

--9amGYk9869ThD9tj
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="boot.patch"
Content-Transfer-Encoding: quoted-printable

Index: ofw_subr.S
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/src/sys/arch/powerpc/oea/ofw_subr.S,v
retrieving revision 1.2
diff -u -r1.2 ofw_subr.S
--- ofw_subr.S	13 Feb 2003 15:02:49 -0000	1.2
+++ ofw_subr.S	25 Mar 2006 22:51:11 -0000
@@ -64,6 +64,9 @@
 	mtlr	30
 1:
 #endif
+	nop
+	nop
+
 	lis	8,openfirmware_entry@ha
 	stw	5,openfirmware_entry@l(8) /* save client interface handler*/
=20
@@ -85,6 +88,8 @@
 	lis	9,_C_LABEL(OF_buf)@ha
 	stw	8,_C_LABEL(OF_buf)@l(9)
=20
+	nop
+	nop
 	blr
=20
 /*

--9amGYk9869ThD9tj--

--z6Eq5LdranGa6ru8
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Darwin)

iD8DBQFEJcm84VqmoGDE/mwRAraEAJ9E8TAJCYYKI1TmOH9qXKuzhqyp1QCfWo0s
EodhQkG1CA7pEl8AN6TBR7Y=
=DFrh
-----END PGP SIGNATURE-----

--z6Eq5LdranGa6ru8--