From owner-freebsd-arm@FreeBSD.ORG Fri Oct 4 02:40:29 2013 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 ESMTP id 8C0CEDDB for ; Fri, 4 Oct 2013 02:40:29 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 69A152EB5 for ; Fri, 4 Oct 2013 02:40:28 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id r942eMcR079748; Fri, 4 Oct 2013 02:40:22 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.123] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id jcmmbxty72fdhrqphkfbzr6iyn; Fri, 04 Oct 2013 02:40:21 +0000 (UTC) (envelope-from tim@kientzle.com) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: Trouble booting on Cubieboard 1 with ubldr From: Tim Kientzle In-Reply-To: Date: Thu, 3 Oct 2013 19:40:20 -0700 Content-Transfer-Encoding: 7bit Message-Id: <601A5E60-0F12-4BA8-9288-D16CD2956E3A@kientzle.com> References: To: Martin Galvan X-Mailer: Apple Mail (2.1510) Cc: freebsd-arm@freebsd.org 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: Fri, 04 Oct 2013 02:40:29 -0000 On Oct 3, 2013, at 9:59 AM, Martin Galvan wrote: > Hey everybody! I'm currently trying to get CURRENT to boot on a Cubieboard1 > using a SD card with the booting files and a USB flash with the FreeBSD > filesystem. So far I've tried dd'ing sunxi-spl.bin and u-boot.bin to the SD > card, then copying ubldr to its FAT16 partition, powering on the board and > then doing: > > sun4i#fatload mmc 0 0x48000000 ubldr > > and > > sun4i#bootelf 0x48000000 > > However, when I do that it gives me the following error: > > Device: > net > ENET Speed is 100 Mbps - FULL duplex > connection > panic: uboot_eth0: empty ethernet > address! > --> Press a key on the console to reboot <-- How did you compile the U-Boot files? ubldr makes calls to u-boot.bin, which requires they both be compiled with the same ABI. If you have a new ubldr (compiled with EABI) and an older U-Boot binary, this might be the problem. > However, I understand u-boot shouldn't be able > run ELF files, which is why we use ubldr in the first place. U-Boot can run ELF files with the 'bootelf' command. But U-Boot cannot: * Provide a DTB to a FreeBSD kernel * Process loader.rc * Run Forth boot scripts * Preload modules into a FreeBSD kernel In particular, having the boot loader provide a DTB is critical for eventually having a true GENERIC ARM kernel that runs on multiple boards. Tim