0
0
Fork 0
HugeIC Drivers
Find a file
2023-10-08 17:33:39 -07:00
hgic_fmac fix compilation and errors with newer versions of the kernel 2023-10-08 17:33:39 -07:00
hgota Initial driver upload 2023-05-16 02:13:19 -07:00
utils fix compilation and errors with newer versions of the kernel 2023-10-08 17:33:39 -07:00
changelog.txt Initial driver upload 2023-05-16 02:13:19 -07:00
fmac.sh Initial driver upload 2023-05-16 02:13:19 -07:00
hgic.h Initial driver upload 2023-05-16 02:13:19 -07:00
hgic_def.h Initial driver upload 2023-05-16 02:13:19 -07:00
hgicf.conf Initial driver upload 2023-05-16 02:13:19 -07:00
hgtest Initial driver upload 2023-05-16 02:13:19 -07:00
iwpriv Initial driver upload 2023-05-16 02:13:19 -07:00
Makefile Initial driver upload 2023-05-16 02:13:19 -07:00
readme.txt Initial driver upload 2023-05-16 02:13:19 -07:00
version.h Initial driver upload 2023-05-16 02:13:19 -07:00

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命令则可以使用此工具。