../os/linux/sta_ioctl.c:2227: error: unknown field 'private' specified in initializer../os/linux/sta_ioctl.c:2227: warning: initialization from incompatible pointer type
../os/linux/sta_ioctl.c:2228: error: unknown field 'num_private' specified in initializer
../os/linux/sta_ioctl.c:2228: warning: excess elements in struct initializer
../os/linux/sta_ioctl.c:2228: warning: (near initialization for 'rt28xx_iw_handler_def')
../os/linux/sta_ioctl.c:2229: error: unknown field 'private_args' specified in initializer
../os/linux/sta_ioctl.c:2229: warning: excess elements in struct initializer
../os/linux/sta_ioctl.c:2229: warning: (near initialization for 'rt28xx_iw_handler_def')
../os/linux/sta_ioctl.c:2230: error: unknown field 'num_private_args' specified in initializer
../os/linux/sta_ioctl.c:2230: warning: excess elements in struct initializer
../os/linux/sta_ioctl.c:2230: warning: (near initialization for 'rt28xx_iw_handler_def')
make[2]: *** [/home/littlemo/iData/lierda/EA/USB2WiFi/USB-WIFI-RT3070-WPA-V1.0/src/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/os/linux/../../os/linux/sta_ioctl.o] ?? 1
make[1]: *** [_module_/home/littlemo/iData/lierda/EA/USB2WiFi/USB-WIFI-RT3070-WPA-V1.0/src/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/os/linux] 错误 2
make[1]:正在离开目录 `/home/littlemo/iData/kernelLinux/arm-linux-2.6.33'
make: *** [LINUX] 错误 2
Platform: Ubuntu 13.04
ARM Kernel: 2.6.33
CrossCompile:4.3.33
问题原因:是因为在配置Makefile时,我们指定的内核在配置时不支持802.11的无线设备驱动。
解决办法:重新配置编译指定的Linux Kernel,将Device Drivers==>Network deivce support==>Wireless LAN==><*> USB ZD1201 based Wireless device support,编译即可
本文出自 “幻冥极地” 博客,请务必保留此出处http://littlemo.blog.51cto.com/3184796/1238850