From owner-freebsd-arm@FreeBSD.ORG Mon Mar 8 22:54:26 2010 Return-Path: Delivered-To: arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A50B106566C; Mon, 8 Mar 2010 22:54:26 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 067DD8FC12; Mon, 8 Mar 2010 22:54:25 +0000 (UTC) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id o28MsNgX066784 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 8 Mar 2010 23:54:24 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.3/8.14.3) with ESMTP id o28MsLeS038815 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 8 Mar 2010 23:54:21 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id o28MsLPh019979; Mon, 8 Mar 2010 23:54:21 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id o28MsLRs019978; Mon, 8 Mar 2010 23:54:21 +0100 (CET) (envelope-from ticso) Date: Mon, 8 Mar 2010 23:54:21 +0100 From: Bernd Walter To: Stanislav Sedov Message-ID: <20100308225420.GB19800@cicely7.cicely.de> References: <20100308202337.GF11192@cicely7.cicely.de> <20100308124638.7de69681.stas@FreeBSD.org> <20100308213257.GI11192@cicely7.cicely.de> <20100308143850.ea62eec5.stas@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100308143850.ea62eec5.stas@FreeBSD.org> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, AWL=0.001, BAYES_00=-2.599 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on spamd.cicely.de Cc: arm@FreeBSD.org, Bernd Walter , ticso@cicely.de Subject: Re: RM9200 tuning 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: Mon, 08 Mar 2010 22:54:26 -0000 On Mon, Mar 08, 2010 at 02:38:50PM -0800, Stanislav Sedov wrote: > On Mon, 8 Mar 2010 22:32:57 +0100 > Bernd Walter mentioned: > > > Well I still don't use a real loader, just the plain bootcode. > > I would be very happy to switch to loader(8) with FICL, tuneables and > > bootpromt. > > Is it possible to do today? > > I was with Warner using my elfbuild hardware for the first time when he > > did the first steps on RM9200. > > Therefor I'm probably still using obsolete old quick and dirty hacks. > > If loader(8) can be used now it is the first thing I will change before > > trying anything else. > > I belive it should be pretty easy to port ubldr(8) to support AT91 as raj@ made it > working on the Marverll ARM platform. I'm not sure which details should be > reimplemented, though, but from what I seen it should be quite a little work > required. > > I'm just using plain uboot loading direclty from flash without Atmel 1st level > loader and then use uboot to load FreeBSD kernel/pass hints and kenv variables. > I think I posted the relevant code a couple of times to the list, but maybe it > really makes more sense to port loader(8) instead as my code isn't going to make > it into the official uboot distribution. The ability to configure kenv variables is a big win. I'm using sys/boot/arm/at91/boot2 from spiflash instead of uboot, which directly starts the kernel. The kernel has ugly hardcoded things, such as rootdev and hints. There is already a good amount of support for loader(8) in libat91 so it shouldn't be too hard to do. I may give it a try after finishing some other projects. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.