From owner-freebsd-arm@FreeBSD.ORG Mon May 28 14:19:33 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F04F216A476 for ; Mon, 28 May 2007 14:19:33 +0000 (UTC) (envelope-from jhay@meraka.csir.co.za) Received: from zibbi.meraka.csir.co.za (zibbi.meraka.csir.co.za [146.64.24.58]) by mx1.freebsd.org (Postfix) with ESMTP id D482C13C469 for ; Mon, 28 May 2007 14:19:32 +0000 (UTC) (envelope-from jhay@meraka.csir.co.za) Received: by zibbi.meraka.csir.co.za (Postfix, from userid 3973) id D461233CCF; Mon, 28 May 2007 15:46:07 +0200 (SAST) Date: Mon, 28 May 2007 15:46:07 +0200 From: John Hay To: freebsd-arm@freebsd.org Message-ID: <20070528134607.GA67826@zibbi.meraka.csir.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: removing hardcoded uart vbase 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: Mon, 28 May 2007 14:19:34 -0000 Hi, This patch removes the hardcoded IXP425_UART?_VBASE values from uart_cpu_ixp425.c and uart_bus_ixp425.c. I have two questions: I had to make getvbase() global and Sam sounded ok with that. Should we maybe rename it to something like ixp425_getvbase() or is ok as it is? To find the console, I just check for uart 0 in the hints. Is that good enough or should one also check for flags 0x10 like on sio devices? For me uart 0 is good enough because I just configure uart 0 addr and irq to the one I want as the console. Anyway is the patch ok? John -- John Hay -- John.Hay@meraka.csir.co.za / jhay@FreeBSD.org Index: uart_cpu_ixp425.c =================================================================== RCS file: /home/ncvs/src/sys/arm/xscale/ixp425/uart_cpu_ixp425.c,v retrieving revision 1.2 diff -u -r1.2 uart_cpu_ixp425.c --- uart_cpu_ixp425.c 2 Apr 2007 22:00:22 -0000 1.2 +++ uart_cpu_ixp425.c 26 May 2007 20:19:04 -0000 @@ -51,6 +51,8 @@ int uart_cpu_getdev(int devtype, struct uart_devinfo *di) { + uint32_t addr, vaddr; + di->ops = uart_getops(&uart_ns8250_class); di->bas.chan = 0; di->bas.bst = &ixp425_a4x_bs_tag; @@ -62,6 +64,8 @@ di->parity = UART_PARITY_NONE; uart_bus_space_io = &ixp425_a4x_bs_tag; uart_bus_space_mem = NULL; - di->bas.bsh = IXP425_UART0_VBASE; + resource_int_value("uart", 0, "addr", &addr); + getvbase(addr, IXP425_REG_SIZE, &vaddr); + di->bas.bsh = vaddr; return (0); } Index: uart_bus_ixp425.c =================================================================== RCS file: /home/ncvs/src/sys/arm/xscale/ixp425/uart_bus_ixp425.c,v retrieving revision 1.2 diff -u -r1.2 uart_bus_ixp425.c --- uart_bus_ixp425.c 24 May 2007 16:17:51 -0000 1.2 +++ uart_bus_ixp425.c 26 May 2007 12:35:48 -0000 @@ -71,6 +71,15 @@ sc = device_get_softc(dev); sc->sc_class = &uart_ns8250_class; + sc->sc_rrid = 0; + sc->sc_rtype = SYS_RES_MEMORY; + sc->sc_rres = bus_alloc_resource(dev, sc->sc_rtype, &sc->sc_rrid, + 0, ~0, uart_getrange(sc->sc_class), RF_ACTIVE); + if (sc->sc_rres == NULL) { + return (ENXIO); + } + sc->sc_bas.bsh = rman_get_bushandle(sc->sc_rres); + sc->sc_bas.bst = rman_get_bustag(sc->sc_rres); /* * XXX set UART Unit Enable (0x40) AND * receiver timeout int enable (0x10). @@ -79,9 +88,9 @@ * uart_ns8250 carefully avoids touching these bits so we can * just set them here and proceed. But this is fragile... */ - bus_space_write_4(&ixp425_a4x_bs_tag, - device_get_unit(dev) == 0 ? IXP425_UART0_VBASE : IXP425_UART1_VBASE, - IXP425_UART_IER, IXP425_UART_IER_UUE | IXP425_UART_IER_RTOIE); + bus_space_write_4(sc->sc_bas.bst, sc->sc_bas.bsh, IXP425_UART_IER, + IXP425_UART_IER_UUE | IXP425_UART_IER_RTOIE); + bus_release_resource(dev, sc->sc_rtype, sc->sc_rrid, sc->sc_rres); return uart_bus_probe(dev, 0, IXP425_UART_FREQ, 0, 0); } Index: ixp425var.h =================================================================== RCS file: /home/ncvs/src/sys/arm/xscale/ixp425/ixp425var.h,v retrieving revision 1.3 diff -u -r1.3 ixp425var.h --- ixp425var.h 24 May 2007 16:25:49 -0000 1.3 +++ ixp425var.h 26 May 2007 19:00:00 -0000 @@ -98,6 +100,8 @@ int ixp425_md_route_interrupt(device_t, device_t, int); void ixp425_md_attach(device_t); +int getvbase(uint32_t, uint32_t, uint32_t *); + struct ixp425_ivar { uint32_t addr; int irq; Index: ixp425.c =================================================================== RCS file: /home/ncvs/src/sys/arm/xscale/ixp425/ixp425.c,v retrieving revision 1.6 diff -u -r1.6 ixp425.c --- ixp425.c 24 May 2007 16:25:49 -0000 1.6 +++ ixp425.c 26 May 2007 09:11:07 -0000 @@ -95,7 +95,7 @@ IXP425_EXP_BUS_CS4_VBASE }, }; -static int +int getvbase(uint32_t hwbase, uint32_t size, uint32_t *vbase) { int i; From owner-freebsd-arm@FreeBSD.ORG Mon May 28 19:34:00 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F009E16A515 for ; Mon, 28 May 2007 19:34:00 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.176]) by mx1.freebsd.org (Postfix) with ESMTP id 875B313C4E3 for ; Mon, 28 May 2007 19:33:58 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (smtpin02-en2 [10.13.10.147]) by smtpout.mac.com (Xserve/smtpout06/MantshX 4.0) with ESMTP id l4SJB7wk003571; Mon, 28 May 2007 12:11:09 -0700 (PDT) Received: from [172.16.1.3] (209-128-86-226.bayarea.net [209.128.86.226]) (authenticated bits=0) by mac.com (Xserve/smtpin02/MantshX 4.0) with ESMTP id l4SJB6fC013660 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 28 May 2007 12:11:06 -0700 (PDT) In-Reply-To: <20070528134607.GA67826@zibbi.meraka.csir.co.za> References: <20070528134607.GA67826@zibbi.meraka.csir.co.za> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Marcel Moolenaar Date: Mon, 28 May 2007 12:10:58 -0700 To: John Hay X-Mailer: Apple Mail (2.752.3) X-Brightmail-Tracker: AAAAAA== X-Brightmail-scanned: yes Cc: freebsd-arm@freebsd.org Subject: Re: removing hardcoded uart vbase 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: Mon, 28 May 2007 19:34:01 -0000 On May 28, 2007, at 6:46 AM, John Hay wrote: > To find the console, I just check for uart 0 in the hints. Is that > good enough or should one also check for flags 0x10 like on sio > devices? Typically, you set uart.hw.console to point to the console. Since device numbers don't make sense, you define the console in terms of hardware I/O location. For example: uart.hw.console=io:0x3f8 or uart.hw.console=mm:0xfef04500 The uart.hw.console variable also allows you to specify baudrate, stopbits, parity and the device class (ns8250, z8530, etc), which hints do not. Hints are not recommended, unless you already have hints to describe the hardware. In that case you can simply add: hint.uart.0.flags=0x10 The patch looks good to me. -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-arm@FreeBSD.ORG Mon May 28 20:16:53 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EEBB016A46D for ; Mon, 28 May 2007 20:16:53 +0000 (UTC) (envelope-from jhay@meraka.csir.co.za) Received: from zibbi.meraka.csir.co.za (zibbi.meraka.csir.co.za [146.64.24.58]) by mx1.freebsd.org (Postfix) with ESMTP id 8BAC513C4BB for ; Mon, 28 May 2007 20:16:53 +0000 (UTC) (envelope-from jhay@meraka.csir.co.za) Received: by zibbi.meraka.csir.co.za (Postfix, from userid 3973) id B016D33CCE; Mon, 28 May 2007 22:16:51 +0200 (SAST) Date: Mon, 28 May 2007 22:16:51 +0200 From: John Hay To: Marcel Moolenaar Message-ID: <20070528201651.GA84806@zibbi.meraka.csir.co.za> References: <20070528134607.GA67826@zibbi.meraka.csir.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: freebsd-arm@freebsd.org Subject: Re: removing hardcoded uart vbase 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: Mon, 28 May 2007 20:16:54 -0000 On Mon, May 28, 2007 at 12:10:58PM -0700, Marcel Moolenaar wrote: > > On May 28, 2007, at 6:46 AM, John Hay wrote: > > >To find the console, I just check for uart 0 in the hints. Is that > >good enough or should one also check for flags 0x10 like on sio > >devices? > > Typically, you set uart.hw.console to point to the console. Since > device numbers don't make sense, you define the console in terms of > hardware I/O location. For example: > uart.hw.console=io:0x3f8 > or > uart.hw.console=mm:0xfef04500 > > The uart.hw.console variable also allows you to specify baudrate, > stopbits, parity and the device class (ns8250, z8530, etc), which > hints do not. > > Hints are not recommended, unless you already have hints to > describe the hardware. In that case you can simply add: > hint.uart.0.flags=0x10 Well on the ixp425/avila we are moving to hints so that we can support different boards easier. For instance both the Avila and Pronghorn Metro boards use the same ixp425 cpu, which has 2 serial ports, but on the Avila they decided to bring one serial port out and on the Pronghorn, the other. :-) So shall I then just run through the hints of the known number of serial ports and look for the flags? > The patch looks good to me. Thanks. John -- John Hay -- John.Hay@meraka.csir.co.za / jhay@FreeBSD.org From owner-freebsd-arm@FreeBSD.ORG Mon May 28 21:12:05 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 927D616A46E for ; Mon, 28 May 2007 21:12:05 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.175]) by mx1.freebsd.org (Postfix) with ESMTP id 7BB5713C4C6 for ; Mon, 28 May 2007 21:12:05 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (smtpin02-en2 [10.13.10.147]) by smtpout.mac.com (Xserve/smtpout05/MantshX 4.0) with ESMTP id l4SLC5Pu004205; Mon, 28 May 2007 14:12:05 -0700 (PDT) Received: from [172.16.1.3] (209-128-86-226.bayarea.net [209.128.86.226]) (authenticated bits=0) by mac.com (Xserve/smtpin02/MantshX 4.0) with ESMTP id l4SLC389004570 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 28 May 2007 14:12:03 -0700 (PDT) In-Reply-To: <20070528201651.GA84806@zibbi.meraka.csir.co.za> References: <20070528134607.GA67826@zibbi.meraka.csir.co.za> <20070528201651.GA84806@zibbi.meraka.csir.co.za> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Marcel Moolenaar Date: Mon, 28 May 2007 14:11:56 -0700 To: John Hay X-Mailer: Apple Mail (2.752.3) X-Brightmail-Tracker: AAAAAA== X-Brightmail-scanned: yes Cc: freebsd-arm@freebsd.org Subject: Re: removing hardcoded uart vbase 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: Mon, 28 May 2007 21:12:05 -0000 On May 28, 2007, at 1:16 PM, John Hay wrote: > On Mon, May 28, 2007 at 12:10:58PM -0700, Marcel Moolenaar wrote: >> >> On May 28, 2007, at 6:46 AM, John Hay wrote: >> >>> To find the console, I just check for uart 0 in the hints. Is that >>> good enough or should one also check for flags 0x10 like on sio >>> devices? >> >> Typically, you set uart.hw.console to point to the console. Since >> device numbers don't make sense, you define the console in terms of >> hardware I/O location. For example: >> uart.hw.console=io:0x3f8 >> or >> uart.hw.console=mm:0xfef04500 >> >> The uart.hw.console variable also allows you to specify baudrate, >> stopbits, parity and the device class (ns8250, z8530, etc), which >> hints do not. >> >> Hints are not recommended, unless you already have hints to >> describe the hardware. In that case you can simply add: >> hint.uart.0.flags=0x10 > > Well on the ixp425/avila we are moving to hints so that we can support > different boards easier. For instance both the Avila and Pronghorn > Metro > boards use the same ixp425 cpu, which has 2 serial ports, but on > the Avila > they decided to bring one serial port out and on the Pronghorn, the > other. > :-) > > So shall I then just run through the hints of the known number of > serial > ports and look for the flags? Yes. If you already use hints, you might as well use the flags hint. -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-arm@FreeBSD.ORG Tue May 29 06:49:43 2007 Return-Path: X-Original-To: arm@freebsd.org Delivered-To: freebsd-arm@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9217616A46F for ; Tue, 29 May 2007 06:49:43 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.174]) by mx1.freebsd.org (Postfix) with ESMTP id 673F813C45B for ; Tue, 29 May 2007 06:49:43 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (smtpin02-en2 [10.13.10.147]) by smtpout.mac.com (Xserve/smtpout04/MantshX 4.0) with ESMTP id l4T6HQfF014609 for ; Mon, 28 May 2007 23:17:26 -0700 (PDT) Received: from [172.16.1.3] (209-128-86-226.bayarea.net [209.128.86.226]) (authenticated bits=0) by mac.com (Xserve/smtpin02/MantshX 4.0) with ESMTP id l4T6HPB2001934 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Mon, 28 May 2007 23:17:25 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; format=flowed To: arm@freebsd.org From: Marcel Moolenaar Date: Mon, 28 May 2007 23:17:18 -0700 X-Mailer: Apple Mail (2.752.3) X-Brightmail-Tracker: AAAAAA== X-Brightmail-scanned: yes Cc: Subject: ARG_MAX on arm 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: Tue, 29 May 2007 06:49:43 -0000 All, As per rev 1.22 of src/sys/sys/syslimits.h, arm is the only platform that has a maximum argument size of 64KB. This limit is too small for "make delete-old" to work. For that reason I changed PowerPC to use the same limit as all the other platforms. You may want to do the same for arm if there's no particular reason to have it be 64KB. FYI, -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-arm@FreeBSD.ORG Tue May 29 07:55:39 2007 Return-Path: X-Original-To: arm@freebsd.org Delivered-To: freebsd-arm@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 381CE16A49C for ; Tue, 29 May 2007 07:55:39 +0000 (UTC) (envelope-from nb@synthcom.com) Received: from synthcom.com (static-71-245-103-2.ptldor.fios.verizon.net [71.245.103.2]) by mx1.freebsd.org (Postfix) with ESMTP id 1AA1813C489 for ; Tue, 29 May 2007 07:55:38 +0000 (UTC) (envelope-from nb@synthcom.com) Received: from static-71-245-103-2.ptldor.fios.verizon.net (static-71-245-103-2.ptldor.fios.verizon.net [71.245.103.2]) by synthcom.com (8.13.8/8.13.8) with ESMTP id l4T7iStv004923 for ; Tue, 29 May 2007 00:44:28 -0700 (PDT) (envelope-from nb@synthcom.com) Date: Tue, 29 May 2007 00:44:28 -0700 (PDT) From: Neil Bradley To: arm@freebsd.org Message-ID: <20070529003650.D3683@synthcom.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (synthcom.com [71.245.103.2]); Tue, 29 May 2007 00:44:28 -0700 (PDT) Cc: Subject: Greetings, IXP425 help? 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: Tue, 29 May 2007 07:55:39 -0000 Greetings all! I'm a long time FreeBSD user (back when it was 386BSD), and I've recently joined the ARM FreeBSD mailing list. I am an embedded systems engineer and work for Intel in the server division, and the product we're developing uses an IXP425. Currently we're using MontaVista Linux, but of course my curiosity has been piqued upon learning there is activity with FreeBSD and the IXP425. ;-) Note that I cannot and do not speak on Intel's behalf, nor do I have any conduits to the network CPU group, nor can I divulge information that isn't already freely available on Intel's web site, I certainly will be happy to help out answering technical questions about the IXP425. Some day I hope to know enough about FreeBSD's internals to actually contribute - perhaps some day soon! -->Neil ---------------------------------------------------------------------------- C. Neil Bradley - KE7IXP - The one eyed man in the land of the blind is not king. He's a prisoner. From owner-freebsd-arm@FreeBSD.ORG Tue May 29 15:01:52 2007 Return-Path: X-Original-To: arm@freebsd.org Delivered-To: freebsd-arm@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 258C016A421 for ; Tue, 29 May 2007 15:01:52 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id C56C713C44B for ; Tue, 29 May 2007 15:01:51 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l4TExCVX034916; Tue, 29 May 2007 08:59:12 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 29 May 2007 08:59:28 -0600 (MDT) Message-Id: <20070529.085928.-244833153.imp@bsdimp.com> To: xcllnt@mac.com From: "M. Warner Losh" In-Reply-To: References: X-Mailer: Mew version 4.2 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]); Tue, 29 May 2007 08:59:12 -0600 (MDT) Cc: arm@freebsd.org Subject: Re: ARG_MAX on arm 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: Tue, 29 May 2007 15:01:52 -0000 In message: Marcel Moolenaar writes: : As per rev 1.22 of src/sys/sys/syslimits.h, arm is the only platform : that has a maximum argument size of 64KB. This limit is too small : for "make delete-old" to work. For that reason I changed PowerPC to : use the same limit as all the other platforms. You may want to do : the same for arm if there's no particular reason to have it be 64KB. I don't think there's any special reason for the arm. Warner From owner-freebsd-arm@FreeBSD.ORG Thu May 31 21:25:10 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 18A6116A41F for ; Thu, 31 May 2007 21:25:10 +0000 (UTC) (envelope-from nathanw@uchicago.edu) Received: from relay02.uchicago.edu (relay02.uchicago.edu [128.135.12.76]) by mx1.freebsd.org (Postfix) with ESMTP id C81FE13C44B for ; Thu, 31 May 2007 21:25:09 +0000 (UTC) (envelope-from nathanw@uchicago.edu) Received: from harper.uchicago.edu (harper.uchicago.edu [128.135.12.7]) by relay02.uchicago.edu (8.13.6.20060614/8.12.9) with ESMTP id l4VKuqZe012224 for ; Thu, 31 May 2007 15:56:52 -0500 (CDT) Received: from localhost (nathanw@localhost) by harper.uchicago.edu (8.12.10/8.12.10) with ESMTP id l4VKupc9006611 for ; Thu, 31 May 2007 15:56:51 -0500 (CDT) X-Authentication-Warning: harper.uchicago.edu: nathanw owned process doing -bs Date: Thu, 31 May 2007 15:56:51 -0500 (CDT) From: Nathan Whitehorn To: freebsd-arm@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: GW2348-2 (IXP420 system) 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, 31 May 2007 21:25:10 -0000 (I'm not on the list, please reply directly) I was looking at buying an Avila GW2348-2-CF, as sold by Netgate, which has an IXP420 CPU. I saw something in the archives from February suggesting it works with minimal modifications, but wanted to make sure before buying it. Can someone verify that this CPU and system work correctly? Thanks, -Nathan From owner-freebsd-arm@FreeBSD.ORG Thu May 31 22:02:06 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D654516A46B for ; Thu, 31 May 2007 22:02:06 +0000 (UTC) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 9946413C45A for ; Thu, 31 May 2007 22:02:06 +0000 (UTC) (envelope-from sam@errno.com) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id l4VLTiRw090735 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 31 May 2007 14:29:44 -0700 (PDT) (envelope-from sam@errno.com) Message-ID: <465F3E48.2090001@errno.com> Date: Thu, 31 May 2007 14:29:44 -0700 From: Sam Leffler User-Agent: Thunderbird 2.0.0.0 (X11/20070528) MIME-Version: 1.0 To: Nathan Whitehorn References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: GW2348-2 (IXP420 system) 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, 31 May 2007 22:02:06 -0000 Nathan Whitehorn wrote: > (I'm not on the list, please reply directly) > > I was looking at buying an Avila GW2348-2-CF, as sold by Netgate, which > has an IXP420 CPU. I saw something in the archives from February > suggesting it works with minimal modifications, but wanted to make sure > before buying it. Can someone verify that this CPU and system work > correctly? Thanks, I believe Jim demo'd it at N+I last week (running RELENG_6). Sam From owner-freebsd-arm@FreeBSD.ORG Thu May 31 22:27:13 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B892B16A41F for ; Thu, 31 May 2007 22:27:13 +0000 (UTC) (envelope-from jim@netgate.com) Received: from netgate.com (mail.netgate.com [64.62.194.115]) by mx1.freebsd.org (Postfix) with ESMTP id A6E4A13C45A for ; Thu, 31 May 2007 22:27:13 +0000 (UTC) (envelope-from jim@netgate.com) Received: from widget.local (rrcs-67-52-77-54.west.biz.rr.com [67.52.77.54]) by netgate.com (Postfix) with ESMTP id 7ACD9280056; Thu, 31 May 2007 15:27:12 -0700 (PDT) Message-ID: <465F4BB6.7010505@netgate.com> Date: Thu, 31 May 2007 12:27:02 -1000 From: Jim Thompson User-Agent: Thunderbird 2.0.0.0 (Macintosh/20070326) MIME-Version: 1.0 To: Sam Leffler References: <465F3E48.2090001@errno.com> In-Reply-To: <465F3E48.2090001@errno.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org, Nathan Whitehorn Subject: Re: GW2348-2 (IXP420 system) 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, 31 May 2007 22:27:13 -0000 Sam Leffler wrote: > Nathan Whitehorn wrote: >> (I'm not on the list, please reply directly) >> >> I was looking at buying an Avila GW2348-2-CF, as sold by Netgate, >> which has an IXP420 CPU. I saw something in the archives from February >> suggesting it works with minimal modifications, but wanted to make >> sure before buying it. Can someone verify that this CPU and system >> work correctly? Thanks, > > I believe Jim demo'd it at N+I last week (running RELENG_6). Well, the system I demoed was an ixp425 board (that fits in the new 1U case that Gateworks was demoing), but yes, RELENG_6 (and CURRENT) run on the board, subject to minor changes needed in the RELENG_6 tree. Jim From owner-freebsd-arm@FreeBSD.ORG Thu May 31 22:36:10 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D004C16A469 for ; Thu, 31 May 2007 22:36:10 +0000 (UTC) (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 0D59713C455 for ; Thu, 31 May 2007 22:36:09 +0000 (UTC) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (localhost.ci0.org [127.0.0.1]) by dong.ci0.org (8.13.8/8.13.8) with ESMTP id l4VMNdAB003424; Fri, 1 Jun 2007 00:23:40 +0200 (CEST) (envelope-from mlfbsd@dong.ci0.org) Received: (from mlfbsd@localhost) by dong.ci0.org (8.13.8/8.13.8/Submit) id l4VMNd1A003423; Fri, 1 Jun 2007 00:23:39 +0200 (CEST) (envelope-from mlfbsd) Date: Fri, 1 Jun 2007 00:23:39 +0200 From: Olivier Houchard To: Nathan Whitehorn Message-ID: <20070531222339.GA3388@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: GW2348-2 (IXP420 system) 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, 31 May 2007 22:36:10 -0000 On Thu, May 31, 2007 at 03:56:51PM -0500, Nathan Whitehorn wrote: > (I'm not on the list, please reply directly) > > I was looking at buying an Avila GW2348-2-CF, as sold by Netgate, which > has an IXP420 CPU. I saw something in the archives from February > suggesting it works with minimal modifications, but wanted to make sure > before buying it. Can someone verify that this CPU and system work > correctly? Thanks, > -Nathan Hi Nathan, As far as I know nobody tested it on an IXP420 so I can't swear it will work out of the box. Getting it to work shouldn't be a big deal, however it will probably require a bit of tinkering. Cheers, Olivier From owner-freebsd-arm@FreeBSD.ORG Fri Jun 1 03:59:33 2007 Return-Path: X-Original-To: arm@freebsd.org Delivered-To: freebsd-arm@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 343EA16A41F; Fri, 1 Jun 2007 03:59:33 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id D79ED13C455; Fri, 1 Jun 2007 03:59:32 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1c.sentex.ca [64.7.153.10]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id l513xWii038379; Thu, 31 May 2007 23:59:32 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.13.8/8.13.8) with ESMTP id l513xWWK079682; Thu, 31 May 2007 23:59:32 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id A6F7D73068; Thu, 31 May 2007 23:59:31 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20070601035931.A6F7D73068@freebsd-current.sentex.ca> Date: Thu, 31 May 2007 23:59:31 -0400 (EDT) X-Virus-Scanned: ClamAV version devel-20070102, clamav-milter version devel-111206 on clamscanner3 X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on arm/arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2007 03:59:33 -0000 TB --- 2007-06-01 03:35:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-06-01 03:35:00 - starting HEAD tinderbox run for arm/arm TB --- 2007-06-01 03:35:01 - cleaning the object tree TB --- 2007-06-01 03:35:23 - checking out the source tree TB --- 2007-06-01 03:35:23 - cd /tinderbox/HEAD/arm/arm TB --- 2007-06-01 03:35:23 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2007-06-01 03:45:06 - building world (CFLAGS=-O2 -pipe) TB --- 2007-06-01 03:45:06 - cd /src TB --- 2007-06-01 03:45:06 - /usr/bin/make -B buildworld >>> World build started on Fri Jun 1 03:45:08 UTC 2007 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries [...] cc -O2 -pipe -DLIBC_SCCS -I/src/lib/libkvm -c /src/lib/libkvm/kvm_arm.c cc -O2 -pipe -DLIBC_SCCS -I/src/lib/libkvm -c /src/lib/libkvm/kvm_file.c cc -O2 -pipe -DLIBC_SCCS -I/src/lib/libkvm -c /src/lib/libkvm/kvm_getloadavg.c cc -O2 -pipe -DLIBC_SCCS -I/src/lib/libkvm -c /src/lib/libkvm/kvm_getswapinfo.c cc -O2 -pipe -DLIBC_SCCS -I/src/lib/libkvm -c /src/lib/libkvm/kvm_proc.c /src/lib/libkvm/kvm_proc.c: In function 'kvm_proclist': /src/lib/libkvm/kvm_proc.c:224: error: 'struct pstats' has no member named 'p_ru' /src/lib/libkvm/kvm_proc.c:359: warning: passing argument 1 of 'bintime2timeval' from incompatible pointer type *** Error code 1 Stop in /src/lib/libkvm. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-06-01 03:59:31 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-06-01 03:59:31 - ERROR: failed to build world TB --- 2007-06-01 03:59:31 - tinderbox aborted TB --- 0.53 user 1.69 system 1470.43 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From owner-freebsd-arm@FreeBSD.ORG Fri Jun 1 11:30:17 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1041516A41F for ; Fri, 1 Jun 2007 11:30:17 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from mail.liberty-hosting.de (mail.smartterra.de [195.225.132.203]) by mx1.freebsd.org (Postfix) with ESMTP id C297C13C4AE for ; Fri, 1 Jun 2007 11:30:16 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from mail.liberty-hosting.de ([195.225.132.203]) by localhost (liberty-mail [195.225.132.203]) (amavisd-new, port 10024) with ESMTP id 40338-10 for ; Fri, 1 Jun 2007 13:11:55 +0200 (CEST) Received: from home.alpha-tierchen.de (port-212-202-170-5.dynamic.qsc.de [212.202.170.5]) by mail.liberty-hosting.de (Postfix) with ESMTP id 512A81812BC for ; Fri, 1 Jun 2007 13:11:52 +0200 (CEST) Received: from webmail.alpha-tierchen.de (localhost [127.0.0.1]) by home.alpha-tierchen.de (Postfix) with ESMTP id 3F58945046 for ; Fri, 1 Jun 2007 13:11:50 +0200 (CEST) Received: from 2001:6f8:101e:0:20e:cff:fe6d:6adb (SquirrelMail authenticated user bkoenig) by webmail.alpha-tierchen.de with HTTP; Fri, 1 Jun 2007 13:11:50 +0200 (CEST) Message-ID: <62776.2001:6f8:101e:0:20e:cff:fe6d:6adb.1180696310.squirrel@webmail.alpha-tierchen.de> Date: Fri, 1 Jun 2007 13:11:50 +0200 (CEST) From: =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= To: freebsd-arm@freebsd.org User-Agent: SquirrelMail/1.4.10a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: by amavisd-new at mail.smartterra.de Subject: Execution stops while enabling MMU 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: Fri, 01 Jun 2007 11:30:17 -0000 Hello, I try to use FreeBSD with an AT91RM9200-based board similar to KB920X. I use an existing boot loader (U-Boot running at 0x00000000) to copy the raw binary kernel (not ELF) to the beginning of the SDRAM (0x20000000) and execute it with the "go" command. But suddenly the execution stops while enabling the MMU in src/sys/arm/arm/locore.S: /* Enable MMU */ mrc p15, 0, r0, c1, c0, 0 orr r0, r0, #CPU_CONTROL_MMU_ENABLE mcr p15, 0, r0, c1, c0, 0 Code behind these lines won't be executed anymore. Here are some variables that I use: KERNPHYSADDR=0x20000000 KERNVIRTADDR=0xc0000000 PHYSADDR=0x20000000 STARTUP_PAGETABLE_ADDR=0x20800000 Does anybody have a hint for me? My knowledge about ARM architecture is still superficially (literature already ordered ;-). Regards Björn From owner-freebsd-arm@FreeBSD.ORG Fri Jun 1 11:48:49 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 48ED316A421 for ; Fri, 1 Jun 2007 11:48:49 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from mx.bulinfo.net (mx.bulinfo.net [193.194.156.1]) by mx1.freebsd.org (Postfix) with ESMTP id EA7E813C465 for ; Fri, 1 Jun 2007 11:48:47 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id 2301EBF513; Fri, 1 Jun 2007 14:48:46 +0300 (EEST) Received: from mx.bulinfo.net ([127.0.0.1]) by localhost (mx.bulinfo.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 79784-01; Fri, 1 Jun 2007 14:48:43 +0300 (EEST) Received: from [192.168.2.188] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id 957E2BF510; Fri, 1 Jun 2007 14:48:43 +0300 (EEST) Message-ID: <46600799.7000705@bulinfo.net> Date: Fri, 01 Jun 2007 14:48:41 +0300 From: Krassimir Slavchev User-Agent: Thunderbird 1.5 (X11/20060201) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Bj=F6rn_K=F6nig?= References: <62776.2001:6f8:101e:0:20e:cff:fe6d:6adb.1180696310.squirrel@webmail.alpha-tierchen.de> In-Reply-To: <62776.2001:6f8:101e:0:20e:cff:fe6d:6adb.1180696310.squirrel@webmail.alpha-tierchen.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at mx.bulinfo.net Cc: freebsd-arm@freebsd.org Subject: Re: Execution stops while enabling MMU 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: Fri, 01 Jun 2007 11:48:49 -0000 Make sure that you are configured the RAM memory properly. Also, can you give us more info about your board? Björn König wrote: > Hello, > > I try to use FreeBSD with an AT91RM9200-based board similar to KB920X. I > use an existing boot loader (U-Boot running at 0x00000000) to copy the raw > binary kernel (not ELF) to the beginning of the SDRAM (0x20000000) and > execute it with the "go" command. But suddenly the execution stops while > enabling the MMU in src/sys/arm/arm/locore.S: > > /* Enable MMU */ > mrc p15, 0, r0, c1, c0, 0 > orr r0, r0, #CPU_CONTROL_MMU_ENABLE > mcr p15, 0, r0, c1, c0, 0 > > Code behind these lines won't be executed anymore. Here are some variables > that I use: > > KERNPHYSADDR=0x20000000 > KERNVIRTADDR=0xc0000000 > PHYSADDR=0x20000000 > STARTUP_PAGETABLE_ADDR=0x20800000 > > Does anybody have a hint for me? My knowledge about ARM architecture is > still superficially (literature already ordered ;-). > > Regards > Björn > > > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > > From owner-freebsd-arm@FreeBSD.ORG Fri Jun 1 12:47:04 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F099016A481 for ; Fri, 1 Jun 2007 12:47:04 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from mail.liberty-hosting.de (mail.smartterra.de [195.225.132.203]) by mx1.freebsd.org (Postfix) with ESMTP id B0A6B13C447 for ; Fri, 1 Jun 2007 12:47:04 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from mail.liberty-hosting.de ([195.225.132.203]) by localhost (liberty-mail [195.225.132.203]) (amavisd-new, port 10024) with ESMTP id 49443-05; Fri, 1 Jun 2007 14:47:01 +0200 (CEST) Received: from home.alpha-tierchen.de (port-212-202-170-5.dynamic.qsc.de [212.202.170.5]) by mail.liberty-hosting.de (Postfix) with ESMTP id 74920180743; Fri, 1 Jun 2007 14:47:01 +0200 (CEST) Received: from webmail.alpha-tierchen.de (localhost [127.0.0.1]) by home.alpha-tierchen.de (Postfix) with ESMTP id AA00A45046; Fri, 1 Jun 2007 14:46:59 +0200 (CEST) Received: from 2001:6f8:101e:0:20e:cff:fe6d:6adb (SquirrelMail authenticated user bkoenig) by webmail.alpha-tierchen.de with HTTP; Fri, 1 Jun 2007 14:46:59 +0200 (CEST) Message-ID: <49611.2001:6f8:101e:0:20e:cff:fe6d:6adb.1180702019.squirrel@webmail.alpha-tierchen.de> In-Reply-To: <46600799.7000705@bulinfo.net> References: <62776.2001:6f8:101e:0:20e:cff:fe6d:6adb.1180696310.squirrel@webmail.alpha-tierchen.de> <46600799.7000705@bulinfo.net> Date: Fri, 1 Jun 2007 14:46:59 +0200 (CEST) From: =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= To: "Krassimir Slavchev" User-Agent: SquirrelMail/1.4.10a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: by amavisd-new at mail.smartterra.de Cc: freebsd-arm@freebsd.org Subject: Re: Execution stops while enabling MMU 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: Fri, 01 Jun 2007 12:47:05 -0000 Krassimir schrieb: > Make sure that you are configured the RAM memory properly. I'm not sure, maybe I got you wrong, but I think that there is no special configuration necessary. Actually some simple test programs work without problems, i.e. I can toggle LEDs and write to resp. read from serial ports. These test programs are running in RAM same way I tried with the FreeBSD kernel. > Also, can you give us more info about your board? What do you want to know? ;-) It's a multi-purpose board with an ARM9 Atmel AT91RM9200 controller, 180 MHz, 64 MB RAM, ethernet, serial ports, Linux 2.6 preinstalled. Want a picture? http://www.taskit.de/img/portux/050922_Portux920TEU-mit-CF-Card_741x550.jpg Unfortunately there is no English technical reference available, but I have a English user guide dedicated for use with Linux: http://www.taskit.de/ftp/manuals/Portux920T_Linuxguide_V1.2_(EN).pdf This is the German technical reference: http://www.taskit.de/ftp/manuals/Portux920T_Techref_v1.0_(DE).pdf There is a huge table on page 6, 7 and 8 that lists the physical address space (with board specifica) completely. I assume I need to map some more PA before enabling the MMU. Thanks Björn From owner-freebsd-arm@FreeBSD.ORG Fri Jun 1 13:14:37 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 52F4216A41F for ; Fri, 1 Jun 2007 13:14:37 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from mail.liberty-hosting.de (mail.smartterra.de [195.225.132.203]) by mx1.freebsd.org (Postfix) with ESMTP id 135E313C44B for ; Fri, 1 Jun 2007 13:14:36 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from mail.liberty-hosting.de ([195.225.132.203]) by localhost (liberty-mail [195.225.132.203]) (amavisd-new, port 10024) with ESMTP id 51451-06; Fri, 1 Jun 2007 15:14:35 +0200 (CEST) Received: from home.alpha-tierchen.de (port-212-202-170-5.dynamic.qsc.de [212.202.170.5]) by mail.liberty-hosting.de (Postfix) with ESMTP id 459CD180FE1; Fri, 1 Jun 2007 15:14:35 +0200 (CEST) Received: from webmail.alpha-tierchen.de (localhost [127.0.0.1]) by home.alpha-tierchen.de (Postfix) with ESMTP id 6C4F645046; Fri, 1 Jun 2007 15:14:33 +0200 (CEST) Received: from 2001:6f8:101e:0:20e:cff:fe6d:6adb (SquirrelMail authenticated user bkoenig) by webmail.alpha-tierchen.de with HTTP; Fri, 1 Jun 2007 15:14:33 +0200 (CEST) Message-ID: <59733.2001:6f8:101e:0:20e:cff:fe6d:6adb.1180703673.squirrel@webmail.alpha-tierchen.de> In-Reply-To: <46600799.7000705@bulinfo.net> References: <62776.2001:6f8:101e:0:20e:cff:fe6d:6adb.1180696310.squirrel@webmail.alpha-tierchen.de> <46600799.7000705@bulinfo.net> Date: Fri, 1 Jun 2007 15:14:33 +0200 (CEST) From: =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= To: "Krassimir Slavchev" User-Agent: SquirrelMail/1.4.10a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: by amavisd-new at mail.smartterra.de Cc: freebsd-arm@freebsd.org Subject: Re: Execution stops while enabling MMU 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: Fri, 01 Jun 2007 13:14:37 -0000 Shame on me. I tried to turn on an LED after enabling MMU, but I forgot that we're having virtual addresses now and I have no access to the addresses that I used to enable the LED. I added 0xf0000000-0xffffffff to the translation table and it goes on. Sorry for inconvenience. Thanks Björn From owner-freebsd-arm@FreeBSD.ORG Fri Jun 1 13:16:42 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0979E16A41F for ; Fri, 1 Jun 2007 13:16:42 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from mx.bulinfo.net (mx.bulinfo.net [193.194.156.1]) by mx1.freebsd.org (Postfix) with ESMTP id B84C013C44B for ; Fri, 1 Jun 2007 13:16:41 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id 3B33EBF6F8; Fri, 1 Jun 2007 16:16:40 +0300 (EEST) Received: from mx.bulinfo.net ([127.0.0.1]) by localhost (mx.bulinfo.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 87308-03; Fri, 1 Jun 2007 16:16:38 +0300 (EEST) Received: from [192.168.2.188] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id 0D796BF6F2; Fri, 1 Jun 2007 16:16:38 +0300 (EEST) Message-ID: <46601C35.9010301@bulinfo.net> Date: Fri, 01 Jun 2007 16:16:37 +0300 From: Krassimir Slavchev User-Agent: Thunderbird 1.5 (X11/20060201) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Bj=F6rn_K=F6nig?= References: <62776.2001:6f8:101e:0:20e:cff:fe6d:6adb.1180696310.squirrel@webmail.alpha-tierchen.de> <46600799.7000705@bulinfo.net> <49611.2001:6f8:101e:0:20e:cff:fe6d:6adb.1180702019.squirrel@webmail.alpha-tierchen.de> In-Reply-To: <49611.2001:6f8:101e:0:20e:cff:fe6d:6adb.1180702019.squirrel@webmail.alpha-tierchen.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at mx.bulinfo.net Cc: freebsd-arm@freebsd.org Subject: Re: Execution stops while enabling MMU 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: Fri, 01 Jun 2007 13:16:42 -0000 Björn König wrote: > Krassimir schrieb: > >> Make sure that you are configured the RAM memory properly. >> > > I'm not sure, maybe I got you wrong, but I think that there is no special > configuration necessary. Actually some simple test programs work without > problems, i.e. I can toggle LEDs and write to resp. read from serial > ports. These test programs are running in RAM same way I tried with the > FreeBSD kernel. > > Oops, you use U-Boot. I was thinking about freebsd's boot loaders. >> Also, can you give us more info about your board? >> > > What do you want to know? ;-) It's a multi-purpose board with an ARM9 > Atmel AT91RM9200 controller, 180 MHz, 64 MB RAM, ethernet, serial ports, > Linux 2.6 preinstalled. Want a picture? > http://www.taskit.de/img/portux/050922_Portux920TEU-mit-CF-Card_741x550.jpg > > Unfortunately there is no English technical reference available, but I > have a English user guide dedicated for use with Linux: > http://www.taskit.de/ftp/manuals/Portux920T_Linuxguide_V1.2_(EN).pdf > This is the German technical reference: > http://www.taskit.de/ftp/manuals/Portux920T_Techref_v1.0_(DE).pdf > > > There is a huge table on page 6, 7 and 8 that lists the physical address > space (with board specifica) completely. I assume I need to map some more > PA before enabling the MMU. > > Thanks > Björn > > > > From owner-freebsd-arm@FreeBSD.ORG Fri Jun 1 13:22:32 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C882616A421 for ; Fri, 1 Jun 2007 13:22:32 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 49CA113C45B for ; Fri, 1 Jun 2007 13:22:32 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id l51CvKOu013735; Fri, 1 Jun 2007 14:57:20 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id l51Cv8GY021929 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 1 Jun 2007 14:57:08 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id l51Cv8Zv017131; Fri, 1 Jun 2007 14:57:08 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id l51Cv7uE017130; Fri, 1 Jun 2007 14:57:07 +0200 (CEST) (envelope-from ticso) Date: Fri, 1 Jun 2007 14:57:07 +0200 From: Bernd Walter To: =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= Message-ID: <20070601125707.GC16463@cicely12.cicely.de> References: <62776.2001:6f8:101e:0:20e:cff:fe6d:6adb.1180696310.squirrel@webmail.alpha-tierchen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <62776.2001:6f8:101e:0:20e:cff:fe6d:6adb.1180696310.squirrel@webmail.alpha-tierchen.de> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: freebsd-arm@freebsd.org Subject: Re: Execution stops while enabling MMU X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2007 13:22:32 -0000 On Fri, Jun 01, 2007 at 01:11:50PM +0200, Björn König wrote: > Hello, > > I try to use FreeBSD with an AT91RM9200-based board similar to KB920X. I > use an existing boot loader (U-Boot running at 0x00000000) to copy the raw > binary kernel (not ELF) to the beginning of the SDRAM (0x20000000) and > execute it with the "go" command. But suddenly the execution stops while > enabling the MMU in src/sys/arm/arm/locore.S: I'm not 100% shure, since what Warner suggested to get our board running just worked, but I assume the kernel needs to be copied and therefor it is mandantory to use the kernel.tramp. I personally use kernel.gz.tramp, but I expect a non compressed image should work as well. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-arm@FreeBSD.ORG Fri Jun 1 19:56:06 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 671A916A41F for ; Fri, 1 Jun 2007 19:56:06 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 1E41313C4C4 for ; Fri, 1 Jun 2007 19:56:06 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l51JtsQm086815; Fri, 1 Jun 2007 13:55:55 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 01 Jun 2007 13:56:10 -0600 (MDT) Message-Id: <20070601.135610.1723143578.imp@bsdimp.com> To: bkoenig@alpha-tierchen.de From: "M. Warner Losh" In-Reply-To: <62776.2001:6f8:101e:0:20e:cff:fe6d:6adb.1180696310.squirrel@webmail.alpha-tierchen.de> References: <62776.2001:6f8:101e:0:20e:cff:fe6d:6adb.1180696310.squirrel@webmail.alpha-tierchen.de> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Fri, 01 Jun 2007 13:55:55 -0600 (MDT) Cc: freebsd-arm@freebsd.org Subject: Re: Execution stops while enabling MMU 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: Fri, 01 Jun 2007 19:56:06 -0000 In message: <62776.2001:6f8:101e:0:20e:cff:fe6d:6adb.1180696310.squirre= l@webmail.alpha-tierchen.de> Bj=F6rn_K=F6nig writes: : Hello, : = : I try to use FreeBSD with an AT91RM9200-based board similar to KB920X= . I : use an existing boot loader (U-Boot running at 0x00000000) to copy th= e raw : binary kernel (not ELF) to the beginning of the SDRAM (0x20000000) an= d : execute it with the "go" command. But suddenly the execution stops wh= ile : enabling the MMU in src/sys/arm/arm/locore.S: : = : /* Enable MMU */ : mrc p15, 0, r0, c1, c0, 0 : orr r0, r0, #CPU_CONTROL_MMU_ENABLE : mcr p15, 0, r0, c1, c0, 0 : = : Code behind these lines won't be executed anymore. Here are some vari= ables : that I use: : = : KERNPHYSADDR=3D0x20000000 : KERNVIRTADDR=3D0xc0000000 : PHYSADDR=3D0x20000000 : STARTUP_PAGETABLE_ADDR=3D0x20800000 : = : Does anybody have a hint for me? My knowledge about ARM architecture = is : still superficially (literature already ordered ;-). Maybe you need to run the trampoline code rather than the normal code. I only use kernel.gz.tramp, and that works fine. Warner From owner-freebsd-arm@FreeBSD.ORG Fri Jun 1 20:57:03 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4EBE016A468 for ; Fri, 1 Jun 2007 20:57:03 +0000 (UTC) (envelope-from nb@synthcom.com) Received: from synthcom.com (static-71-245-103-2.ptldor.fios.verizon.net [71.245.103.2]) by mx1.freebsd.org (Postfix) with ESMTP id 1595113C45E for ; Fri, 1 Jun 2007 20:57:02 +0000 (UTC) (envelope-from nb@synthcom.com) Received: from static-71-245-103-2.ptldor.fios.verizon.net (static-71-245-103-2.ptldor.fios.verizon.net [71.245.103.2]) by synthcom.com (8.13.8/8.13.8) with ESMTP id l51KJ7re055427 for ; Fri, 1 Jun 2007 13:19:07 -0700 (PDT) (envelope-from nb@synthcom.com) Date: Fri, 1 Jun 2007 13:19:07 -0700 (PDT) From: Neil Bradley cc: freebsd-arm@freebsd.org In-Reply-To: <62776.2001:6f8:101e:0:20e:cff:fe6d:6adb.1180696310.squirrel@webmail.alpha-tierchen.de> Message-ID: <20070601130758.M54915@synthcom.com> References: <62776.2001:6f8:101e:0:20e:cff:fe6d:6adb.1180696310.squirrel@webmail.alpha-tierchen.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (synthcom.com [71.245.103.2]); Fri, 01 Jun 2007 13:19:07 -0700 (PDT) Subject: Re: Execution stops while enabling MMU 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: Fri, 01 Jun 2007 20:57:03 -0000 > I try to use FreeBSD with an AT91RM9200-based board similar to KB920X. I > use an existing boot loader (U-Boot running at 0x00000000) to copy the raw > binary kernel (not ELF) to the beginning of the SDRAM (0x20000000) and > execute it with the "go" command. But suddenly the execution stops while > enabling the MMU in src/sys/arm/arm/locore.S: > > /* Enable MMU */ > mrc p15, 0, r0, c1, c0, 0 > orr r0, r0, #CPU_CONTROL_MMU_ENABLE > mcr p15, 0, r0, c1, c0, 0 I'm a bit new to these parts, but I have done some MMU work with the XScale ARM (and other ARM CPUs), and enabling the MMU is a bit more complicated, especially dealing with ensuring the instruction pipelines aren't doing anything afterward when the MMU gets enabled. I didn't see the code that comes after this sequence, but here is my sequence for enabling the MMU, in hopes it will do some good. This assumes that virtual == physical for the sake of the code execution: mov r1, #1 mcr p15, 0, r0, c8, c7, 0 ; Flush I+D TLBs mcr p15, 0, r1, c7, c10, 4 ; Drain write and fill buffers ldr r2,=VirtualExecutionStart mrc p15, 0, r0, c1, c0, 0 orr r0, r0, #0x1000 ; Enable instruction cache orr r0, r0, #0x0800 ; Enable branch target buffer orr r0, r0, #0x0004 ; Enable data cache orr r0, r0, #0x0001 ; Enable MMU mcr p15, 0, r0, c1, c0, 0 mov pc, r2 nop nop nop VirtualExecutionStart .... As an aside, you might want to also enable the I and D cache (0x1004) along with the MMU enable, in addition to the branch target buffer (0x0800), as I have done above. The code sequence above has been validated on the Intel PXA270, Intel IXP4xx series, Atmel SAM9 ARM9 CPUs, and the Freescale MX31. Hope this helps! -->Neil ---------------------------------------------------------------------------- C. Neil Bradley - KE7IXP - The one eyed man in the land of the blind is not king. He's a prisoner.