Hi3559AV100平台PCIE硬盘STAT驱动调试
作者:互联网
1、内核支持PCIE
2、编译所需驱动
进去目录/osdrv/components/pcie_mcc/pcie_mcc/ 修改Makefile
编译报错如下:
osdrv/components/pcie_mcc/pcie_mcc/mcc_core/drv/pci_proto_init_v1.c:68:14: error: conflicting types for ‘shm_phys_addr’
unsigned int shm_phys_addr = 0;
In file included from /home/shliu/Hi3559AV100_SDK_V2.0.1.0/osdrv/components/pcie_mcc/pcie_mcc/mcc_core/drv/pci_proto_init_v1.c:22:0:
/home/shliu/Hi3559AV100_SDK_V2.0.1.0/osdrv/components/pcie_mcc/pcie_mcc/mcc_core/drv/../include/pci_proto_common.h:76:22: note: previous declaration of ‘shm_phys_addr’ was here
extern unsigned long shm_phys_addr;
变量类型不一致导致编译不通过。修改pci_proto_common.h 中 extern unsigned int shm_phys_addr;即可。
生成库问下如下:
在load3559av100_multicore添加pcie加载驱动命令。
标签:STAT,phys,addr,pcie,Hi3559AV100,proto,mcc,PCIE,shm 来源: https://blog.csdn.net/xclshwd/article/details/88796123