Cross built native 5c/5g/5l now available as ipk

220 views
Skip to first unread message

Brian Zhou

unread,
Nov 21, 2009, 1:59:56 AM11/21/09
to golang-nuts
Thanks to the great architecture, it's pretty easy to cross compile Go
toolchain. If the target happens to be little endian arm, we have a
"native" 5* toolchain that can run on the device.

The cross build recipe is at http://trac.nslu2-linux.org/optware/browser/trunk/make/golang.mk

The resulting binaries here http://ipkg.nslu2-linux.org/feeds/optware/
(for arm and i686 feeds including some uclibc targets). There are a
lot of devices that can use these feeds - Linksys nslu2 with slugos5le
or debian firmware (cs08q1armel), Marvell SheevaPlug, QNAP/Synology/
Buffalo/WD/Maxtor/D-link NAS, Palm Pre phone. Unfortunately soft
floating point does not work yet on ARM so right now you'd need to use
println() instead of fmt.

After installing the ipk, you'll need to set GOOS=linux GOARCH=arm
GOROOT=/opt/share/go GOBIN=/opt/share/go/bin, optionally PATH=$GOBIN:
$PATH.

Cheers,

-Brian

Kai

unread,
Nov 21, 2009, 11:46:52 AM11/21/09
to golang-nuts
Cool work Brian! :-)

Kai

On Nov 20, 10:59 pm, Brian Zhou <b88z...@gmail.com> wrote:
> Thanks to the great architecture, it's pretty easy to cross compile Go
> toolchain. If the target happens to be little endian arm, we have a
> "native" 5* toolchain that can run on the device.
>
> The cross build recipe is athttp://trac.nslu2-linux.org/optware/browser/trunk/make/golang.mk
>
> The resulting binaries herehttp://ipkg.nslu2-linux.org/feeds/optware/
Reply all
Reply to author
Forward
0 new messages