cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jie
Visitor
Visitor
365 Views
Registered: ‎12-25-2018

运行官方dpd-smp程序出现异常报错

  • 开环环境:

1、芯片类型:6CG ffvc-900

2、软件环境:Vavido2019.2、Petalinux

  • 问题描述:

运行官方提供的dpd-smp程序,报错如下:

[root@root]# ./dpd-smp -u 0

--- Xilinx Digital Pre-Distortion Software v10.0 rev0

--- Build: Linux SMP: CL2811315

*** mmap to uio driver failed: : Invalid argument

 

二、配置详细:

  • 共享内存配置
 

 

  • 设备树配置

amba_pl@0 {

        #address-cells = <0x2>;

        #size-cells = <0x2>;

        compatible = "simple-bus";

        ranges;

dpd@B0000000 {

clock-names = "dpd_aclk", "dpd_internal_aclk", "s_axi_ctrl_aclk", "s_axi_user_aclk";

clocks = <0x38 0x38 0x37 0x37>;

compatible = "generic-uio";

interrupt-names = "interrupt";

interrupt-parent = <0x4>;

interrupts = <0x0 0x59 0x1>;

reg = <0x0 0xB0000000 0x0 0x4000000>;

};

dpd_user@B4000000 {

compatible = "generic-uio";

reg = <0x0 0xB4000000 0x0 0x20000>;

};

dfe_scratch@500000000 {

clock-names = "s_axi_ctrl_aclk";

clocks = <0x37>;

compatible = "xlnx,dfe-scratch-1.0";

reg = <0x5 0x00000000 0x0 0x1000>;

};

};

  • 设备节点
 

图片2.png

 

 

 

  • 驱动映射

[root@root]# pwd               

/sys/devices/platform/amba_pl@0

[root@root]# ls

500000000.dfe_scratch/  b4000000.dpd_user/  modalias  power/      uevent

b0000000.dpd/           driver_override     of_node@  subsystem@

 

[root@root]# cd b0000000.dpd/

[root@root]# ls

driver_override  modalias  of_node@  power/  subsystem@  uevent

此处没有发现uio,对比datasheet的描述,有差异。

To find the particular UIO device associated with an
instance of DPD, check the emebedded linux sysfs directory (/sys/
devices/soc0/amba_pl@0/a4000000.dpd_user/uio) on the
MPSoC and RFSoC devices

 

 

  • 内核配置
 

图片3.png

 

 

d)libmetal库

 

图片4.png

 

请帮忙分析,谢谢!

0 Kudos
0 Replies