Hi, Adam and Glenn, I prefer to build packages on the roach2 itself when needed. It's not too fast, but it is much easier than using ELDK (IMHO). To add missing packages (e.g. zlib1g-dev), one can run these commands on a netbooted roach2:
mount -o remount,rw / apt-get install zlib1g-dev mount -o remount,ro / Note that I had to delete the (SKA-SA specific?) /etc/apt/apt.conf.d/99proxy file to get apt to work on the roach2. I also changed the URL in /etc/apt/sources.list so that it would fetch packages from a nearby repository (rather than South Africa :-)). Hope this helps, Dave On Dec 3, 2012, at 2:19 PM, Adam Barta wrote: > Hi Glen, > > > Try install eldk on a Dev machine. I think we use this one: > > ftp://ftp.sunet.se/pub/Linux/distributions/eldk/4.2/ppc-linux-x86/iso/ppc-2008-04-01.iso > > Once that is installed run to setup cross_compiling > > source /opt/eldk/eldk_init ppc_4xx > > then if you need on the dev machine install zlib1g and zlib1g-dev. > > make clean && make > > should build katcp ppc_4xx-gcc > > > Regards > > Adam > > > On Mon, Dec 3, 2012 at 10:13 PM, G Jones <[email protected]> wrote: > Hi, > We need to add some commands to tcpborphserver3 to support > communication commands over the external I2C bus. We did this > previously for tcpborphserver2 on the ROACH I. I am now looking at > migrating these changes to tcpborphserver3. > > I cloned the latest code from ska-sa/katcp and am building it directly > on the ROACH II. The code does not seem to build out of the box. I ran > into these problems: > > In raw.c, the definitions of the check_read_results macro are inconsistent: > > #ifdef DEBUG > void check_read_results(int *v, int floor) > .... > #else > #define check_read_results(p) > > That was an easy fix. > > Next, zlib.h is needed by loadbof.c, but is not found on the ROACH II > file system. This cascades into trouble because the struct bof_state > does not get defined properly. What is the recommended way to build > this software? > > Also, I remember seeing mention that the KATCP command syntax may have > changed between tcpborphserver2 and tcpborphserver3. Is there a list > of these changes somewhere? > > Thanks, > Glenn > > > > > -- > Adam Barta > c: +27 72 105 8611 > e: [email protected] > w: www.ska.ac.za > >

