From owner-freebsd-arm@FreeBSD.ORG Sat Oct 20 04:43:52 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1DA33CB0 for ; Sat, 20 Oct 2012 04:43:52 +0000 (UTC) (envelope-from br@mx.bsdpad.com) Received: from mx.bsdpad.com (mx.bsdpad.com [50.22.178.118]) by mx1.freebsd.org (Postfix) with ESMTP id EFE288FC08 for ; Sat, 20 Oct 2012 04:43:51 +0000 (UTC) Received: from mx.bsdpad.com ([50.22.178.118]) by mx.bsdpad.com with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80 (FreeBSD)) (envelope-from ) id 1TPQuc-0008Y8-Tw; Sat, 20 Oct 2012 04:43:51 +0000 Received: (from br@localhost) by mx.bsdpad.com (8.14.5/8.14.5/Submit) id q9K4hn06032867; Sat, 20 Oct 2012 08:43:49 +0400 (MSK) (envelope-from br) Date: Sat, 20 Oct 2012 08:43:49 +0400 From: Ruslan Bukin To: Tim Kientzle Subject: Re: ubldr hangs on Exynos 4412 Message-ID: <20121020044349.GA32806@jail.io> References: <20121015060703.GA58633@jail.io> <6F20448B-96A0-428B-ACC1-1B2E08E53EEE@kientzle.com> <20121019200522.GA24298@jail.io> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Oct 2012 04:43:52 -0000 On Fri, Oct 19, 2012 at 09:08:49PM -0700, Tim Kientzle wrote: > > Thanks, Tim, it helps: > > bootelf 0x40008000 > > ## Starting application at 0x40008054 ... > > Consoles: U-Boot console > > Compatible API signature found @c3d000c0 > > > > but now, ubldr hangs on first syscall in glue.c (function ub_dev_enum) > > syscall(API_DEV_ENUM, NULL, di) > > > > why it can happen? > > Are you using the U-Boot from Arago project? > > Check disk/part.c to make sure it has this fix: > > diff --git a/disk/part.c b/disk/part.c > index f07a17f..e0022d1 100644 > --- a/disk/part.c > +++ b/disk/part.c > @@ -80,6 +80,8 @@ block_dev_desc_t *get_dev(char* ifname, int dev) > block_dev_desc_t* (*reloc_get_dev)(int dev); > char *name; > > + if (ifname == NULL) > + return NULL; > name = drvr->name; > #ifdef CONFIG_NEEDS_MANUAL_RELOC > name += gd->reloc_off; > > No, I'm using uboot from the device manufacturer. Should I use Arago ? Thanks again, ubldr started after I applied the patch. Number of U-Boot devices: 1 FreeBSD/arm U-Boot loader, Revision 1.2 (root@intel.bsdpad.com, Fri Oct 19 22:50:42 UTC 2012) DRAM: 1023MB Device: disk Device: net net_probe: no network devices found, maybe not enumerated yet..? netboot: couldn't probe uboot_eth0 [...] Verbose help not available, use '?' to list commands loader> seems my u-boot don't see ethernet, but I think it is not a big problem for now. -Ruslan