Pages

Monday 23 July 2012

BeagleBone - ubuntu precise 12.04 armhf

Beaglebone with ubuntu precise


On debian laptop 


(elinux.org, 2012)

wget http://rcn-ee.net/deb/rootfs/precise/ubuntu-12.04-r4-minimal-armhf-2012-07-16.tar.xz

sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot "board"




ssh into BeagleBone


 (R.Nelson, 2012)



apt-get update

apt-get upgrade


apt-get install libncurses5-dev lzma make gcc patchutils libproc-processtable-perl


create a swapfile


mkdir -p /var/cache/swap/ sudo dd if=/dev/zero of=/var/cache/swap/swapfile bs=1M count=1024 sudo 

chmod 0600 /var/cache/swap/swapfile 
mkswap /var/cache/swap/swapfile
swapon /var/cache/swap/swapfile

get sources and BeagleBone patches



mkdir /home/stuff

cd /home/stuff

wget http://rcn-ee.net/deb/precise-armhf/v3.2.21-psp16/defconfig

wget http://rcn-ee.net/deb/precise-armhf/v3.2.21-psp16/patch-3.2-psp16.diff.gz


mkdir /home/linux



cd /home/linux


wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.2.tar.bz2

tar xjf linux-3.2.tar.bz2 

cd linux-3.2

zcat /home/stuff/patch-3.2-psp16.diff.gz | patch -p1

cp /dir/downloaded/defconfig .config




edit the em28xx driver (Makarov, 2011)


cd drivers/media/video/em28xx/

sed -i 's/height >>= norm_maxh(dev)/height = norm_maxh(dev) >> 1/' em28xx-core.c

cd /home/linux/linux-3.2

make menuconfig

Device drivers > USB support > disable DMA (always use PIO)

make

make modules_install

apt-get install motion

Getting a decent picture out of the lifecam, but timeouts from the em28xx.


I AM STUCK NOW. TIME TO ASK THE INTERNETS.




Answer = use a syntek device!



thanks to : https://groups.google.com/forum/?fromgroups#!topic/beagleboard/NZGU2gt-U2Y
http://easycap.blogspot.co.uk/p/devices.html


Amazon uk link;

http://www.amazon.co.uk/LogiLink-USB-Video-Adapter-Audio/dp/B0013BXFLG/ref=sr_1_1?ie=UTF8&qid=1343662212&sr=8-1

This card is currently producing a 720x576 image in motion on the BeagleBone running ubuntu 12.04 - and no mucking about with the kernel.





References

elinux.org, July 2012, BeagleBoardUbuntu, available from  http://elinux.org/BeagleBoardUbuntu#BeagleBone accessed 23rd July 2012


Robert C Nelson, (2012) in reply to ubuntu make error No such file or directory available from https://groups.google.com/forum/?fromgroups#!topic/beagleboard/5xMAyFxQbdE accessed 23rd July 2012




Vitaly Makarov (2011) Non-portable code in em28XX driver, available from http://www.digipedia.pl/usenet/thread/18550/7691/ , accessed 21st July 2012

No comments:

Post a Comment

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License