From owner-freebsd-arm@FreeBSD.ORG Fri Mar 13 00:59:34 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 47CFA3CD for ; Fri, 13 Mar 2015 00:59:34 +0000 (UTC) Received: from gromit.dlib.vt.edu (gromit.dlib.vt.edu [128.173.126.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gromit.dlib.vt.edu", Issuer "Chumby Certificate Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1D8829CF for ; Fri, 13 Mar 2015 00:59:33 +0000 (UTC) Received: from gromit.chumby.lan (c-71-63-94-21.hsd1.va.comcast.net [71.63.94.21]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by gromit.dlib.vt.edu (Postfix) with ESMTPSA id C8DB73A0 for ; Thu, 12 Mar 2015 20:59:25 -0400 (EDT) From: Paul Mather Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: How to use u-boot-beaglebone port? Message-Id: <17B779D7-2962-4455-9062-51411F316648@gromit.dlib.vt.edu> Date: Thu, 12 Mar 2015 20:59:24 -0400 To: "freebsd-arm@freebsd.org" Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Mar 2015 00:59:34 -0000 Has anyone successfully used the sysutils/u-boot-beaglebone port? I managed to build [1] and install it today. I tried to install it to = the SD card FAT partition, as per the README, and the result was an = unbootable system. When I copied the u-boot.img file as u-boot.img (rather than the = bb-uboot.img as suggested in the README), I got it to start up to the = "U-Boot#" prompt. However, it complained about not being able to load = ubldr. There isn't a ubldr installed by the u-boot-beaglebone port, so I copied = the version from /boot/ubldr to the FAT partition. That got it a little = bit further, but now it hangs after reading ubldr. This is what I get: =3D=3D=3D=3D=3D8<=3D=3D=3D=3D=3D U-Boot SPL 2014.10 (Mar 12 2015 - 14:38:55) MMC: block number 0x100 exceeds max(0x0) MMC: block number 0x200 exceeds max(0x0) *** Error - No Valid Environment Area found Using default environment reading u-boot.img reading u-boot.img U-Boot 2014.10 (Mar 12 2015 - 14:38:55) Watchdog enabled I2C: ready DRAM: 512 MiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 reading u-boot.env ** Unable to read "u-boot.env" from mmc0:1 ** Using default environment Net: not set. Validating first E-fuse MAC cpsw, usb_ether reading uEnv.txt Hit any key to stop autoboot: 0=20 Booting from: mmc 0 ubldr reading ubldr 201900 bytes read in 18 ms (10.7 MiB/s) =3D=3D=3D=3D=3D>8=3D=3D=3D=3D=3D After a while, I guess the watchdog kicks in and the whole cycle = repeats. I guess I can always restore the FAT partition to its original state, = but it would be nice to know how to use the u-boot-beaglebone port files = now I have them. Cheers, Paul. [1] It required removing "CPUTYPE?=3Dnative" from my make.conf before = devel/arm-none-eabi-gcc would build.=