-
Notifications
You must be signed in to change notification settings - Fork 312
Platforms_BeagleBoard
These notes are from a build for BeagleBoard XM Rev C1 running the Angstrom demo.
You can probably cross compile from most Linux distributions. I used Ubuntu 11.10 on a Mac running as a VMWare application. It was downloaded from.
http://www.trendsigma.net/vmware/ubuntu1110t.html
Install the ALSA development packet for the BeagleBoard target into the cross compiler toolchain. In Ubuntu Linux enter:
su -
source /usr/local/angstrom/arm/environment-setup
opkg-target update
opkg-target install alsa-dev
I recommend using the nightly snapshot of PortAudio V19 from http://www.portaudio.com/download.html
Copy it to a "Work" directory in a user account on Ubuntu.
Move to the PortAudio directory:
cd ~/Work/portaudio
You will need to pass options to "configure" to tell it to cross-compile for BeagleBoard and not for your desktop Linux. The settings below will cause it to link directly with the static library "lib/.libs/libportaudio.a".
The first command below, starting with CFLAGS, is all on one line:
CFLAGS="-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp" ./configure --host=arm-angstrom-linux-gnueabi --prefix=/usr/local/angstrom/arm --disable-shared
make
ls bin
You should end up with a bunch of test files in the bin folder. Copy a test file from Ubuntu to your BeagleBoard using scp. You will need to change the IP address and account name to match your setup.
scp bin/paex_sine [email protected]:/home/phil/.
Then on the BeagleBoard, as root, enter:
cd ~phil
./paex_sine
If you have speakers hooked up, then you should hear a sine wave play for 5 seconds.