Hi3559AV100 没有STAT总线接口,但具有PCI Express (或简称PCIe)主要应用于PCIe外扩SATA、网口、WiFi以及片间级联等
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加载驱动命令。