From owner-freebsd-arm@FreeBSD.ORG Wed Sep 5 04:28:38 2012 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C6CC81065674 for ; Wed, 5 Sep 2012 04:28:38 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id 9FCA78FC16 for ; Wed, 5 Sep 2012 04:28:38 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id q854Sbwt037911; Wed, 5 Sep 2012 04:28:37 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.143] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id uz2vrm5y4xh3cxz5arbbaj9v42; Wed, 05 Sep 2012 04:28:37 +0000 (UTC) (envelope-from tim@kientzle.com) Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=windows-1252 From: Tim Kientzle In-Reply-To: Date: Tue, 4 Sep 2012 21:28:37 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <7E18623F-3945-4EA0-B332-5A5C717B20F0@kientzle.com> References: <0DCAC001-FF06-431A-A486-2B50BE913B0D@bsdimp.com> To: Hans Stimer X-Mailer: Apple Mail (2.1278) Cc: arm@freebsd.org Subject: Re: freebsd-beaglebone install problem 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: Wed, 05 Sep 2012 04:28:38 -0000 On Sep 4, 2012, at 9:22 PM, Tim Kientzle wrote: >=20 > On Sep 4, 2012, at 6:07 PM, Warner Losh wrote: >=20 >>=20 >> On Sep 4, 2012, at 4:17 PM, Hans Stimer wrote: >>=20 >>> I'm running into problems getting FreeBSD working on the BeagleBone. >=20 >>>=20 >>>> # cu -l /dev/ttyU1 -s 115200 >>>> Connected >>>> CCCCCCCC >>=20 >=20 > The ROM code for the AM3358 SoC in the BeagleBone falls > back to YModem if it can't load the first-stage MLO boot loader > from SDHC. >=20 > If you see this, then either the FAT partition is > ill-formed or the MLO file is missing. >=20 >>> I checked the logs, and this one stood out: >>>=20 >>>> # less _.uboot.build.log=20 >>>> Generating include/autoconf.mk >>>> include/common.h:43:20: error: stdarg.h: No such file or directory >>>> In file included from include/image.h:36, >>>> from include/common.h:117: >=20 > Yeah, looks like U-Boot didn't build. >=20 > I haven't updated my local U-Boot sources in a while, > I'll go do that and get right back to you=85 Please update the freebsd-beaglebone scripts and try again. I found and fixed a couple of problems: * I had reversed the logic to decide if patches were already applied, so U-Boot wasn't getting patched. * One of my patches needed to be updated to work with the newest U-Boot sources. * I added some logic so that the beaglebsd.sh script will actually fail with an error message if the U-Boot patch, configure, or build steps fail. This should make problems like this more obvious. Let me know if you run into any other issues. Cheers, Tim