Audio Cape for Ubuntu

Hello,

I just bought the Audio cape rev B1 and trying to operate it on Beaglebone black under Ubuntu 13.04

I was trying to follow this

http://elinux.org/BBB_Audio_Cape_RevB_Getting_Started

But stopped after this

root@beaglebone:~# dtc -O dtb -o BB-BONE-AUDI-02-00A0.dtbo -b 0 -@ BB-BONE-AUDI-02-00A0.dts

The dtc does not support -@ option

I tried to do this

http://www.embedded-things.com/bbb/patching-the-device-tree-compiler-for-ubuntu/

But stopped after

git reset --hard f8cb5dd94903a5cfa1609695328b8f1d5557367f

This line finished with following error

HEAD is now at f8cb5dd utilfdt_read_err: use xmalloc funcs

Now I stuck. Is it possible to use it under Ubuntu 13.04 or I should switch to Angstrom distribution?

Thanks
Artem

This actually works out of the box with ubuntu now:

http://elinux.org/BeagleBoardUbuntu#BeagleBone.2FBeagleBone_Black

cd /opt/scripts/tools
git pull
sudo ./update_kernel.sh
(reboot)

Then just disable "BB-BONELT-HDMI" in /boot/uboot/uEnv.txt , enable
with /etc/default/capemgr like the wiki shows..

Regards,

Hi Robert,

Thank you very much for the answer. I am trying to follow your advises and now have another issue.

I did the following

  1. Download and unzip image https://rcn-ee.net/deb/microsd/trusty/bone-ubuntu-14.04-console-2014-06-05-2gb.img.xz on Windows
  2. Put the image to SD-card using Win32DiskImager tool
  3. Inserted SD-card to BBB device and power it on
  4. After a minute I see arm login prompt.

But after 10 min nothing was happened. I expected that system will be copied to eMMC but not.

I understand that installation script was not executed and I did the following (after login)

cd /
cd home
git clone https://github.com/RobertCNelson/boot-scripts.git
cd boot-scripts/tools
sudo sh init-eMMC-flasher.sh

The script was started

debug copying [/dev/mmcblk0 → /dev/mmcblk1]

But was finished with a lot of errors
permission denied…

rsync: read errors mapping…
failed verification – update discarded…

Could you please advise what was went wrong

Best regards,
Artem

Hi Robert,

Thank you very much for the answer. I am trying to follow your advises and
now have another issue.

I did the following

1. Download and unzip image
https://rcn-ee.net/deb/microsd/trusty/bone-ubuntu-14.04-console-2014-06-05-2gb.img.xz
on Windows
2. Put the image to SD-card using Win32DiskImager tool
3. Inserted SD-card to BBB device and power it on
4. After a minute I see arm login prompt.

But after 10 min nothing was happened. I expected that system will be copied
to eMMC but not.

Well yeah.. The flasher is here:
http://elinux.org/BeagleBoardUbuntu#eMMC:_BeagleBone_Black

https://rcn-ee.net/deb/flasher/trusty/BBB-eMMC-flasher-ubuntu-14.04-console-2014-06-05-2gb.img.xz

(it has "flasher" in it's name..)

I understand that installation script was not executed and I did the
following (after login)

cd /
cd home
git clone https://github.com/RobertCNelson/boot-scripts.git
cd boot-scripts/tools
sudo sh init-eMMC-flasher.sh

That's the "init" script and it needs to be run by bash in single user mode...

If your going to run it from the command line run:

cd /opt/scripts/tools/
git pull
sudo ./beaglebone-black-eMMC-flasher.sh

Regards,

Hi Robert,

Thank you very much. The Ubuntu on eMMC was updated and Audio Cape is working now!

If somebody needed exact steps I did the following.

  1. Download and unzip image https://rcn-ee.net/deb/microsd/trusty/bone-ubuntu-14.04-console-2014-06-05-2gb.img.xz on Windows

  2. Put the image to SD-card using Win32DiskImager tool

  3. Insert SD-card to BBB device and power it on

  4. Edit the uEnv.txt at /boot/uboot. Uncomment these lines in the uEnv.txt file:

cape_disable=capemgr.disable_partno=BB-BONELT-HDMI
cape_enable=capemgr.enable_partno=BB-BONE-AUDIO-02

  1. Edit the following line in /etc/default/capemgr

CAPE=BB-BONE-AUDI-02

  1. Restart and check the audio

sudo apt-get install alsa-utils
sudo find / -iname ‘*.wav’
aplay /usr/share/sounds/alsa/Front_Center.wav

  1. Execute flasher manually

cd /home
git clone https://github.com/RobertCNelson/boot-scripts.git
cd boot-scripts/tools
sudo ./beaglebone-black-eMMC-flasher.sh

  1. Restart

Best regards,
Artem