Page 2 of 2

Re: creating a output register/interrup from PL to arm proce

PostPosted: Sun Oct 28, 2018 8:57 pm
by cpantel
Hi dipin

do you remember which distro/kernel worked for you? The accelerator example opens /dev/epiphany this way

int mem_fd = -1;
//############################################
//# Map Memory Using Generic Epiphany driver
//############################################
int e_map(unsigned addr, void **ptr, unsigned *offset) {
...
//Open /dev/mem file if not already
if(mem_fd < 1) {
mem_fd = open ("/dev/epiphany", O_RDWR);
if (mem_fd < 1) {
perror("f_map");
return -1;
}
}

but in these distros

parabuntu-2016.11.1-headless-z7010.img
ubuntu-15.04-esdk-2016.3-headless-z7010.img

/dev/epiphany is a folder with some content:

elink0
mesh0


I could not make work this one yet:
ubuntu-14.04-headless-z7010-20150130.1.img


Any hints?

Re: creating a output register/interrup from PL to arm proce

PostPosted: Wed Nov 07, 2018 12:01 am
by cpantel