嵌入式 hi3518c平台上无线网卡rtl8188eu系列网卡移植

嵌入式 hi3518c平台上无线网卡rtl8188eu系列网卡移植
 

首先修改driver下驱动文件中的Makefile文件:

添加自己的平台,我的平台是hi3518c,具体操作如下:
#add the new platform hi3518c alter by kj
CONFIG_PLATFORM_HI_3518C = y

添加平台的编译选项:

#add the compile option for hi_3518c
ifeq ($(CONFIG_PLATFORM_HI_3518C), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_MINIMAL_MEMORY_USAGE
ARCH := arm
CROSS_COMPILE := arm-hisiv100nptl-linux-
KVER  := 3.0.8
KSRC := /home/kongjun/mywork/develop_kj/Hi3518_SDK_V1.0.3.0/osdrv/kernel/linux-3.0.y
endif

注意:

CONFIG_POWER_SAVING = n(省电模式最好关闭)

 

下面是官方文档的编译说明:

 

Introduction
Inthis document, we introduce two ways to compile and  install  our Wi-Fi driver:
1)  Using  install.sh  script  for  PC-Linux  and  2)  Step  by  step  manually .  The  former
targets  for  end  users  who  are  not  familiar  with  Linux  system,  while  the  later  for
engineers who want to portour Wi-Fi driver ontodifferent platforms.
1.  Using install.sh Script for PC-Linux
For  driver  compilation  and  installation  in  PC-Linux,  we  provide  an  install.sh
script  to  do  the  duties  automatically .  If  you  want  to  use  our  Wi-Fi  solutions  to  access
network  on  PC-Linux,  you  can  just  run  install.sh  script  and  then  control  Wi-Fi  with
utilities  such  as  Network  Manager .  For  further  information  about  Wi-Fi  station  mode,
please refer to:
document/Quick_Start_Guide_for_Station_Mode.pdf.
If  you  want  to  apply  our  Wi-Fi  solutions  on  other  embedded  platforms,  you
should readand checkthe followingparagraphs.
2.  Decompress the driversource tarball
The  driver  source  tar  ball  is  located  in  the  driver  folder  of  our  software  package.
For example, to decompress rtl8188C_8192C_8192D_usb_linux_v3.3.0_2920.20111123.tar .gz :
root@driver/# tar zxvf rtl8188C_8192C_8192D_usb_linux_v3.3.0_2920.20111123.tar .gz
2
3.  Selecting Chip T ype with make_drv Script (for compound release)
Our  driver  source  release  has  two  types:  1)  single  release,  which  can  build  out
driver  only for singlechiptype, and  2) compound  release, which can build out  drivers
for multiple chiptypes separately .
For compoundrelease driver , you will see make_drvscriptafter you decompress
the driver tar ball locatedin driver folder . Before compiling driver source, executing
the make_drv toselect the target chip type to compile. For example:
4.  Compilation Settings in Makefile
4.1.  Adding orSelecting T arget Platform
The default target platform is PC-Linux, if you donot want tocompile driver for
otherplatforms you canskip this section.
T o  add  or  select  target  platform  for  compilation,  we  provide  two  sections  in
Makefile:  1)  platform  selection  section  and  2)  platform  setting  section.  First,  you
should look atthe platform selection section of Makefile:
The  platform  selection  section  consists  of  entries  with ‘CONFIG_PLA TFORM_’
prefix.  Only  one  entry  is  allowed  to  be  set  with  value  ‘y’   and  others  with  ‘n’.  The
CONFIG_PLA TFORM_I386_PC                  =  y
CONFIG_PLA TFORM_ANDROID_X86  =  n
CONFIG_PLA TFORM_ARM_S3C2K4    =    n
CONFIG_PLA TFORM_ARM_PXA2XX    =    n
CONFIG_PLA TFORM_ARM_S3C6K4    =    n
CONFIG_PLA TFORM_MIPS_RMI    =    n
CONFIG_PLA TFORM_RTD2880B    =  n
CONFIG_PLA TFORM_MIPS_AR9132    =    n
CONFIG_PLA TFORM_MT53XX    =  n
CONFIG_PLA TFORM_RTK_DMP    =  n
root@rtl8188C_8192C_8192D_usb_linux_v3.3.0_2920.20111123#./make_drv
Please select chip type(1/2):
1) RTL8192cu
2) RTL8192du
#?1
You have selected RTL8192cu
3
‘CONFIG_PLA TFORM_I386_PC’  is selected bydefault.
We  can  select  an  existing  entry  or  add  a  new  entry  for  your  target  platform.  For
example, toadd andselect a new entry , ‘CONFIG_PLA TFORM_NEW’:
Second, you shouldcreateand/or modify the corresponding  entry inside platform

你可能感兴趣的:(嵌入式 hi3518c平台上无线网卡rtl8188eu系列网卡移植)