Date: Wed, 5 Sep 2012 11:13:14 -0700 From: Hans Stimer <hans.stimer@gmail.com> To: Tim Kientzle <tim@kientzle.com> Cc: arm@freebsd.org Subject: Re: freebsd-beaglebone install problem Message-ID: <D4EA50B895E3470483A3712F0B021E39@gmail.com> In-Reply-To: <7E18623F-3945-4EA0-B332-5A5C717B20F0@kientzle.com> References: <DD05E72B9F474BFE96B6A4B050D2A18A@gmail.com> <0DCAC001-FF06-431A-A486-2B50BE913B0D@bsdimp.com> <FAA208C1-2872-4BB6-A7EC-04C757533CA4@kientzle.com> <7E18623F-3945-4EA0-B332-5A5C717B20F0@kientzle.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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. =23 git clone git://arago-project.org/git/projects/u-boot-am33x.git /usr/= home/hans/extern/freebsd-beaglebone/u-boot =23 /bin/sh beaglebsd.sh Starting at Wed Sep 5 11:05:10 PDT 2012 Loading configuration values =46ound =46reeBSD xdev tools for ARM =46ound suitable U-Boot sources in /usr/home/hans/extern/freebsd-beaglebo= ne/u-boot =46ound suitable =46reeBSD source tree in /usr/armsrc Patching U-Boot. (Logging to /usr/home/hans/extern/freebsd-beaglebone/wor= k/=5F.uboot.patch.log) Applying patch /usr/home/hans/extern/freebsd-beaglebone/config/arm/BEA= GLEBONE/files/uboot=5Fpatch1=5Fadd=5Flibc=5Fto=5Flink=5Fon=5F=46reeBSD.pa= tch Applying patch /usr/home/hans/extern/freebsd-beaglebone/config/arm/BEA= GLEBONE/files/uboot=5Fpatch2=5Fadd=5Foptions=5Fto=5Fam335x=5Fconfig.patch= Applying patch /usr/home/hans/extern/freebsd-beaglebone/config/arm/BEA= GLEBONE/files/uboot=5Fpatch3=5Ffix=5Fapi=5Fdisk=5Fenumeration.patch Applying patch /usr/home/hans/extern/freebsd-beaglebone/config/arm/BEA= GLEBONE/files/uboot=5Fpatch4=5Fshrink=5Fspl.patch Applying patch /usr/home/hans/extern/freebsd-beaglebone/config/arm/BEA= GLEBONE/files/uboot=5Fpatch5=5Fset=5Fzero=5Fbootdelay.patch Configuring U-Boot. (Logging to /usr/home/hans/extern/freebsd-beaglebone/= work/=5F.uboot.configure.log) Building U-Boot. (Logging to /usr/home/hans/extern/freebsd-beaglebone/wor= k/=5F.uboot.build.log) =46ailed to build U-Boot. Log in /usr/home/hans/extern/freebsd-beaglebone/work/=5F.uboot.build.lo= g =23 =20 =23 cat work/=5F.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: 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=5FDEPS=5FONLY =5C -g -Os -fno-common -ffixed-r8 -msoft-float -D=5F=5FKERNEL=5F=5F -DCO= N=46IG=5FSYS=5FTEXT=5FBASE=3D0x80100000 -DCON=46IG=5FSPL=5FTEXT=5FBASE=3D= 0x402=460400 -I/usr/home/hans/extern/freebsd-beaglebone/u-boot/include -f= no-builtin -ffreestanding -nostdinc -isystem include -pipe -DCON=46IG=5F= ARM -D=5F=5FARM=5F=5F -marm -mabi=3Daapcs-linux -mno-thumb-interwork -ma= rch=3Darmv5 -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-no= nliteral -Wno-format-security =5C -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 '...' bef= ore 'va=5Flist' In file included from lib/asm-offsets.c:18: include/common.h:719: error: expected declaration specifiers or '...' bef= ore 'va=5Flist' gmake: *** =5Blib/asm-offsets.s=5D Error 1 =23 =20 On Tuesday, September 4, 2012 at 9:28 PM, Tim Kientzle wrote: > =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 =46reeBSD working on the Beagle= Bone. > > =20 > > > > =20 > > > > > =23 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 =46AT partition is > > ill-formed or the MLO file is missing. > > =20 > > > > I checked the logs, and this one stood out: > > > > =20 > > > > > =23 less =5F.uboot.build.log =20 > > > > > Generating include/autoconf.mk > > > > > include/common.h:43:20: error: stdarg.h: No such file or direct= ory > > > > > 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=E2=80=A6 > > =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) scr= ipt 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D4EA50B895E3470483A3712F0B021E39>