Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Mar 2010 01:21:47 +0100
From:      Bernd Walter <ticso@cicely7.cicely.de>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        stas@FreeBSD.org, arm@FreeBSD.org, ticso@cicely7.cicely.de, ticso@cicely.de
Subject:   Re: RM9200 tuning
Message-ID:  <20100309002147.GD19800@cicely7.cicely.de>
In-Reply-To: <20100308.165857.535730620108851355.imp@bsdimp.com>
References:  <20100308225420.GB19800@cicely7.cicely.de> <20100308.160622.149607579725155764.imp@bsdimp.com> <20100308233822.GC19800@cicely7.cicely.de> <20100308.165857.535730620108851355.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 08, 2010 at 04:58:57PM -0700, M. Warner Losh wrote:
> In message: <20100308233822.GC19800@cicely7.cicely.de>
>             Bernd Walter <ticso@cicely7.cicely.de> writes:
> : On Mon, Mar 08, 2010 at 04:06:22PM -0700, M. Warner Losh wrote:
> : > In message: <20100308225420.GB19800@cicely7.cicely.de>
> : >             Bernd Walter <ticso@cicely7.cicely.de> writes:
> : > : On Mon, Mar 08, 2010 at 02:38:50PM -0800, Stanislav Sedov wrote:
> : > : > On Mon, 8 Mar 2010 22:32:57 +0100
> : > : > Bernd Walter <ticso@cicely7.cicely.de> 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.
> : > 
> : > I have an 8MB SPI flash on one of my boards...  Maybe I should get
> : > /boot/loader support going with it..  as well as the different
> : > GEOM_FOO partioning schemes...  Certainly would make a certain local
> : > company interested...
> : 
> : I just thought about boot2 retrieving loader from SD instead of
> : kernel.
> : But you are probably right to retrieve the loader from flash instead.
> : boot2 with UFS support is already too big for AT91 with just 8k SRAM.
> 
> But the AT91RM9200 has 16k :)  We are at about 9.5k, and further space
> savings is difficult.

I would be lying if I say that I never looked at the AT91SAM9260.
It is cheaper, faster, needs less external circuit and has less hardware
drawbacks (especially worth mentioning are ATE and MCI) - but only 8k SRAM.
My boot0spi is, including a simple RAM check, just 3585 bytes (codesize).
It is mostly the UFS, netboot and SD support which makes boot2 that big.
Just to init hardware and then copying loader(8) from SPI into SDRAM
should easily fit into 8k.

Or was there a different reason to mention that you have 8M flash?

-- 
B.Walter <bernd@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100309002147.GD19800>