From owner-freebsd-arm@FreeBSD.ORG Wed Aug 4 11:51:16 2004 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 70A1E16A4CE for ; Wed, 4 Aug 2004 11:51:16 +0000 (GMT) Received: from expo.ukrweb.net (expo.ukrweb.net [193.125.78.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E4A643D1F for ; Wed, 4 Aug 2004 11:51:16 +0000 (GMT) (envelope-from gonzo@univ.kiev.ua) Received: from gonzo by expo.ukrweb.net with local (Exim 4.34 (FreeBSD)) id 1BsKId-000AiE-4I for freebsd-arm@freebsd.org; Wed, 04 Aug 2004 14:51:15 +0300 Date: Wed, 4 Aug 2004 14:51:15 +0300 From: Alexander Timoshenko To: freebsd-arm@freebsd.org Message-ID: <20040804115115.GA39676@univ.kiev.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD/5.2.1-RELEASE-p1 (i386) User-Agent: Mutt/1.5.6i Subject: A couple of questions X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 11:51:16 -0000 Sorry, for distrubing the silence of this templ^W mailing list :) I have a couple of questions regarding arm port of freebsd. I'm playing with intel development board these days and going to try to run freebsd on it, but want to know more before i start. - How to build image suitable for loading on developemnt board. Are there any instructions? Or could someone share his scripts with me? - Could someone describe the generic cycle of development for arm CPU? e.g: edit/compile/build image/reset board. What kind of bootloader should i use? Thanks in advance. Sorry for the kind of lame questions. -- gonzo From owner-freebsd-arm@FreeBSD.ORG Wed Aug 4 15:27:07 2004 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF79916A4CE for ; Wed, 4 Aug 2004 15:27:07 +0000 (GMT) Received: from dong.ci0.org (cognet.ci0.org [80.65.224.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6045043D48 for ; Wed, 4 Aug 2004 15:27:06 +0000 (GMT) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (localhost.ci0.org [127.0.0.1]) by dong.ci0.org (8.12.11/8.12.11) with ESMTP id i74Fr1fO083506; Wed, 4 Aug 2004 17:53:01 +0200 (CEST) (envelope-from mlfbsd@dong.ci0.org) Received: (from mlfbsd@localhost) by dong.ci0.org (8.12.11/8.12.11/Submit) id i74Fr0dI083505; Wed, 4 Aug 2004 17:53:00 +0200 (CEST) (envelope-from mlfbsd) Date: Wed, 4 Aug 2004 17:53:00 +0200 From: Olivier Houchard To: Alexander Timoshenko Message-ID: <20040804155300.GA82096@ci0.org> References: <20040804115115.GA39676@univ.kiev.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040804115115.GA39676@univ.kiev.ua> User-Agent: Mutt/1.4.1i cc: freebsd-arm@freebsd.org Subject: Re: A couple of questions X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 15:27:07 -0000 On Wed, Aug 04, 2004 at 02:51:15PM +0300, Alexander Timoshenko wrote: > Sorry, for distrubing the silence of this templ^W mailing list :) I > have a couple of questions regarding arm port of freebsd. I'm playing > with intel development board these days and going to try to run freebsd > on it, but want to know more before i start. > > - How to build image suitable for loading on developemnt board. Are > there any instructions? Or could someone share his scripts with > me? > > - Could someone describe the generic cycle of development for arm > CPU? e.g: edit/compile/build image/reset board. What kind of > bootloader should i use? > > Thanks in advance. Sorry for the kind of lame questions. > Hi, It all depends of what your board is. Generally speaking, you won't be able to run FreeBSD, because each board is too different. What is on the CVS should support the Assabet board, as this is what Simics emulate, however I have no clue on how to get FreeBSD on it, as Simics was loading the kernel for me. These days, I'm working with an IQ31244 (if you have an IQ80321, it should be fine too). I cross-build the kernel on an i386 box (gcc/binutils in the base does not support arm, but I provide patches for that), and use Redboot to bootp, download the kernel via TFTP and run it (for some definition of run). Cheers, Olivier From owner-freebsd-arm@FreeBSD.ORG Wed Aug 4 15:37:03 2004 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFFAC16A4CE for ; Wed, 4 Aug 2004 15:37:03 +0000 (GMT) Received: from expo.ukrweb.net (expo.ukrweb.net [193.125.78.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74D7B43D4C for ; Wed, 4 Aug 2004 15:37:03 +0000 (GMT) (envelope-from gonzo@univ.kiev.ua) Received: from gonzo by expo.ukrweb.net with local (Exim 4.34 (FreeBSD)) id 1BsNoz-000Glj-Oz; Wed, 04 Aug 2004 18:36:53 +0300 Date: Wed, 4 Aug 2004 18:36:53 +0300 From: Alexander Timoshenko To: Olivier Houchard Message-ID: <20040804153653.GA63512@univ.kiev.ua> References: <20040804115115.GA39676@univ.kiev.ua> <20040804155300.GA82096@ci0.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040804155300.GA82096@ci0.org> X-Operating-System: FreeBSD/5.2.1-RELEASE-p1 (i386) User-Agent: Mutt/1.5.6i cc: freebsd-arm@freebsd.org Subject: Re: A couple of questions X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 15:37:04 -0000 Olivier Houchard (cognet@ci0.org) wrote: > > On Wed, Aug 04, 2004 at 02:51:15PM +0300, Alexander Timoshenko wrote: > > Sorry, for distrubing the silence of this templ^W mailing list :) I > > have a couple of questions regarding arm port of freebsd. I'm playing > > with intel development board these days and going to try to run freebsd > > on it, but want to know more before i start. > > > > - How to build image suitable for loading on developemnt board. Are > > there any instructions? Or could someone share his scripts with > > me? > > > > - Could someone describe the generic cycle of development for arm > > CPU? e.g: edit/compile/build image/reset board. What kind of > > bootloader should i use? > > > > Thanks in advance. Sorry for the kind of lame questions. > > > > Hi, > > It all depends of what your board is. > Generally speaking, you won't be able to run FreeBSD, because each board is > too different. > What is on the CVS should support the Assabet board, as this is what Simics > emulate, however I have no clue on how to get FreeBSD on it, as Simics was > loading the kernel for me. > These days, I'm working with an IQ31244 (if you have an IQ80321, it should be > fine too). I cross-build the kernel on an i386 box (gcc/binutils in the base > does not support arm, but I provide patches for that), and use Redboot to > bootp, download the kernel via TFTP and run it (for some definition of run). Thanks for answers. Where could i get your patches(if it is possible, of course)? Are devel/arm-elf-* ports is good enough for kernel cross-building? -- gonzo From owner-freebsd-arm@FreeBSD.ORG Wed Aug 4 17:19:15 2004 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 65B6C16A4CE for ; Wed, 4 Aug 2004 17:19:15 +0000 (GMT) Received: from dong.ci0.org (cognet.ci0.org [80.65.224.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 51FAB43D5C for ; Wed, 4 Aug 2004 17:19:14 +0000 (GMT) (envelope-from doginou@dong.ci0.org) Received: from dong.ci0.org (localhost.ci0.org [127.0.0.1]) by dong.ci0.org (8.12.11/8.12.11) with ESMTP id i74HjAeZ084233; Wed, 4 Aug 2004 19:45:10 +0200 (CEST) (envelope-from doginou@dong.ci0.org) Received: (from doginou@localhost) by dong.ci0.org (8.12.11/8.12.11/Submit) id i74HjA5H084232; Wed, 4 Aug 2004 19:45:10 +0200 (CEST) (envelope-from doginou) Date: Wed, 4 Aug 2004 19:45:10 +0200 From: Olivier Houchard To: Alexander Timoshenko Message-ID: <20040804174510.GB83850@ci0.org> References: <20040804115115.GA39676@univ.kiev.ua> <20040804155300.GA82096@ci0.org> <20040804153653.GA63512@univ.kiev.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040804153653.GA63512@univ.kiev.ua> User-Agent: Mutt/1.4.1i cc: freebsd-arm@freebsd.org Subject: Re: A couple of questions X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 17:19:15 -0000 On Wed, Aug 04, 2004 at 06:36:53PM +0300, Alexander Timoshenko wrote: > Olivier Houchard (cognet@ci0.org) wrote: > > > > On Wed, Aug 04, 2004 at 02:51:15PM +0300, Alexander Timoshenko wrote: > > > Sorry, for distrubing the silence of this templ^W mailing list :) I > > > have a couple of questions regarding arm port of freebsd. I'm playing > > > with intel development board these days and going to try to run freebsd > > > on it, but want to know more before i start. > > > > > > - How to build image suitable for loading on developemnt board. Are > > > there any instructions? Or could someone share his scripts with > > > me? > > > > > > - Could someone describe the generic cycle of development for arm > > > CPU? e.g: edit/compile/build image/reset board. What kind of > > > bootloader should i use? > > > > > > Thanks in advance. Sorry for the kind of lame questions. > > > > > > > Hi, > > > > It all depends of what your board is. > > Generally speaking, you won't be able to run FreeBSD, because each board is > > too different. > > What is on the CVS should support the Assabet board, as this is what Simics > > emulate, however I have no clue on how to get FreeBSD on it, as Simics was > > loading the kernel for me. > > These days, I'm working with an IQ31244 (if you have an IQ80321, it should be > > fine too). I cross-build the kernel on an i386 box (gcc/binutils in the base > > does not support arm, but I provide patches for that), and use Redboot to > > bootp, download the kernel via TFTP and run it (for some definition of run). > > Thanks for answers. Where could i get your patches(if it is > possible, of course)? Are devel/arm-elf-* ports is good enough for > kernel cross-building? > > Patches against latest current are available here : (I've never try to apply them since the gcc 3.4.2 import, so maybe it lacks something, so please let me now if it doesn't work) : http://people.FreeBSD.org/~cognet/contrib-arm.diff (to be applied in src/contrib). http://people.FreeBSD.org/~cognet/gnu-arm.diff (to be applied in src/gnu, beware you have to use patch -p and not just patch, as it creates directory). Once done, you can compile binutils and gcc that way (fwiw I think you'll need a gcc 3.4.2 on the host to be able to do that) : (assuming you want to install the cross compiler in /usr/cross) mkdir -p /usr/cross/usr/lib mkdir -p /usr/cross/usr/share/man/man1 mkdir -p /usr/cross/usr/bin mkdir -p /usr/cross/usr/share/info touch /usr/cross/usr/lib/libc.a cd /usr/src/gnu/usr.bin/cc && make TARGET_ARCH=arm DESTDIR=/usr/cross TOOLS_PREFIX=/usr/cross depend all install cd /usr/src/gnu/usr.bin/binutils && make TARGET_ARCH=arm DESTDIR=/usr/cross TOOLS_PREFIX=/usr/cross depend all install You will then have enough in /usr/cross to cross-compile a FreeBSD/arm kernel. You can source the script at http://www.ci0.org/setarmcc to set the needed environment variables. About the devel/arm-elf* ports, I've never tried them, but I don't think they will work, as they are really old. Just out of curiosity, what board(s) do you have access to ? Cheers, Olivier From owner-freebsd-arm@FreeBSD.ORG Thu Aug 5 12:06:56 2004 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5DC3016A4CE for ; Thu, 5 Aug 2004 12:06:56 +0000 (GMT) Received: from expo.ukrweb.net (expo.ukrweb.net [193.125.78.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3793343D31 for ; Thu, 5 Aug 2004 12:06:55 +0000 (GMT) (envelope-from gonzo@univ.kiev.ua) Received: from gonzo by expo.ukrweb.net with local (Exim 4.34 (FreeBSD)) id 1Bsh1G-0000Wk-Iu; Thu, 05 Aug 2004 15:06:50 +0300 Date: Thu, 5 Aug 2004 15:06:50 +0300 From: Alexander Timoshenko To: Olivier Houchard Message-ID: <20040805120650.GA97698@univ.kiev.ua> References: <20040804115115.GA39676@univ.kiev.ua> <20040804155300.GA82096@ci0.org> <20040804153653.GA63512@univ.kiev.ua> <20040804174510.GB83850@ci0.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040804174510.GB83850@ci0.org> X-Operating-System: FreeBSD/5.2.1-RELEASE-p1 (i386) User-Agent: Mutt/1.5.6i cc: freebsd-arm@freebsd.org Subject: Re: A couple of questions X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2004 12:06:56 -0000 Olivier Houchard (cognet@ci0.org) wrote: > On Wed, Aug 04, 2004 at 06:36:53PM +0300, Alexander Timoshenko wrote: > > Olivier Houchard (cognet@ci0.org) wrote: > > > > > > On Wed, Aug 04, 2004 at 02:51:15PM +0300, Alexander Timoshenko wrote: > > > > Sorry, for distrubing the silence of this templ^W mailing list :) I > > > > have a couple of questions regarding arm port of freebsd. I'm playing > > > > with intel development board these days and going to try to run freebsd > > > > on it, but want to know more before i start. > > > > > > > > - How to build image suitable for loading on developemnt board. Are > > > > there any instructions? Or could someone share his scripts with > > > > me? > > > > > > > > - Could someone describe the generic cycle of development for arm > > > > CPU? e.g: edit/compile/build image/reset board. What kind of > > > > bootloader should i use? > > > > > > > > Thanks in advance. Sorry for the kind of lame questions. > > > > > > > > > > Hi, > > > > > > It all depends of what your board is. > > > Generally speaking, you won't be able to run FreeBSD, because each board is > > > too different. > > > What is on the CVS should support the Assabet board, as this is what Simics > > > emulate, however I have no clue on how to get FreeBSD on it, as Simics was > > > loading the kernel for me. > > > These days, I'm working with an IQ31244 (if you have an IQ80321, it should be > > > fine too). I cross-build the kernel on an i386 box (gcc/binutils in the base > > > does not support arm, but I provide patches for that), and use Redboot to > > > bootp, download the kernel via TFTP and run it (for some definition of run). > > > > Thanks for answers. Where could i get your patches(if it is > > possible, of course)? Are devel/arm-elf-* ports is good enough for > > kernel cross-building? > > > > > > Patches against latest current are available here : (I've never try to apply > them since the gcc 3.4.2 import, so maybe it lacks something, so please let me > now if it doesn't work) : .. a lot of usefull info skipped .. Thanks for help, i'll try to build kernel tonight. > Just out of curiosity, what board(s) do you have access to ? Ugh, it is big and gray :) Im a kind of newbie in the area of development boards, so i could be wrong, but it seems to be Intel PXA27x Processor Developer's Kit. > Cheers, > > Olivier > -- gonzo From owner-freebsd-arm@FreeBSD.ORG Thu Aug 5 14:05:03 2004 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B693E16A4CE for ; Thu, 5 Aug 2004 14:05:03 +0000 (GMT) Received: from dong.ci0.org (cognet.ci0.org [80.65.224.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BE7443D5A for ; Thu, 5 Aug 2004 14:05:02 +0000 (GMT) (envelope-from doginou@dong.ci0.org) Received: from dong.ci0.org (localhost.ci0.org [127.0.0.1]) by dong.ci0.org (8.12.11/8.12.11) with ESMTP id i75EVC39091302; Thu, 5 Aug 2004 16:31:13 +0200 (CEST) (envelope-from doginou@dong.ci0.org) Received: (from doginou@localhost) by dong.ci0.org (8.12.11/8.12.11/Submit) id i75EVCLD091301; Thu, 5 Aug 2004 16:31:12 +0200 (CEST) (envelope-from doginou) Date: Thu, 5 Aug 2004 16:31:12 +0200 From: Olivier Houchard To: Alexander Timoshenko Message-ID: <20040805143112.GB90141@ci0.org> References: <20040804115115.GA39676@univ.kiev.ua> <20040804155300.GA82096@ci0.org> <20040804153653.GA63512@univ.kiev.ua> <20040804174510.GB83850@ci0.org> <20040805120650.GA97698@univ.kiev.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040805120650.GA97698@univ.kiev.ua> User-Agent: Mutt/1.4.1i cc: freebsd-arm@freebsd.org Subject: Re: A couple of questions X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2004 14:05:04 -0000 On Thu, Aug 05, 2004 at 03:06:50PM +0300, Alexander Timoshenko wrote: > Olivier Houchard (cognet@ci0.org) wrote: > > On Wed, Aug 04, 2004 at 06:36:53PM +0300, Alexander Timoshenko wrote: > > > Olivier Houchard (cognet@ci0.org) wrote: > > > > > > > > On Wed, Aug 04, 2004 at 02:51:15PM +0300, Alexander Timoshenko wrote: > > > > > Sorry, for distrubing the silence of this templ^W mailing list :) I > > > > > have a couple of questions regarding arm port of freebsd. I'm playing > > > > > with intel development board these days and going to try to run freebsd > > > > > on it, but want to know more before i start. > > > > > > > > > > - How to build image suitable for loading on developemnt board. Are > > > > > there any instructions? Or could someone share his scripts with > > > > > me? > > > > > > > > > > - Could someone describe the generic cycle of development for arm > > > > > CPU? e.g: edit/compile/build image/reset board. What kind of > > > > > bootloader should i use? > > > > > > > > > > Thanks in advance. Sorry for the kind of lame questions. > > > > > > > > > > > > > Hi, > > > > > > > > It all depends of what your board is. > > > > Generally speaking, you won't be able to run FreeBSD, because each board is > > > > too different. > > > > What is on the CVS should support the Assabet board, as this is what Simics > > > > emulate, however I have no clue on how to get FreeBSD on it, as Simics was > > > > loading the kernel for me. > > > > These days, I'm working with an IQ31244 (if you have an IQ80321, it should be > > > > fine too). I cross-build the kernel on an i386 box (gcc/binutils in the base > > > > does not support arm, but I provide patches for that), and use Redboot to > > > > bootp, download the kernel via TFTP and run it (for some definition of run). > > > > > > Thanks for answers. Where could i get your patches(if it is > > > possible, of course)? Are devel/arm-elf-* ports is good enough for > > > kernel cross-building? > > > > > > > > > > Patches against latest current are available here : (I've never try to apply > > them since the gcc 3.4.2 import, so maybe it lacks something, so please let me > > now if it doesn't work) : > .. a lot of usefull info skipped .. > Thanks for help, i'll try to build kernel tonight. > (I'm in the process of re-generating patches for gcc, in order to be able to do a full buildworld, I'll place them in people.FreeBSD.org/~cognet soon). > > Just out of curiosity, what board(s) do you have access to ? > Ugh, it is big and gray :) Im a kind of newbie in the area > of development boards, so i could be wrong, but it seems to be > Intel PXA27x Processor Developer's Kit. > Nice board indeed ! But FreeBSD won't run on it yet (neither will NetBSD). Each arm sub-arch is different enough to require some amount of hackery. If you wish to provide help making FreeBSD run on your board, you'd be more than welcome :-) Cheers, Olivier