Current build instructions for beagleboard-xm

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Current build instructions for beagleboard-xm

Brett Mahar-2
Hi,

I noticed that there has been some commits relating to arm/beagle/panda
recently, so wanted to build a kernel. But the build fails with the
below error. Should I be using some other TARGET, or is it something
else I'm doing wrong?

If anyone has build full build instructions for -current, can they post
them here?

Also, I noticed on the http://www.openbsd.org/beagle.html page, one of
the "Projects & bugs left to fix" is "Add support for the SD/MMC
controller." ... this has been done for a while now, hasn't it?

Thanks,
Brett.



# cd /usr/src && make -f Makefile.cross TARGET=beagle
MACHINE=beagle  MACHINE_ARCH=arm MACHINE_CPU=arm;  export MACHINE
MACHINE_ARCH MACHINE_CPU;  (cd /usr/src/lib;  for lib in csu libc; do
(cd $lib;  eval AR=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/ar  AS=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/as  CC=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/cc  CPP=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/cpp  CXX=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/c++  LD=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/ld
OBJCOPY=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/objcopy  LORDER=/usr/bin/lorder
RANLIB=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/ranlib
STRIP=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/strip  HOSTCC=\"cc\" HOSTCXX=\"c++\"
NOMAN=  HOSTCFLAGS=\"-O2 -pipe \" HOSTCXXFLAGS=\"-O2 -pipe \"
HOSTLDFLAGS=\"\"  CFLAGS=\" -O2 -pipe \" CPPFLAGS=\"\"  CXXFLAGS=\"\"
LDFLAGS=\"\" MAKEOBJDIR=obj.amd64.beagle  make depend all ; eval
AR=/usr/cross/beagle/usr/`cat /usr/cross/beagle/TARGET_CANON`/bin/ar
AS=/usr/cross/beagle/usr/`cat /usr/cross/beagle/TARGET_CANON`/bin/as
CC=/usr/cross/beagle/usr/`cat /usr/cross/beagle/TARGET_CANON`/bin/cc
CPP=/usr/cross/beagle/usr/`cat /usr/cross/beagle/TARGET_CANON`/bin/cpp
CXX=/usr/cross/beagle/usr/`cat /usr/cross/beagle/TARGET_CANON`/bin/c++
LD=/usr/cross/beagle/usr/`cat /usr/cross/beagle/TARGET_CANON`/bin/ld
OBJCOPY=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/objcopy  LORDER=/usr/bin/lorder
RANLIB=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/ranlib
STRIP=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/strip  HOSTCC=\"cc\" HOSTCXX=\"c++\"
NOMAN=  HOSTCFLAGS=\"-O2 -pipe \" HOSTCXXFLAGS=\"-O2 -pipe \"
HOSTLDFLAGS=\"\"  CFLAGS=\" -O2 -pipe \" CPPFLAGS=\"\"  CXXFLAGS=\"\"
LDFLAGS=\"\" MAKEOBJDIR=obj.amd64.beagle DESTDIR=/usr/cross/beagle  make
install);  done;  eval AR=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/ar  AS=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/as  CC=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/cc  CPP=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/cpp  CXX=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/c++  LD=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/ld
OBJCOPY=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/objcopy  LORDER=/usr/bin/lorder
RANLIB=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/ranlib
STRIP=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/strip  HOSTCC=\"cc\" HOSTCXX=\"c++\"
NOMAN=  HOSTCFLAGS=\"-O2 -pipe \" HOSTCXXFLAGS=\"-O2 -pipe \"
HOSTLDFLAGS=\"\"  CFLAGS=\" -O2 -pipe \" CPPFLAGS=\"\"  CXXFLAGS=\"\"
LDFLAGS=\"\" MAKEOBJDIR=obj.amd64.beagle  SKIPDIR
MACHINE=${TARGET} \
=\"bind httpd microcode groff lynx binutils binutils-2.17 perl texinfo
gcc cvs nsd nginx sqlite3 libocurses/PSD.doc\"  make depend all ;  eval
AR=/usr/cross/beagle/usr/`cat /usr/cross/beagle/TARGET_CANON`/bin/ar
AS=/usr/cross/beagle/usr/`cat /usr/cross/beagle/TARGET_CANON`/bin/as
CC=/usr/cross/beagle/usr/`cat /usr/cross/beagle/TARGET_CANON`/bin/cc
CPP=/usr/cross/beagle/usr/`cat /usr/cross/beagle/TARGET_CANON`/bin/cpp
CXX=/usr/cross/beagle/usr/`cat /usr/cross/beagle/TARGET_CANON`/bin/c++
LD=/usr/cross/beagle/usr/`cat /usr/cross/beagle/TARGET_CANON`/bin/ld
OBJCOPY=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/objcopy  LORDER=/usr/bin/lorder
RANLIB=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/ranlib
STRIP=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/strip  HOSTCC=\"cc\" HOSTCXX=\"c++\"
NOMAN=  HOSTCFLAGS=\"-O2 -pipe \" HOSTCXXFLAGS=\"-O2 -pipe \"
HOSTLDFLAGS=\"\"  CFLAGS=\" -O2 -pipe \" CPPFLAGS=\"\"  CXXFLAGS=\"\"
LDFLAGS=\"\" MAKEOBJ# cd /usr/src && make -f Makefile.cross
TARGET=beagle
MACHINE=beagle  MACHINE_ARCH=arm MACHINE_CPU=arm;  export MACHINE
MACHINE_ARCH MACHINE_CPU;  (cd /usr/src/lib;  for lib in csu libc; do
(cd $lib;  eval AR=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/ar  AS=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/as  CC=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/cc  CPP=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/cpp  CXX=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/c++  LD=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/ld
OBJCOPY=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/objcopy  LORDER=/usr/bin/lorder
RANLIB=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/ranlib
STRIP=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/strip  HOSTCC=\"cc\" HOSTCXX=\"c++\"
NOMAN=  HOSTCFLAGS=\"-O2 -pipe \" HOSTCXXFLAGS=\"-O2 -pipe \"
HOSTLDFLAGS=\"\"  CFLAGS=\" -O2 -pipe \" CPPFLAGS=\"\"  CXXFLAGS=\"\"
LDFLAGS=\"\" MAKEOBJDIR=obj.amd64.beagle  make depend all ; eval
AR=/usr/cross/beagle/usr/`cat /usr/cross/beagle/TARGET_CANON`/bin/ar
AS=/usr/cross/beagle/usr/`cat /usr/cross/beagle/TARGET_CANON`/bin/as
CC=/usr/cross/beagle/usr/`cat /usr/cross/beagle/TARGET_CANON`/bin/cc
CPP=/usr/cross/beagle/usr/`cat /usr/cross/beagle/TARGET_CANON`/bin/cpp
CXX=/usr/cross/beagle/usr/`cat /usr/cross/beagle/TARGET_CANON`/bin/c++
LD=/usr/cross/beagle/usr/`cat /usr/cross/beagle/TARGET_CANON`/bin/ld
OBJCOPY=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/objcopy  LORDER=/usr/bin/lorder
RANLIB=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/ranlib
STRIP=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/strip  HOSTCC=\"cc\" HOSTCXX=\"c++\"
NOMAN=  HOSTCFLAGS=\"-O2 -pipe \" HOSTCXXFLAGS=\"-O2 -pipe \"
HOSTLDFLAGS=\"\"  CFLAGS=\" -O2 -pipe \" CPPFLAGS=\"\"  CXXFLAGS=\"\"
LDFLAGS=\"\" MAKEOBJDIR=obj.amd64.beagle DESTDIR=/usr/cross/beagle  make
install);  done;  eval AR=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/ar  AS=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/as  CC=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/cc  CPP=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/cpp  CXX=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/c++  LD=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/ld
OBJCOPY=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/objcopy  LORDER=/usr/bin/lorder
RANLIB=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/ranlib
STRIP=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/strip  HOSTCC=\"cc\" HOSTCXX=\"c++\"
NOMAN=  HOSTCFLAGS=\"-O2 -pipe \" HOSTCXXFLAGS=\"-O2 -pipe \"
HOSTLDFLAGS=\"\"  CFLAGS=\" -O2 -pipe \" CPPFLAGS=\"\"  CXXFLAGS=\"\"
LDFLAGS=\"\" MAKEOBJDIR=obj.amd64.beagle  SKIPDIR=\"bind httpd microcode
groff lynx binutils binutils-2.17 perl texinfo gcc cvs nsd nginx sqlite3
libocurses/PSD.doc\"  make depend all ;  eval
AR=/usr/cross/beagle/usr/`cat /usr/cross/beagle/TARGET_CANON`/bin/ar
AS=/usr/cross/beagle/usr/`cat /usr/cross/beagle/TARGET_CANON`/bin/as
CC=/usr/cross/beagle/usr/`cat /usr/cross/beagle/TARGET_CANON`/bin/cc
CPP=/usr/cross/beagle/usr/`cat /usr/cross/beagle/TARGET_CANON`/bin/cpp
CXX=/usr/cross/beagle/usr/`cat /usr/cross/beagle/TARGET_CANON`/bin/c++
LD=/usr/cross/beagle/usr/`cat /usr/cross/beagle/TARGET_CANON`/bin/ld
OBJCOPY=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/objcopy  LORDER=/usr/bin/lorder
RANLIB=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/ranlib
STRIP=/usr/cross/beagle/usr/`cat
/usr/cross/beagle/TARGET_CANON`/bin/strip  HOSTCC=\"cc\" HOSTCXX=\"c++\"
NOMAN=  HOSTCFLAGS=\"-O2 -pipe \" HOSTCXXFLAGS=\"-O2 -pipe \"
HOSTLDFLAGS=\"\"  CFLAGS=\" -O2 -pipe \" CPPFLAGS=\"\"  CXXFLAGS=\"\"
LDFLAGS=\"\" MAKEOBJDIR=obj.amd64.beagle DESTDIR=/usr/cross/beagle
SKIPDIR=\"bind httpd microcode groff lynx binutils binutils-2.17 perl
texinfo gcc cvs nsd nginx sqlite3 libocurses/PSD.doc\"  make install)
===> arm
===> arm
/usr/cross/beagle/usr/arm-unknown-openbsd5.2/bin/cc -O2 -pipe
-I/usr/src/lib/csu/arm/../common_elf -I/usr/src/lib/csu/arm -c -fpie
-DPIC /usr/src/lib/csu/arm/../common_elf/crtbegin.c -o crtbegin.o
/usr/src/lib/csu/arm/../common_elf/crtbegin.c:86: error: expected '=',
',', ';', 'asm' or '__attribute__' before '__dso_hidden'
*** Error 1 in lib/csu/arm (Makefile:27 'crtbegin.o':
@/usr/cross/beagle/usr/arm-unknown-openbsd5.2/bin/cc  -O2 -pipe
-I/usr/src/lib/csu/ar...)
*** Error 1 in lib/csu (<bsd.subdir.mk>:48 'all')
*** Error 1 in /usr/src (Makefile.cross:399 'cross-lib')
#

Reply | Threaded
Open this post in threaded view
|

Re: Current build instructions for beagleboard-xm

Brett Mahar-2
On 01/24/13 10:33, Brett Mahar wrote:
> Hi,
>
> I noticed that there has been some commits relating to arm/beagle/panda
> recently, so wanted to build a kernel. But the build fails with the
> below error. Should I be using some other TARGET, or is it something
> else I'm doing wrong?
>

Turns out it was my mistake, when I run the commands in this order:

rm -rf /usr/cross/beagle /usr/obj/*
export TARGET_ARCH=arm
export TARGET=beagle
make -f Makefile.cross cross-env
make TARGET=beagle cross-tools
make TARGET=beagle cross-distrib
cd /usr/src && make -f Makefile.cross TARGET=beagle
cd /sys/arch/beagle/conf && config GENERIC
cd /sys/arch/beagle/compile/GENERIC && make clean && beaglemake bsd.umg

the kernel built fine. Thanks to Philip Guenther and Brandon Mercer for
supplying the clues I needed to figure that out.

Brett.