34 lines
1.2 KiB
Text
34 lines
1.2 KiB
Text
|
||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||
编译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命令,则可以使用此工具。
|