From owner-freebsd-arm@FreeBSD.ORG Fri Feb 28 23:58:30 2014 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4A378569 for ; Fri, 28 Feb 2014 23:58:30 +0000 (UTC) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1B4C91763 for ; Fri, 28 Feb 2014 23:58:29 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1WJXJu-000HMu-Sy; Fri, 28 Feb 2014 23:58:23 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id s1SNwKxQ042644; Fri, 28 Feb 2014 16:58:20 -0700 (MST) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1913yilBQVqjHTabj75qX9k Subject: Re: bootelf required? From: Ian Lepore To: Pete Wright In-Reply-To: <53111C5D.9050708@nomadlogic.org> References: <53111985.2010004@nomadlogic.org> <280DDC61-858D-4142-A688-005F3AD6AAD4@bsdimp.com> <53111C5D.9050708@nomadlogic.org> Content-Type: text/plain; charset="windows-1251" Date: Fri, 28 Feb 2014 16:58:20 -0700 Message-ID: <1393631900.1149.191.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by damnhippie.dyndns.org id s1SNwKxQ042644 Cc: Warner Losh , freebsd-arm@FreeBSD.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Feb 2014 23:58:30 -0000 The more likely entry point for ubldr is an offset of 0x54. If the version of u-boot is new and enables data caches, the "go" command doesn't disable them like our software expects (bootelf and bootm and the other more formal boot commands do). That might make the full sequence something like: fatload mmc 2 88000000 ubldr dcache off ; dcache flush go 88000054 For that to work, ubldr has to have been linked to run at 88000000. Whatever value crochet uses for UBLDR_LOADADDR=3D is what should be used as the loadaddr in u-boot. Any address in the range of 10000000 - 8x000000 should work. The 'x' factor is where u-boot itself lives, gotta be careful not to load over the top of it. Usually the 'bdinfo' command in u-boot will tell you about the memory u-boot itself uses. 88000000 is probably safe on a 2gb system. I'm not sure what the "mmc read 10042000 a 400 && go 10042000" thing is all about. -- Ian On Fri, 2014-02-28 at 15:31 -0800, Pete Wright wrote: >=20 > On 02/28/14 15:21, Warner Losh wrote: > > Look up the =91start=92 symbol address and try =91go =92 where = likely is 0x880000c0 > > iirc. > >=20 >=20 > thanks for the tip! doesn't seem to be helping - system hangs after: > CM-FX6 # go 0x880000c0 > ## Starting application at 0x880000C0 ... >=20 > printenv contains the following line: > run_eboot=3Decho Starting EBOOT ...; mmc dev ${mmcdev} && mmc rescan && > mmc read 10042000 a 400 && go 10042000 >=20 > which i manually ran like so: >=20 > CM-FX6 # mmc dev 2 > mmc2 is current device > CM-FX6 # mmc rescan > CM-FX6 # fatload mmc 2 0x10800000 ubldr > reading ubldr >=20 > 245290 bytes read > CM-FX6 # mmc read 10042000 a 400 >=20 > MMC read: dev # 2, block # 10, count 1024 ... 1024 blocks read: OK > CM-FX6 # go 10042000 > ## Starting application at 0x10042000 ... >=20 > at which point the box becomes unresponsive and i manually power-cycle = it. >=20 >=20 > -pete >=20