Gizmotoy
New Contributor
7 years agoIntel AN829 PCIe DMA example failing to create /proc/devices entry
I'm working on bringing up AN829, the Altera DMA example, on a Cyclone 10 GX Development Kit. The FPGA is loaded and shows up on the PCIe bus.
05:00.0 Non-VGA unclassified device: Altera Corporation Device e003 (rev 01)And the kernel module is loaded
Cyclone10GX_PCIeGen2x4_DMA_18_0_project/driver/AN829_driver$ lsmod | grep altera
altera_dma 20480 0
altera_cvp 16384 0
fpga_mgr 16384 1 altera_cvpBut the device isn't listed in /proc/devices
Cyclone10GX_PCIeGen2x4_DMA_18_0_project/driver/AN829_driver$ cat /proc/devices
Character devices:
1 mem
4 /dev/vc/0
4 tty
4 ttyS
5 /dev/tty
5 /dev/console
5 /dev/ptmx
5 ttyprintk
6 lp
7 vcs
10 misc
13 input
21 sg
29 fb
89 i2c
99 ppdev
108 ppp
116 alsa
128 ptm
136 pts
180 usb
189 usb_device
204 ttyMAX
216 rfcomm
226 drm
240 mei
241 hidraw
242 aux
243 ptp
244 pps
245 ttyDBC
246 bsg
247 hmm_device
248 watchdog
249 rtc
250 dax
251 dimmctl
252 ndctl
253 tpm
254 gpiochip
Block devices:
7 loop
8 sd
9 md
11 sr
65 sd
66 sd
67 sd
68 sd
69 sd
70 sd
71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
253 device-mapper
254 mdp
259 blkextSince the device isn't listed in /proc/devices, it can't get the major/minor identifiers required to create /dev/altera_dma, and the altera_load_dma process fails.
Any idea why the kernel module might load, but fail to create an entry in /proc/devices?
The OS is Ubuntu 16.04
Thanks!