From owner-freebsd-arm@FreeBSD.ORG Fri Sep 25 13:54:38 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B0471065670 for ; Fri, 25 Sep 2009 13:54:38 +0000 (UTC) (envelope-from tom@tomjudge.com) Received: from tomjudge.vm.bytemark.co.uk (tomjudge.vm.bytemark.co.uk [80.68.91.100]) by mx1.freebsd.org (Postfix) with ESMTP id 8C8F58FC34 for ; Fri, 25 Sep 2009 13:54:37 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by tomjudge.vm.bytemark.co.uk (Postfix) with ESMTP id 8D68B48995; Fri, 25 Sep 2009 14:54:36 +0100 (BST) X-Virus-Scanned: Debian amavisd-new at tomjudge.vm.bytemark.co.uk Received: from tomjudge.vm.bytemark.co.uk ([127.0.0.1]) by localhost (tomjudge.vm.bytemark.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OcM8+rUwdmqi; Fri, 25 Sep 2009 14:54:28 +0100 (BST) Received: from rita.nodomain (unknown [192.168.205.6]) by tomjudge.vm.bytemark.co.uk (Postfix) with ESMTP id A788B4898C; Fri, 25 Sep 2009 14:54:27 +0100 (BST) Message-ID: <4ABCCB7D.9030503@tomjudge.com> Date: Fri, 25 Sep 2009 13:54:05 +0000 From: Tom Judge User-Agent: Thunderbird 2.0.0.23 (X11/20090822) MIME-Version: 1.0 To: Stanislav Sedov References: <4AB7A398.4040905@tomjudge.com> <5B269040-CEB8-4E07-9023-9605B04A62DA@gmail.com> <4ABCC0AA.7040003@tomjudge.com> <20090925172049.ebecbd64.stas@FreeBSD.org> In-Reply-To: <20090925172049.ebecbd64.stas@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Rui Paulo , freebsd-arm@freebsd.org Subject: Re: Adding support for the Intel SS4000-E NAS aka the EM-7210 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, 25 Sep 2009 13:54:38 -0000 Stanislav Sedov wrote: > On Fri, 25 Sep 2009 13:07:54 +0000 > Tom Judge mentioned: > > >> Rui Paulo wrote: >> >>> On 21 Sep 2009, at 17:02, Tom Judge wrote: >>> >>> >>> Are you sure 0x200000 is the correct load address? >>> >>> -- >>> Rui Paulo >>> >>> >>> >>> >> Hi Rui, >> >> First I would like to say thanks for replying, this is my first >> experiment with trying to get freebsd to work on another platform so >> please treat me a newbe to all this (thanks). >> >> Looking that where the linux kernel is loaded it seems the load address >> is 0x01008000. >> >> However it seems like it could be loaded at 0x200000, as there is a >> second copy of redboot on the unit, that supports the NIC, that is >> loaded add this address. >> >> See this here for the details of what get loaded where on the unit: >> http://www.tomjudge.com/index.php/SS4000-E/FreeBSD_Install >> > > The default load address of the AVILA FreeBSD kernel is 10200000 so > it expects to be loaded here. As I see from your patch you changed > it to be 0x01008000 instead. So you should probably either load the > kernel to this address, or change the corresponding KERNPHYSADDR > parameter to 0x200000. > > When I had KERNPHYSADDR and KERNVIRTADDR set to 0x01008000 I was unable to make any progress on getting the system to boot. Last night I was working on the patch again, and started by using the std.aliva file as a base for my std.em7210 rather than std.ep80219. However I have not yet had a chance to test this as I was working my way though making user the devmap matched the devmap used by the linux kernel. I have also been looking at alvia_machdep.c + eq80219_machdep.c and comparing it to the em7210_machdep.c to remove magic numbers and replace them with macros/defines as used in the aliva board. Here is my current work: http://www.tomjudge.com/tmp/patch-em7210-round2 > Does this board has JTAG port available? It will make the debugging > much easier. > > Yes there is a jtag port on the board, it seems to be a standard 20 pin ARM header on the board (see image here: http://www.kwaak.net/fotos/fotos-nas/slide_14.html). Can anyone recommend a reasonably priced jtag cable? Preferable that would work on FreeBSD. Thanks TJ