From owner-freebsd-sparc Sun Sep 2 11:44:54 2001 Delivered-To: freebsd-sparc@freebsd.org Received: from orbital.mtl.posixnet.org (orbital.mtl.posixnet.org [66.38.182.19]) by hub.freebsd.org (Postfix) with ESMTP id 5158037B403 for ; Sun, 2 Sep 2001 11:44:51 -0700 (PDT) Received: from colba.net (localhost.mtl.posixnet.org [127.0.0.1]) by orbital.mtl.posixnet.org (8.11.4/8.11.4) with ESMTP id f82InMv14394 for ; Sun, 2 Sep 2001 14:49:22 -0400 (EDT) (envelope-from paul@colba.net) Message-ID: <3B927F32.C617789A@colba.net> Date: Sun, 02 Sep 2001 14:49:22 -0400 From: Paul Khavkine X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-sparc@freebsd.org Subject: Building the code Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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 ? Also is the loader ready to boot off the ufs partition yet ? Thanx Paul -- "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 From owner-freebsd-sparc Sun Sep 2 15:14:44 2001 Delivered-To: freebsd-sparc@freebsd.org Received: from omega.lovett.com (omega.lovett.com [209.249.90.123]) by hub.freebsd.org (Postfix) with ESMTP id D40AE37B405 for ; Sun, 2 Sep 2001 15:14:41 -0700 (PDT) Received: from austin.lovett.com ([66.25.157.243] helo=klendathu.lovett.com ident=ident) by omega.lovett.com with esmtp (Exim 3.31 #1) id 15dfVU-000LfV-00; Sun, 02 Sep 2001 15:14:20 -0700 Received: from ade by klendathu.lovett.com with local (Exim 3.33 #1) id 15dfVT-000Aiy-00; Sun, 02 Sep 2001 17:14:19 -0500 Date: Sun, 2 Sep 2001 17:14:19 -0500 From: Ade Lovett To: Paul Khavkine Cc: freebsd-sparc@freebsd.org Subject: Re: Building the code Message-ID: <20010902171419.A40299@FreeBSD.org> References: <3B927F32.C617789A@colba.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B927F32.C617789A@colba.net>; from paul@colba.net on Sun, Sep 02, 2001 at 02:49:22PM -0400 Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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. 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. 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; 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 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/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message From owner-freebsd-sparc Sun Sep 2 15:15:52 2001 Delivered-To: freebsd-sparc@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id 267D337B401; Sun, 2 Sep 2001 15:15:51 -0700 (PDT) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.5/8.11.1) id f82MFoG01734; Sun, 2 Sep 2001 15:15:50 -0700 (PDT) (envelope-from obrien) Date: Sun, 2 Sep 2001 15:15:50 -0700 From: "David O'Brien" To: Ade Lovett Cc: Paul Khavkine , freebsd-sparc@FreeBSD.org Subject: Re: Building the code Message-ID: <20010902151550.B1399@dragon.nuxi.com> Reply-To: obrien@NUXI.com References: <3B927F32.C617789A@colba.net> <20010902171419.A40299@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010902171419.A40299@FreeBSD.org>; from ade@FreeBSD.org on Sun, Sep 02, 2001 at 05:14:19PM -0500 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, Sep 02, 2001 at 05:14:19PM -0500, Ade Lovett wrote: > These are the notes given to me by Jake, who in turn got them from David, > our toolchain fu-master. Do NOT do this -- this tool chain is not ready. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message From owner-freebsd-sparc Sun Sep 2 15:50:49 2001 Delivered-To: freebsd-sparc@freebsd.org Received: from orbital.mtl.posixnet.org (orbital.mtl.posixnet.org [66.38.182.19]) by hub.freebsd.org (Postfix) with ESMTP id E516237B403 for ; Sun, 2 Sep 2001 15:50:44 -0700 (PDT) Received: from colba.net (localhost.mtl.posixnet.org [127.0.0.1]) by orbital.mtl.posixnet.org (8.11.4/8.11.4) with ESMTP id f82MtFv15027 for ; Sun, 2 Sep 2001 18:55:15 -0400 (EDT) (envelope-from paul@colba.net) Message-ID: <3B92B8D3.98F17C5@colba.net> Date: Sun, 02 Sep 2001 18:55:15 -0400 From: Paul Khavkine X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-sparc@freebsd.org Subject: Re: Building the code References: <3B927F32.C617789A@colba.net> <20010902171419.A40299@FreeBSD.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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 From owner-freebsd-sparc Sun Sep 2 15:51:36 2001 Delivered-To: freebsd-sparc@freebsd.org Received: from orbital.mtl.posixnet.org (orbital.mtl.posixnet.org [66.38.182.19]) by hub.freebsd.org (Postfix) with ESMTP id 1469F37B403 for ; Sun, 2 Sep 2001 15:51:32 -0700 (PDT) Received: from colba.net (localhost.mtl.posixnet.org [127.0.0.1]) by orbital.mtl.posixnet.org (8.11.4/8.11.4) with ESMTP id f82Mu2v15031 for ; Sun, 2 Sep 2001 18:56:03 -0400 (EDT) (envelope-from paul@colba.net) Message-ID: <3B92B902.F96AAA2A@colba.net> Date: Sun, 02 Sep 2001 18:56:02 -0400 From: Paul Khavkine X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-sparc@freebsd.org Subject: Re: Building the code References: <3B927F32.C617789A@colba.net> <20010902171419.A40299@FreeBSD.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Also what are the procedures to actually build the kernel ? Have config been patched to recognise sparc64 options ? Thanx Paul 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. > > 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. > > 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; > > 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 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 From owner-freebsd-sparc Sun Sep 2 16:15:40 2001 Delivered-To: freebsd-sparc@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id 8779C37B41F for ; Sun, 2 Sep 2001 16:15:32 -0700 (PDT) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.5/8.11.1) id f82NFRL02919; Sun, 2 Sep 2001 16:15:27 -0700 (PDT) (envelope-from obrien) Date: Sun, 2 Sep 2001 16:15:23 -0700 From: "David O'Brien" To: Paul Khavkine Cc: freebsd-sparc@freebsd.org Subject: Re: Building the code Message-ID: <20010902161523.C1399@dragon.nuxi.com> Reply-To: obrien@NUXI.com References: <3B927F32.C617789A@colba.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B927F32.C617789A@colba.net>; from paul@colba.net on Sun, Sep 02, 2001 at 02:49:22PM -0400 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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. That would probably be fine. What version is the native compiler, assembler and linker? I'll assume it is ELF. cc -v ld -v file /usr/bin/vi will answer these questions. > I guess i'll need to setup a cross compiler, what version is > recommended? The native compiler will be fine. CVS checkout a FreeBSD 5-current src/sys somewhere. You can then cd src/sys/sparc64/conf, create a mini kernel config, config it (you'll have to build the FreeBSD config(8) somehow), and compile it. > Also is the loader ready to boot off the ufs partition yet ? There is a hacked up miniloader running around. Maybe someone will give you a pointer to it. -- -- David (obrien@NUXI.com) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message From owner-freebsd-sparc Sun Sep 2 16:19:16 2001 Delivered-To: freebsd-sparc@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id 5BF7137B409 for ; Sun, 2 Sep 2001 16:19:13 -0700 (PDT) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.5/8.11.1) id f82NJBs02951; Sun, 2 Sep 2001 16:19:11 -0700 (PDT) (envelope-from obrien) Date: Sun, 2 Sep 2001 16:19:11 -0700 From: "David O'Brien" To: Paul Khavkine Cc: freebsd-sparc@freebsd.org Subject: Re: Building the code Message-ID: <20010902161911.D1399@dragon.nuxi.com> Reply-To: obrien@NUXI.com References: <3B927F32.C617789A@colba.net> <20010902171419.A40299@FreeBSD.org> <3B92B8D3.98F17C5@colba.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B92B8D3.98F17C5@colba.net>; from paul@colba.net on Sun, Sep 02, 2001 at 06:55:15PM -0400 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, Sep 02, 2001 at 06:55:15PM -0400, Paul Khavkine wrote: > 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. You don't need to run current on it, just have a -current src/sys checked out (and build the -current config(8) and copy somewhere safe). You can get a toolchain from http://people.freebsd.org/~jake/. I could give directions to building your own GCC 2.95.3 cross-compiler on FreeBSD/i386, but I'd rather everyone use the same toolchain at this point. > Well i was hoping to use my U1 box for that, i'll see if i can find > myself an x86 box. Give it a try, I'm courious to see how far you can get on that machine. > 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 ? Yes, but the reason being because the kernel tree is only known to work with GCC 2.95.3. Please forget GCC 3.0 exists for the time being. -- -- David (obrien@NUXI.com) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message From owner-freebsd-sparc Mon Sep 3 11:28:31 2001 Delivered-To: freebsd-sparc@freebsd.org Received: from orbital.mtl.posixnet.org (orbital.mtl.posixnet.org [66.38.182.19]) by hub.freebsd.org (Postfix) with ESMTP id 0A4D537B401 for ; Mon, 3 Sep 2001 11:28:28 -0700 (PDT) Received: from colba.net (localhost.mtl.posixnet.org [127.0.0.1]) by orbital.mtl.posixnet.org (8.11.4/8.11.4) with ESMTP id f83IWuv88780 for ; Mon, 3 Sep 2001 14:32:56 -0400 (EDT) (envelope-from paul@colba.net) Message-ID: <3B93CCD8.1772D3D9@colba.net> Date: Mon, 03 Sep 2001 14:32:56 -0400 From: Paul Khavkine X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-sparc@freebsd.org Subject: Building the kernel Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Ok i have got the toolchain installed on a x86 box and am able to build the kernel. But first of all the image being built is ELF and my OpenBoot loader only recognizes a.out images. So i got the elftoaout utility and it seems to convert filrs properly but it still wont boot, i get Illigal instruction when i try to netboot my Ultra1. Any ideas ? Thanx Paul -- "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