From owner-freebsd-arm@FreeBSD.ORG Wed Jan 4 12:58:33 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org 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 32BDC16A41F for ; Wed, 4 Jan 2006 12:58:33 +0000 (GMT) (envelope-from Karsten.Brandt@sick.de) Received: from csmailwak.sick.de (ns.sick.de [62.180.123.243]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6925E43D6D for ; Wed, 4 Jan 2006 12:58:31 +0000 (GMT) (envelope-from Karsten.Brandt@sick.de) Received: from ntmai08.mai.de.internal (unverified) by csmailwak.sick.de (SICK Content Security) with ESMTP id for ; Wed, 4 Jan 2006 13:58:30 +0100 To: freebsd-arm@freebsd.org MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5.1 January 21, 2004 Message-ID: From: Karsten Brandt Date: Wed, 4 Jan 2006 13:51:21 +0100 X-MIMETrack: Serialize by Router on MAIMF01.mai.de.internal/SRV/SICK(Release 6.5.4|March 27, 2005) at 01/04/2006 01:51:22 PM, Serialize complete at 01/04/2006 01:51:22 PM Content-Type: text/plain; charset="US-ASCII" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: FreeBSD on a TI TMS470 controller board X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 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 Jan 2006 12:58:33 -0000 Hi All, I've read that FreeBSD support the ARM architecture. I use FreeBSD also on i386 plattforms and I very happy with this OS. Therefore I want try to port FreeBSD-ARM to the TMS470 controller. This controller is based on an ARM7-Core. So that I believe it should work with some adjustments. My question is: Which sourcecode from FreeBSD kernel is required? The latest i386 code with patches? Is this wrong, where can I get this code? What are the rigth steps for porting this controller? For example: In the case that I've a running development environment, what the next step? Adjust register and memory assigments in the header? I hope, everybody else can help me to start this project. Best regards Karsten From owner-freebsd-arm@FreeBSD.ORG Wed Jan 4 13:59:52 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org 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 BD6C216A41F for ; Wed, 4 Jan 2006 13:59:52 +0000 (GMT) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (cognet.ci0.org [80.65.224.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4FBE43D4C for ; Wed, 4 Jan 2006 13:59:51 +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.13.4/8.13.4) with ESMTP id k04EYH1T057717; Wed, 4 Jan 2006 15:34:18 +0100 (CET) (envelope-from mlfbsd@dong.ci0.org) Received: (from mlfbsd@localhost) by dong.ci0.org (8.13.4/8.13.4/Submit) id k04EYD4j057716; Wed, 4 Jan 2006 15:34:14 +0100 (CET) (envelope-from mlfbsd) Date: Wed, 4 Jan 2006 15:34:13 +0100 From: Olivier Houchard To: Karsten Brandt Message-ID: <20060104143413.GA57653@ci0.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Cc: freebsd-arm@freebsd.org Subject: Re: FreeBSD on a TI TMS470 controller board X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 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 Jan 2006 13:59:52 -0000 On Wed, Jan 04, 2006 at 01:51:21PM +0100, Karsten Brandt wrote: > Hi All, > > > I've read that FreeBSD support the ARM architecture. > > I use FreeBSD also on i386 plattforms and I very happy with this OS. > Therefore I want try to port FreeBSD-ARM to the TMS470 controller. > This controller is based on an ARM7-Core. So that I believe it should work > with some adjustments. > > My question is: > > Which sourcecode from FreeBSD kernel is required? > The latest i386 code with patches? > > Is this wrong, where can I get this code? > > What are the rigth steps for porting this controller? > > For example: > In the case that I've a running development environment, what the next > step? > > Adjust register and memory assigments in the header? > > I hope, everybody else can help me to start this project. > Hi Karsten, The sourcecode for ARM is provided with the i386 version. A few patches are needed right now, to get gcc/binutils support. You can find the steps needed to compile a cross-compiler here : http://people.FreeBSD.org/~cognet/freebsd_arm.txt ARM7TDMI generic support should be there, however to support your particular CPU, we need : - a few bits for very early bootstrap, to setup the kernel pagetables. - a lot of drivers, as there're generally different from CPU to CPU. Once you get a working UART driver, things generally get easier. Cheers, Olivier From owner-freebsd-arm@FreeBSD.ORG Wed Jan 4 14:42:38 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org 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 4E5FC16A41F for ; Wed, 4 Jan 2006 14:42:38 +0000 (GMT) (envelope-from netjunior@mail.ru) Received: from mx6.mail.ru (mx6.mail.ru [194.67.23.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB1A243D5F for ; Wed, 4 Jan 2006 14:42:37 +0000 (GMT) (envelope-from netjunior@mail.ru) Received: from [83.149.24.66] (port=8108 helo=[172.16.7.205]) by mx6.mail.ru with esmtp id 1Eu9qV-000Mvd-00 for freebsd-arm@freebsd.org; Wed, 04 Jan 2006 17:42:36 +0300 From: NetJunior Organization: Juniorhost To: freebsd-arm@freebsd.org Date: Wed, 4 Jan 2006 17:43:12 +0300 User-Agent: KMail/1.8.2 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200601041743.13030.netjunior@mail.ru> Subject: ARM5 - PXA255 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 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 Jan 2006 14:42:38 -0000 I have MyPAL A620 (ARM5 - PXA255). May i run freebsd on this device? From owner-freebsd-arm@FreeBSD.ORG Thu Jan 5 13:02:08 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org 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 A22E616A41F for ; Thu, 5 Jan 2006 13:02:08 +0000 (GMT) (envelope-from Karsten.Brandt@sick.de) Received: from csmailwak.sick.de (ns.sick.de [62.180.123.243]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE62D43D5A for ; Thu, 5 Jan 2006 13:02:07 +0000 (GMT) (envelope-from Karsten.Brandt@sick.de) Received: from ntmai08.mai.de.internal (unverified) by csmailwak.sick.de (SICK Content Security) with ESMTP id for ; Thu, 5 Jan 2006 14:02:05 +0100 To: freebsd-arm@freebsd.org MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5.1 January 21, 2004 Message-ID: From: Karsten Brandt Date: Thu, 5 Jan 2006 13:54:56 +0100 X-MIMETrack: Serialize by Router on MAIMF01.mai.de.internal/SRV/SICK(Release 6.5.4|March 27, 2005) at 01/05/2006 01:54:56 PM, Serialize complete at 01/05/2006 01:54:56 PM Content-Type: text/plain; charset="US-ASCII" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: FreeBSD on a TI TMS470 controller board X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 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 Jan 2006 13:02:08 -0000 Hello Olivier, thanks for your fast reply. Ok, I've two versions of the FreeBSD sources on many CD's: FreeBSD 4.5 and FreeBSD 5.1. Which version should I use? Or is a newer version required? Could you me say which size has the kernel normally, when we use only the basic functionalty? In my embedded environment I don't need console, mouse, network features and so on. Now I download the patches and try to install the development environment tomorrow. Could I contact you for futher help? Cheers, Karsten From owner-freebsd-arm@FreeBSD.ORG Thu Jan 5 17:14:23 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org 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 8234816A41F for ; Thu, 5 Jan 2006 17:14:23 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09D5443D6A for ; Thu, 5 Jan 2006 17:14:22 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id k05HD43V026314; Thu, 5 Jan 2006 10:13:05 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Thu, 05 Jan 2006 10:13:22 -0700 (MST) Message-Id: <20060105.101322.25159046.imp@bsdimp.com> To: Karsten.Brandt@sick.de From: "M. Warner Losh" In-Reply-To: References: X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Thu, 05 Jan 2006 10:13:05 -0700 (MST) Cc: freebsd-arm@freebsd.org Subject: Re: FreeBSD on a TI TMS470 controller board X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 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 Jan 2006 17:14:23 -0000 In message: Karsten Brandt writes: : Ok, I've two versions of the FreeBSD sources on many CD's: FreeBSD 4.5 and : FreeBSD 5.1. : : Which version should I use? Or is a newer version required? FreeBSD 6.0 has considerably newer arm support. FreeBSD -current has even better arm support, but a big MFC is planned before 6.1 release, iirc. : Could you me say which size has the kernel normally, when we use only the : basic functionalty? I've built kernels that compress down to about 650k. There's some work needed to FreeBSD's configuration system to make it easier to select less. : In my embedded environment I don't need console, mouse, network features : and so on. Without network, I think the above would be even smaller. : Now I download the patches and try to install the development environment : tomorrow. I've been working on a port to an embedded arm chip, and it has been going quickly. The frustrating part is getting memory setup right. After that, it has been a matter of cranking out device drivers.. Warner From owner-freebsd-arm@FreeBSD.ORG Thu Jan 5 20:12:05 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org 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 629A916A41F for ; Thu, 5 Jan 2006 20:12:05 +0000 (GMT) (envelope-from Karsten.Brandt@sick.de) Received: from csmailwak.sick.de (ns.sick.de [62.180.123.243]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94D4943D45 for ; Thu, 5 Jan 2006 20:12:03 +0000 (GMT) (envelope-from Karsten.Brandt@sick.de) Received: from ntmai08.mai.de.internal (unverified) by csmailwak.sick.de (SICK Content Security) with ESMTP id for ; Thu, 5 Jan 2006 21:11:54 +0100 To: freebsd-arm@freebsd.org MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5.1 January 21, 2004 Message-ID: From: Karsten Brandt Date: Thu, 5 Jan 2006 21:04:43 +0100 X-MIMETrack: Serialize by Router on MAIMF01.mai.de.internal/SRV/SICK(Release 6.5.4|March 27, 2005) at 01/05/2006 09:04:44 PM, Serialize complete at 01/05/2006 09:04:44 PM Content-Type: text/plain; charset="US-ASCII" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: FreeBSD on a TI TMS470 controller board X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 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 Jan 2006 20:12:05 -0000 Hi Warner, Hi Olivier, thanks for your replys. The target plattform TMS470 has in the first step only 384k flash and 32k RAM. When you say the kernel has a size by ~1MByte then I can only hope that this size can decreased. Then when I've only 32k RAM and I try to shrink a zipped kernel, I becomes trouble during the unpack proccess on the target. So, that I believe that I can't shrink the kernel via gzip e.g. But I'm should not lost the hope. Up's is that the right word? I dont know. Ok, in a couple of days I know more ??? Or not, I'll see. Warner, has you finished your work on the port successfully? Or has you broken up this work, because it was too hard to solve the problems? Cheers, Karsten From owner-freebsd-arm@FreeBSD.ORG Thu Jan 5 20:29:25 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org 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 114B616A41F for ; Thu, 5 Jan 2006 20:29:25 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9018B43D46 for ; Thu, 5 Jan 2006 20:29:24 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id k05KQPNN027897; Thu, 5 Jan 2006 13:26:26 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Thu, 05 Jan 2006 13:26:44 -0700 (MST) Message-Id: <20060105.132644.91312016.imp@bsdimp.com> To: Karsten.Brandt@sick.de From: "M. Warner Losh" In-Reply-To: References: X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Thu, 05 Jan 2006 13:26:26 -0700 (MST) Cc: freebsd-arm@freebsd.org Subject: Re: FreeBSD on a TI TMS470 controller board X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 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 Jan 2006 20:29:25 -0000 In message: Karsten Brandt writes: : The target plattform TMS470 has in the first step only 384k flash and 32k : RAM. They you can't run FreeBSD on it. That's too small even for Linux, which is a little leaner than FreeBSD. : When you say the kernel has a size by ~1MByte then I can only hope that : this size can decreased. I believe that the compressed size fo the kernel can be made to be < 512k and that the uncompressed size can be a little over 1MB, but that would be with a lot of fat trimming. : Then when I've only 32k RAM and I try to shrink a zipped kernel, I becomes : trouble during the unpack proccess on the target. : So, that I believe that I can't shrink the kernel via gzip e.g. Yes. : But I'm should not lost the hope. Up's is that the right word? I dont : know. Unless your board has some external RAM, I think you may be out of luck. While one might be able to shrink FreeBSD/arm down to 4MB of RAM with a lot of effort. 8MB or 16MB would a more realisitc minimum for most applications : has you finished your work on the port successfully? Port is going very well. I'm porting to a different chip, the Atmel AT91RM9200. : Or has you broken up this work, because it was too hard to solve the : problems? My board has lots of RAM, FLASH and likely a big MMC card. We are looking to load the kernel into a 512kb flash part, which is why I'm trying to get its size down to that magic number (actually, the kernel will likely have only 470k of that since we think we'll need 16kb for the boot loader and 16kb for board specific data, that's if we don't hack just load everything off the MMC device). Warner From owner-freebsd-arm@FreeBSD.ORG Thu Jan 5 23:09:24 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org 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 CEF5C16A41F for ; Thu, 5 Jan 2006 23:09:24 +0000 (GMT) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (cognet.ci0.org [80.65.224.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57DC743D60 for ; Thu, 5 Jan 2006 23:09:20 +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.13.4/8.13.4) with ESMTP id k05Ni9Za075288; Fri, 6 Jan 2006 00:44:09 +0100 (CET) (envelope-from mlfbsd@dong.ci0.org) Received: (from mlfbsd@localhost) by dong.ci0.org (8.13.4/8.13.4/Submit) id k05Ni8xS075287; Fri, 6 Jan 2006 00:44:08 +0100 (CET) (envelope-from mlfbsd) Date: Fri, 6 Jan 2006 00:44:08 +0100 From: Olivier Houchard To: NetJunior Message-ID: <20060105234408.GA75250@ci0.org> References: <200601041743.13030.netjunior@mail.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200601041743.13030.netjunior@mail.ru> User-Agent: Mutt/1.4.1i Cc: freebsd-arm@freebsd.org Subject: Re: ARM5 - PXA255 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 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 Jan 2006 23:09:24 -0000 On Wed, Jan 04, 2006 at 05:43:12PM +0300, NetJunior wrote: > I have MyPAL A620 (ARM5 - PXA255). > May i run freebsd on this device? Hi, I'm afraid it won't work without some driver work (especially on a PDA). Cheers, Olivier