From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: From: Dave MacFarlane Date: Tue, 12 Apr 2016 15:50:29 -0400 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=001a113f8d42f7f4af05304efa64 Subject: Re: [9fans] Go on Plan 9? Topicbox-Message-UUID: 8ccf795c-ead9-11e9-9d60-3106f5b1d025 --001a113f8d42f7f4af05304efa64 Content-Type: text/plain; charset=UTF-8 I've managed to get Go running on an RPi2 using a similar method, but: 1. You need to make sure you're using go-tip. <= 1.6 doesn't have Plan9/arm support. 2. I had to apply this patch that Richard Miller sent me to my kernel: term% diff /n/sources/contrib/miller/9/bcm/mem.h /sys/src/9/bcm/mem.h 55c55 < #define USTKTOP 0x20000000 /* user segment end +1 */ --- > #define USTKTOP 0x40000000 /* user segment end +1 */ (Then realized that the git client I was writing in Go wasn't ready enough to use as a daily driver for developing Go programs under Plan9, so I didn't go much further than that and compiling a few test programs..) -- Dave On Tue, Apr 12, 2016 at 3:21 PM, Chris McGee wrote: > Hi Skip, > > Have you managed to get Go running on an RPi this way? > > Cheers, > Chris > > > > > If you run Plan 9 in a VM, emulator or a confined device (RPi), it will > be easier/faster to cross compile your app and copy it over. E.g. to > compile for 9Pi: > > $ GOOS=plan9 GOARCH=arm go build > > > > > > > -- - Dave --001a113f8d42f7f4af05304efa64 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I've managed to get Go running on an RPi2 using a simi= lar method, but:

1. You need to make sure you're using go-= tip. <=3D 1.6 doesn't have Plan9/arm support.
2. I h= ad to apply this patch that Richard Miller sent me to my kernel:
=
term% diff = /n/sources/contrib/miller/9/bcm/mem.h /sys/src/9/bcm/mem.h
55c55
< #define=C2=A0 =C2=A0 =C2= =A0 =C2=A0USTKTOP=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00x20000000=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 /* user segment end +1 */
---
> #define=C2=A0 = =C2=A0 =C2=A0 =C2=A0USTKTOP=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00x40000000=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 /* user segment end +1 */

(Then realized that the git client I was wri= ting in Go wasn't ready enough to use
as a daily driver for developing Go programs under Plan9, = so I didn't go much
f= urther than that and compiling a few test programs..)

-- Dave

On Tue, Apr 12, 2016 at 3:21 PM, Chris McGee <sirnew= ton_01@yahoo.ca> wrote:
Hi = Skip,

Have you managed to get Go running on an RPi this way?

Cheers,
Chris

>
> If you run Plan 9 in a VM, emulator or a confined device (RPi), it wil= l be easier/faster to cross compile your app and copy it over. E.g. to comp= ile for 9Pi:
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0$ GOOS=3Dplan9 GOARCH=3Darm go build<= br> >
>





--
=
- Dave
--001a113f8d42f7f4af05304efa64--