From owner-freebsd-hackers Thu Oct 29 14:20:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA01031 for freebsd-hackers-outgoing; Thu, 29 Oct 1998 14:16:57 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id OAA01005 for ; Thu, 29 Oct 1998 14:16:54 -0800 (PST) (envelope-from imp@village.org) Received: from harmony [10.0.0.6] by rover.village.org with esmtp (Exim 1.71 #1) id 0zZ0My-00076G-00; Thu, 29 Oct 1998 15:16:40 -0700 Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.1/8.8.3) with ESMTP id PAA17442; Thu, 29 Oct 1998 15:16:27 -0700 (MST) Message-Id: <199810292216.PAA17442@harmony.village.org> To: "Stephane E. Potvin" Subject: Re: FreeBSD arm port Cc: Hackers@freebsd.org In-reply-to: Your message of "Thu, 29 Oct 1998 14:17:20 EST." <3638BF40.304CB4F0@videotron.ca> References: <3638BF40.304CB4F0@videotron.ca> Date: Thu, 29 Oct 1998 15:16:26 -0700 From: Warner Losh Sender: owner-freebsd-hackers@freebsd.org Precedence: bulk X-Loop: FreeBSD.ORG In message <3638BF40.304CB4F0@videotron.ca> "Stephane E. Potvin" writes: : For a project I have here I need to port FreeBSD to an arm architecture : Before I RTFM and try to learn how to add the support to the FreeBSD gcc : compiler to cross-compile from our i386-unknown-freebsd3.0 to : arm-unknown-freebsd3.0 I wanted to check if anyone had already done this : or was in the process of doing so. I guess it would be easier to do the : port using netbsd as host but as the hw is not yet ready we are using an : ebsa285 board to do the prototyping and I was told that netBSD doesn't : support it natively (though I could be mistaken). The cross compilation may be a bit of a problem. while the binutitls are setup to easily build different targets, the current gcc in the tree isn't setup to do that at all. I'm working on "fixing" that for a target that I'm working on. Once that is done, the cross compiler stuff should be fairly simple and easy. Until that happens, however, your best bet may be to use gcc 2.8.1 or egcs and configure it --target arm-unknown-freebsd3.0. You'll need to write some files to support this, but configure will tell you which ones (if you clone the FreeBSD entry). : Also, some pointers as to what are the main steps for doing such a port : (FreeBSD port as a whole) would be greatly appreciated. Step one, get build tools working. Step two-a, get the kernel working Step two-b, get userland working Step three boot. For kernel breakage, see step two-a, for userland breakage, see step two-b :-) You'll need to have at least some of the kernel files in place before you can build a userland. Trying to build the user land will tell you what is missing :-). Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message