基於openwrt和s3c2440的無線ap實現

來源:互聯網
上載者:User

標籤:openwrt   ap   2440   嵌入式   路由器   

無線AP(Access Point)是一個無線網路的存取點,具備無線到有線( wireless-to-wired)的橋接功能,我們這裡的無線AP是純接入裝置,沒有路由功能(由於開發板網卡數限制,所以沒有實現)。

下面就來講一下具體的實現方法:

硬體準備:mini2440開發板一塊,usb無線網卡DWL-122一塊,硬體串連圖如下:


在2440的網口用網線連上有線路由器的區域網路口,使路由器為mini2440分配一個ip地址。

接下來就是openwrt的編譯,我是在ubuntu10.04下編譯的,一定要用使用者權限!!,

編譯步驟如下:

對ubuntu進行更新:

$sudo apt-get -y update

安裝subversion:

$ sudo apt-get install subversion

安裝必要的編譯工具:

$ sudo apt-get install libtool autoconf automakegcc-multilib bison screen gcc g++ binutils patch bzip2 flex make gettext unziplibc6 git-core git build-essential libncurses5-dev zlib1g-dev gawk quilt asciidoc libz-dev

下載源碼:

$cd ~

$svn checkouthttp://openwrt-arm.googlecode.com/svn/trunk/openwrt/ openwrt-arm

$cd openwrt-arm

更新源:

$ svn update

$./scripts/feeds update -a

$./scripts/feeds install –a

進行配置:

$cd openwrt-arm

$make defconfig

$make menuconfig

進行編譯:

$make V=99

a)   燒寫核心:

將openwrt-arm/bin/s3c24xx中的uboot.bin、openwrt-s3c24xx-mini2440-zImage、openwrt-s3c24xx-squashfs.img用dnw燒到mini2440中:

        i.     切換到NOR FLASH 啟動

選f格式化

Uboot選q進入vivi 的命令模式,輸入

>part add uboot 0x00000000 0x00060000 0

>load flash uboot usb

通過windos 下的dnw 或者本項目的dnw2工具下載u-boot.bin

ii. 下載UBOOT 完成後,通過NAND啟動UBOOT,進行配置

進入菜單,按s 鍵選擇Settting system paramter,進入U-BOOT 配置,選項。

再次安3 鍵選擇MatchType,根據你的實際情況選擇板子(7)。並按S 儲存設定。重啟開發板並進入主菜單,根據需要下載。(選擇2 zimage)再選3squ

b)   啟動mini2440: 

        i.     ifconfigwlan0 up開啟無線網卡

      ii.     串口中設定br-lan地址為192.168.2.3

     iii.     Pc中開啟網頁192.168.1.120

      iv.     在網頁中:網路—介面—修改—基本設定:設定


         i.     重啟mini2440

      ii.     在網頁中:網路—無線—修改—基本設定:設定為



     iii.     重啟mini2440,既可串連上無線熱點openwrt_2440上網。



聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.