Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Sep 2001 18:55:15 -0400
From:      Paul Khavkine <paul@colba.net>
To:        freebsd-sparc@freebsd.org
Subject:   Re: Building the code
Message-ID:  <3B92B8D3.98F17C5@colba.net>
References:  <3B927F32.C617789A@colba.net> <20010902171419.A40299@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Ade Lovett wrote:

> On Sun, Sep 02, 2001 at 02:49:22PM -0400, Paul Khavkine wrote:
> >
> > Hi folks, anyone has the instructions on how to build the FreeBSD code
> > on an Ultra box ?
> > Right now the box has NetBSD 1.5.1 installed, will upgrade to
> > NetBSD-current soon.
> > I guess i'll need to setup a cross compiler, what version is recommended
> > ?
>
> Save yourself a whole bunch of pain, get a CURRENT x86 box up and running,
> and use that as your cross-compiler platform.
>

Well i dont have an x86 box to run current on. My FreeBSD box is running 4.3
STABLE
i need this box as a workstation so i dont want to put CURRENT on it.

>
> NetBSD/sparc64, whilst obviously significantly further along the track
> than FreeBSD, is not, IMHO, anywhere close to being a stable system, there
> are still numerous toolchain issues (at least as of 2 weeks ago, the last
> snap I have on one disk in my U5), and is thus not a viable cross-development
> platform, though extremely useful as a reference.

Well i was hoping to use my U1 box for that, i'll see if i can find myself an
x86  box.


>
> These are the notes given to me by Jake, who in turn got them from David,
> our toolchain fu-master.
>
> ----------------------------------------------------------------------
> 1. Download the gcc-core-3.0.tar.gz.  I got it here:
> ftp://sunsite.unc.edu/pub/gnu/gcc/gcc-3.0/gcc-core-3.0.tar.gz
>
> 2. untar; cd gcc-3.0;
>

Question: there's quite a bit of sparc bits missing from gcc 3.0 from what i
know, wouldn't
it be better to use 2.95.3 instead ?

>
> 3. mkdir o; cd o;
>
> 4. ../configure --target=sparc64-unknown-elf --program-prefix=sparc64- \
> --with-as=/usr/local/bin/sparc64-as --with-ld=/usr/local/bin/sparc64-ld
>
> 5. gmake
> ----------------------------------------------------------------------
>
> However, from an irc conversation a short while ago, we were contemplating
> with the idea of an /arch/sparc64/usr/{bin,lib,libexec} setup for such
> cross-compilers.  Also note that considerable portions of src/sys, though
> not those ones as yet used by the sparc64 kernel, are not gcc-3.0 ready by
> any stretch of the imagination.
>

Also about the kernel tree layout, i'm gonna try see if i can port NetBSD sbus
code.
It seems like NetBSD sbus code is spread over a couple directories (machine
speciffic and independent code). Are we following the same layout or should
everything including device drivers go under
sparc64/sbus, like alpha/tc ?

Thanx
Paul


>
> > Also is the loader ready to boot off the ufs partition yet ?
>
> No.  It netboots and (almost) gets to single-user (last time I checked,
> about a week ago).
>
> Actually, given the closeness of single-user, thus opening up the port to
> a considerably larger audience than the deep-deep-deep undercover people
> who are those that have done the initial framework, it is perhaps time to
> standardize on a cross-platform toolchain and location, so that we are
> all working with the same tools.
>
> -aDe
>
> --
> Ade Lovett, Austin, TX.                        ade@FreeBSD.org
> FreeBSD: The Power to Serve            http://www.FreeBSD.org/

--
"Life is just one crushing defeat after another until you just wish
 Flanders was dead."
                                        -- Homer J. Simpson




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-sparc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B92B8D3.98F17C5>