From owner-freebsd-arm@FreeBSD.ORG Wed Sep 5 21:37: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 060E21065673 for ; Wed, 5 Sep 2012 21:37:38 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id B33068FC14 for ; Wed, 5 Sep 2012 21:37:37 +0000 (UTC) Received: by iayy25 with SMTP id y25so1677017iay.13 for ; Wed, 05 Sep 2012 14:37:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=ayvfFM19c2eHLM3zvqUUS8veAt2RhakYTg/4PsfblNI=; b=U55tf4GuP9XSps550EqnMAqWyLAzPeJuK6FglBpRx+bAhzWbOBS/LOlugesJPfAf8o 46XtvKUL/lbZqe/X2VrPzmYQiSW+v27q4+laljx5R0PXP49G88Uawp8hYVNhCvMrR9G3 xGeXBH+wIAjrlyU9NKr5rBrSaFnjPnoaFHLP7MfjPjPWwOxCMZ+ttH8vJn+Bqtp8W34m TFpCvrc79iyd4nBU0AvGceNHrO7yFpFN8K+/KIZvcMjlOwPh8ZC2Byitstp7u2ewD6s8 D3FxDL54vB8vQqhkRiQm3qFEIxBjx5l1qP3HqGKbYv+wxRPwAgR4aPINHo+C2Y7zv1K4 bN1Q== Received: by 10.50.214.1 with SMTP id nw1mr19484395igc.2.1346881057004; Wed, 05 Sep 2012 14:37:37 -0700 (PDT) Received: from 63.imp.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPS id fu4sm471451igc.4.2012.09.05.14.37.35 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 05 Sep 2012 14:37:36 -0700 (PDT) Sender: Warner Losh Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=windows-1252 From: Warner Losh In-Reply-To: Date: Wed, 5 Sep 2012 15:37:34 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <18FFFCEC-36B0-4897-B226-4A2A3A62FD6F@bsdimp.com> References: <0DCAC001-FF06-431A-A486-2B50BE913B0D@bsdimp.com> <7E18623F-3945-4EA0-B332-5A5C717B20F0@kientzle.com> To: Adrian Chadd X-Mailer: Apple Mail (2.1084) X-Gm-Message-State: ALoCoQlztoCHMg43urd0mkXLEa02VZOIdnX76Md3JKloG2tsWOzKqH85hX1sGEgcbhmgAhARpgnB Cc: arm@freebsd.org, Tim Kientzle 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 21:37:38 -0000 On Sep 5, 2012, at 2:29 PM, Adrian Chadd wrote: > .. is there any reason we don't have uboot in the tree (under > vendor/contrib) and cross-build things that way? it is too big and fast moving for that. Also, each board or at least = SoC seems to want a different version to be happy. Ports is the answer = here, perhaps. Warner > Adrian >=20 > On 5 September 2012 11:13, Hans Stimer wrote: >> Tried the latest in github, but uboot isn't building. I'll have some = time later today to try and figure what is going on. >>=20 >> # git clone git://arago-project.org/git/projects/u-boot-am33x.git = /usr/home/hans/extern/freebsd-beaglebone/u-boot >>=20 >> # /bin/sh beaglebsd.sh >> Starting at Wed Sep 5 11:05:10 PDT 2012 >> Loading configuration values >> Found FreeBSD xdev tools for ARM >> Found suitable U-Boot sources in = /usr/home/hans/extern/freebsd-beaglebone/u-boot >> Found suitable FreeBSD source tree in /usr/armsrc >> Patching U-Boot. (Logging to = /usr/home/hans/extern/freebsd-beaglebone/work/_.uboot.patch.log) >> Applying patch = /usr/home/hans/extern/freebsd-beaglebone/config/arm/BEAGLEBONE/files/uboot= _patch1_add_libc_to_link_on_FreeBSD.patch >> Applying patch = /usr/home/hans/extern/freebsd-beaglebone/config/arm/BEAGLEBONE/files/uboot= _patch2_add_options_to_am335x_config.patch >> Applying patch = /usr/home/hans/extern/freebsd-beaglebone/config/arm/BEAGLEBONE/files/uboot= _patch3_fix_api_disk_enumeration.patch >> Applying patch = /usr/home/hans/extern/freebsd-beaglebone/config/arm/BEAGLEBONE/files/uboot= _patch4_shrink_spl.patch >> Applying patch = /usr/home/hans/extern/freebsd-beaglebone/config/arm/BEAGLEBONE/files/uboot= _patch5_set_zero_bootdelay.patch >> Configuring U-Boot. (Logging to = /usr/home/hans/extern/freebsd-beaglebone/work/_.uboot.configure.log) >> Building U-Boot. (Logging to = /usr/home/hans/extern/freebsd-beaglebone/work/_.uboot.build.log) >> Failed to build U-Boot. >> Log in = /usr/home/hans/extern/freebsd-beaglebone/work/_.uboot.build.log >> # >>=20 >>=20 >> # cat work/_.uboot.build.log >> 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: >> include/compiler.h:8:20: error: stddef.h: No such file or directory >> Generating include/autoconf.mk.dep >> 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: >> include/compiler.h:8:20: error: stddef.h: No such file or directory >> arm-freebsd-gcc -DDO_DEPS_ONLY \ >> -g -Os -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ = -DCONFIG_SYS_TEXT_BASE=3D0x80100000 -DCONFIG_SPL_TEXT_BASE=3D0x402F0400 = -I/usr/home/hans/extern/freebsd-beaglebone/u-boot/include -fno-builtin = -ffreestanding -nostdinc -isystem include -pipe -DCONFIG_ARM -D__ARM__ = -marm -mabi=3Daapcs-linux -mno-thumb-interwork -march=3Darmv5 -Wall = -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral = -Wno-format-security \ >> -o lib/asm-offsets.s lib/asm-offsets.c -c -S >> In file included from lib/asm-offsets.c:18: >> 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, >> from lib/asm-offsets.c:18: >> include/compiler.h:8:20: error: stddef.h: No such file or directory >> In file included from lib/asm-offsets.c:18: >> include/common.h:687: error: expected declaration specifiers or '...' = before 'va_list' >> In file included from lib/asm-offsets.c:18: >> include/common.h:719: error: expected declaration specifiers or '...' = before 'va_list' >> gmake: *** [lib/asm-offsets.s] Error 1 >> # >>=20 >>=20 >> On Tuesday, September 4, 2012 at 9:28 PM, Tim Kientzle wrote: >>=20 >>>=20 >>> On Sep 4, 2012, at 9:22 PM, Tim Kientzle wrote: >>>=20 >>>>=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 >>>>>>=20 >>>>>=20 >>>>=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 >>>>>>> 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 >>>>>>=20 >>>>>>=20 >>>>>=20 >>>>=20 >>>>=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 >>>>=20 >>>=20 >>>=20 >>> Please update the freebsd-beaglebone scripts and >>> try again. I found and fixed a couple of problems: >>>=20 >>> * 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 (http://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. >>>=20 >>> Let me know if you run into any other issues. >>>=20 >>> Cheers, >>>=20 >>> Tim >>=20 >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-arm >> To unsubscribe, send any mail to = "freebsd-arm-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"