Hi Sergio,

thanks for your help. it works with the webcompiler but it doesn't 
with the sdk version that you comment at http://www.acmesystems.it/?
id=43 for windows users (it's the one that I have).
After doing the "make cris-axis-linux-gnu" or "make cris-axis-linux-
gnuuclibc" (following the webpage http://www.acmesystems.it/?id=711), 
I obtain some warnings (one of them: "make[2]: warning: Clock skew 
detected. Your build may be incomplete.") and I don't obtain the out 
file.

Where are the differences between the webcompiler and the sdk 
commented ???

For me it's important to compile locally with the sdk because 
sometimes you don't have an internet connection at the customer place 
if you need to do some arrengements or modifications.

thanks.

(P.D.: here you have the files that I have used for the webcompiler 
and the sdk compiling:

the testIO.c is this one:

#include "stdio.h"
#include "stdlib.h"
#include "unistd.h"
#include "sys/ioctl.h"
#include "fcntl.h"
#include "time.h"
#include "string.h"
#include "linux/gpio_syscalls.h"

int main(int argc, char **argv) {

  // set PA0 as output
  gpiosetdir(PORTA, DIROUT, PA0);

  // set PB7 as output
  gpiosetdir(PORTB, DIROUT, PB7);

  // set IOG24 as output
  gpiosetdir(PORTG, DIROUT, PG24);

  // set IOG8-15 as output
  gpiosetdir(PORTG, DIROUT, PG8_15);

/*
  while(1) {
    gpiosetbits(PORTA, PA0);
    gpiosetbits(PORTB, PB7);
    //gpiotogglebit(PORTG, PG24);
    gpiosetbits(PORTG, PG8);
    printf("%d\n", (gpiogetbits(PORTG, PG2))?(1):(0));
    sleep(1);

    gpioclearbits(PORTA, PA0);
    gpioclearbits(PORTB, PB7);
    //gpiotogglebit(PORTG, PG24);
    gpioclearbits(PORTG, PG8);
    printf("%d\n", (gpiogetbits(PORTG, PG2))?(1):(0));

    sleep(1);
  }
 */
int i;
   for (i=0;i<30;i++) {
    gpiosetbits(PORTG, PG24);
    sleep(1);

    gpioclearbits(PORTG, PG24);
    sleep(1);
  }

  
  return(0);
}

the Makefile used is this one:

AXIS_USABLE_LIBS = UCLIBC GLIBC
include $(AXIS_TOP_DIR)/tools/build/Rules.axis

PROGS     = testIO

OBJS      = testIO.o

INSTDIR = $(prefix)/usr/bin

all: $(PROGS)
$(PROGS): $(OBJS)
        $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@
        $(STRIP) $@

install: $(PROGS)
        $(INSTALL) -p -o root -g root -m 0777 $(PROGS) $(INSTDIR)

clean:
        rm -f $(PROGS) *.o core
)

--- In [email protected], Sergio Tanzilli <[EMAIL PROTECTED]> wrote:
>
> Hi
> 
> gpio_syscalls exist only in the patched version of Axis SDK made by 
John 
> Crispin and not in the original one (the patched version is called 
FOX 
> Board SDK).
> 
> You can download  this version from here: 
> http://www.acmesystems.it/?id=714 (or here if you are using windows 
> http://www.acmesystems.it/?id=43)
> 
> You can try to compiler the http://www.acmesystems.it/?
id=22#syscalls 
> example also with webcompiler http://www.acmesystems.it/?id=200 
that is 
> based on the FOX Board SDK.
> 
> Sergio
> 
> 
> > Hi all,
> > 
> > I've tried to compile the example mentioned in
> > http://www.acmesystems.it/?id=22#syscalls, 
> > <http://www.acmesystems.it/?id=22#syscalls,> using the 
gpio_syscall. I
> > only get errors saying that the functions used in the c file don't
> > exist. Looking at /home/fox/devboard-R2_01/target/cris-axis-linux-
> > gnu/include/linux/gpio_syscalls.h, the functions are different 
from
> > the ones you use in the c file. If you use the original ones, it
> > doesn't work too...
> > 
> > I'd appreciate some help. Has anybody used the gpio_syscalls with
> > success ??? ... I have read something about the syscalls table in 
the
> > Linux entry file. Does anybody know how to use it or check it in 
the
> > debian-31r0a-i386-netinst-kernel2.6 ???
> > 
> > I have a LX816 foxboard with 2.6.X devboard-R2_01 and I'm a 
beginner
> > with some Linux issues.
> > 
> > Thank you very much.
>


Reply via email to