From owner-freebsd-arm@FreeBSD.ORG Tue Dec 4 12:07:02 2007 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 5859B16A418 for ; Tue, 4 Dec 2007 12:07:02 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 1AFC013C45A for ; Tue, 4 Dec 2007 12:07:01 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from webmail.alpha-tierchen.de (port-212-202-40-215.dynamic.qsc.de [212.202.40.215]) by mx01.qsc.de (Postfix) with ESMTP id A0BB6C7E02; Tue, 4 Dec 2007 13:06:59 +0100 (CET) Received: from 212.202.40.215 (SquirrelMail authenticated user bkoenig) by webmail.alpha-tierchen.de with HTTP; Tue, 4 Dec 2007 13:06:47 +0100 (CET) Message-ID: <61569.212.202.40.215.1196770007.squirrel@webmail.alpha-tierchen.de> Date: Tue, 4 Dec 2007 13:06:47 +0100 (CET) From: =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= To: "Soeren Straarup" User-Agent: SquirrelMail/1.4.11 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-arm@freebsd.org Subject: Re: Setting up an AT91RM9200 based board (KB9202B) with FreeBSD 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, 04 Dec 2007 12:07:02 -0000 > On Mon, 03 Dec 2007 16:46:46 -0700 (MST) > "M. Warner Losh" wrote: > >> u-boot should be able to boot FreeBSD, but you may need to put the >> kernel into the flash on the board. >> > > Interreting.. > It might be that i tftp'ed the kernel into ram and then tried to > boot it that went wrong. For example you can do it this way: Build a kernel with 'make buildkernel', put the ELF binary into TFTP root, then run the following commands at u-boot prompt: tftpboot 20000000 /kernel erase 10040000 1043ffff cp.b 20000000 10040000 0x$(filesize) setenv freebsd cp.b 10040000 20000000 $(filesize)\; go 200000e0 saveenv Now you can boot the kernel from flash with run freebsd This doesn't even require that u-boot supports ELF. Björn