<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hello,<br>
<br>
In my setup I build a complete kernel for the beaglebone board.
Attached you find a script to compile the kernel and modules, install
it on a MM-card, compile the master, install the modules an userland.<br>
<br>
Please try.<br>
<br>
#get Linaro Compiler<br>
# wget
<a class="moz-txt-link-freetext" href="https://launchpad.net/linaro-toolchain-binaries/trunk/2013.03/+download/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux.tar.bz2">https://launchpad.net/linaro-toolchain-binaries/trunk/2013.03/+download/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux.tar.bz2</a><br>
#get Beagleboard stuff<br>
#git clone <a class="moz-txt-link-freetext" href="https://github.com/beagleboard/kernel.git">https://github.com/beagleboard/kernel.git</a><br>
<br>
# RT-Preempt Kernel and patches in branch 3.8-rt<br>
<br>
#define local git repo to prefend getting huge vannilla git repo twice<br>
# EXTERNAL_TREE = /path<br>
<br>
#patch KERNEL<br>
#cd kernel<br>
#./patch.sh<br>
<br>
#get Beaglebone pm firmware<br>
#wget 
<a class="moz-txt-link-freetext" href="http://arago-project.org/git/projects/?p=am33x-cm3.git;a=tree;f=bin/am335x-pm-firmware.bin">http://arago-project.org/git/projects/?p=am33x-cm3.git;a=tree;f=bin/am335x-pm-firmware.bin</a>
-o kernel/firmware/am335x-pm-firmware.bin<br>
<br>
#set Cross pre-cmd<br>
PRECROSS=arm-linux-gnueabihf-<br>
MYARCH=arm<br>
<br>
#extend path<br>
export
PATH=$PATH:/home/ab/Download/beaglebone/cross/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux/bin<br>
<br>
#optional get config<br>
#cp ../configs/beaglebone .config<br>
#oldconfig<br>
make ARCH=$MYARCH CROSS_COMPILE=$PRECROSS oldconfig<br>
#menuconfig<br>
make ARCH=$MYARCH CROSS_COMPILE=$PRECROSS menuconfig<br>
#build kernel modules<br>
make ARCH=$MYARCH CROSS_COMPILE=$PRECROSS zImage modules dtbs -j2 <br>
<br>
#copy<br>
#cp arch/arm/boot/uImage /TARGET/boot/uImage<br>
#cp arch/arm/boot/dts/am335x-bone.dtb /TARGET/boot/<br>
<br>
#install modules<br>
# make ARCH=$MYARCH CROSS_COMPILE=$PRECROSS INSTALL_MOD_PATH=/TARGET
modules_install<br>
<br>
<br>
#adapt uEnv.txt<br>
#devtree=/boot/am335x-bone.dtb<br>
#dtboot=run mmcargs; ext2load mmc ${mmcdev}:2 ${loadaddr} ${bootfile} ;
ext2load mmc ${mmcdev}:2 ${fdtaddr} ${devtree} ; bootm ${loadaddr} -
${fdtaddr}<br>
#uenvcmd=run dtboot<br>
#optargs=consoleblank=0<br>
<br>
<br>
<br>
<br>
#connect<br>
#picocom -f n -p n -b 115200 -i -r -l /dev/ttyUSB1<br>
<br>
<br>
#compile ethercat master<br>
#./configure --disable-8139too --enable-generic
--with-linux-dir=/home/ab/Download/beaglebone/kernel/kernel
CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++
CPP=arm-linux-gnueabihf-cpp --host=arm<br>
<br>
#compile userspace<br>
#make<br>
<br>
<br>
#compile modules<br>
#make ARCH=$MYARCH CROSS_COMPILE=$PRECROSS modules<br>
<br>
#install modules<br>
# make ARCH=$MYARCH CROSS_COMPILE=$PRECROSS INSTALL_MOD_PATH=/TARGET
modules_install<br>
#install ethercat userland<br>
# make install DESTDIR=/TARGET/opt/etherlab<br>
<blockquote cite="mid:03d701ce75e3$19953d40$4cbfb7c0$@com" type="cite">
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
etherlab-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.etherlab.org/mailman/listinfo/etherlab-users">http://lists.etherlab.org/mailman/listinfo/etherlab-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>