Re: creating a output register/interrup from PL to arm proce
Posted: Sun Oct 28, 2018 8:57 pm
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?
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?