-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No tx_channel and rx_channel devices in /dev. Petalinux 2020.2 #137
Comments
Hi! I'm facing the same issue. After building and booting the new system, I get the following:
It seems it is initialized correctly, but when I load the module using insmod I get the following message
Using lsmod I can see that the module is loaded
But I cannot see the device at /dev/axidma nor in /proc/devices My device-tree is as follows:
Did you manage to solve the issue? |
I solved the issue, I needed to uncheck the option Auto config settings -> Device tree autoconfig in petalinux-config. Then it works fine |
Hi I compiled your module with petalinux 2020. I'm configured device tree with this code:
`
/{
axidma_chrdev: axidma_chrdev@0 {
compatible = "xlnx,axidma-chrdev";
dmas = <&axi_dma_0 0 &axi_dma_0 1>;
dma-names = "tx_channel", "rx_channel";
};
};
&axi_dma_0{
//compatible = "xlnx,zynqmp-dma-1.0", "xlnx,axi-dma-7.1.a", "xlnx,axi-dma-1.00.a", "xlnx,axi-dma";
compatible = "xlnx,axi-dma", "xlnx,axi-dma-6.03.a", "xlnx,axi-dma-1.00.a";
clock-names = "s_axi_lite_aclk", "m_axi_sg_aclk", "m_axi_mm2s_aclk", "m_axi_s2mm_aclk";
clocks = <&zynqmp_clk 71>, <&zynqmp_clk 71>, <&zynqmp_clk 71>, <&zynqmp_clk 71>;
interrupt-names = "mm2s_introut", "s2mm_introut";
interrupt-parent = <&gic>;
interrupts = <0 89 4 0 90 4>;
reg = <0x0 0xa0000000 0x0 0x10000>;
xlnx,addrwidth = <0x40>;
xlnx,include-sg ;
xlnx,sg-length-width = <0x1a>;
dma-channel@a0000000 {
compatible = "xlnx,axi-dma-mm2s-channel";
dma-channels = <0x1>;
interrupts = <0 89 4>;
xlnx,datawidth = <0x20>;
xlnx,device-id = <0x0>;
};
dma-channel@a0000030 {
compatible = "xlnx,axi-dma-s2mm-channel";
dma-channels = <0x1>;
interrupts = <0 90 4>;
xlnx,datawidth = <0x20>;
xlnx,device-id = <0x0>;
};
};
`
But it looks there is no devices in /dev. When I put modprobe command I got this result:
root@Testowy2:~# modprobe xilinx_axidma [ 46.597530] xilinx_axidma: loading out-of-tree module taints kernel. root@Testowy2:~#
Could you help me resolve this issue?
The text was updated successfully, but these errors were encountered: