Forum Discussion
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- when i followed the steps in the "de5net_network_opencl_manual.pdf", i got the following problems: 1.in "test ‘aocl flash’ command" section, after i finished the clock setting and tried to use "aocl program acl0 bin/fft2d.aocx" to test the progrom, i got the following errors: aocl program: Running reprogram from /home/storm/altera/14.0/hld/board/de5net_network/linux64/libexec Unable to open the device acl0. aocl program: Program failed. 2.in the "driver installation " section, when i use "aocl install " or "./make_all " to install the driver, i got the following errors: aocl install: Running install from /home/storm/altera/14.0/hld/board/de5net_network/linux64/libexec Using kernel source files from /usr/src/linux-headers-3.16.0-30-generic make: Entering directory `/usr/src/linux-headers-3.16.0-30-generic' CC [M] /tmp/opencl_driver_yH5TgN/aclpci_queue.o CC [M] /tmp/opencl_driver_yH5TgN/aclpci.o /tmp/opencl_driver_yH5TgN/aclpci.c:61:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘probe’ static int __devinit probe(struct pci_dev *dev, const struct pci_device_id *id); ^ /tmp/opencl_driver_yH5TgN/aclpci.c:62:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘init_chrdev’ static int __devinit init_chrdev (struct aclpci_dev *aclpci); ^ /tmp/opencl_driver_yH5TgN/aclpci.c:63:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘remove’ static void __devexit remove(struct pci_dev *dev); ^ /tmp/opencl_driver_yH5TgN/aclpci.c:65:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘scan_bars’ static int __devinit scan_bars(struct aclpci_dev *aclpci, struct pci_dev *dev); ^ /tmp/opencl_driver_yH5TgN/aclpci.c:66:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘map_bars’ static int __devinit map_bars(struct aclpci_dev *aclpci, struct pci_dev *dev); ^ /tmp/opencl_driver_yH5TgN/aclpci.c:82:12: error: ‘probe’ undeclared here (not in a function) .probe = probe, ^ /tmp/opencl_driver_yH5TgN/aclpci.c:83:13: error: ‘remove’ undeclared here (not in a function) .remove = remove, ^ /tmp/opencl_driver_yH5TgN/aclpci.c:115:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘init_chrdev’ static int __devinit init_chrdev (struct aclpci_dev *aclpci) { ^ /tmp/opencl_driver_yH5TgN/aclpci.c:489:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘probe’ static int __devinit probe(struct pci_dev *dev, const struct pci_device_id *id) { ^ /tmp/opencl_driver_yH5TgN/aclpci.c:571:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘scan_bars’ static int __devinit scan_bars(struct aclpci_dev *aclpci, struct pci_dev *dev) ^ /tmp/opencl_driver_yH5TgN/aclpci.c:592:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘map_bars’ static int __devinit map_bars(struct aclpci_dev *aclpci, struct pci_dev *dev) ^ /tmp/opencl_driver_yH5TgN/aclpci.c:640:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘remove’ static void __devexit remove(struct pci_dev *dev) { ^ /tmp/opencl_driver_yH5TgN/aclpci.c:628:13: warning: ‘free_bars’ defined but not used [-Wunused-function] static void free_bars(struct aclpci_dev *aclpci, struct pci_dev *dev) { ^ /tmp/opencl_driver_yH5TgN/aclpci.c:103:21: warning: ‘aclpci_get_free’ defined but not used [-Wunused-function] static unsigned int aclpci_get_free(void) ^ /tmp/opencl_driver_yH5TgN/aclpci.c:449:24: warning: ‘find_upstream_dev’ defined but not used [-Wunused-function] static struct pci_dev* find_upstream_dev (struct pci_dev *dev) { ^ make[1]: *** [/tmp/opencl_driver_yH5TgN/aclpci.o] Error 1 make: *** [_module_/tmp/opencl_driver_yH5TgN] Error 2 make: Leaving directory `/usr/src/linux-headers-3.16.0-30-generic' cp: cannot stat ‘./aclpci_drv.ko’: No such file or directory cp: cannot create regular file ‘/etc/sysconfig/modules/aclpci.modules’: No such file or directory chmod: cannot access ‘/etc/sysconfig/modules/aclpci.modules’: No such file or directory modprobe: FATAL: Module aclpci_drv not found. The Operating system is Ubuntu and the board is De5-NET FPGA. I appreciate if anyone can help me. Thanks, Jiawen --- Quote End --- I need the same problem.Please help me! Thank you!