Chinaunix首页 | 论坛 | 博客
  • 博客访问: 286004
  • 博文数量: 59
  • 博客积分: 1346
  • 博客等级: 中尉
  • 技术积分: 461
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-06 17:17
文章分类

全部博文(59)

文章存档

2012年(9)

2011年(50)

分类: LINUX

2012-06-14 10:21:04

安装openssl(openssl是用于编译wpa_supplicant,不需要安装到开发板)
./Configure os/compiler=arm-linux-gcc -prefix=/opt/Mozart_ToolChain/arm-eabi-uclibc/arm-linux
make
sudo make install 这里完成后,会生成openssl的头文件和库文件,默认路径为/usr/local/ssl

=================================================
start
=================================================
1. Get driver from Ralink.
2010_1217_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO.zip
2. mozart_kernel-1.22 or later.
=================================================
build rt3090sta driver
=================================================
Modify "./Makefile" add platform MOZART:
PLATFORM = MOZART
ifeq ($(PLATFORM),MOZART)
LINUX_SRC = /opt/kernel/mozart_kernel-1.17
CROSS_COMPILE = arm-linux-
endif
-------------------------------------------
Modify "./os/linux/config.mk":
turn off:
HAS_CFG80211_SUPPORT=n
HAS_RFKILL_HW_SUPPORT=n

add:
ifeq ($(PLATFORM),MOZART)
#       EXTRA_CFLAGS := $(WFLAGS) -I$(RT28xx_DIR)/include -fno-optimize-sibling-calls -fno-omit-frame-pointer
        EXTRA_CFLAGS := $(WFLAGS) -I$(RT28xx_DIR)/include -O3#-fno-optimize-sibling-calls -fno-omit-frame-pointer
endif
-------------------------------------------
disable log message. (option)
In file "include/os/rt_linux.h +613" delete these lines:
if(Level<=RTDebugLevel)
{
   printk Fmt;
}
-------------------------------------------
make
-------------------------------------------

insmod rt3090sta.ko;ifconfig ra0 192.168.1.11 netmask 255.255.255.0 up
./wpa_supplicant -B -i ra0 -c wpa_supplicant.conf
 
./wpa_passphrase WIFI503 57575777 >> wpa_supplicant.conf
iwlist ra0 scanning
route del default; route add default gw 192.168.1.1
阅读(2000) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~