0
0
Fork 0
hgicf/readme.txt

34 lines
1.2 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

////////////////////////////////////////////////////////////////////////////////////////////////////
编译fmac驱动
1.修改Makefile: 修改编译器相关设置。
例如 mtk 编译环境下:
#MTK SDK
ARCH := mips
COMPILER := /opt/buildroot-gcc463/usr/bin/mipsel-linux-
LINUX_KERNEL_PATH := /home/dongyun/work/disk4/RT288x_AHv1.2/source/linux-3.10.14.x
2. 执行: make fmac
常见编译错误处理:
1. error implicit declaration of function 'PDE_DATA'
该编译错误是由于Linux kernel版本差异proc fs 缺失了 PDE_DATA 小函数。
遇到此error请打开 hgic_fmac/procfs.f 文件,查看下面这段代码,如果 LINUX_VERSION_CODE 不满足条件则修改一下version code判断条件。
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,36)
static inline struct proc_dir_entry *PDE(const struct inode *inode)
{
return PROC_I(inode)->pde;
}
static inline void *PDE_DATA(const struct inode *inode)
{
return PDE(inode)->data;
}
#endif
hgicf.conf : fmac驱动参数文件ap模式
fmac.sh : fmac驱动启动脚本。
hgtest : 测试模式tool用于发送测试模式命令。
iwpriv : 泰芯专用的iwpriv工具。原系统如果没有iwpriv命令则可以使用此工具。