From owner-freebsd-arm@FreeBSD.ORG Mon Sep 4 17:52: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 E570D16A4DA; Mon, 4 Sep 2006 17:52:25 +0000 (UTC) (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 864A743D4C; Mon, 4 Sep 2006 17:52:25 +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.4/8.13.4) with ESMTP id k84Hpk1V092988; Mon, 4 Sep 2006 11:51:46 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Mon, 04 Sep 2006 11:52:05 -0600 (MDT) Message-Id: <20060904.115205.-626772610.imp@bsdimp.com> To: andre@freebsd.org From: "M. Warner Losh" In-Reply-To: <44FC3626.701@freebsd.org> References: <44FC3626.701@freebsd.org> 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]); Mon, 04 Sep 2006 11:51:46 -0600 (MDT) Cc: freebsd-arm@freebsd.org Subject: Re: ARM boot process 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, 04 Sep 2006 17:52:26 -0000 In message: <44FC3626.701@freebsd.org> Andre Oppermann writes: : I'm new to the embedded system world and have got some Atmel : at91rm9200 eval boards I'm playing with. Most of them came : with Linux and some boot loader to it. : : The supplied boot loaders can't load a FreeBSD arm kernel and : complain about wrong magic. Which kernel were you using? boot0* is to bootstrap the board. boot0 lets you load an arbitrary program to execute. boot0iic allows you to load an image to put in the iic eeprom (maybe on only on the KB9202). boot0spi allows you to load an image into the SPI part. bootiic is usually what you put in the iic part to boot. It's fully functional. If you have different eeprom parts, you'll need to tweak it. bootspi is what I put in the SPI part. It is presently optimized for the part that I have, and might need some tweaks. bootsd will boot off a SD card. It doesn't quite work yet, there's some unaligned accesses that I'm still working on sorting out... : For the at91rm9200 a number of boot loaders are in boot/arm/ : but so far I haven't figured out which one to use. Eventually : I'd like to have it boot from the SD card. That's not yet in the tree. I'm working on booting off a UFS partition. I've not looked at integrating the SD support with things like redboot or uboot yet. Warner